text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">[Enter steps to reproduce below:]</p>
<p dir="auto">1.Put some music and devellopers file on a folder<br>
2. Open the folder with atom<br>
3. clic on a music and it will crash atom because atom try to read it.</p>
<p dir="auto"><strong>Atom Version</strong>: 0.170.0<br>
<strong>System</strong>: Unknown Windows Version<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Atom can only handle files < 2MB for now.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\project.js:360
Error: Atom can only handle files < 2MB for now.
at Project.module.exports.Project.buildBuffer (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\project.js:360:15)
at Project.module.exports.Project.bufferForPath (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\project.js:337:63)
at Project.module.exports.Project.open (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\project.js:291:19)
at Workspace.module.exports.Workspace.openUriInPane (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\workspace.js:487:29)
at Workspace.module.exports.Workspace.open (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\workspace.js:414:19)
at Ipc.<anonymous> (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\window-event-handler.js:45:32)
at Ipc.emit (events.js:110:17)
at process.<anonymous> (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\atom\renderer\api\lib\ipc.js:22:29)
at process.emit (events.js:118:17)
"><pre class="notranslate"><code class="notranslate">At c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\project.js:360
Error: Atom can only handle files < 2MB for now.
at Project.module.exports.Project.buildBuffer (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\project.js:360:15)
at Project.module.exports.Project.bufferForPath (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\project.js:337:63)
at Project.module.exports.Project.open (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\project.js:291:19)
at Workspace.module.exports.Workspace.openUriInPane (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\workspace.js:487:29)
at Workspace.module.exports.Workspace.open (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\workspace.js:414:19)
at Ipc.<anonymous> (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\app\src\window-event-handler.js:45:32)
at Ipc.emit (events.js:110:17)
at process.<anonymous> (c:\Users\maissani\AppData\Local\atom\app-0.170.0\resources\atom\renderer\api\lib\ipc.js:22:29)
at process.emit (events.js:118:17)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"themes": [
"atom-dark-ui",
"base16-tomorrow-dark-theme"
]
},
"editor": {
"invisibles": {}
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>base16-tomorrow-dark-theme<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {}
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
No installed packages
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
<span class="pl-en">No</span> <span class="pl-en">installed</span> packages
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">So, I use my text editor for all kinds of things (writing code, reading readmes, editing dotfiles, etc). One of the things I do most often during any given day is open up large log files to troubleshoot Enterprise problems. These files can sometimes get as large as 500-800MB.</p>
<p dir="auto">I just tried viewing a 350MB log file and Atom locked up immediately -- the file selector didn't change and the entire window went completely white 4 seconds after I tried viewing the file. I could still close the top level window, but we should still have better handling for this kind of thing.</p>
<p dir="auto">Sublime Text 2 took about 55 seconds to open the file, but gave a nice progress indicator while it was loading:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/402a77c9e676b55fa95c38e26e4345d76be5e51f1cb9b2e2790d94de0ce90c00/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3234342f3139303337392f63306162633237652d376565352d313165322d386563342d3432303563646565306164302e706e67"><img src="https://camo.githubusercontent.com/402a77c9e676b55fa95c38e26e4345d76be5e51f1cb9b2e2790d94de0ce90c00/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3234342f3139303337392f63306162633237652d376565352d313165322d386563342d3432303563646565306164302e706e67" alt="Screen Shot 2013-02-24 at 4 50 56 PM" data-canonical-src="https://f.cloud.github.com/assets/244/190379/c0abc27e-7ee5-11e2-8ec4-4205cdee0ad0.png" style="max-width: 100%;"></a></p>
<p dir="auto">Once it loaded it was as responsive as any other file I load (scrolled fast, normal text highlight performance, etc). It would be nice if we set this as a baseline for expected behavior (progress bar + responsive after loading).</p> | 1 |
<p dir="auto">I'm running <code class="notranslate">Python 3.5.2</code> and <code class="notranslate">numpy 1.15.0</code></p>
<p dir="auto">I'm seeing:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)"><pre class="notranslate"><code class="notranslate">/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
return f(*args, **kwds)
</code></pre></div>
<p dir="auto">According to this <a href="https://stackoverflow.com/questions/40845304/runtimewarning-numpy-dtype-size-changed-may-indicate-binary-incompatibility" rel="nofollow">stackoverflow question</a> I shouldn't see this warring as it was silence since <code class="notranslate">numpy 1.8</code></p>
<p dir="auto">Why do I see it? and does it means anything?</p> | <p dir="auto">After <code class="notranslate">pip install numpy</code> 1.15 from a wheel,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print "np.dtype.__basicsize__:", np.dtype.__basicsize__ # 96
print "scipy.dtype.__basicsize__:", scipy.dtype.__basicsize__ # 96
from scipy import stats
~ 20 RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88"><pre class="notranslate"><code class="notranslate">print "np.dtype.__basicsize__:", np.dtype.__basicsize__ # 96
print "scipy.dtype.__basicsize__:", scipy.dtype.__basicsize__ # 96
from scipy import stats
~ 20 RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
</code></pre></div>
<p dir="auto">(Please add labels, don't see them; is there a label "strange" ?)</p>
<p dir="auto">A shell script to reproduce this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#!/bin/bash
# re-install numpy scipy: https://github.com/numpy/numpy/issues/11537 denis 27july
( cd $site; rm -r tmp; mkdir tmp; mv numpy* scipy* tmp )
rm -r ~/Library/Caches/pip
#...............................................................................
pip2 install --user numpy scipy
python2 -c '
import sys
import numpy as np
import scipy
print "versions: numpy %s scipy %s python %s " % (
np.__version__, scipy.__version__ , sys.version )
print "np.dtype.__basicsize__:", np.dtype.__basicsize__
print "scipy.dtype.__basicsize__:", scipy.dtype.__basicsize__
from scipy import stats
'
pip2 --version
ls -l $site/scipy/*/*cython*.so
otool -L $site/scipy/*/*cython*.so # mac"><pre class="notranslate"><code class="notranslate">#!/bin/bash
# re-install numpy scipy: https://github.com/numpy/numpy/issues/11537 denis 27july
( cd $site; rm -r tmp; mkdir tmp; mv numpy* scipy* tmp )
rm -r ~/Library/Caches/pip
#...............................................................................
pip2 install --user numpy scipy
python2 -c '
import sys
import numpy as np
import scipy
print "versions: numpy %s scipy %s python %s " % (
np.__version__, scipy.__version__ , sys.version )
print "np.dtype.__basicsize__:", np.dtype.__basicsize__
print "scipy.dtype.__basicsize__:", scipy.dtype.__basicsize__
from scipy import stats
'
pip2 --version
ls -l $site/scipy/*/*cython*.so
otool -L $site/scipy/*/*cython*.so # mac
</code></pre></div>
<p dir="auto">and the logfile:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting numpy
Downloading https://files.pythonhosted.org/packages/3c/bf/e36756c562f7386be78c6942f0a8a647ee4eb374cdf219bece7054832b14/numpy-1.15.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (24.5MB)
Collecting scipy
Downloading https://files.pythonhosted.org/packages/d1/d6/3eac96ffcf7cbeb37ed72982cf3fdd3138472cb04ab32cdce1f444d765f2/scipy-1.1.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (16.8MB)
Installing collected packages: numpy, scipy
The scripts conv-template, f2py and from-template are installed in '/Users/bz/Library/Python/2.7/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.15.0 scipy-1.1.0
versions: numpy 1.15.0 scipy 1.1.0 python 2.7.15 (v2.7.15:ca079a3ea3, Apr 29 2018, 20:59:26)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
np.dtype.__basicsize__: 96
scipy.dtype.__basicsize__: 96
/Library/Python/2.7/site-packages/scipy/special/__init__.py:640: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._ufuncs import *
/Library/Python/2.7/site-packages/scipy/linalg/basic.py:17: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._solve_toeplitz import levinson
/Library/Python/2.7/site-packages/scipy/linalg/__init__.py:207: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._decomp_update import *
/Library/Python/2.7/site-packages/scipy/special/_ellip_harm.py:7: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._ellip_harm_2 import _ellipsoid, _ellipsoid_norm
/Library/Python/2.7/site-packages/scipy/interpolate/_bsplines.py:10: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _bspl
/Library/Python/2.7/site-packages/scipy/sparse/lil.py:19: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _csparsetools
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/__init__.py:165: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._shortest_path import shortest_path, floyd_warshall, dijkstra,\
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/_validation.py:5: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._tools import csgraph_to_dense, csgraph_from_dense,\
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/__init__.py:167: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._traversal import breadth_first_order, depth_first_order, \
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/__init__.py:169: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._min_spanning_tree import minimum_spanning_tree
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/__init__.py:170: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._reordering import reverse_cuthill_mckee, maximum_bipartite_matching, \
/Library/Python/2.7/site-packages/scipy/spatial/__init__.py:95: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .ckdtree import *
/Library/Python/2.7/site-packages/scipy/spatial/__init__.py:96: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .qhull import *
/Library/Python/2.7/site-packages/scipy/spatial/_spherical_voronoi.py:18: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _voronoi
/Library/Python/2.7/site-packages/scipy/spatial/distance.py:122: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _hausdorff
/Library/Python/2.7/site-packages/scipy/optimize/_trlib/__init__.py:1: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._trlib import TRLIBQuadraticSubproblem
/Library/Python/2.7/site-packages/scipy/optimize/_numdiff.py:10: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._group_columns import group_dense, group_sparse
/Library/Python/2.7/site-packages/scipy/stats/_continuous_distns.py:18: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _stats
pip 18.0 from /Library/Python/2.7/site-packages/pip (python 2.7)
-rwxr-xr-x 1 bz admin 306652 Jul 27 11:34 /Library/Python/2.7/site-packages/scipy/linalg/cython_blas.so
-rwxr-xr-x 1 bz admin 817100 Jul 27 11:34 /Library/Python/2.7/site-packages/scipy/linalg/cython_lapack.so
-rwxr-xr-x 1 bz admin 2738116 Jul 27 11:34 /Library/Python/2.7/site-packages/scipy/special/cython_special.so
/Library/Python/2.7/site-packages/scipy/linalg/cython_blas.so:
@loader_path/../.dylibs/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
@loader_path/../.dylibs/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
@loader_path/../.dylibs/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Library/Python/2.7/site-packages/scipy/linalg/cython_lapack.so:
@loader_path/../.dylibs/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
@loader_path/../.dylibs/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
@loader_path/../.dylibs/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Library/Python/2.7/site-packages/scipy/special/cython_special.so:
@loader_path/../.dylibs/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
@loader_path/../.dylibs/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
@loader_path/../.dylibs/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)"><pre class="notranslate"><code class="notranslate">Collecting numpy
Downloading https://files.pythonhosted.org/packages/3c/bf/e36756c562f7386be78c6942f0a8a647ee4eb374cdf219bece7054832b14/numpy-1.15.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (24.5MB)
Collecting scipy
Downloading https://files.pythonhosted.org/packages/d1/d6/3eac96ffcf7cbeb37ed72982cf3fdd3138472cb04ab32cdce1f444d765f2/scipy-1.1.0-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (16.8MB)
Installing collected packages: numpy, scipy
The scripts conv-template, f2py and from-template are installed in '/Users/bz/Library/Python/2.7/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.15.0 scipy-1.1.0
versions: numpy 1.15.0 scipy 1.1.0 python 2.7.15 (v2.7.15:ca079a3ea3, Apr 29 2018, 20:59:26)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)]
np.dtype.__basicsize__: 96
scipy.dtype.__basicsize__: 96
/Library/Python/2.7/site-packages/scipy/special/__init__.py:640: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._ufuncs import *
/Library/Python/2.7/site-packages/scipy/linalg/basic.py:17: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._solve_toeplitz import levinson
/Library/Python/2.7/site-packages/scipy/linalg/__init__.py:207: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._decomp_update import *
/Library/Python/2.7/site-packages/scipy/special/_ellip_harm.py:7: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._ellip_harm_2 import _ellipsoid, _ellipsoid_norm
/Library/Python/2.7/site-packages/scipy/interpolate/_bsplines.py:10: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _bspl
/Library/Python/2.7/site-packages/scipy/sparse/lil.py:19: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _csparsetools
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/__init__.py:165: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._shortest_path import shortest_path, floyd_warshall, dijkstra,\
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/_validation.py:5: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._tools import csgraph_to_dense, csgraph_from_dense,\
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/__init__.py:167: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._traversal import breadth_first_order, depth_first_order, \
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/__init__.py:169: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._min_spanning_tree import minimum_spanning_tree
/Library/Python/2.7/site-packages/scipy/sparse/csgraph/__init__.py:170: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._reordering import reverse_cuthill_mckee, maximum_bipartite_matching, \
/Library/Python/2.7/site-packages/scipy/spatial/__init__.py:95: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .ckdtree import *
/Library/Python/2.7/site-packages/scipy/spatial/__init__.py:96: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from .qhull import *
/Library/Python/2.7/site-packages/scipy/spatial/_spherical_voronoi.py:18: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _voronoi
/Library/Python/2.7/site-packages/scipy/spatial/distance.py:122: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _hausdorff
/Library/Python/2.7/site-packages/scipy/optimize/_trlib/__init__.py:1: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._trlib import TRLIBQuadraticSubproblem
/Library/Python/2.7/site-packages/scipy/optimize/_numdiff.py:10: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from ._group_columns import group_dense, group_sparse
/Library/Python/2.7/site-packages/scipy/stats/_continuous_distns.py:18: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 96, got 88
from . import _stats
pip 18.0 from /Library/Python/2.7/site-packages/pip (python 2.7)
-rwxr-xr-x 1 bz admin 306652 Jul 27 11:34 /Library/Python/2.7/site-packages/scipy/linalg/cython_blas.so
-rwxr-xr-x 1 bz admin 817100 Jul 27 11:34 /Library/Python/2.7/site-packages/scipy/linalg/cython_lapack.so
-rwxr-xr-x 1 bz admin 2738116 Jul 27 11:34 /Library/Python/2.7/site-packages/scipy/special/cython_special.so
/Library/Python/2.7/site-packages/scipy/linalg/cython_blas.so:
@loader_path/../.dylibs/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
@loader_path/../.dylibs/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
@loader_path/../.dylibs/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Library/Python/2.7/site-packages/scipy/linalg/cython_lapack.so:
@loader_path/../.dylibs/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
@loader_path/../.dylibs/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
@loader_path/../.dylibs/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/Library/Python/2.7/site-packages/scipy/special/cython_special.so:
@loader_path/../.dylibs/libgfortran.3.dylib (compatibility version 4.0.0, current version 4.0.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1238.60.2)
@loader_path/../.dylibs/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
@loader_path/../.dylibs/libquadmath.0.dylib (compatibility version 1.0.0, current version 1.0.0)
</code></pre></div> | 1 |
<p dir="auto">It's so easy to accidentally drag a folder to another and not even know it, i've done it several times but each time i've been lucky to catch it. On a huge project this could be a nightmare. Please alert the user or at least create a preference that allows us to set an alert.</p>
<p dir="auto">Thanks!</p> | <p dir="auto">I am on windows 7, latest vscode, behind a corporate proxy, but have specified in in settings. I get a list of all extensions, but when I try and install for example magicpython I get the following error:</p>
<p dir="auto"><code class="notranslate">getaddrinfo ENOTFOUND marketplace.visualstudio.com marketplace.visualstudio.com:443</code></p>
<p dir="auto">Any ideas?</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.3"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.3
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Make sure at least two lines exists in the terminal window (eg. by typing in a command)</li>
<li>Use CTRL+mouse scroll wheel to zoom either in or out</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The buffer is not modified and the second line stays in place.</p>
<h1 dir="auto">Actual behavior</h1>
<h2 dir="auto">100% zoom</h2>
<p dir="auto">This is expected behaviour</p>
<h3 dir="auto">Powershell</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5155694/62409872-07382d00-b5de-11e9-82c1-ca4936b8af94.png"><img src="https://user-images.githubusercontent.com/5155694/62409872-07382d00-b5de-11e9-82c1-ca4936b8af94.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">WSL 1</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5155694/62409874-0d2e0e00-b5de-11e9-922b-c390533e85f6.png"><img src="https://user-images.githubusercontent.com/5155694/62409874-0d2e0e00-b5de-11e9-922b-c390533e85f6.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">1x zoomed in</h2>
<p dir="auto">The second line is indented</p>
<h3 dir="auto">Powershell</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5155694/62409893-39e22580-b5de-11e9-94c3-abd1a2e17ac9.png"><img src="https://user-images.githubusercontent.com/5155694/62409893-39e22580-b5de-11e9-94c3-abd1a2e17ac9.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">WSL 1</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5155694/62409894-3cdd1600-b5de-11e9-9051-8ee08a5c16d4.png"><img src="https://user-images.githubusercontent.com/5155694/62409894-3cdd1600-b5de-11e9-9051-8ee08a5c16d4.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">1x zoomed out</h2>
<p dir="auto">The second line is indented the other way, causing the data to return to the first line.</p>
<h3 dir="auto">Powershell</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5155694/62409901-51b9a980-b5de-11e9-9c05-7d36029a9d04.png"><img src="https://user-images.githubusercontent.com/5155694/62409901-51b9a980-b5de-11e9-9c05-7d36029a9d04.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">WSL 1</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5155694/62409898-4bc3c880-b5de-11e9-8e9b-1eec4037d8ff.png"><img src="https://user-images.githubusercontent.com/5155694/62409898-4bc3c880-b5de-11e9-8e9b-1eec4037d8ff.png" alt="image" style="max-width: 100%;"></a></p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Wheel-click a tab within Windows Terminal.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Close the tab or whatever the intending behaviour is by design.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Application becomes unresponsive for a matter of seconds and forcibly terminates.</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When I'm using some dynamic component with SSR: false that is crashing I expect it to see the error somehow.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Аpp is just stuck in "loading..." page state: no page error, no console output, no term output.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// pages/index.js
import dynamic from 'next/dynamic'
const TestLoader = dynamic(import('../components/Test'), { ssr: false})
export default () => <TestLoader />
// components/Test.js
throw new Error('test')
export default () => <div>hello</div>"><pre class="notranslate"><span class="pl-c">// pages/index.js</span>
<span class="pl-k">import</span> <span class="pl-s1">dynamic</span> <span class="pl-k">from</span> <span class="pl-s">'next/dynamic'</span>
<span class="pl-k">const</span> <span class="pl-v">TestLoader</span> <span class="pl-c1">=</span> <span class="pl-en">dynamic</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'../components/Test'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">ssr</span>: <span class="pl-c1">false</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-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-v">TestLoader</span> <span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c">// components/Test.js</span>
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'test'</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>hello<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">Some 3rd-party libs are validating the initial options by throwing an error (e.g. Auth0); it makes nearly impossible to debug them</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.1</td>
</tr>
<tr>
<td>node</td>
<td>8.4.0</td>
</tr>
<tr>
<td>OS</td>
<td>Mac 10.12</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table> | <p dir="auto">i had a call to an undefined function inside of componentDidMount. it errors <code class="notranslate">Cannot read property 'Component' of undefined</code> instead of notify that the function is undefined</p>
<p dir="auto">also a manual throw an error inside componentDidMount shows <code class="notranslate">Cannot read property 'Component' of undefined</code></p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">The moment i upgraded from an older version to v0.10.1it started crashing. I can not open it anymore.</p>
<p dir="auto">I tried downloading greater version like</p>
<ul dir="auto">
<li>v0.10.2</li>
<li>v0.10.3</li>
</ul>
<p dir="auto">But that does not work either. Please see attached file <a href="https://github.com/Microsoft/vscode/files/53608/crash.info.txt">crash info.txt</a> for more information.</p>
<p dir="auto">Thanks</p> | <p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117938631" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/296" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/296/hovercard" href="https://github.com/microsoft/vscode/issues/296">microsoft/vscode#296</a> for details. The stacktrace seems to be all in Electron land. Any ideas?</p> | 1 |
<h3 dir="auto">右键弹出菜单位置错误</h3>
<ul dir="auto">
<li>在放大的情况下(ctrl + +),右键点击弹出的菜单,位置偏左,放大倍数越大,偏左越明显。</li>
</ul> | <blockquote>
<p dir="auto">When I zoom in (using Ctrl+Shift++) the context menu that is shown when I right click somewhere is displayed in the wrong place. I attached two images one without any zoom where the menu is displayed correctly in the second one how is displayed after pressing Ctrl+Shift++ twice. In both cases the click is where the text cursor is.</p>
<p dir="auto">Some information about my environment: This is under Windows 10. I'm using two monitors both with scaling of 125% (by that I mean the option named "change size of text apps and other items" in the diplay settings ) and the resolutions of the displays are 2560x1440 and 1080x2024.</p>
</blockquote> | 1 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ X ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ X ] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
While configuring router (<strong>createUrlTree()</strong>), exception thrown trying to call access undefined <strong>rxjs_observable_of</strong>.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
Router library to properly utilize existing rxjs UMD</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
Create any application with routing using Router 3.0.0-beta.2 and rxjs UMD bundle.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
To use UMD modules</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.4, router 3.0.0-beta.2, rxjs 5.0.0-beta.6</li>
<li><strong>Browser:</strong> Chrome; Firefox</li>
<li><strong>Language:</strong> typescript 1.8.10</li>
</ul> | <p dir="auto">So, in the <code class="notranslate">RootRouter.commit</code> method, the RouteParams are appended twice to the URL, causing an URL like this</p>
<p dir="auto"><code class="notranslate">http://host.com/path?state=3&code=4</code><br>
to be transformed to an url like this<br>
<code class="notranslate">http://host.com/path;state=3;code=4?state=3&code=4</code></p>
<p dir="auto">by angular.</p>
<p dir="auto">This is not very pretty, and can cause problems, especially if you allow forward slashes in url query parameters, as I propose in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="136704303" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/7312" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/7312/hovercard" href="https://github.com/angular/angular/pull/7312">#7312</a>.</p>
<p dir="auto">So the question is, how to fix this issue? I would propose to only append RouteParams by query parameters and drop matrix variables. However, I don't know if that is as easily done than said.</p>
<p dir="auto">If matrix parameters need to be supported, then I would suggest, that they are supported by some sort of strategy pattern, so we can prevent duplication of parameters in the URL.</p>
<p dir="auto">Does anybody have an opinion on this?</p> | 0 |
<p dir="auto">WARNING - Refused to delete permission view, assoc with role exists DAG Runs.clear Admin</p>
<p dir="auto">Issue with airlow webserver command on airflow 2.1.0</p>
<p dir="auto">Please help</p> | <p dir="auto"><strong>Apache Airflow version</strong>:<br>
1.10.11</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):<br>
Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.6", GitCommit:"dff82dc0de47299ab66c83c626e08b245ab19037", GitTreeState:"clean", BuildDate:"2020-07-16T00:04:31Z", GoVersion:"go1.14.4", Compiler:"gc", Platform:"darwin/amd64"}<br>
Server Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.4", GitCommit:"8d8aa39598534325ad77120c120a22b3a990b5ea", GitTreeState:"clean", BuildDate:"2020-03-13T06:39:58Z", GoVersion:"go1.13.8", Compiler:"gc", Platform:"linux/amd64"}</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: Azure Kubernetes Service</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): Debian GNU/Linux 10 (buster)</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): Linux airflow-web-65cb7d9cb8-qzcbv 4.15.0-1089-azure <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="92247084" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/99" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/99/hovercard" href="https://github.com/apache/airflow/pull/99">#99</a>~16.04.1-Ubuntu SMP Fri Jun 5 15:30:32 UTC 2020 x86_64 GNU/Linux</li>
<li><strong>Install tools</strong>: Helm chart "stable/airflow"</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">After upgrading from 1.10.10 to 1.10.11 (and also with new installs of 1.10.11) there are some permission warnings in the webserver logs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-08-14 22:19:30,022] {manager.py:545} WARNING - Refused to delete permission view, assoc with role exists XComModelView.can_add Admin
[2020-08-14 22:19:30,038] {manager.py:545} WARNING - Refused to delete permission view, assoc with role exists XComModelView.can_edit Admin"><pre class="notranslate"><code class="notranslate">[2020-08-14 22:19:30,022] {manager.py:545} WARNING - Refused to delete permission view, assoc with role exists XComModelView.can_add Admin
[2020-08-14 22:19:30,038] {manager.py:545} WARNING - Refused to delete permission view, assoc with role exists XComModelView.can_edit Admin
</code></pre></div>
<p dir="auto">It seems to be directly related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="649125466" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/9614" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/9614/hovercard" href="https://github.com/apache/airflow/pull/9614">#9614</a> that <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kaxil/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kaxil">@kaxil</a> introduced for 1.10.11 which removes the <code class="notranslate">can_add</code> and <code class="notranslate">can_edit</code> permissions from <code class="notranslate">XComModelView</code>, but Airflow can not delete the permissions from that view because relations to those permissions still exist on the "Admin" and "Op" roles.</p>
<p dir="auto">In more technical terms, the two permissions can't be deleted from <code class="notranslate">ab_permission_view</code> table because each have relations to both the Admin's and Op's role_ids in the <code class="notranslate">ab_permission_view_role</code> table.</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
No warnings with Airflow 1.10.11</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<ol dir="auto">
<li>Install 1.10.11</li>
<li>Either:
<ol dir="auto">
<li>View the logs of the webserver</li>
<li>Run any airflow CLI command, such as <code class="notranslate">airflow list_users</code> and view the outputted log messages</li>
</ol>
</li>
<li>After a few lines of the log you will see the warnings</li>
</ol>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<p dir="auto">If those 4 role permissions are removed from the <code class="notranslate">ab_permission_view_role</code> table the warnings should stop. I think a migration needs to be added, or some logic that cleans up these role permissions is failing to do its job.</p> | 1 |
<p dir="auto">There are at least three sets of URLs that give the same thing:</p>
<p dir="auto"><a href="http://doc.rust-lang.org/std/" rel="nofollow">http://doc.rust-lang.org/std/</a><br>
<a href="http://doc.rust-lang.org/nightly/std/" rel="nofollow">http://doc.rust-lang.org/nightly/std/</a><br>
<a href="http://static.rust-lang.org/doc/master/std/" rel="nofollow">http://static.rust-lang.org/doc/master/std/</a></p>
<p dir="auto">One of the should be picked and the others redirect to it.</p>
<p dir="auto">Related, but I believe not quite duplicate: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19965114" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/9461" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/9461/hovercard" href="https://github.com/rust-lang/rust/issues/9461">#9461</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28092575" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/12466" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/12466/hovercard" href="https://github.com/rust-lang/rust/issues/12466">#12466</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34413342" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/14466" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/14466/hovercard" href="https://github.com/rust-lang/rust/issues/14466">#14466</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="47554893" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/18558" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/18558/hovercard" href="https://github.com/rust-lang/rust/issues/18558">#18558</a>.</p>
<p dir="auto">CC <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/brson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/brson">@brson</a></p> | <p dir="auto">The <code class="notranslate">Ref</code> type connected to <code class="notranslate">RefCell</code> supports some methods for changing the type of the reference, such as <code class="notranslate">map</code> and <code class="notranslate">filter_map</code>. While <code class="notranslate">map</code> is clearly fully general, <code class="notranslate">filter_map</code> is somewhat of a special case hooked into <code class="notranslate">Option</code>. To make it fully general would likely require HKT. We need an overall plan before stabilization.</p> | 0 |
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Clone test project <a href="https://github.com/v3rm0n/mixin_coverage_error">https://github.com/v3rm0n/mixin_coverage_error</a></li>
<li>Run <code class="notranslate">flutter test --coverage</code></li>
</ol>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="unhandled error during test:
/Users/maidokaara/Development/change/mixin_coverage_error/test/profile_bloc_test.dart
Bad state: Couldn't find line and column for token 180 in package:mixin_coverage_error/profile_bloc.dart.
#0 VMScript._lineAndColumn (package:vm_service_client/src/script.dart:243:5)
#1 _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:314:26)
#2 _ScriptLocation.line (package:vm_service_client/src/script.dart:295:5)
#3 _getCoverageJson (package:coverage/src/collect.dart:99:45)
<asynchronous suspension>
#4 _getAllCoverage (package:coverage/src/collect.dart:51:26)
<asynchronous suspension>
#5 collect (package:coverage/src/collect.dart:35:18)
<asynchronous suspension>
#6 CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:59:45)
<asynchronous suspension>
#7 CoverageCollector.handleFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:27:11)
<asynchronous suspension>
#8 _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:622:30)
<asynchronous suspension>
#9 _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:383:36)
#10 PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:65:19)
<asynchronous suspension>
#11 Loader.loadFile.<anonymous closure> (package:test/src/runner/loader.dart:248:36)
<asynchronous suspension>
#12 new LoadSuite.<anonymous closure>.<anonymous closure> (package:test/src/runner/load_suite.dart:89:31)
<asynchronous suspension>
#13 invoke (package:test/src/utils.dart:242:5)
#14 new LoadSuite.<anonymous closure> (package:test/src/runner/load_suite.dart:88:7)
#15 Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:403:25)
<asynchronous suspension>
#16 new Future.<anonymous closure> (dart:async/future.dart:176:37)
#17 StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#18 StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#19 _rootRun (dart:async/zone.dart:1120:38)
#20 _CustomZone.run (dart:async/zone.dart:1021:19)
#21 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#22 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#23 StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#24 StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#25 _rootRun (dart:async/zone.dart:1124:13)
#26 _CustomZone.run (dart:async/zone.dart:1021:19)
#27 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#28 Timer._createTimer.<anonymous closure> (dart:async/runtime/libtimer_patch.dart:21:15)
#29 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
#30 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
#31 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:169:12)"><pre class="notranslate"><code class="notranslate">unhandled error during test:
/Users/maidokaara/Development/change/mixin_coverage_error/test/profile_bloc_test.dart
Bad state: Couldn't find line and column for token 180 in package:mixin_coverage_error/profile_bloc.dart.
#0 VMScript._lineAndColumn (package:vm_service_client/src/script.dart:243:5)
#1 _ScriptLocation._ensureLineAndColumn (package:vm_service_client/src/script.dart:314:26)
#2 _ScriptLocation.line (package:vm_service_client/src/script.dart:295:5)
#3 _getCoverageJson (package:coverage/src/collect.dart:99:45)
<asynchronous suspension>
#4 _getAllCoverage (package:coverage/src/collect.dart:51:26)
<asynchronous suspension>
#5 collect (package:coverage/src/collect.dart:35:18)
<asynchronous suspension>
#6 CoverageCollector.collectCoverage (package:flutter_tools/src/test/coverage_collector.dart:59:45)
<asynchronous suspension>
#7 CoverageCollector.handleFinishedTest (package:flutter_tools/src/test/coverage_collector.dart:27:11)
<asynchronous suspension>
#8 _FlutterPlatform._startTest (package:flutter_tools/src/test/flutter_platform.dart:622:30)
<asynchronous suspension>
#9 _FlutterPlatform.loadChannel (package:flutter_tools/src/test/flutter_platform.dart:383:36)
#10 PlatformPlugin.load (package:test/src/runner/plugin/platform.dart:65:19)
<asynchronous suspension>
#11 Loader.loadFile.<anonymous closure> (package:test/src/runner/loader.dart:248:36)
<asynchronous suspension>
#12 new LoadSuite.<anonymous closure>.<anonymous closure> (package:test/src/runner/load_suite.dart:89:31)
<asynchronous suspension>
#13 invoke (package:test/src/utils.dart:242:5)
#14 new LoadSuite.<anonymous closure> (package:test/src/runner/load_suite.dart:88:7)
#15 Invoker._onRun.<anonymous closure>.<anonymous closure>.<anonymous closure>.<anonymous closure> (package:test/src/backend/invoker.dart:403:25)
<asynchronous suspension>
#16 new Future.<anonymous closure> (dart:async/future.dart:176:37)
#17 StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#18 StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#19 _rootRun (dart:async/zone.dart:1120:38)
#20 _CustomZone.run (dart:async/zone.dart:1021:19)
#21 _CustomZone.runGuarded (dart:async/zone.dart:923:7)
#22 _CustomZone.bindCallbackGuarded.<anonymous closure> (dart:async/zone.dart:963:23)
#23 StackZoneSpecification._run (package:stack_trace/src/stack_zone_specification.dart:209:15)
#24 StackZoneSpecification._registerCallback.<anonymous closure> (package:stack_trace/src/stack_zone_specification.dart:119:48)
#25 _rootRun (dart:async/zone.dart:1124:13)
#26 _CustomZone.run (dart:async/zone.dart:1021:19)
#27 _CustomZone.bindCallback.<anonymous closure> (dart:async/zone.dart:947:23)
#28 Timer._createTimer.<anonymous closure> (dart:async/runtime/libtimer_patch.dart:21:15)
#29 _Timer._runTimers (dart:isolate/runtime/libtimer_impl.dart:382:19)
#30 _Timer._handleMessage (dart:isolate/runtime/libtimer_impl.dart:416:5)
#31 _RawReceivePortImpl._handleMessage (dart:isolate/runtime/libisolate_patch.dart:169:12)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing mixin_coverage_error...
No issues found! (ran in 0.9s)"><pre class="notranslate"><code class="notranslate">Analyzing mixin_coverage_error...
No issues found! (ran in 0.9s)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel master, v0.5.9-pre.84, on Mac OS X 10.14 18A365a, locale en-EE)
• Flutter version 0.5.9-pre.84 at /Users/maidokaara/Programs/flutter
• Framework revision 3ae5ecebea (23 hours ago), 2018-08-19 06:25:00 -0400
• Engine revision 03f8ba51e3
• Dart version 2.1.0-dev.0.0.flutter-be6309690f
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/maidokaara/Library/Android/sdk
• Android NDK at /Users/maidokaara/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.2
• ANDROID_HOME = /Users/maidokaara/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 10.0, Build version 10L221o
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.3911.37
[✓] VS Code (version 1.25.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.16.0
[!] Connected devices
! No devices available
! Doctor found issues in 1 category."><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel master, v0.5.9-pre.84, on Mac OS X 10.14 18A365a, locale en-EE)
• Flutter version 0.5.9-pre.84 at /Users/maidokaara/Programs/flutter
• Framework revision 3ae5ecebea (23 hours ago), 2018-08-19 06:25:00 -0400
• Engine revision 03f8ba51e3
• Dart version 2.1.0-dev.0.0.flutter-be6309690f
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.2)
• Android SDK at /Users/maidokaara/Library/Android/sdk
• Android NDK at /Users/maidokaara/Library/Android/sdk/ndk-bundle
• Platform android-28, build-tools 28.0.2
• ANDROID_HOME = /Users/maidokaara/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
• Xcode at /Applications/Xcode-beta.app/Contents/Developer
• Xcode 10.0, Build version 10L221o
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 27.1.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2.1)
• IntelliJ at /Applications/IntelliJ IDEA.app
• Flutter plugin version 27.1.3
• Dart plugin version 182.3911.37
[✓] VS Code (version 1.25.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 2.16.0
[!] Connected devices
! No devices available
! Doctor found issues in 1 category.
</code></pre></div> | <p dir="auto">when i try to run my application for the first time, i get these messages</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 42166fb9f119ab6f)
Crash report written to /Users/yusuf/Documents/Flutter/flutter_app1/flutter_05.log;
please let us know at https://github.com/flutter/flutter/issues."><pre class="notranslate"><code class="notranslate">Oops; flutter has exited unexpectedly.
Sending crash report to Google.
Crash report sent (report ID: 42166fb9f119ab6f)
Crash report written to /Users/yusuf/Documents/Flutter/flutter_app1/flutter_05.log;
please let us know at https://github.com/flutter/flutter/issues.
</code></pre></div>
<p dir="auto"><strong>crash report</strong></p>
<p dir="auto">Flutter crash report; please file at <a href="https://github.com/flutter/flutter/issues">https://github.com/flutter/flutter/issues</a>.</p>
<h2 dir="auto">command</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter --no-color run --machine --device-id=F57A730B-8D40-41B7-8F5C-67140B7296B9 lib/main.dart"><pre class="notranslate"><code class="notranslate">flutter --no-color run --machine --device-id=F57A730B-8D40-41B7-8F5C-67140B7296B9 lib/main.dart
</code></pre></div>
<h2 dir="auto">exception</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FileSystemException: FileSystemException: Cannot open file, path = '/Users/yusuf/Documents/Flutter/flutter_app1/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java' (OS Error: Permission denied, errno = 13)"><pre class="notranslate"><code class="notranslate">FileSystemException: FileSystemException: Cannot open file, path = '/Users/yusuf/Documents/Flutter/flutter_app1/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java' (OS Error: Permission denied, errno = 13)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#0 _File.throwIfError (dart:io/file_impl.dart:647)
#1 _File.openSync (dart:io/file_impl.dart:491)
#2 _File.writeAsBytesSync (dart:io/file_impl.dart:616)
#3 _File.writeAsStringSync (dart:io/file_impl.dart:640)
#4 LocalFileSystemEntity&ForwardingFile.writeAsStringSync (package:file/src/forwarding/forwarding_file.dart:147)
#5 _writeAndroidPluginRegistrant (package:flutter_tools/src/plugins.dart:156)
#6 injectPlugins (package:flutter_tools/src/plugins.dart:238)
#7 FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:62)
#8 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:332)
<asynchronous suspension>
#9 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:279)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#11 _rootRun (dart:async/zone.dart:1126)
#12 _CustomZone.run (dart:async/zone.dart:1023)
#13 runZoned (dart:async/zone.dart:1501)
#14 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#15 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270)
#16 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#17 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:309)
<asynchronous suspension>
#18 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#19 _rootRun (dart:async/zone.dart:1126)
#20 _CustomZone.run (dart:async/zone.dart:1023)
#21 runZoned (dart:async/zone.dart:1501)
#22 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#23 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265)
<asynchronous suspension>
#24 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#25 new Future.sync (dart:async/future.dart:222)
#26 CommandRunner.run (package:args/command_runner.dart:109)
#27 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174)
#28 run.<anonymous closure> (package:flutter_tools/runner.dart:59)
<asynchronous suspension>
#29 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#30 _rootRun (dart:async/zone.dart:1126)
#31 _CustomZone.run (dart:async/zone.dart:1023)
#32 runZoned (dart:async/zone.dart:1501)
#33 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#34 runInContext (package:flutter_tools/src/context_runner.dart:43)
<asynchronous suspension>
#35 run (package:flutter_tools/runner.dart:50)
#36 main (package:flutter_tools/executable.dart:49)
<asynchronous suspension>
#37 main (file:///b/build/slave/Mac_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#38 _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#39 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)"><pre class="notranslate"><code class="notranslate">#0 _File.throwIfError (dart:io/file_impl.dart:647)
#1 _File.openSync (dart:io/file_impl.dart:491)
#2 _File.writeAsBytesSync (dart:io/file_impl.dart:616)
#3 _File.writeAsStringSync (dart:io/file_impl.dart:640)
#4 LocalFileSystemEntity&ForwardingFile.writeAsStringSync (package:file/src/forwarding/forwarding_file.dart:147)
#5 _writeAndroidPluginRegistrant (package:flutter_tools/src/plugins.dart:156)
#6 injectPlugins (package:flutter_tools/src/plugins.dart:238)
#7 FlutterProject.ensureReadyForPlatformSpecificTooling (package:flutter_tools/src/project.dart:62)
#8 FlutterCommand.verifyThenRunCommand (package:flutter_tools/src/runner/flutter_command.dart:332)
<asynchronous suspension>
#9 FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:279)
<asynchronous suspension>
#10 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#11 _rootRun (dart:async/zone.dart:1126)
#12 _CustomZone.run (dart:async/zone.dart:1023)
#13 runZoned (dart:async/zone.dart:1501)
#14 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#15 FlutterCommand.run (package:flutter_tools/src/runner/flutter_command.dart:270)
#16 CommandRunner.runCommand (package:args/command_runner.dart:194)
<asynchronous suspension>
#17 FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:309)
<asynchronous suspension>
#18 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#19 _rootRun (dart:async/zone.dart:1126)
#20 _CustomZone.run (dart:async/zone.dart:1023)
#21 runZoned (dart:async/zone.dart:1501)
#22 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#23 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:265)
<asynchronous suspension>
#24 CommandRunner.run.<anonymous closure> (package:args/command_runner.dart:109)
#25 new Future.sync (dart:async/future.dart:222)
#26 CommandRunner.run (package:args/command_runner.dart:109)
#27 FlutterCommandRunner.run (package:flutter_tools/src/runner/flutter_command_runner.dart:174)
#28 run.<anonymous closure> (package:flutter_tools/runner.dart:59)
<asynchronous suspension>
#29 AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:142)
<asynchronous suspension>
#30 _rootRun (dart:async/zone.dart:1126)
#31 _CustomZone.run (dart:async/zone.dart:1023)
#32 runZoned (dart:async/zone.dart:1501)
#33 AppContext.run (package:flutter_tools/src/base/context.dart:141)
<asynchronous suspension>
#34 runInContext (package:flutter_tools/src/context_runner.dart:43)
<asynchronous suspension>
#35 run (package:flutter_tools/runner.dart:50)
#36 main (package:flutter_tools/executable.dart:49)
<asynchronous suspension>
#37 main (file:///b/build/slave/Mac_Flutter_Packaging/build/archive/flutter/packages/flutter_tools/bin/flutter_tools.dart:8)
#38 _startIsolate.<anonymous closure> (dart:isolate-patch/dart:isolate/isolate_patch.dart:277)
#39 _RawReceivePortImpl._handleMessage (dart:isolate-patch/dart:isolate/isolate_patch.dart:165)
</code></pre></div>
<h2 dir="auto">flutter doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.5 17F77, locale en-US)
• Flutter version 0.5.1 at /Users/yusuf/flutter
• Framework revision c7ea3ca377 (7 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at /Users/yusuf/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.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-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Community Edition (version 2018.1.5)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 26.0.2
• Dart plugin version 181.4892.1
[✓] Connected devices (1 available)
• iPhone X • F57A730B-8D40-41B7-8F5C-67140B7296B9 • ios • iOS 11.4 (simulator)
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.5.1, on Mac OS X 10.13.5 17F77, locale en-US)
• Flutter version 0.5.1 at /Users/yusuf/flutter
• Framework revision c7ea3ca377 (7 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at /Users/yusuf/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.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-1024-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 9.4.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.4.1, Build version 9F2000
• ios-deploy 1.9.2
• CocoaPods version 1.5.3
[✓] Android Studio (version 3.1)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Community Edition (version 2018.1.5)
• IntelliJ at /Applications/IntelliJ IDEA CE.app
• Flutter plugin version 26.0.2
• Dart plugin version 181.4892.1
[✓] Connected devices (1 available)
• iPhone X • F57A730B-8D40-41B7-8F5C-67140B7296B9 • ios • iOS 11.4 (simulator)
• No issues found!
</code></pre></div> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I am trying to build a <code class="notranslate">create-react-app</code> for production using `npm run build``</p>
<h2 dir="auto">Current Behavior</h2>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/material-ui/es/styles/withStyles.js:37
Read more here: http://bit.ly/2tRViJ9"><pre class="notranslate"><span class="pl-v">Creating</span> <span class="pl-s1">an</span> <span class="pl-s1">optimized</span> <span class="pl-s1">production</span> <span class="pl-s1">build</span><span class="pl-kos">.</span><span class="pl-kos">.</span><span class="pl-kos">.</span>
<span class="pl-c1">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">compile</span><span class="pl-kos">.</span>
<span class="pl-c1">Failed</span> <span class="pl-s1">to</span> <span class="pl-s1">minify</span> <span class="pl-s1">the</span> <span class="pl-s1">code</span> <span class="pl-s1">from</span> <span class="pl-smi">this</span> file:
<span class="pl-kos">.</span><span class="pl-c1">/</span><span class="pl-s1">node_modules</span><span class="pl-c1">/</span><span class="pl-s1">material</span><span class="pl-c1">-</span><span class="pl-s1">ui</span><span class="pl-c1">/</span><span class="pl-s1">es</span><span class="pl-c1">/</span><span class="pl-s1">styles</span><span class="pl-c1">/</span><span class="pl-s1">withStyles</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">37</span>
<span class="pl-v">Read</span> <span class="pl-s1">more</span> here: http:<span class="pl-c">//bit.ly/2tRViJ9</span><span class="pl-kos"></span></pre></div>
<p dir="auto">This build process includes a minification step (can't be configured, for all I know), which fails (see above), as the <code class="notranslate">1.0.0-beta.20</code> version of your wonderful package is in ES6.</p>
<p dir="auto">This error pattern is known in <code class="notranslate">create-react-app</code>, see the link in their docu: <a href="http://bit.ly/2tRViJ9" rel="nofollow">http://bit.ly/2tRViJ9</a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Can't provide a sandbox, as you need to use <code class="notranslate">create-react-app</code> and <code class="notranslate">build</code> for prod.</p>
<ol dir="auto">
<li>Create a <code class="notranslate">create-react-app</code></li>
<li>Add <code class="notranslate">material-ui</code> dependency (1.0.0-beta.20)</li>
<li>Run <code class="notranslate">npm run build</code></li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">Trying to build for prod.</p>
<h2 dir="auto">Your Environment</h2>
<p dir="auto">node 8.1.1<br>
npm 5.5.1</p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.20</td>
</tr>
<tr>
<td>React</td>
<td>16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>--</td>
</tr>
<tr>
<td>etc</td>
<td>--</td>
</tr>
</tbody>
</table> | <p dir="auto">When using the autocomplete component using a list of people [name, city, state ...] as data-source, Austin will be displayed twice.<br>
How can we ensure the list won't show duplicate data while still using the same data source?</p>
<p dir="auto">const data = [<br>
{"id":1,"name":"bob", "city":"Austin","state":"TX"},<br>
{"id":2,"name":"bobb", "city":"Austin","state":"TX"},<br>
{"id":3,"name":"bobby", "city":"Dallas","state":"TX"},<br>
]</p>
<p dir="auto">const cityConfig = {<br>
text: 'city',<br>
value: 'city',<br>
};</p>
<p dir="auto"><AutoComplete<br>
floatingLabelText={'label'}<br>
dataSource={data}<br>
dataSourceConfig={cityConfig}<br>
/></p> | 0 |
<p dir="auto"><strong>Proof of concept</strong>: <a href="https://github.com/Bladrak/symfony-standard">https://github.com/Bladrak/symfony-standard</a> (master branch)</p>
<ul dir="auto">
<li>Go to {host}/demo/test</li>
<li>Enter anything in the form</li>
<li>Submit</li>
</ul>
<p dir="auto">The error message appears twice.</p>
<p dir="auto"><strong>Expected result</strong>: the message should appear only once.</p>
<p dir="auto"><strong>Model</strong>: The validation is set on the interface (TestModelInterface) ; the interface is implemented by a class (TestModel) which is overridden by our target entity for the validation (OverriddenTestModel).</p>
<p dir="auto"><strong>Possible bug sources</strong>:</p>
<ul dir="auto">
<li><code class="notranslate">Symfony\Component\Validator\Mapping\ClassMetadata::mergeConstraints</code> method systematically performs <code class="notranslate">addConstraint</code> on class-levels constraints where it may have to check if that constraint is already present.</li>
<li><code class="notranslate">Symfony\Component\Validator\Constraint\ElementMetadata::addConstraint</code> method could perform the check as well.</li>
</ul> | <h1 dir="auto">Use case</h1>
<h2 dir="auto">Models:</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="abstract class AbstractUser
{
private $username;
private $password;
}
class ConcreteUser extends AbstractUser
{
/**
* @var UserProfile
*/
private $profile;
}
class UserProfile
{
private $name;
}"><pre class="notranslate"><code class="notranslate">abstract class AbstractUser
{
private $username;
private $password;
}
class ConcreteUser extends AbstractUser
{
/**
* @var UserProfile
*/
private $profile;
}
class UserProfile
{
private $name;
}
</code></pre></div>
<h2 dir="auto">validation.xml (1)</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<class name="AbstractUser">
<property name="username">
<constraint name="NotBlank">
<option name="groups">Registration</option>
</constraint>
</property>
<property name="password">
<constraint name="NotBlank">
<option name="groups">Registration</option>
</constraint>
</property>
</class>"><pre class="notranslate"><code class="notranslate"><class name="AbstractUser">
<property name="username">
<constraint name="NotBlank">
<option name="groups">Registration</option>
</constraint>
</property>
<property name="password">
<constraint name="NotBlank">
<option name="groups">Registration</option>
</constraint>
</property>
</class>
</code></pre></div>
<h2 dir="auto">validation.xml (2) :</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<class name="ConcreteUser">
<property name="profile">
<constraint name="Valid" />
</property>
</class>
<class name="UserProfile">
<property name="name">
<constraint name="NotBlank">
<option name="groups">
<value>Profile</value>
<value>Registration</value>
</option>
</constraint>
</property>
</class>"><pre class="notranslate"><code class="notranslate"><class name="ConcreteUser">
<property name="profile">
<constraint name="Valid" />
</property>
</class>
<class name="UserProfile">
<property name="name">
<constraint name="NotBlank">
<option name="groups">
<value>Profile</value>
<value>Registration</value>
</option>
</constraint>
</property>
</class>
</code></pre></div>
<p dir="auto">When setting <em>validation_groups</em> to <code class="notranslate">Registration</code>, the error messages show twice for the <code class="notranslate">UserProfile::name</code> property.</p>
<p dir="auto">A simple test can be adding the username validation again into <code class="notranslate">ConcreteUser</code> class constraints :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<class name="ConcreteUser">
<property name="profile">
<constraint name="Valid" />
</property>
<property name="username">
<constraint name="NotBlank">
<option name="groups">Registration</option>
</constraint>
</property>
</class>"><pre class="notranslate"><code class="notranslate"><class name="ConcreteUser">
<property name="profile">
<constraint name="Valid" />
</property>
<property name="username">
<constraint name="NotBlank">
<option name="groups">Registration</option>
</constraint>
</property>
</class>
</code></pre></div>
<p dir="auto">Then validation error messages will show twice on the <em>username</em> as well.</p>
<p dir="auto">In production environnement that's inconvenient :/</p>
<h1 dir="auto">Hack, ugly but....</h1>
<p dir="auto">For now, there is a hack until this is fixed, in form theme blocks (twig) :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{% block field_errors %}
{% spaceless %}
{% if errors|length > 0 %}
<ul>
{% set lastError = null %}
{% for error in errors %}
{% if lastError != error %}
<li>{{ error.messageTemplate|trans(error.messageParameters, 'validators') }}</li>
{% endif %}
{% set lastError = error %}
{% endfor %}
</ul>
{% endif %}
{% endspaceless %}
{% endblock field_errors %}"><pre class="notranslate"><code class="notranslate">{% block field_errors %}
{% spaceless %}
{% if errors|length > 0 %}
<ul>
{% set lastError = null %}
{% for error in errors %}
{% if lastError != error %}
<li>{{ error.messageTemplate|trans(error.messageParameters, 'validators') }}</li>
{% endif %}
{% set lastError = error %}
{% endfor %}
</ul>
{% endif %}
{% endspaceless %}
{% endblock field_errors %}
</code></pre></div> | 1 |
<p dir="auto">This causes overhead on client side when parsing the errors since need to recheck content type for every error in order not to parse plain text as json (some libraries fail on that).<br>
The errors message format should be standardized.</p>
<p dir="auto">Examples:<br>
404: Page Not Found<br>
Content-Type: text/plain; charset=utf-8</p>
<p dir="auto">405 Method Not Allowed<br>
Content-Type: text/plain</p>
<p dir="auto">409 Conflict<br>
Content-Type: application/json</p>
<p dir="auto">500 Internal Server Error<br>
Content-Type: application/json</p> | <p dir="auto">If go-restful detects a particular method is not allowed, it will return this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="HTTP/1.1 405 Method Not Allowed
Content-Type: text/plain; charset=utf-8
405: Method Not Allowed"><pre class="notranslate"><code class="notranslate">HTTP/1.1 405 Method Not Allowed
Content-Type: text/plain; charset=utf-8
405: Method Not Allowed
</code></pre></div>
<p dir="auto">That is preventing useful methods that resthandler would generate from making it to the client. Expected response:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="HTTP/1.1 405 Method Not Allowed
Content-Type: application/json
{
"kind": "Status",
"creationTimestamp": null,
"apiVersion": "v1beta3",
"status": "Failure",
"message": "update is not supported on resources of kind event",
"reason": "InternalError",
"details": {
"kind": "event"
},
"code": 405
}"><pre class="notranslate"><code class="notranslate">HTTP/1.1 405 Method Not Allowed
Content-Type: application/json
{
"kind": "Status",
"creationTimestamp": null,
"apiVersion": "v1beta3",
"status": "Failure",
"message": "update is not supported on resources of kind event",
"reason": "InternalError",
"details": {
"kind": "event"
},
"code": 405
}
</code></pre></div> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When <code class="notranslate">boxplot</code> is called multiple times on the same axis with <code class="notranslate">manage_ticks=True</code>, ticks and labels can get duplicated and be overdrawn.</p>
<p dir="auto">I believe this problem to be caused in <a href="https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes/_axes.py#L4062-L4072">https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes/_axes.py#L4062-L4072</a> because there, on the second boxplot call, the new <code class="notranslate">locs</code> of the <code class="notranslate">FixedLocator</code> and <code class="notranslate">seq</code> of <code class="notranslate">FixedFormatter</code> are just appended to the previous ones without removing duplicates.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
fig, ax = plt.subplots(1, 1)
_ = ax.scatter(['a'], [1])
_ = ax.scatter(['a'], [1])
fig.canvas.draw()
print(ax.xaxis.get_ticklabels())
# Returns [Text(0, 0, 'a')] which is ok
fig, ax = plt.subplots(1, 1)
_ = ax.boxplot([1,2,3])
_ = ax.boxplot([5,6,7])
fig.canvas.draw()
print(ax.xaxis.get_ticklabels())
# Returns [Text(1, 0, '1'), Text(1, 0, '1')] which causes overdrawn labels"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>)
<span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">scatter</span>([<span class="pl-s">'a'</span>], [<span class="pl-c1">1</span>])
<span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">scatter</span>([<span class="pl-s">'a'</span>], [<span class="pl-c1">1</span>])
<span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">draw</span>()
<span class="pl-en">print</span>(<span class="pl-s1">ax</span>.<span class="pl-s1">xaxis</span>.<span class="pl-en">get_ticklabels</span>())
<span class="pl-c"># Returns [Text(0, 0, 'a')] which is ok</span>
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">1</span>, <span class="pl-c1">1</span>)
<span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">boxplot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>])
<span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">boxplot</span>([<span class="pl-c1">5</span>,<span class="pl-c1">6</span>,<span class="pl-c1">7</span>])
<span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">draw</span>()
<span class="pl-en">print</span>(<span class="pl-s1">ax</span>.<span class="pl-s1">xaxis</span>.<span class="pl-en">get_ticklabels</span>())
<span class="pl-c"># Returns [Text(1, 0, '1'), Text(1, 0, '1')] which causes overdrawn labels</span></pre></div>
<p dir="auto">The boxplot above is quite unreasonable, however this problem rises also in saner plots, such as the case of two shared axes with one boxplot each.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
fig, ax = plt.subplots(2, 1, sharex=True)
_ = ax[0].boxplot([1,2,3])
_ = ax[1].boxplot([1,2,3])
fig.canvas.draw()
print(ax[1].xaxis.get_ticklabels())
# Returns [Text(1, 0, '1'), Text(1, 0, '1')]"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">subplots</span>(<span class="pl-c1">2</span>, <span class="pl-c1">1</span>, <span class="pl-s1">sharex</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>[<span class="pl-c1">0</span>].<span class="pl-en">boxplot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>])
<span class="pl-s1">_</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-en">boxplot</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>])
<span class="pl-s1">fig</span>.<span class="pl-s1">canvas</span>.<span class="pl-en">draw</span>()
<span class="pl-en">print</span>(<span class="pl-s1">ax</span>[<span class="pl-c1">1</span>].<span class="pl-s1">xaxis</span>.<span class="pl-en">get_ticklabels</span>())
<span class="pl-c"># Returns [Text(1, 0, '1'), Text(1, 0, '1')]</span></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">I think that, in the instance of the shared axes, a user should not be required to set <code class="notranslate">manage_ticks=False</code> and set the locators and formatters by themselves in order to get the correct result.<br>
But that is debatable, so I actually wonder if this is a bug or intended behaviour.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 10</li>
<li>Matplotlib version: 3.3.2</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li>
<li>Python version: 3.7.5</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries:</li>
</ul> | <p dir="auto">It would be nice to migrate to py.test which seems to have more features and better usability than nose at this point.</p>
<p dir="auto">This is potentially a large chunk of work given how customized our nose environment is.</p> | 0 |
<p dir="auto">In my experience, there are few places in data work where problems with data are more evident than when merging datasets -- something that is both a problem (if you think you're doing a one-to-one merge and one of the keys isn't unique in one dataset, you can introduce huge problems) and an opportunity (checking that a merge works as expected is a great way to catch problems).</p>
<p dir="auto">With that in mind, I'd like to propose adding a <code class="notranslate">check_merge</code> argument that accepts strings <code class="notranslate">one_to_one</code>, <code class="notranslate">one_to_many</code>, <code class="notranslate">may_to_one</code>, and <code class="notranslate">many_to_many</code>. If one of those strings is passed, the <code class="notranslate">merge</code> function would then check uniqueness of merge variables before running the merge, and if for example the merge key for the first dataset has duplicates in a <code class="notranslate">one_to_many</code> merge, it would throw an (informative) exception.</p>
<p dir="auto">(Stata made a similar move to bake this functionality into its merge command around Stata 12 using <code class="notranslate">1:1</code>, <code class="notranslate">1:m</code>, <code class="notranslate">m:1</code> syntax, which I'm also open to).</p>
<p dir="auto">Though this functionality can be replicated with user tests, it gets tiring to write them every time...</p> | <p dir="auto">Dropping the index column with index=False normally works OK, but if the column headings are from a MultiIndex, it fails to drop the empty <code class="notranslate"><th></th></code> spacers at the start of the header, so data rows are not aligned properly:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df = pd.DataFrame([[1,1],[1,2],[2,3]],
columns=pd.MultiIndex.from_tuples([('a','b'),('a', 'c')]))
df.to_html(index=False)"><pre class="notranslate"><code class="notranslate">df = pd.DataFrame([[1,1],[1,2],[2,3]],
columns=pd.MultiIndex.from_tuples([('a','b'),('a', 'c')]))
df.to_html(index=False)
</code></pre></div> | 0 |
<p dir="auto">Hi,<br>
I wish to use Gapi for authentication in a future nextjs app. Any idea if this is possible ? or have been done already ?</p>
<ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.<br>
Thanks</li>
</ul> | <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/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<h2 dir="auto">Current Behavior</h2>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li></li>
<li></li>
<li></li>
<li></li>
</ol>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td></td>
</tr>
<tr>
<td>node</td>
<td></td>
</tr>
<tr>
<td>OS</td>
<td></td>
</tr>
<tr>
<td>browser</td>
<td></td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<h4 dir="auto">Challenge Name</h4>
<h4 dir="auto">Issue Description</h4>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Browser Name, Version:</li>
<li>Operating System:</li>
<li>Mobile, Desktop, or Tablet:</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
"><pre class="notranslate">
</pre></div>
<h4 dir="auto">Screenshot</h4> | <h4 dir="auto">Challenge Name</h4>
<p dir="auto"><a href="https://www.freecodecamp.com/challenges/target-the-children-of-an-element-using-jquery" rel="nofollow">https://www.freecodecamp.com/challenges/target-the-children-of-an-element-using-jquery</a></p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">The button 4 should've deleted from the jQuery, and button 5 should have only one clone. But it seems that there're 3 "target 5" buttons the right-hand display.</p>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Browser Name, Version: Chrome 55.0.2883.87 m</li>
<li>Operating System: Windows 7</li>
<li>Mobile, Desktop, or Tablet: msi laptop</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
//Default - No change at all.
"><pre class="notranslate">
<span class="pl-c">//Default - No change at all.</span>
</pre></div>
<h4 dir="auto">Screenshot</h4> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.ensemble import RandomForestClassifier
X = np.ones(shape=(0,1))
y = np.ones(shape=(0,1))
rfc = RandomForestClassifier()
In [36]: rfc.fit(X,y)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-36-eec77b0a9246> in <module>()
----> 1 rfc.fit(XX,yy)
/usr/local/lib/python2.7/site-packages/sklearn/ensemble/forest.pyc in fit(self, X, y, sample_weight)
363 random_state.randint(MAX_INT),
364 verbose=self.verbose)
--> 365 for i in xrange(n_jobs))
366
367 # Reduce
/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc in __call__(self, iterable)
512 try:
513 for function, args, kwargs in iterable:
--> 514 self.dispatch(function, args, kwargs)
515
516 self.retrieve()
/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc in dispatch(self, func, args, kwargs)
309 """
310 if self._pool is None:
--> 311 job = ImmediateApply(func, args, kwargs)
312 index = len(self._jobs)
313 if not _verbosity_filter(index, self.verbose):
/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc in __init__(self, func, args, kwargs)
133 # Don't delay the application, to avoid keeping the input
134 # arguments in memory
--> 135 self.results = func(*args, **kwargs)
136
137 def get(self):
/usr/local/lib/python2.7/site-packages/sklearn/ensemble/forest.pyc in _parallel_build_trees(n_trees, forest, X, y, sample_weight, sample_mask, X_argsorted, seed, verbose)
86 curr_sample_weight = sample_weight.copy()
87
---> 88 indices = random_state.randint(0, n_samples, n_samples)
89 sample_counts = bincount(indices, minlength=n_samples)
90
/usr/local/lib/python2.7/site-packages/numpy/random/mtrand.so in mtrand.RandomState.randint (numpy/random/mtrand/mtrand.c:6443)()
ValueError: low >= high"><pre class="notranslate"><code class="notranslate">from sklearn.ensemble import RandomForestClassifier
X = np.ones(shape=(0,1))
y = np.ones(shape=(0,1))
rfc = RandomForestClassifier()
In [36]: rfc.fit(X,y)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-36-eec77b0a9246> in <module>()
----> 1 rfc.fit(XX,yy)
/usr/local/lib/python2.7/site-packages/sklearn/ensemble/forest.pyc in fit(self, X, y, sample_weight)
363 random_state.randint(MAX_INT),
364 verbose=self.verbose)
--> 365 for i in xrange(n_jobs))
366
367 # Reduce
/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc in __call__(self, iterable)
512 try:
513 for function, args, kwargs in iterable:
--> 514 self.dispatch(function, args, kwargs)
515
516 self.retrieve()
/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc in dispatch(self, func, args, kwargs)
309 """
310 if self._pool is None:
--> 311 job = ImmediateApply(func, args, kwargs)
312 index = len(self._jobs)
313 if not _verbosity_filter(index, self.verbose):
/usr/local/lib/python2.7/site-packages/sklearn/externals/joblib/parallel.pyc in __init__(self, func, args, kwargs)
133 # Don't delay the application, to avoid keeping the input
134 # arguments in memory
--> 135 self.results = func(*args, **kwargs)
136
137 def get(self):
/usr/local/lib/python2.7/site-packages/sklearn/ensemble/forest.pyc in _parallel_build_trees(n_trees, forest, X, y, sample_weight, sample_mask, X_argsorted, seed, verbose)
86 curr_sample_weight = sample_weight.copy()
87
---> 88 indices = random_state.randint(0, n_samples, n_samples)
89 sample_counts = bincount(indices, minlength=n_samples)
90
/usr/local/lib/python2.7/site-packages/numpy/random/mtrand.so in mtrand.RandomState.randint (numpy/random/mtrand/mtrand.c:6443)()
ValueError: low >= high
</code></pre></div>
<p dir="auto">Also for decision trees:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.tree import DecisionTreeClassifier
X = np.ones(shape=(0,1))
y = np.ones(shape=(0,1))
dtc = DecisionTreeClassifier()
dtc.fit(X,y)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-41-bd6795874945> in <module>()
----> 1 dtc.fit(X,y)
/usr/local/lib/python2.7/site-packages/sklearn/tree/tree.pyc in fit(self, X, y, sample_mask, X_argsorted, check_input, sample_weight)
358 sample_weight=sample_weight,
359 sample_mask=sample_mask,
--> 360 X_argsorted=X_argsorted)
361
362 if self.n_outputs_ == 1:
/usr/local/lib/python2.7/site-packages/sklearn/tree/_tree.so in sklearn.tree._tree.Tree.build (sklearn/tree/_tree.c:4823)()
/usr/local/lib/python2.7/site-packages/sklearn/tree/_tree.so in sklearn.tree._tree.Tree.build (sklearn/tree/_tree.c:4636)()
/usr/local/lib/python2.7/site-packages/sklearn/tree/_tree.so in sklearn.tree._tree.Tree.recursive_partition (sklearn/tree/_tree.c:5156)()
ValueError: Attempting to find a split with an empty sample_mask."><pre class="notranslate"><code class="notranslate">from sklearn.tree import DecisionTreeClassifier
X = np.ones(shape=(0,1))
y = np.ones(shape=(0,1))
dtc = DecisionTreeClassifier()
dtc.fit(X,y)
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-41-bd6795874945> in <module>()
----> 1 dtc.fit(X,y)
/usr/local/lib/python2.7/site-packages/sklearn/tree/tree.pyc in fit(self, X, y, sample_mask, X_argsorted, check_input, sample_weight)
358 sample_weight=sample_weight,
359 sample_mask=sample_mask,
--> 360 X_argsorted=X_argsorted)
361
362 if self.n_outputs_ == 1:
/usr/local/lib/python2.7/site-packages/sklearn/tree/_tree.so in sklearn.tree._tree.Tree.build (sklearn/tree/_tree.c:4823)()
/usr/local/lib/python2.7/site-packages/sklearn/tree/_tree.so in sklearn.tree._tree.Tree.build (sklearn/tree/_tree.c:4636)()
/usr/local/lib/python2.7/site-packages/sklearn/tree/_tree.so in sklearn.tree._tree.Tree.recursive_partition (sklearn/tree/_tree.c:5156)()
ValueError: Attempting to find a split with an empty sample_mask.
</code></pre></div> | <p dir="auto">The handling of 1d input should be consistent in all estimators. I think currently 1d X is assumed to be of shape <code class="notranslate">(1, n_features)</code> - and even that might fail sometimes. That needs to be checked and needs to be consistent across all estimators.</p>
<p dir="auto">Also, all estimators that don't support nd-input (I'm not sure any do or should do?) need to raise an appropriate error.</p> | 1 |
<h2 dir="auto">Environment info</h2>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 4.1.1</li>
<li>Platform: ubuntu 18.04</li>
<li>Python version: 3.8.5</li>
<li>PyTorch version (GPU?): 1.7.1</li>
</ul>
<h3 dir="auto">Who can help</h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/patrickvonplaten/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/patrickvonplaten">@patrickvonplaten</a></p>
<h2 dir="auto">To reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from transformers import AutoModelForSeq2SeqLM
from transformers import AutoTokenizer
mt5s = ['google/mt5-base', 'google/mt5-small', 'google/mt5-large', 'google/mt5-xl', 'google/mt5-xxl']
for mt5 in mt5s:
model = AutoModelForSeq2SeqLM.from_pretrained(mt5)
tokenizer = AutoTokenizer.from_pretrained(mt5)
print()
print(mt5)
print(f"tokenizer vocab: {tokenizer.vocab_size}, model vocab: {model.config.vocab_size}")"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">AutoModelForSeq2SeqLM</span>
<span class="pl-k">from</span> <span class="pl-s1">transformers</span> <span class="pl-k">import</span> <span class="pl-v">AutoTokenizer</span>
<span class="pl-s1">mt5s</span> <span class="pl-c1">=</span> [<span class="pl-s">'google/mt5-base'</span>, <span class="pl-s">'google/mt5-small'</span>, <span class="pl-s">'google/mt5-large'</span>, <span class="pl-s">'google/mt5-xl'</span>, <span class="pl-s">'google/mt5-xxl'</span>]
<span class="pl-k">for</span> <span class="pl-s1">mt5</span> <span class="pl-c1">in</span> <span class="pl-s1">mt5s</span>:
<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">AutoModelForSeq2SeqLM</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s1">mt5</span>)
<span class="pl-s1">tokenizer</span> <span class="pl-c1">=</span> <span class="pl-v">AutoTokenizer</span>.<span class="pl-en">from_pretrained</span>(<span class="pl-s1">mt5</span>)
<span class="pl-en">print</span>()
<span class="pl-en">print</span>(<span class="pl-s1">mt5</span>)
<span class="pl-en">print</span>(<span class="pl-s">f"tokenizer vocab: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">tokenizer</span>.<span class="pl-s1">vocab_size</span><span class="pl-kos">}</span></span>, model vocab: <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">model</span>.<span class="pl-s1">config</span>.<span class="pl-s1">vocab_size</span><span class="pl-kos">}</span></span>"</span>)</pre></div>
<p dir="auto">This is problematic in case when one addes some (special) tokens to tokenizer and resizes the token embedding of the model with <code class="notranslate">model.resize_token_embedding(len(tokenizer))</code></p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">vocab_size for model and tokenizer should be the same?</p> | <h1 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions & Help</h1>
<p dir="auto">Pretrained <code class="notranslate">T5Tokenizer </code> has vocab size of 32100 (32000 tokens plus 100 extra_ids) but the shared embedding layer of <code class="notranslate">T5ForConditionalGeneration</code> has size of (32128, 768). I checked the google-research implementation of T5 and also found that they have vocab size of 32100 also.</p>
<p dir="auto">Where did the extra 28 embeddings come from and how can we map it to the tokenizer?</p>
<h2 dir="auto">To reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from transformers import (
T5Tokenizer,
T5ForConditionalGeneration,
)
tokenizer_pretrained = T5Tokenizer.from_pretrained('t5-base')
model_pretrained = T5ForConditionalGeneration.from_pretrained('t5-base')
len(tokenizer_pretrained.get_vocab()), model_pretrained.state_dict()['shared.weight'].shape"><pre class="notranslate"><code class="notranslate">from transformers import (
T5Tokenizer,
T5ForConditionalGeneration,
)
tokenizer_pretrained = T5Tokenizer.from_pretrained('t5-base')
model_pretrained = T5ForConditionalGeneration.from_pretrained('t5-base')
len(tokenizer_pretrained.get_vocab()), model_pretrained.state_dict()['shared.weight'].shape
</code></pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(32100, torch.Size([32128, 768]))"><pre class="notranslate"><code class="notranslate">(32100, torch.Size([32128, 768]))
</code></pre></div> | 1 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.7 (ES6 mode)</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="type SymbolKeysGiveNumbers = { [x: symbol]: number };"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">SymbolKeysGiveNumbers</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">x</span>: <span class="pl-smi">symbol</span><span class="pl-kos">]</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong><br>
Should work</p>
<p dir="auto"><strong>Actual behavior:</strong><br>
<code class="notranslate">Error: an index signature parameter must be 'string' or 'number'</code></p>
<p dir="auto">However:<br>
<strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let x: { [key: string]: any };
x[Symbol("abcd")] = 12;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">x</span>: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</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-s1">x</span><span class="pl-kos">[</span><span class="pl-smi">Symbol</span><span class="pl-kos">(</span><span class="pl-s">"abcd"</span><span class="pl-kos">)</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-c1">12</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong><br>
Should not work based on the error above</p>
<p dir="auto"><strong>Actual behavior:</strong><br>
Works</p>
<p dir="auto"><strong>Conclusion</strong><br>
<code class="notranslate">Symbol</code> type should be allowed as an index signature parameter type as in practice it is accepted as a valid index key type. Even the error message when doing something like:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let x: { [key: string]: any };
x[true] = 1;"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">x</span>: <span class="pl-kos">{</span> <span class="pl-kos">[</span><span class="pl-s1">key</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-s1">x</span><span class="pl-kos">[</span><span class="pl-c1">true</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">includes 'symbol' as a valid option:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An index expression argument must be of type 'string', 'number', 'symbol' or 'any'"><pre class="notranslate"><code class="notranslate">An index expression argument must be of type 'string', 'number', 'symbol' or 'any'
</code></pre></div> | <p dir="auto">TypeScript now has a ES6 target mode which includes definitions <code class="notranslate">Symbol</code>. However when trying to index an object with a symbol, I get an error (An index expression argument must be of type 'string', 'number', or 'any').</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var theAnswer = Symbol('secret');
var obj = {};
obj[theAnswer] = 42; // Currently error, but should be allowed"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">theAnswer</span> <span class="pl-c1">=</span> <span class="pl-v">Symbol</span><span class="pl-kos">(</span><span class="pl-s">'secret'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">obj</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-s1">obj</span><span class="pl-kos">[</span><span class="pl-s1">theAnswer</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-c1">42</span><span class="pl-kos">;</span> <span class="pl-c">// Currently error, but should be allowed</span></pre></div> | 1 |
<p dir="auto">The issue is that putting <code class="notranslate">class="visible-md visible-lg"</code> on an element will only make the element visible in the largest of the specified views (in this case <code class="notranslate">visible-lg</code>).</p>
<p dir="auto">The reason is that the CSS specificity that made this work in v3.0.3 was removed in v3.1.0 without correcting the order of CSS to make up for the decrease in specificity. Now the <code class="notranslate">display: none !important</code> of <code class="notranslate">visible-lg</code> overrides the <code class="notranslate">display: block !important</code> of <code class="notranslate">visible-md</code> because it is later in the CSS file (since the media query doesn't give any greater specificity). This most likely can be corrected by putting all the <code class="notranslate">display: block !important</code> wrapped in media queries after the <code class="notranslate">display: none !important</code>.</p>
<p dir="auto">So change:</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".visible-md,
tr.visible-md,
th.visible-md,
td.visible-md {
display: none !important;
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md {
display: block !important;
}
table.visible-md {
display: table;
}
tr.visible-md {
display: table-row !important;
}
th.visible-md,
td.visible-md {
display: table-cell !important;
}
}
.visible-lg,
tr.visible-lg,
th.visible-lg,
td.visible-lg {
display: none !important;
}"><pre class="notranslate">.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
<span class="pl-ent">tr</span>.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
<span class="pl-ent">th</span>.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
<span class="pl-ent">td</span>.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> none <span class="pl-k">!important</span>;
}
<span class="pl-k">@media</span> (<span class="pl-c1">min-width</span><span class="pl-kos">:</span> <span class="pl-c1">992<span class="pl-smi">px</span></span>) <span class="pl-c1">and</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">1199<span class="pl-smi">px</span></span>) {
.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> block <span class="pl-k">!important</span>;
}
<span class="pl-ent">table</span>.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> table;
}
<span class="pl-ent">tr</span>.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> table-row <span class="pl-k">!important</span>;
}
<span class="pl-ent">th</span>.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
<span class="pl-ent">td</span>.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> table-cell <span class="pl-k">!important</span>;
}
}
.<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span>
<span class="pl-ent">tr</span>.<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span>
<span class="pl-ent">th</span>.<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span>
<span class="pl-ent">td</span>.<span class="pl-c1">visible-lg</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> none <span class="pl-k">!important</span>;
}</pre></div>
<p dir="auto">to</p>
<div class="highlight highlight-source-css notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".visible-md,
tr.visible-md,
th.visible-md,
td.visible-md,
.visible-lg,
tr.visible-lg,
th.visible-lg,
td.visible-lg {
display: none !important;
}
@media (min-width: 992px) and (max-width: 1199px) {
.visible-md {
display: block !important;
}
table.visible-md {
display: table;
}
tr.visible-md {
display: table-row !important;
}
th.visible-md,
td.visible-md {
display: table-cell !important;
}
}"><pre class="notranslate">.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
<span class="pl-ent">tr</span>.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
<span class="pl-ent">th</span>.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
<span class="pl-ent">td</span>.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
.<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span>
<span class="pl-ent">tr</span>.<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span>
<span class="pl-ent">th</span>.<span class="pl-c1">visible-lg</span><span class="pl-kos">,</span>
<span class="pl-ent">td</span>.<span class="pl-c1">visible-lg</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> none <span class="pl-k">!important</span>;
}
<span class="pl-k">@media</span> (<span class="pl-c1">min-width</span><span class="pl-kos">:</span> <span class="pl-c1">992<span class="pl-smi">px</span></span>) <span class="pl-c1">and</span> (<span class="pl-c1">max-width</span><span class="pl-kos">:</span> <span class="pl-c1">1199<span class="pl-smi">px</span></span>) {
.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> block <span class="pl-k">!important</span>;
}
<span class="pl-ent">table</span>.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> table;
}
<span class="pl-ent">tr</span>.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> table-row <span class="pl-k">!important</span>;
}
<span class="pl-ent">th</span>.<span class="pl-c1">visible-md</span><span class="pl-kos">,</span>
<span class="pl-ent">td</span>.<span class="pl-c1">visible-md</span> {
<span class="pl-c1">display</span><span class="pl-kos">:</span> table-cell <span class="pl-k">!important</span>;
}
}</pre></div>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26618012" data-permission-text="Title is private" data-url="https://github.com/wet-boew/wet-boew/issues/4448" data-hovercard-type="issue" data-hovercard-url="/wet-boew/wet-boew/issues/4448/hovercard?comment_id=35464859&comment_type=issue_comment" href="https://github.com/wet-boew/wet-boew/issues/4448#issuecomment-35464859">wet-boew/wet-boew#4448 (comment)</a> for additional details.</p> | <p dir="auto"><a href="https://dl.dropboxusercontent.com/u/37682778/error/index.html" rel="nofollow">https://dl.dropboxusercontent.com/u/37682778/error/index.html</a></p> | 1 |
<p dir="auto">There is a lot of information in the stats API, but little of it is documented, and confusion arises...</p>
<p dir="auto">e.g.<br>
_all.primaries.docs.count shows all the documents lucene sees, which may be different to the documents elasticsearch sees with a simple search if there are nested documents being used. (I think this statement is true... but is it?)</p> | <p dir="auto">Hello,</p>
<p dir="auto">We have actually 7 nodes. We use elasticsearch 1.3.2.</p>
<p dir="auto">We are configured in unicast mode with a minimum consistency of 4<br>
Two days ago, in the night, network team has done a switches firmware upgrade of all production switches.</p>
<p dir="auto">The result of this upgrade has been catastrophic for the cluster.<br>
The cluster has been split in two parts with some node in first and second part</p>
<p dir="auto">Node 3 and Node 5 was master together</p>
<p dir="auto">Node 3 with Node 1, Node3 and Node 6<br>
Node 5 with Node 1, Node2, Node4, Node 5, Node 6 and Node 7</p>
<p dir="auto">Fortunately we have a second cluster on other lab which the same data and we have been able to do a snapshot/restore from this cluster to the first one after a rolling restart.</p>
<p dir="auto">And don't understand how a switch upgrade, and a connectivity lost, can result of a corrupted cluster allocation.</p>
<p dir="auto">Regards,</p> | 0 |
<p dir="auto">the error info is</p>
<p dir="auto"><code class="notranslate">[ERROR] 16:28:29.726 [pool-4-thread-1] o.a.s.s.f.c.CommandExecutorTask - Exception occur: java.lang.NullPointerException: null at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.createConnection(JDBCBackendDataSource.java:150) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.getConnections(JDBCBackendDataSource.java:123) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connection.BackendConnection.getConnectionFromUnderlying(BackendConnection.java:198) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connection.BackendConnection.getConnectionsWithoutTransaction(BackendConnection.java:181) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.connection.BackendConnection.getConnections(BackendConnection.java:150) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.execute.callback.ProxyJDBCExecutePrepareCallback.getConnections(ProxyJDBCExecutePrepareCallback.java:56) at org.apache.shardingsphere.core.execute.sql.prepare.SQLExecutePrepareTemplate.getSQLExecuteGroups(SQLExecutePrepareTemplate.java:89) at org.apache.shardingsphere.core.execute.sql.prepare.SQLExecutePrepareTemplate.getSynchronizedExecuteUnitGroups(SQLExecutePrepareTemplate.java:67) at org.apache.shardingsphere.core.execute.sql.prepare.SQLExecutePrepareTemplate.getExecuteUnitGroups(SQLExecutePrepareTemplate.java:59) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.execute.JDBCExecuteEngine.execute(JDBCExecuteEngine.java:80) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:93) at org.apache.shardingsphere.shardingproxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:78) at org.apache.shardingsphere.shardingproxy.frontend.postgresql.command.query.binary.bind.PostgreSQLComBindExecutor.execute(PostgreSQLComBindExecutor.java:81) at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:86) at org.apache.shardingsphere.shardingproxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:66) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) </code></p>
<p dir="auto"><strong>this configuration file:</strong></p>
<p dir="auto"><strong>server.ymal</strong></p>
<p dir="auto">`<br>
authentication:<br>
users:<br>
root:<br>
password: root<br>
sharding:<br>
password: sharding<br>
authorizedSchemas: sharding_db</p>
<p dir="auto">props:<br>
max.connections.size.per.query: 1<br>
acceptor.size: 16 # The default value is available processors count * 2.<br>
executor.size: 16 # Infinite by default.<br>
proxy.frontend.flush.threshold: 128 # The default value is 128.<br>
# LOCAL: Proxy will run with LOCAL transaction.<br>
# XA: Proxy will run with XA transaction.<br>
# BASE: Proxy will run with B.A.S.E transaction.<br>
proxy.transaction.type: LOCAL<br>
proxy.opentracing.enabled: false<br>
query.with.cipher.column: true<br>
sql.show: false<br>
`</p>
<p dir="auto"><strong>config-sharding.yaml</strong></p>
<p dir="auto">`schemaName: sharding_db</p>
<p dir="auto">dataSources:<br>
ds_0:<br>
url: jdbc:postgresql://192.168.51.119:5432/demo_ds_0?serverTimezone=UTC&useSSL=false<br>
username: postgres<br>
password: postgres<br>
connectionTimeoutMilliseconds: 30000<br>
idleTimeoutMilliseconds: 60000<br>
maxLifetimeMilliseconds: 1800000<br>
maxPoolSize: 50<br>
ds_1:<br>
url: jdbc:postgresql://192.168.51.119:5432/demo_ds_1?serverTimezone=UTC&useSSL=false<br>
username: postgres<br>
password: postgres<br>
connectionTimeoutMilliseconds: 30000<br>
idleTimeoutMilliseconds: 60000<br>
maxLifetimeMilliseconds: 1800000<br>
maxPoolSize: 50</p>
<p dir="auto">shardingRule:<br>
tables:<br>
t_order:<br>
actualDataNodes: ds_${0..1}.t_order_${0..1}<br>
tableStrategy:<br>
inline:<br>
shardingColumn: order_id<br>
algorithmExpression: t_order_${order_id % 2}<br>
keyGenerator:<br>
type: SNOWFLAKE<br>
column: order_id<br>
t_order_item:<br>
actualDataNodes: ds_${0..1}.t_order_item_${0..1}<br>
tableStrategy:<br>
inline:<br>
shardingColumn: order_id<br>
algorithmExpression: t_order_item_${order_id % 2}<br>
keyGenerator:<br>
type: SNOWFLAKE<br>
column: order_item_id<br>
bindingTables:<br>
- t_order,t_order_item<br>
defaultDatabaseStrategy:<br>
inline:<br>
shardingColumn: user_id<br>
algorithmExpression: ds_${user_id % 2}<br>
defaultTableStrategy:<br>
none:<br>
`</p> | <h2 dir="auto">Bug Report</h2>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto">shardingsphere-ui-4.1.1</p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-Proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">statment.executeQuery("select * from events" )</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">NullPointerException thrown</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<p dir="auto">The DB is MariaDb 10.2.<br>
create a Statement.<br>
executeQuery("select * from events")<br>
It seems the table name "events" is not taken as a table name.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37646009/87040499-5ee60c00-c223-11ea-9456-775d35e52e32.jpg"><img src="https://user-images.githubusercontent.com/37646009/87040499-5ee60c00-c223-11ea-9456-775d35e52e32.jpg" alt="360截图20200709202447687" style="max-width: 100%;"></a></p>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> | 0 |
<p dir="auto">apm (atom package manager) conflicts with the widely used advanced power management system on Linux. This has been confirmed on both current versions of Ubuntu and Debian.</p>
<p dir="auto">Atom installs "apm" by default into /usr/bin, Advanced Power Management installs its client, also named "apm" into /usr/bin as well.</p>
<p dir="auto">Since this is a widely used system, I would suggest that either the Atom package manager be renamed, or installed into another location so that they do not conflict.</p> | <p dir="auto">Error when installing on a system with "apmd" package installed:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Selecting previously unselected package atom.
(Reading database ... 183328 files and directories currently installed.)
Preparing to unpack atom-amd64.deb ...
Unpacking atom (0.138.0) ...
dpkg: error processing archive atom-amd64.deb (--install):
trying to overwrite '/usr/bin/apm', which is also in package apmd 3.2.2-15
Processing triggers for mime-support (3.57) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Errors were encountered while processing:
atom-amd64.deb"><pre class="notranslate"><code class="notranslate">Selecting previously unselected package atom.
(Reading database ... 183328 files and directories currently installed.)
Preparing to unpack atom-amd64.deb ...
Unpacking atom (0.138.0) ...
dpkg: error processing archive atom-amd64.deb (--install):
trying to overwrite '/usr/bin/apm', which is also in package apmd 3.2.2-15
Processing triggers for mime-support (3.57) ...
Processing triggers for desktop-file-utils (0.22-1) ...
Errors were encountered while processing:
atom-amd64.deb
</code></pre></div> | 1 |
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-soak-gce-test/84/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-soak-gce-test/84/</a></p>
<p dir="auto">Failed: BeforeSuite {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:165
Dec 6 12:00:03.528: Error waiting for all pods to be running and ready: 3 / 33 pods in namespace "kube-system" are NOT in RUNNING and READY state in 10m0s
POD NODE PHASE GRACE CONDITIONS
fluentd-cloud-logging-bootstrap-e2e-minion-group-ccml bootstrap-e2e-minion-group-ccml Running [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:59:35 -0800 PST } {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST }]
kube-proxy-bootstrap-e2e-minion-group-ccml bootstrap-e2e-minion-group-ccml Running [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST } {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST }]
node-problem-detector-v0.1-r97lg bootstrap-e2e-minion-group-ccml Running [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:25 -0800 PST } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:37 -0800 PST } {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST }]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:135"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:165
Dec 6 12:00:03.528: Error waiting for all pods to be running and ready: 3 / 33 pods in namespace "kube-system" are NOT in RUNNING and READY state in 10m0s
POD NODE PHASE GRACE CONDITIONS
fluentd-cloud-logging-bootstrap-e2e-minion-group-ccml bootstrap-e2e-minion-group-ccml Running [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:59:35 -0800 PST } {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST }]
kube-proxy-bootstrap-e2e-minion-group-ccml bootstrap-e2e-minion-group-ccml Running [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST } {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST }]
node-problem-detector-v0.1-r97lg bootstrap-e2e-minion-group-ccml Running [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:25 -0800 PST } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:37 -0800 PST } {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-12-06 04:58:32 -0800 PST }]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:135
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156417256" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26135" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26135/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26135">#26135</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156638964" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26236" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26236/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26236">#26236</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161828864" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27920" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27920/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27920">#27920</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163806926" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28492" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28492/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28492">#28492</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169047628" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29970" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29970/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29970">#29970</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169381353" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30075" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30075/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30075">#30075</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177627245" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32980" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32980/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32980">#32980</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178709119" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33313" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33313/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33313">#33313</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="184891893" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/35444" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/35444/hovercard" href="https://github.com/kubernetes/kubernetes/issues/35444">#35444</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="192856069" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/37814" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/37814/hovercard" href="https://github.com/kubernetes/kubernetes/issues/37814">#37814</a></p> | <p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/10992/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gce-scalability/10992/</a></p>
<p dir="auto">Failed: BeforeSuite {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:158
Sep 23 11:26:08.874: Error waiting for all pods to be running and ready: 1 / 418 pods in namespace "kube-system" are NOT in the desired state in 10m0s
POD NODE PHASE GRACE CONDITIONS
node-problem-detector-v0.1-dwpq2 e2e-scalability-minion-group-i5cw Pending [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:12:13 -0700 PDT } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:12:13 -0700 PDT ContainersNotReady containers with unready status: [node-problem-detector]} {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:16:54 -0700 PDT }]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:128"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:158
Sep 23 11:26:08.874: Error waiting for all pods to be running and ready: 1 / 418 pods in namespace "kube-system" are NOT in the desired state in 10m0s
POD NODE PHASE GRACE CONDITIONS
node-problem-detector-v0.1-dwpq2 e2e-scalability-minion-group-i5cw Pending [{Initialized True 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:12:13 -0700 PDT } {Ready False 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:12:13 -0700 PDT ContainersNotReady containers with unready status: [node-problem-detector]} {PodScheduled True 0001-01-01 00:00:00 +0000 UTC 2016-09-23 11:16:54 -0700 PDT }]
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/e2e.go:128
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156417256" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26135" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26135/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26135">#26135</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156638964" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26236" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26236/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26236">#26236</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="161828864" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/27920" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/27920/hovercard" href="https://github.com/kubernetes/kubernetes/issues/27920">#27920</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163806926" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/28492" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/28492/hovercard" href="https://github.com/kubernetes/kubernetes/issues/28492">#28492</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169047628" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/29970" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/29970/hovercard" href="https://github.com/kubernetes/kubernetes/issues/29970">#29970</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="169381353" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30075" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30075/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30075">#30075</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177627245" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/32980" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/32980/hovercard" href="https://github.com/kubernetes/kubernetes/issues/32980">#32980</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="178709119" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33313" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33313/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33313">#33313</a></p> | 1 |
<p dir="auto">While it's possible to find the <code class="notranslate">max</code> of a Series containing strings, it's not possible to find the <code class="notranslate">idxmax</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> s = pd.Series(list('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))
>>> s.max()
'Z'
>>> s.idxmax()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-292-28e0d79e56be> in <module>()
----> 1 s.idxmax()
/Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/core/series.py in idxmax(self, axis, out, skipna)
1218 numpy.ndarray.argmax
1219 """
-> 1220 i = nanops.nanargmax(_values_from_object(self), skipna=skipna)
1221 if i == -1:
1222 return np.nan
/Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/core/nanops.py in nanargmax(values, axis, skipna)
492 """
493 values, mask, dtype, _ = _get_values(values, skipna, fill_value_typ='-inf',
--> 494 isfinite=True)
495 result = values.argmax(axis)
496 result = _maybe_arg_null_out(result, axis, mask, skipna)
/Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/core/nanops.py in _get_values(values, skipna, fill_value, fill_value_typ, isfinite, copy)
178 values = _values_from_object(values)
179 if isfinite:
--> 180 mask = _isfinite(values)
181 else:
182 mask = isnull(values)
/Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/core/nanops.py in _isfinite(values)
221 is_integer_dtype(values) or is_bool_dtype(values)):
222 return ~np.isfinite(values)
--> 223 return ~np.isfinite(values.astype('float64'))
224
225
ValueError: could not convert string to float: 'Z'"><pre class="notranslate"><code class="notranslate">>>> s = pd.Series(list('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))
>>> s.max()
'Z'
>>> s.idxmax()
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-292-28e0d79e56be> in <module>()
----> 1 s.idxmax()
/Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/core/series.py in idxmax(self, axis, out, skipna)
1218 numpy.ndarray.argmax
1219 """
-> 1220 i = nanops.nanargmax(_values_from_object(self), skipna=skipna)
1221 if i == -1:
1222 return np.nan
/Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/core/nanops.py in nanargmax(values, axis, skipna)
492 """
493 values, mask, dtype, _ = _get_values(values, skipna, fill_value_typ='-inf',
--> 494 isfinite=True)
495 result = values.argmax(axis)
496 result = _maybe_arg_null_out(result, axis, mask, skipna)
/Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/core/nanops.py in _get_values(values, skipna, fill_value, fill_value_typ, isfinite, copy)
178 values = _values_from_object(values)
179 if isfinite:
--> 180 mask = _isfinite(values)
181 else:
182 mask = isnull(values)
/Users/jakevdp/anaconda/envs/python3.4/lib/python3.4/site-packages/pandas/core/nanops.py in _isfinite(values)
221 is_integer_dtype(values) or is_bool_dtype(values)):
222 return ~np.isfinite(values)
--> 223 return ~np.isfinite(values.astype('float64'))
224
225
ValueError: could not convert string to float: 'Z'
</code></pre></div>
<p dir="auto">This surprised me because it works without a problem in numpy:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> arr = np.array(list('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))
>>> arr.argmax()
25"><pre class="notranslate"><code class="notranslate">>>> arr = np.array(list('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))
>>> arr.argmax()
25
</code></pre></div>
<p dir="auto">It seems that pandas <code class="notranslate">idxmax</code> implementation implicitly assumes numerical types.</p> | <p dir="auto">When getting the values of a dataframe with multiple columns with a single type datetime64[ns,UTC], it returns a numpy array with dtype=object instead of dtype=datetime64[ns,UTC].<br>
When returning a single column with dtype=datetime64[ns,UTC] or returning a multiple columns of dtype=datetime64[ns] (ie without tz), it works.<br>
Looking at the code, it appears that SingleBlockManager.is_mixed_type returns False in the first case (datetime64[ns,UTC]) and True in the two other cases (single datetime64[ns,UTC] or multiple datetime64[ns]).</p>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas
idx = pandas.date_range("2010", "2011", tz="UTC")
df = pandas.DataFrame(index=idx)
df["A"] = idx
df["B"] = idx
print(df[["B"]].values.dtype)
print(df[["A", "B"]].values.dtype)"><pre class="notranslate"><code class="notranslate">import pandas
idx = pandas.date_range("2010", "2011", tz="UTC")
df = pandas.DataFrame(index=idx)
df["A"] = idx
df["B"] = idx
print(df[["B"]].values.dtype)
print(df[["A", "B"]].values.dtype)
</code></pre></div>
<h4 dir="auto">Actual Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="datetime64[ns, UTC]
object"><pre class="notranslate"><code class="notranslate">datetime64[ns, UTC]
object
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="datetime64[ns, UTC]
datetime64[ns, UTC]"><pre class="notranslate"><code class="notranslate">datetime64[ns, UTC]
datetime64[ns, UTC]
</code></pre></div>
<h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4>
<p dir="auto">INSTALLED VERSIONS</p>
<p dir="auto">commit: None<br>
python: 3.5.2.final.0<br>
python-bits: 32<br>
OS: Windows<br>
OS-release: 7<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 61 Stepping 4, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None</p>
<p dir="auto">pandas: 0.18.1<br>
nose: None<br>
pip: 8.1.2<br>
setuptools: 23.0.0<br>
Cython: None<br>
numpy: 1.11.0<br>
scipy: 0.17.1<br>
statsmodels: None<br>
xarray: None<br>
IPython: 4.2.0<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.5.3<br>
pytz: 2016.4<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: 2.6.1<br>
matplotlib: 1.5.1<br>
openpyxl: 2.3.2<br>
xlrd: 1.0.0<br>
xlwt: None<br>
xlsxwriter: 0.9.2<br>
lxml: 3.6.0<br>
bs4: None<br>
html5lib: None<br>
httplib2: 0.9.2<br>
apiclient: None<br>
sqlalchemy: 1.0.12<br>
pymysql: None<br>
psycopg2: 2.6.2 (dt dec pq3 ext)<br>
jinja2: 2.8<br>
boto: None<br>
pandas_datareader: None</p> | 0 |
<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>
<p dir="auto">when table include number type columns and the value is <code class="notranslate">null</code> , The TableViz cannot display this table when these columns be selected in <code class="notranslate">NOT GROUPED BY</code></p>
<h3 dir="auto">Superset version</h3>
<p dir="auto">0.26.3 On centos7 + Python 3.6.5</p>
<h3 dir="auto">Expected results</h3>
<h3 dir="auto">Actual results</h3>
<p dir="auto">Unexpected error.</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Table DDL:<br>
<code class="notranslate"> CREATE TABLE testt ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(255) DEFAULT NULL, value int(255) DEFAULT NULL, PRIMARY KEY (</code>id<code class="notranslate">) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8; </code><br>
Data:</p>
<table role="table">
<thead>
<tr>
<th>id</th>
<th>name</th>
<th>value</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>aaa</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>bbb</td>
<td></td>
</tr>
<tr>
<td>3</td>
<td>ccc</td>
<td>3</td>
</tr>
<tr>
<td>4</td>
<td>ddd</td>
<td></td>
</tr>
</tbody>
</table>
<p dir="auto">And choose these three columns in TableViz's <code class="notranslate">NOT GROUPED BY</code> selector.</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">0.26.3</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">Table View chart to load when column data contains NULL's. In previous versions it would display NULL's as 0's.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">Unexpected Error is thrown and subsequently the table did not load.</p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Create a table view with a data set that has a column that contains some data and the rest NULL.</li>
<li>Select column with NULL data in NOT GROUPED BY section.</li>
<li>Run Query and see "Unexpected Error"</li>
</ol>
<p dir="auto">It seems this problem only exists with multiple rows of a column containing NULL data. I can load one row with NULL data in columns. As soon as I load more rows I get "Unexpected Error".</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/[email protected]" rel="nofollow">Jon Daly</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7062?redirect=false" rel="nofollow">SPR-7062</a></strong> and commented</p>
<p dir="auto">Would like a replacement for <code class="notranslate">@Valid</code> that could take group classes for JSR-303 validation. Right now only the default group class of JSR-303 Constraints is run for the <code class="notranslate">@Valid</code>.</p>
<p dir="auto">Please refer to this forum thread for more detail: <a href="http://forum.springsource.org/showthread.php?p=292566" rel="nofollow">http://forum.springsource.org/showthread.php?p=292566</a></p>
<hr>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?p=292566" rel="nofollow">http://forum.springsource.org/showthread.php?p=292566</a></p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/browse/SWF-1453" rel="nofollow">SWF-1453</a> Support JSR303 Validation Groups for Webflow View States (<em><strong>"is depended on by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398099327" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11039" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11039/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11039">#11039</a> Support for validation groups in <code class="notranslate">@Valid</code> used by spring MVC (<em><strong>"duplicates"</strong></em>)</li>
</ul>
<p dir="auto">18 votes, 14 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cwidhelm" rel="nofollow">Chris Widhelm</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2002?redirect=false" rel="nofollow">SPR-2002</a></strong> and commented</p>
<p dir="auto">When calling ServletRequestUtils.getRequiredStringParameters or ServletRequestUtils.getStringParameters the following chunk of code throws a ServletRequestBindingException if there is an empty String as one of the parameter values. I would argue that an empty String is a value when dealing with a String.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" protected final void validateRequiredParameter(String name, Object parameter)
throws ServletRequestBindingException {
if (parameter == null) {
throw new ServletRequestBindingException("Required " + getType() + " parameter '" + name
+ "' is not present");
}
if ("".equals(parameter)) {
throw new ServletRequestBindingException("Required " + getType() + " parameter '" + name
+ "' contains no value");
}
}"><pre class="notranslate"><code class="notranslate"> protected final void validateRequiredParameter(String name, Object parameter)
throws ServletRequestBindingException {
if (parameter == null) {
throw new ServletRequestBindingException("Required " + getType() + " parameter '" + name
+ "' is not present");
}
if ("".equals(parameter)) {
throw new ServletRequestBindingException("Required " + getType() + " parameter '" + name
+ "' contains no value");
}
}
</code></pre></div>
<hr>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/11632/ServletRequestUtilsTest.java" rel="nofollow">ServletRequestUtilsTest.java</a> (<em>986 bytes</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398065891" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6686" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6686/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6686">#6686</a> ServletRequestUtils.getStringParameters behaviour with <em>empty</em> (not null) Strings is unintuitive (<em><strong>"duplicates"</strong></em>)</li>
</ul> | 0 |
<p dir="auto">I have tried all the methods but did not succeed to make a batch processing of images in Go Tensorflow.</p>
<p dir="auto">I have been following this test case for the inception model. I tried many things but did not work.<br>
<a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/go/example_inception_inference_test.go#L199">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/go/example_inception_inference_test.go#L199</a></p>
<p dir="auto">Could anyone help me? I really appreciate any help.</p> | <p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10</li>
<li>TensorFlow installed from (source or binary): Binary</li>
<li>TensorFlow version (use command below): tensorflow-gpu 1.14.0</li>
<li>Python version: 3.6.7</li>
<li>CUDA/cuDNN version: 10</li>
<li>GPU model and memory: GTX1060M</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong><br>
Wrapping a model in a TimeDistributed layer creates duplicate nodes in the graph. If we follow the docs <a href="https://keras.io/getting-started/functional-api-guide/#all-models-are-callable-just-like-layers" rel="nofollow">(link)</a> and create a simple Dense Model wrapped in a TD Layer:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" inner_input = keras.layers.Input((2,))
dense = keras.layers.Dense(2, activation='relu')(inner_input)
inner_model = keras.Model(inputs=inner_input, outputs=dense)
full_input = keras.layers.Input((2,2))
td_2 = keras.layers.TimeDistributed(inner_model)(full_input)
model = keras.models.Model(full_input, td_2)
model.compile('SGD', 'mse')"><pre class="notranslate"><code class="notranslate"> inner_input = keras.layers.Input((2,))
dense = keras.layers.Dense(2, activation='relu')(inner_input)
inner_model = keras.Model(inputs=inner_input, outputs=dense)
full_input = keras.layers.Input((2,2))
td_2 = keras.layers.TimeDistributed(inner_model)(full_input)
model = keras.models.Model(full_input, td_2)
model.compile('SGD', 'mse')
</code></pre></div>
<p dir="auto">You end up with this:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24449147/60799985-d4e60c00-a1a6-11e9-84e8-e0b6ddd2a789.png"><img src="https://user-images.githubusercontent.com/24449147/60799985-d4e60c00-a1a6-11e9-84e8-e0b6ddd2a789.png" alt="bad_td" style="max-width: 100%;"></a><br>
Firstly, if you follow the documentation approach you end up with an additional Dense Layer (Bottom Left). This eats up memory, and happens because you build the inner model then rebuild it again when you build the TimeDistributed model. This can be avoided by parameterizing your model <a href="https://www.tensorflow.org/beta/guide/keras/custom_layers_and_models#building_models" rel="nofollow">(link)</a>, but it can be a very painful workaround if your model is complex. But for demonstrations sake, here's the model as an object:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" class InnerModel(keras.Model):
def __init__(self):
super(InnerModel, self).__init__()
self.dense = keras.layers.Dense(2, activation='relu')
def call(self, inputs, training=None, mask=None):
out = self.dense(inputs)
return out
def compute_output_shape(self, input_shape):
return (input_shape[0], 2)
input = keras.layers.Input((2,2))
td_model = InnerModel()
time_dist = keras.layers.TimeDistributed(td_model)(input)
model = keras.models.Model(input, time_dist)
model.compile('SGD', 'mse')"><pre class="notranslate"><code class="notranslate"> class InnerModel(keras.Model):
def __init__(self):
super(InnerModel, self).__init__()
self.dense = keras.layers.Dense(2, activation='relu')
def call(self, inputs, training=None, mask=None):
out = self.dense(inputs)
return out
def compute_output_shape(self, input_shape):
return (input_shape[0], 2)
input = keras.layers.Input((2,2))
td_model = InnerModel()
time_dist = keras.layers.TimeDistributed(td_model)(input)
model = keras.models.Model(input, time_dist)
model.compile('SGD', 'mse')
</code></pre></div>
<p dir="auto">Here's the improved graph:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24449147/60801864-58552c80-a1aa-11e9-9550-24068fffc43c.png"><img src="https://user-images.githubusercontent.com/24449147/60801864-58552c80-a1aa-11e9-9550-24068fffc43c.png" alt="better_td" style="max-width: 100%;"></a></p>
<p dir="auto">So the additional Dense layer is gone, but there are still two dense layers inside. They have different contents too.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24449147/60801763-25ab3400-a1aa-11e9-9721-00482828ed58.png"><img src="https://user-images.githubusercontent.com/24449147/60801763-25ab3400-a1aa-11e9-9721-00482828ed58.png" alt="better_td_internal" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
If you compare to what you get if you just wrap the Dense layer itself:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" full_input = keras.layers.Input((2,2,2))
td_2 = keras.layers.TimeDistributed(keras.layers.Dense(2, activation='relu'))(full_input)
model = keras.models.Model(full_input, td_2)
model.compile('SGD', 'mse')"><pre class="notranslate"><code class="notranslate"> full_input = keras.layers.Input((2,2,2))
td_2 = keras.layers.TimeDistributed(keras.layers.Dense(2, activation='relu'))(full_input)
model = keras.models.Model(full_input, td_2)
model.compile('SGD', 'mse')
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24449147/60800184-5c337f80-a1a7-11e9-8dd3-901054a537d9.png"><img src="https://user-images.githubusercontent.com/24449147/60800184-5c337f80-a1a7-11e9-8dd3-901054a537d9.png" alt="good_td" style="max-width: 100%;"></a></p>
<p dir="auto">I'd expect wrapping a model should result in a very similar looking graph to wrapping a layer</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Full code for creating the graphs:<br>
<a href="https://gist.github.com/LukeBolly/0efeca3db275dee97c5f0fbf1f400b5a">https://gist.github.com/LukeBolly/0efeca3db275dee97c5f0fbf1f400b5a</a></p> | 0 |
<blockquote>
<p dir="auto">Issue originally made by James Koshigoe (jameslk)</p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.6.5</li>
<li><strong>Node version:</strong> v4.2.1</li>
<li><strong>npm version:</strong> 2.14.7</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""babel-preset-es2015": "^6.6.0"
...
"presets": ["es2015"]"><pre class="notranslate"><code class="notranslate">"babel-preset-es2015": "^6.6.0"
...
"presets": ["es2015"]
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export var i = 0;
i++;"><pre class="notranslate"><code class="notranslate">export var i = 0;
i++;
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">When I try to run the following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export var i = 0;
i++;"><pre class="notranslate"><code class="notranslate">export var i = 0;
i++;
</code></pre></div>
<p dir="auto">I see the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: test.js: undefined is not iterable!
at TypeError (native)
at module.exports.require.getIterator ([removed]/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-modules-commonjs/node_modules/babel-runtime/node_modules/core-js/library/modules/core.get-iterator.js:5:40)
at Object.UpdateExpression ([removed]/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-modules-commonjs/lib/index.js:132:125)
at NodePath._call ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:63:18)
at NodePath.call ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:47:17)
at NodePath.visit ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:93:12)
at TraversalContext.visitQueue ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:152:16)
at TraversalContext.visitSingle ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:115:19)
at TraversalContext.visit ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:184:19)
at Function.traverse.node ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/index.js:135:17)"><pre class="notranslate"><code class="notranslate">TypeError: test.js: undefined is not iterable!
at TypeError (native)
at module.exports.require.getIterator ([removed]/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-modules-commonjs/node_modules/babel-runtime/node_modules/core-js/library/modules/core.get-iterator.js:5:40)
at Object.UpdateExpression ([removed]/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-modules-commonjs/lib/index.js:132:125)
at NodePath._call ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:63:18)
at NodePath.call ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:47:17)
at NodePath.visit ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/path/context.js:93:12)
at TraversalContext.visitQueue ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:152:16)
at TraversalContext.visitSingle ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:115:19)
at TraversalContext.visit ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/context.js:184:19)
at Function.traverse.node ([removed]/.nvm/versions/node/v4.2.1/lib/node_modules/babel-cli/node_modules/babel-core/node_modules/babel-traverse/lib/index.js:135:17)
</code></pre></div> | <blockquote>
<p dir="auto">Issue originally made by Justin Johansson (justinjohansson)</p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.11.4 (babel-core 6.13.2)</li>
<li><strong>Node version:</strong> v6.4.0</li>
<li><strong>npm version:</strong> v6.4.0</li>
</ul>
<h3 dir="auto">Input code</h3>
<p dir="auto">Bug shows up when transpiling following input code with ES2015 CommonJS module transform plugin.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/* file: bar.js */
export { yy, zz };
var yy = 0;
var zz = yy++;
"><pre class="notranslate"><code class="notranslate">/* file: bar.js */
export { yy, zz };
var yy = 0;
var zz = yy++;
</code></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Bug is apparent by visual inspection of code in babel-plugin-transform-es2015-modules-commonjs/src/index.js line 122 in UpdateExpression:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let newPaths = path.replaceWithMultiple(t.sequenceExpression(nodes));
for (const newPath of newPaths) this.requeueInParent(newPath);
"><pre class="notranslate"><code class="notranslate">let newPaths = path.replaceWithMultiple(t.sequenceExpression(nodes));
for (const newPath of newPaths) this.requeueInParent(newPath);
</code></pre></div>
<p dir="auto">replaceWithMultiple is a method which always returns undefined. The following for/in statement will therefore always throw an exception as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="babel -d dist src
TypeError: src/bar.js: Cannot read property 'Symbol(Symbol.iterator)' of undefined
at Object.UpdateExpression"><pre class="notranslate"><code class="notranslate">babel -d dist src
TypeError: src/bar.js: Cannot read property 'Symbol(Symbol.iterator)' of undefined
at Object.UpdateExpression
</code></pre></div> | 1 |
<p dir="auto">I'm trying to create an application that registers events on key presses. The registering works fine, and the events are triggered properly, but the keypress isnt passed forwards onto the OS for any other program to process.<br>
Yes I'm using single character ('x' etc.), and obviously there are security implications of this (no I'm not writing anything malicious), but it would still be nice to be able to bind to keys and them still pass to other programs on the OS.<br>
Any help would be great, sorta forgot to check this was possible before I started developing the rest of it <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p> | <p dir="auto">Not sure if this is the intended outcome, but wasnt what I expected;<br>
if I register 'ctrl+c' or 'ctrl+x' as a global shortcut, the system will only listen to that function and not run the default copy/cut-function. I was hoping to bind my listener as an addition to the default function..</p> | 1 |
<p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-pre-release/77/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gci-gke-pre-release/77/</a></p>
<p dir="auto">Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 100 pods per node {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:279
Dec 6 08:12:34.311: Memory usage exceeding limits:
node gke-bootstrap-e2e-default-pool-33fbefd8-5f1z:
container "kubelet": expected RSS memory (MB) < 83886080; got 87023616
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:154"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:279
Dec 6 08:12:34.311: Memory usage exceeding limits:
node gke-bootstrap-e2e-default-pool-33fbefd8-5f1z:
container "kubelet": expected RSS memory (MB) < 83886080; got 87023616
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:154
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158988182" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26982" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26982/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26982">#26982</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180814114" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/33994" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/33994/hovercard" href="https://github.com/kubernetes/kubernetes/issues/33994">#33994</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="180962361" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/34035" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/34035/hovercard" href="https://github.com/kubernetes/kubernetes/issues/34035">#34035</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="184732726" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/35399" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/35399/hovercard" href="https://github.com/kubernetes/kubernetes/issues/35399">#35399</a></p> | <p dir="auto"><a href="https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gce/6512/" rel="nofollow">https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-soak-continuous-e2e-gce/6512/</a></p>
<p dir="auto">Failed: [k8s.io] Kubelet [Serial] [Slow] [k8s.io] regular resource usage tracking resource tracking for 100 pods per node {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278
Sep 7 04:56:39.012: Memory usage exceeding limits:
node jenkins-e2e-minion-group-4yze:
container "kubelet": expected RSS memory (MB) < 83886080; got 85123072
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:278
Sep 7 04:56:39.012: Memory usage exceeding limits:
node jenkins-e2e-minion-group-4yze:
container "kubelet": expected RSS memory (MB) < 83886080; got 85123072
/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubelet_perf.go:153
</code></pre></div>
<p dir="auto">Previous issues for this test: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158988182" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26982" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26982/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26982">#26982</a></p> | 1 |
<p dir="auto">The following program calls 'fail!()', but still results in an exit code of zero:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fn main () {
os::args();
fail!();
}"><pre class="notranslate"><code class="notranslate">fn main () {
os::args();
fail!();
}
</code></pre></div>
<p dir="auto">Here's what it looks like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="jclements-09740:~/clements/projects/rust-experimenting clements> rustc ./foo.rs && ./foo && echo "done"
Running /usr/local/bin/rustc:
warning: no debug symbols in executable (-arch x86_64)
rust: task failed at 'explicit failure', ./foo.rs:3
done"><pre class="notranslate"><code class="notranslate">jclements-09740:~/clements/projects/rust-experimenting clements> rustc ./foo.rs && ./foo && echo "done"
Running /usr/local/bin/rustc:
warning: no debug symbols in executable (-arch x86_64)
rust: task failed at 'explicit failure', ./foo.rs:3
done
</code></pre></div>
<p dir="auto">Commenting out the call to "os::args()" produces the expected output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="jclements-09740:~/clements/projects/rust-experimenting clements> rustc ./foo.rs && ./foo && echo "done"
Running /usr/local/bin/rustc:
warning: no debug symbols in executable (-arch x86_64)
rust: task failed at 'explicit failure', ./foo.rs:3
rust: domain main @0x7fdd91815e10 root task failed"><pre class="notranslate"><code class="notranslate">jclements-09740:~/clements/projects/rust-experimenting clements> rustc ./foo.rs && ./foo && echo "done"
Running /usr/local/bin/rustc:
warning: no debug symbols in executable (-arch x86_64)
rust: task failed at 'explicit failure', ./foo.rs:3
rust: domain main @0x7fdd91815e10 root task failed
</code></pre></div>
<p dir="auto">... note the extra line of output, and the lack of the "done" message, indicating a nonzero exit code.</p> | <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() {
os::args();
assert!(false);
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
os<span class="pl-kos">::</span><span class="pl-en">args</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">assert</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Causes the program to return with exit status 0. Thankfully removing <code class="notranslate">os::args()</code> makes it return with nonzero, but it appears that at any point after the invocation of <code class="notranslate">os::args()</code> an assertion failure will cause an exit status of 0.</p>
<p dir="auto">I ran this against a compiler built at <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/e51ec26dd7d915cfdfabcf5b6e32c001e30bd244/hovercard" href="https://github.com/rust-lang/rust/commit/e51ec26dd7d915cfdfabcf5b6e32c001e30bd244"><tt>e51ec26</tt></a></p> | 1 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">When a directive is attached to the DOM via <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/HostBinding/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/HostBinding">@HostBinding</a> decorator, it seems to not be active.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Component, Directive, ElementRef, HostBinding } from '@angular/core';
@Directive({
selector: '[ui-color]',
})
export class ColorDirective {
constructor(el: ElementRef) {
el.nativeElement.style.backgroundColor = 'red';
}
}
@Component({
selector: 'test-cmp',
template: `Should be red`,
})
export class TestComponent {
@HostBinding('attr.ui-color') color = '';
}
@Component({
selector: 'my-app',
template: `
<test-cmp></test-cmp>
<div ui-color>Should be red</div>
`,
})
export class AppComponent {}
//Two text lines should be red"><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-smi">Directive</span><span class="pl-kos">,</span> <span class="pl-smi">ElementRef</span><span class="pl-kos">,</span> <span class="pl-smi">HostBinding</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">Directive</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">selector</span>: <span class="pl-s">'[ui-color]'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">ColorDirective</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">el</span>: <span class="pl-smi">ElementRef</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">nativeElement</span><span class="pl-kos">.</span><span class="pl-c1">style</span><span class="pl-kos">.</span><span class="pl-c1">backgroundColor</span> <span class="pl-c1">=</span> <span class="pl-s">'red'</span><span class="pl-kos">;</span>
<span class="pl-kos">}</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">'test-cmp'</span><span class="pl-kos">,</span>
<span class="pl-c1">template</span>: <span class="pl-s">`Should be red`</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">TestComponent</span> <span class="pl-kos">{</span>
@<span class="pl-smi">HostBinding</span><span class="pl-kos">(</span><span class="pl-s">'attr.ui-color'</span><span class="pl-kos">)</span> <span class="pl-c1">color</span> <span class="pl-c1">=</span> <span class="pl-s">''</span><span class="pl-kos">;</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">`</span>
<span class="pl-s"> <test-cmp></test-cmp></span>
<span class="pl-s"> <div ui-color>Should be red</div></span>
<span class="pl-s"> `</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">AppComponent</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-c">//Two text lines should be red</span></pre></div>
<p dir="auto">The problem is also reproduced with modules: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="198187206" data-permission-text="Title is private" data-url="https://github.com/angular/flex-layout/issues/76" data-hovercard-type="issue" data-hovercard-url="/angular/flex-layout/issues/76/hovercard" href="https://github.com/angular/flex-layout/issues/76">angular/flex-layout#76</a></p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">Directive should be active when injected via <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/HostBinding/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/HostBinding">@HostBinding</a> decorator.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto"><a href="https://plnkr.co/edit/j5MSVP5pIRjTTK9D2LsS" rel="nofollow">https://plnkr.co/edit/j5MSVP5pIRjTTK9D2LsS</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.X | 4.0.X</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all ]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [all]</p>
</li>
</ul> | <p dir="auto">Possible bug with <code class="notranslate">slice</code> in <code class="notranslate">alpha.55</code> and <code class="notranslate">beta 0</code> … was there a change with slice recently?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
The app gets a list and then slices them. No changes are made on load.
The app works without slice.
// cc @wardbell"><pre lang="angular2.dev.js:23524" class="notranslate"><code class="notranslate">
The app gets a list and then slices them. No changes are made on load.
The app works without slice.
// cc @wardbell
</code></pre></div> | 0 |
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When using Jupyter notebook and matplotlib.pyplot with setting %matplotlib notebook,<br>
the plots generated only show the top left corner. One can pan and see the remaining section of the plot.</p>
<p dir="auto">Using %matplotlib inline does not have the same problem.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto">##any plotting code will do, a simple example is attached<br>
import matplotlib.pyplot as plt<br>
%matplotlib notebook</p>
<p dir="auto">x = np.arange(10)<br>
y = x<br>
plt.plot(x,y)</p>
<p dir="auto"><strong>Outcome</strong><br>
I am posting another user's stackoverflow result, as he already attached the outcome:<br>
<a href="https://stackoverflow.com/questions/63106366/matplotlib-notebook-magic-in-jupyter-notebook-partial-plot" rel="nofollow">https://stackoverflow.com/questions/63106366/matplotlib-notebook-magic-in-jupyter-notebook-partial-plot</a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: ubuntu 20.04.1</li>
<li>Matplotlib version: '3.3.0'</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): nbAgg</li>
<li>Python version: 3.8.2</li>
<li>Jupyter version (if applicable): 6.1.1</li>
<li>Other libraries:</li>
</ul>
pip3, by having --user flag | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">A simple 3D scatter plot is not working on jupyter notebook when <code class="notranslate">%matplotlib notebook</code> is enabled. However, it is working for <code class="notranslate">%matplotlib inline</code></p>
<p dir="auto">An extremely large, blank window appears that spans beyond the page.</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="%matplotlib notebook
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
A = np.random.random((100,3))
fig = plt.figure()
ax = Axes3D(fig)
ax.scatter(A[:,0], A[:,1], A[:,2])
plt.show()"><pre class="notranslate"><span class="pl-c1">%</span><span class="pl-s1">matplotlib</span> <span class="pl-s1">notebook</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span>
<span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-c1">100</span>,<span class="pl-c1">3</span>))
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-v">Axes3D</span>(<span class="pl-s1">fig</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">scatter</span>(<span class="pl-v">A</span>[:,<span class="pl-c1">0</span>], <span class="pl-v">A</span>[:,<span class="pl-c1">1</span>], <span class="pl-v">A</span>[:,<span class="pl-c1">2</span>])
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/f3db3afac0a2629303b342241b9e2f53900bb6befb602fbd010887bf0e697b3d/68747470733a2f2f692e706f7374696d672e63632f335271516a7934662f53637265656e2d53686f742d323032302d30372d33302d61742d392d34342d35312d504d2e706e67"><img src="https://camo.githubusercontent.com/f3db3afac0a2629303b342241b9e2f53900bb6befb602fbd010887bf0e697b3d/68747470733a2f2f692e706f7374696d672e63632f335271516a7934662f53637265656e2d53686f742d323032302d30372d33302d61742d392d34342d35312d504d2e706e67" alt="Fail case" data-canonical-src="https://i.postimg.cc/3RqQjy4f/Screen-Shot-2020-07-30-at-9-44-51-PM.png" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">Expecting a 3D scatter plot of <code class="notranslate">A</code>.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: posix Darwin 19.6.0</li>
<li>Matplotlib version: 3.3.0</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): nbAgg</li>
<li>Python version: 3.7.5</li>
<li>Jupyter version (if applicable):
<ul dir="auto">
<li>jupyter core : 4.6.3</li>
<li>jupyter-notebook : 6.0.3</li>
<li>qtconsole : 4.7.5</li>
<li>ipython : 7.16.1</li>
<li>ipykernel : 5.3.4</li>
<li>jupyter client : 6.1.6</li>
<li>jupyter lab : not installed</li>
<li>nbconvert : 5.6.1</li>
<li>ipywidgets : 7.5.1</li>
<li>nbformat : 5.0.7</li>
<li>traitlets : 4.3.3</li>
</ul>
</li>
<li>Other libraries: numpy 1.19.1, scipy 1.5.2</li>
</ul> | 1 |
<p dir="auto">On beta, this container (which still has a message which says "output will go here"), no longer shows the challenges' output:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18563015/22176754/0ea4bbc6-dfdf-11e6-828d-6fbc001ecb8f.png"><img src="https://cloud.githubusercontent.com/assets/18563015/22176754/0ea4bbc6-dfdf-11e6-828d-6fbc001ecb8f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Instead, we only see the notification that the tests are running or have completed:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/18563015/22176770/4c7ee796-dfdf-11e6-84ca-98ce2f42a891.png"><img src="https://cloud.githubusercontent.com/assets/18563015/22176770/4c7ee796-dfdf-11e6-84ca-98ce2f42a891.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Are we doing away with showing the challenge output or is this unintentional? If we are, we need to change that default message. But I think we should still show it, it's nice to have that tangible feedback.</p>
<p dir="auto">cc/ <a class="team-mention js-team-mention notranslate" data-error-text="Failed to load team members" data-id="1720971" data-permission-text="Team members are private" data-url="/orgs/freeCodeCamp/teams/moderators/members" data-hovercard-type="team" data-hovercard-url="/orgs/freeCodeCamp/teams/moderators/hovercard" href="https://github.com/orgs/freeCodeCamp/teams/moderators">@freeCodeCamp/moderators</a> Anyone know anything about this? I might have missed a previous issue.</p> | <p dir="auto">The instructions ask us to change the second child of div with class="well", but the exercise is validate when you change div class="target" element.</p> | 0 |
<h3 dir="auto">Problem description</h3>
<p dir="auto">Since upgrading from material-ui 0.14.4 to 0.15.1 I'm noticing my SelectField component is not rendering MenuItems. This could be due to the two warnings i'm seeing (related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="163219881" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/4594" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/4594/hovercard" href="https://github.com/mui/material-ui/issues/4594">#4594</a>), but those are warnings, not errors.</p>
<h3 dir="auto">Steps to reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
var Example = React.createClass({
render: function() {
return (
<MuiThemeProvider>
<SelectField floatingLabelText="Rendering">
<MenuItem value={1} primaryText="Not rendering" />
</SelectField>
</MuiThemeProvider>
);
}
});
module.exports = Example;"><pre class="notranslate"><code class="notranslate">import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
var Example = React.createClass({
render: function() {
return (
<MuiThemeProvider>
<SelectField floatingLabelText="Rendering">
<MenuItem value={1} primaryText="Not rendering" />
</SelectField>
</MuiThemeProvider>
);
}
});
module.exports = Example;
</code></pre></div>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 0.15.1</li>
<li>React: 15.2.0</li>
<li>Browser: Chrome 50.0.2661.75 (64-bit)</li>
</ul> | <h3 dir="auto">Problem description</h3>
<p dir="auto">I can't open the SelectField,that is it is not useful to click SelectField.But My code is just referred to <a href="http://www.material-ui.com/#/components/select-field" rel="nofollow">http://www.material-ui.com/#/components/select-field</a><br>
Could you give me some suggestions?</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">1.I write a <code class="notranslate">div</code> that contains a <code class="notranslate">SelectField</code></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div>
<SelectField
floatingLabelText="sex"
value={this.props.pageData.newUser == undefined?"1":this.props.pageData.newUser.sex}
onChange={(event, index, value) => {
let tempPageData = this.props.pageData;
tempPageData.newUser.sex = value;
this.props.changePageData(tempPageData);
}}
>
<MenuItem value="1" primaryText="man"/>
<MenuItem value="2" primaryText="woman"/>
</SelectField>
</div>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">div</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">SelectField</span>
<span class="pl-c1">floatingLabelText</span><span class="pl-c1">=</span><span class="pl-s">"sex"</span>
<span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">pageData</span><span class="pl-kos">.</span><span class="pl-c1">newUser</span> <span class="pl-c1">==</span> <span class="pl-c1">undefined</span>?<span class="pl-s">"1"</span>:<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">pageData</span><span class="pl-kos">.</span><span class="pl-c1">newUser</span><span class="pl-kos">.</span><span class="pl-c1">sex</span><span class="pl-kos">}</span>
<span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-s1">index</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">tempPageData</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-c1">pageData</span><span class="pl-kos">;</span>
<span class="pl-s1">tempPageData</span><span class="pl-kos">.</span><span class="pl-c1">newUser</span><span class="pl-kos">.</span><span class="pl-c1">sex</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">props</span><span class="pl-kos">.</span><span class="pl-en">changePageData</span><span class="pl-kos">(</span><span class="pl-s1">tempPageData</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>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-s">"1"</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"man"</span><span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">MenuItem</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-s">"2"</span> <span class="pl-c1">primaryText</span><span class="pl-c1">=</span><span class="pl-s">"woman"</span><span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">SelectField</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">></span></pre></div>
<p dir="auto">The default value of SelectField is "1"<br>
2.The Page shows as follows:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8541906/15180071/0276f8fa-17b2-11e6-98ea-9b93de7a3c01.png"><img src="https://cloud.githubusercontent.com/assets/8541906/15180071/0276f8fa-17b2-11e6-98ea-9b93de7a3c01.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: ^0.15.0</li>
<li>React: ^15.0.1</li>
<li>Browser: google cherome</li>
</ul> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.2</li>
<li>Operating System / Platform => macOS Catalina, Version 10.15.1</li>
<li>Compiler => Xcode, Version 11.2.1 (11B500)</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I installed opencv4 through homebrew.<br>
Unfortunately, cv::medianBlur() crushed every time it runs.<br>
I checked the input variable format, kernel size as the doc says. I am sure the problem is not caused by these reasons.<br>
I think the problem is from the opencv lib itself. The homebrew installation process summary is as follows:</p>
<blockquote>
<p dir="auto">==> Summary<br>
<g-emoji class="g-emoji" alias="beer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f37a.png">🍺</g-emoji> /usr/local/Cellar/opencv/4.1.2: 753 files, 228.2MB<br>
==> Caveats<br>
==> cmake<br>
Emacs Lisp files have been installed to:<br>
/usr/local/share/emacs/site-lisp/cmake<br>
==> openblas<br>
openblas is keg-only, which means it was not symlinked into /usr/local,<br>
because macOS provides BLAS and LAPACK in the Accelerate framework.<br>
For compilers to find openblas you may need to set:<br>
export LDFLAGS="-L/usr/local/opt/openblas/lib"<br>
export CPPFLAGS="-I/usr/local/opt/openblas/include"<br>
For pkg-config to find openblas you may need to set:<br>
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"<br>
==> gettext<br>
gettext is keg-only, which means it was not symlinked into /usr/local,<br>
because macOS provides the BSD gettext library & some software gets confused if both are in the library path.<br>
If you need to have gettext first in your PATH run:<br>
echo 'export PATH="/usr/local/opt/gettext/bin:$PATH"' >> ~/.bash_profile<br>
For compilers to find gettext you may need to set:<br>
export LDFLAGS="-L/usr/local/opt/gettext/lib"<br>
export CPPFLAGS="-I/usr/local/opt/gettext/include"<br>
==> [email protected]<br>
A CA file has been bootstrapped using certificates from the system<br>
keychain. To add additional certificates, place .pem files in<br>
/usr/local/etc/[email protected]/certs<br>
and run<br>
/usr/local/opt/[email protected]/bin/c_rehash<br>
[email protected] is keg-only, which means it was not symlinked into /usr/local,<br>
because openssl/libressl is provided by macOS so don't link an incompatible version.<br>
If you need to have [email protected] first in your PATH run:<br>
echo 'export PATH="/usr/local/opt/[email protected]/bin:$PATH"' >> ~/.bash_profile<br>
For compilers to find [email protected] you may need to set:<br>
export LDFLAGS="-L/usr/local/opt/[email protected]/lib"<br>
export CPPFLAGS="-I/usr/local/opt/[email protected]/include"<br>
For pkg-config to find [email protected] you may need to set:<br>
export PKG_CONFIG_PATH="/usr/local/opt/[email protected]/lib/pkgconfig"<br>
==> unbound<br>
To have launchd start unbound now and restart at startup:<br>
sudo brew services start unbound<br>
==> readline<br>
readline is keg-only, which means it was not symlinked into /usr/local,<br>
because macOS provides the BSD libedit library, which shadows libreadline.<br>
In order to prevent conflicts when programs look for libreadline we are<br>
defaulting this GNU Readline installation to keg-only.<br>
For compilers to find readline you may need to set:<br>
export LDFLAGS="-L/usr/local/opt/readline/lib"<br>
export CPPFLAGS="-I/usr/local/opt/readline/include"<br>
For pkg-config to find readline you may need to set:<br>
export PKG_CONFIG_PATH="/usr/local/opt/readline/lib/pkgconfig"<br>
==> sqlite<br>
sqlite is keg-only, which means it was not symlinked into /usr/local,<br>
because macOS provides an older sqlite3.<br>
If you need to have sqlite first in your PATH run:<br>
echo 'export PATH="/usr/local/opt/sqlite/bin:$PATH"' >> ~/.bash_profile<br>
For compilers to find sqlite you may need to set:<br>
export LDFLAGS="-L/usr/local/opt/sqlite/lib"<br>
export CPPFLAGS="-I/usr/local/opt/sqlite/include"<br>
For pkg-config to find sqlite you may need to set:<br>
export PKG_CONFIG_PATH="/usr/local/opt/sqlite/lib/pkgconfig"<br>
==> python<br>
Python has been installed as<br>
/usr/local/bin/python3<br>
Unversioned symlinks <code class="notranslate">python</code>, <code class="notranslate">python-config</code>, <code class="notranslate">pip</code> etc. pointing to<br>
<code class="notranslate">python3</code>, <code class="notranslate">python3-config</code>, <code class="notranslate">pip3</code> etc., respectively, have been installed into<br>
/usr/local/opt/python/libexec/bin<br>
If you need Homebrew's Python 2.7 run<br>
brew install python@2<br>
You can install Python packages with<br>
pip3 install <br>
They will install into the site-package directory<br>
/usr/local/lib/python3.7/site-packages<br>
See: <a href="https://docs.brew.sh/Homebrew-and-Python" rel="nofollow">https://docs.brew.sh/Homebrew-and-Python</a><br>
==> glib<br>
Bash completion has been installed to:<br>
/usr/local/etc/bash_completion.d<br>
==> icu4c<br>
icu4c is keg-only, which means it was not symlinked into /usr/local,<br>
because macOS provides libicucore.dylib (but nothing else).<br>
If you need to have icu4c first in your PATH run:<br>
echo 'export PATH="/usr/local/opt/icu4c/bin:$PATH"' >> ~/.bash_profile<br>
echo 'export PATH="/usr/local/opt/icu4c/sbin:$PATH"' >> ~/.bash_profile<br>
For compilers to find icu4c you may need to set:<br>
export LDFLAGS="-L/usr/local/opt/icu4c/lib"<br>
export CPPFLAGS="-I/usr/local/opt/icu4c/include"<br>
For pkg-config to find icu4c you may need to set:<br>
export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig"<br>
==> tesseract<br>
This formula contains only the "eng", "osd", and "snum" language data files.<br>
If you need all the other supported languages, <code class="notranslate">brew install tesseract-lang</code>.</p>
</blockquote>
<p dir="auto">The test code is as follows:</p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#import <opencv2/opencv.hpp>
int main(int argc, const char * argv[])
{
cv::Mat a = cv::Mat::zeros(100, 200, 5);
cv::Mat b;
cv::medianBlur(a, b, 5);
}"><pre class="notranslate">#<span class="pl-k">import</span> <span class="pl-s"><span class="pl-pds"><</span>opencv2/opencv.hpp<span class="pl-pds">></span></span>
<span class="pl-k">int</span> <span class="pl-en">main</span>(<span class="pl-k">int</span> argc, <span class="pl-k">const</span> <span class="pl-k">char</span> * argv[])
{
cv::Mat a = <span class="pl-c1">cv::Mat::zeros</span>(<span class="pl-c1">100</span>, <span class="pl-c1">200</span>, <span class="pl-c1">5</span>);
cv::Mat b;
<span class="pl-c1">cv::medianBlur</span>(a, b, <span class="pl-c1">5</span>);
}</pre></div>
<p dir="auto">The runtime error is "Thread 1: EXC_BAD_ACCESS (code=EXC_I386_GPFLT)". The program stops at cv::medianBlur(a, b, 5) every time.</p>
<h5 dir="auto">Steps to reproduce</h5>
<ul dir="auto">
<li>homebrew version<br>
Homebrew 2.1.16-89-g2a45343<br>
Homebrew/homebrew-core (git revision 2a800; last commit 2019-11-20)<br>
Homebrew/homebrew-cask (git revision 981f58; last commit 2019-11-20)</li>
<li>opencv4 install<br>
brew install opencv</li>
<li>Test code<br>
As shown above.</li>
</ul> | <h5 dir="auto">System information (version)</h5>
<p dir="auto">Opencv => 4.0.0 (C++ custom build, includes dnn module)<br>
Operating system => Ubuntu<br>
Compiler => GCC</p>
<h5 dir="auto">Detailed description</h5>
<h5 dir="auto">Summary</h5>
<p dir="auto">I have a transfer learning mobilenetV2 classification model, which I want to use in a C++ code using the opencv's cv2 dnn module.</p>
<p dir="auto"><strong>The simplest way -</strong><br>
I have a custom trained mobilenetV2 classification model's frozen inference graph.<br>
From the frozen inference graph, I generated the .pbtxt file using cv2.dnn.writeTextGraph method and ran the prediction using cv2::dnn::readNetFromTensorflow method</p>
<p dir="auto">With just the model file reference alone got the below error.</p>
<blockquote>
<p dir="auto">OpenCV(4.0.0) /home/venkat/OPENCV4/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:497: error: (-2:Unspecified error) Input layer not found: module_apply_default/MobilenetV2/expanded_conv/output in function 'connect'</p>
</blockquote>
<p dir="auto">with both the model file and the config file got the below error.</p>
<blockquote>
<p dir="auto">what(): OpenCV(4.0.0) /home/venkat/OPENCV4/opencv/modules/dnn/src/tensorflow/tf_importer.cpp:616: error: (-215:Assertion failed) const_layers.insert(std::make_pair(name, li)).second in function 'addConstNodes'</p>
</blockquote>
<p dir="auto"><strong>The complex way</strong></p>
<p dir="auto">I followed the instructions mentioned in<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="325680712" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/11577" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/11577/hovercard?comment_id=391372527&comment_type=issue_comment" href="https://github.com/opencv/opencv/issues/11577#issuecomment-391372527">#11577 (comment)</a><br>
and<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="320017992" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/11452" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/11452/hovercard" href="https://github.com/opencv/opencv/issues/11452">#11452</a><br>
and<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="344960285" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/12075" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/12075/hovercard" href="https://github.com/opencv/opencv/issues/12075">#12075</a></p>
<p dir="auto">All the above instructions are typically for the object detection models.<br>
I looked at the <a href="https://github.com/opencv/opencv/blob/master/samples/dnn/tf_text_graph_ssd.py">https://github.com/opencv/opencv/blob/master/samples/dnn/tf_text_graph_ssd.py</a> which is for mobilenet ssd model.</p>
<p dir="auto">So from various above sources, I ended up creating the below code(in python) for converting the model to be compatible with cv2 dnn</p>
<p dir="auto">with tf.gfile.FastGFile('mobilenet_v2_100_224.pb', 'rb') as f:<br>
graph_def = tf.GraphDef()<br>
graph_def.ParseFromString(f.read())</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="graph_def = optimize_for_inference_lib.optimize_for_inference(graph_def, ['final_retrain_ops/biases/final_biases'], ['final_result'], tf.float32.as_datatype_enum)
graph_def = TransformGraph(graph_def, ['final_retrain_ops/biases/final_biases'], ['final_result'], ['remove_nodes(op=PlaceholderWithDefault)','sort_by_execution_order'])
for i in reversed(range(len(graph_def.node))):
#code blocks 1
if graph_def.node[i].op == 'Const':
del graph_def.node[i]
#code block 1 ends
for attr in ['T', 'data_format', 'Tshape', 'N', 'Tidx', 'Tdim',
'use_cudnn_on_gpu', 'Index', 'Tperm', 'is_training',
'Tpaddings']:
if attr in graph_def.node[i].attr:
print("Deleting")
del graph_def.node[i].attr[attr]
print(len(graph_def.node))
unconnected_nodes = []
for node in graph_def.node:
unconnected_nodes.append(node.name)
for inp in node.input:
if inp in unconnected_nodes:
unconnected_nodes.remove(inp)
unconnected_nodes.remove("final_result")
for name in unconnected_nodes:
for i in range(len(graph_def.node)):
if graph_def.node[i].name == name:
# print(name)
del graph_def.node[i]
break
print("leftover nodes ")
for node in graph_def.node:
print(node.name)
with tf.gfile.FastGFile('graph.pb', 'wb') as f:
f.write(graph_def.SerializeToString())
cv2.dnn.writeTextGraph('graph.pb','graph.pbtxt')"><pre class="notranslate"><code class="notranslate">graph_def = optimize_for_inference_lib.optimize_for_inference(graph_def, ['final_retrain_ops/biases/final_biases'], ['final_result'], tf.float32.as_datatype_enum)
graph_def = TransformGraph(graph_def, ['final_retrain_ops/biases/final_biases'], ['final_result'], ['remove_nodes(op=PlaceholderWithDefault)','sort_by_execution_order'])
for i in reversed(range(len(graph_def.node))):
#code blocks 1
if graph_def.node[i].op == 'Const':
del graph_def.node[i]
#code block 1 ends
for attr in ['T', 'data_format', 'Tshape', 'N', 'Tidx', 'Tdim',
'use_cudnn_on_gpu', 'Index', 'Tperm', 'is_training',
'Tpaddings']:
if attr in graph_def.node[i].attr:
print("Deleting")
del graph_def.node[i].attr[attr]
print(len(graph_def.node))
unconnected_nodes = []
for node in graph_def.node:
unconnected_nodes.append(node.name)
for inp in node.input:
if inp in unconnected_nodes:
unconnected_nodes.remove(inp)
unconnected_nodes.remove("final_result")
for name in unconnected_nodes:
for i in range(len(graph_def.node)):
if graph_def.node[i].name == name:
# print(name)
del graph_def.node[i]
break
print("leftover nodes ")
for node in graph_def.node:
print(node.name)
with tf.gfile.FastGFile('graph.pb', 'wb') as f:
f.write(graph_def.SerializeToString())
cv2.dnn.writeTextGraph('graph.pb','graph.pbtxt')
</code></pre></div>
<p dir="auto">With the graph.pb and graph.pbtxt when I tried to load the model, I encountered the below error.</p>
<p dir="auto">When I delete the "Const" op nodes (code block 1 in the above code, commented accordingly), I get the following error while writing the text graph.</p>
<blockquote>
<p dir="auto">error: (-215:Assertion failed) nodesMapIt != nodesMap.end() in function 'sortByExecutionOrder'</p>
</blockquote>
<p dir="auto">So I comment the code block 1, so my graph gets generated,<br>
with the below log</p>
<blockquote>
<p dir="auto">...<br>
W1230 17:47:58.718445 139948826896192 optimize_for_inference_lib.py:244] Didn't find expected Conv2D input to 'module_apply_default/MobilenetV2/expanded_conv_16/depthwise/BatchNorm/FusedBatchNorm'<br>
2019-12-30 17:48:00.034702: I tensorflow/tools/graph_transforms/transform_graph.cc:317] Applying remove_nodes<br>
2019-12-30 17:48:00.041844: I tensorflow/tools/graph_transforms/transform_graph.cc:317] Applying sort_by_execution_order</p>
</blockquote>
<p dir="auto">and with the generated graph, when I tried to load in cv2 dnn module, ended up at this error.</p>
<blockquote>
<p dir="auto">error: (-215:Assertion failed) const_layers.insert(std::make_pair(name, li)).second in function 'addConstNodes'</p>
</blockquote>
<p dir="auto">I also tried using the <a href="https://github.com/opencv/opencv/blob/master/samples/dnn/tf_text_graph_common.py">https://github.com/opencv/opencv/blob/master/samples/dnn/tf_text_graph_common.py</a> file to convert, still, I ended up in errors.</p>
<p dir="auto">Would like to know more on this issue, and the proper way to convert a custom trained mobile net v2 classification model compatible for opencv dnn module.</p> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.2(Ubuntu18.04),4.2(Win10 64bit)</li>
<li>Operating System / Platform => Linux, Win</li>
<li>Compiler => gcc7.5(linux), Visual Studio 2019(Win10)</li>
<li>Tensorflow => 2.1</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I want to convert keras model to <code class="notranslate">.pb</code> file and load it using <code class="notranslate">dnn.readNetFromTensorflow()</code> , and I got an error like the title shows ( same error in Ubuntu18.04 with opencv 4.1.2):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: OpenCV(4.2.0) E:\ScientificComputing\opencv-4.2.0\modules\dnn\src\tensorflow\tf_io.cpp:42: error: (-2:Unspecified error) FAILED: ReadProtoFromBinaryFile(param_file, param). Failed to parse GraphDef file: my_model/saved_model.pb in function 'ReadTFNetParamsFromBinaryFileOrDie'"><pre class="notranslate"><code class="notranslate">error: OpenCV(4.2.0) E:\ScientificComputing\opencv-4.2.0\modules\dnn\src\tensorflow\tf_io.cpp:42: error: (-2:Unspecified error) FAILED: ReadProtoFromBinaryFile(param_file, param). Failed to parse GraphDef file: my_model/saved_model.pb in function 'ReadTFNetParamsFromBinaryFileOrDie'
</code></pre></div>
<p dir="auto">Can someone tell me the best way to load a keras model (tf version is 2.1)? I tried the solution in issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="404879408" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/13728" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/13728/hovercard" href="https://github.com/opencv/opencv/issues/13728">#13728</a> , but didn't work for me.</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import cv2
from cv2 import dnn
import numpy as np
import matplotlib.pyplot as plt
import os
print(tf.__version__)
print(cv2.__version__)
model = tf.keras.applications.mobilenet.MobileNet(weights=None)
model.save('my_model', save_format='tf')
net = dnn.readNetFromTensorflow('my_model/saved_model.pb')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">import</span> <span class="pl-s1">cv2</span>
<span class="pl-k">from</span> <span class="pl-s1">cv2</span> <span class="pl-k">import</span> <span class="pl-s1">dnn</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-en">print</span>(<span class="pl-s1">tf</span>.<span class="pl-s1">__version__</span>)
<span class="pl-en">print</span>(<span class="pl-s1">cv2</span>.<span class="pl-s1">__version__</span>)
<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">keras</span>.<span class="pl-s1">applications</span>.<span class="pl-s1">mobilenet</span>.<span class="pl-v">MobileNet</span>(<span class="pl-s1">weights</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-s1">model</span>.<span class="pl-en">save</span>(<span class="pl-s">'my_model'</span>, <span class="pl-s1">save_format</span><span class="pl-c1">=</span><span class="pl-s">'tf'</span>)
<span class="pl-s1">net</span> <span class="pl-c1">=</span> <span class="pl-s1">dnn</span>.<span class="pl-en">readNetFromTensorflow</span>(<span class="pl-s">'my_model/saved_model.pb'</span>)</pre></div>
<p dir="auto">In tf2.1, the <code class="notranslate">save</code> method using argument <code class="notranslate">save_format='tf'</code> will generate files like below:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15122811/74510623-232e6b00-4f3f-11ea-8af4-838decbc5173.png"><img src="https://user-images.githubusercontent.com/15122811/74510623-232e6b00-4f3f-11ea-8af4-838decbc5173.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">I encountered a discrepancy between the documentation (found <a href="http://docs.opencv.org/3.1.0/d2/de8/group__core__array.html#ga937ecdce4679a77168730830a955bea7" rel="nofollow">here</a>) and the actual behavior of the cv::log function. Though the documentation says that log(0) will evaluate it to roughly -700, printing it indicates that it is -inf. Is this the intended behavior?</p>
<h3 dir="auto">Please state the information for your system</h3>
<ul dir="auto">
<li>OpenCV version: 3.1.0</li>
<li>Host OS: Mac OS X 10.10.5</li>
</ul>
<p dir="auto">Duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="97441532" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/4982" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/4982/hovercard" href="https://github.com/opencv/opencv/issues/4982">#4982</a></p> | 0 |
<p dir="auto">I have encountered something that's very likely a bug.<br>
In the same module, the transpiled code for <code class="notranslate">export ... from ...</code> appears before the transpiled code for <code class="notranslate">import ...</code> in the output.<br>
This scenario has already been asked <a href="http://discuss.babeljs.io/t/re-exports-hoisted-above-imports/773" rel="nofollow">here</a> - unfortunately without an answer.<br>
I think this is a bug because the 2 following snippets should be equivalent:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import foo from 'foo';
export { default as bar } from 'bar';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span></pre></div>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import foo from 'foo';
import bar from 'bar';
export { bar }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s1">bar</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Input Code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import foo from 'foo';
export { default as bar } from 'bar';"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">see the <a href="https://babeljs.io/repl/#?babili=false&browsers=&build=&builtIns=false&code_lz=JYWwDg9gTgLgBAMwhRUIjgciRTBuAKAFMAPSWOAbzgBMiEBDAVwBt4GBnOAIwajgC-qdFl5R8QA&debug=false&circleciRepo=&evaluate=true&lineWrap=false&presets=es2015%2Ces2016%2Ces2017%2Creact%2Cstage-0%2Cstage-2&targets=&version=6.26.0" rel="nofollow">REPL</a></p>
<h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3>
<p dir="auto">Part of my <code class="notranslate">package.json</code>:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"devDependencies": {
"babel-eslint": "^7.2.3",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-preset-react-native": "^4.0.0",
"eslint": "^4.6.1",
"eslint-plugin-react": "^7.3.0",
"react-test-renderer": "16.0.0-alpha.12"
},
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
},
"dependencies": {
"immutable": "^3.8.1",
"prop-types": "^15.5.10",
"react": "16.0.0-alpha.12",
"react-native": "0.47",
"react-navigation": "^1.0.0-beta.11",
"react-redux": "^5.0.6",
"redux": "^3.7.2",
"redux-logger": "^3.0.6",
"redux-promise": "^0.5.3",
"redux-thunk": "^2.2.0"
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"babel-eslint"</span>: <span class="pl-s">"^7.2.3"</span><span class="pl-kos">,</span>
<span class="pl-s">"babel-plugin-transform-decorators-legacy"</span>: <span class="pl-s">"^1.3.4"</span><span class="pl-kos">,</span>
<span class="pl-s">"babel-preset-react-native"</span>: <span class="pl-s">"^4.0.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"eslint"</span>: <span class="pl-s">"^4.6.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"eslint-plugin-react"</span>: <span class="pl-s">"^7.3.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-test-renderer"</span>: <span class="pl-s">"16.0.0-alpha.12"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"scripts"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"start"</span>: <span class="pl-s">"react-native start"</span><span class="pl-kos">,</span>
<span class="pl-s">"android"</span>: <span class="pl-s">"react-native run-android"</span><span class="pl-kos">,</span>
<span class="pl-s">"ios"</span>: <span class="pl-s">"react-native run-ios"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"dependencies"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"immutable"</span>: <span class="pl-s">"^3.8.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"prop-types"</span>: <span class="pl-s">"^15.5.10"</span><span class="pl-kos">,</span>
<span class="pl-s">"react"</span>: <span class="pl-s">"16.0.0-alpha.12"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-native"</span>: <span class="pl-s">"0.47"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-navigation"</span>: <span class="pl-s">"^1.0.0-beta.11"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-redux"</span>: <span class="pl-s">"^5.0.6"</span><span class="pl-kos">,</span>
<span class="pl-s">"redux"</span>: <span class="pl-s">"^3.7.2"</span><span class="pl-kos">,</span>
<span class="pl-s">"redux-logger"</span>: <span class="pl-s">"^3.0.6"</span><span class="pl-kos">,</span>
<span class="pl-s">"redux-promise"</span>: <span class="pl-s">"^0.5.3"</span><span class="pl-kos">,</span>
<span class="pl-s">"redux-thunk"</span>: <span class="pl-s">"^2.2.0"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The behavior should be equivalent to</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import foo from 'foo';
import bar from 'bar';
export { bar }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s1">bar</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">Currently the code gets executed as if it was written like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export { default as bar } from 'bar';
import foo from 'foo';"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'bar'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-s1">foo</span> <span class="pl-k">from</span> <span class="pl-s">'foo'</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><code class="notranslate">'bar'</code> is required before <code class="notranslate">'foo'</code> no matter what exactly is put between <code class="notranslate">export</code> and <code class="notranslate">from</code> (e.g. the problem also occurs for <code class="notranslate">export * from ...</code>).</p>
<h3 dir="auto">Context</h3>
<p dir="auto">I am exporting multiple moddules from an <code class="notranslate">index.js</code> file.<br>
All exports depend on some code that must have been run.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import "./this_code_must_be_run_before_the_exports"
export * from "./first"
export * from "./second""><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">"./this_code_must_be_run_before_the_exports"</span>
<span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./first"</span>
<span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">"./second"</span></pre></div>
<h3 dir="auto">Your Environment</h3>
<p dir="auto">I am using babel with React Native.</p>
<table role="table">
<thead>
<tr>
<th>software</th>
<th>version(s)</th>
</tr>
</thead>
<tbody>
<tr>
<td>Babel</td>
<td>latest (<a href="https://babeljs.io/repl/" rel="nofollow">https://babeljs.io/repl/</a>)</td>
</tr>
<tr>
<td>node</td>
<td>8.7.0</td>
</tr>
<tr>
<td>npm</td>
<td>5.4.2</td>
</tr>
<tr>
<td>Operating System</td>
<td>macOS 10.12.6</td>
</tr>
</tbody>
</table> | <h3 dir="auto">Input Code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import "babel-polyfill";
export {default as foo} from "./foo"; //Foo depends on the babel-polyfill"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">"babel-polyfill"</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span><span class="pl-s1">default</span> <span class="pl-k">as</span> <span class="pl-s1">foo</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./foo"</span><span class="pl-kos">;</span> <span class="pl-c">//Foo depends on the babel-polyfill</span></pre></div>
<p dir="auto"><a href="https://babeljs.io/repl/#?babili=false&evaluate=true&lineWrap=false&presets=es2015%2Creact%2Cstage-2&experimental=true&loose=false&spec=false&code=import%20%22babel-polyfill%22%3B%0A%0Aexport%20%7Bdefault%20as%20foo%7D%20from%20%22.%2Ffoo%22%3B%20%2F%2FFoo%20depends%20on%20the%20babel-polyfill%0A" rel="nofollow">Example in REPL</a></p>
<h3 dir="auto">Babel Configuration (.bablerc, package.json, cli command)</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": ["es-2015"]
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span><span class="pl-s">"es-2015"</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The contents of the foo module should be exported on as foo on the current module</p>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">Fails with <code class="notranslate">ReferenceError: regeneratorRuntime is not defined</code><br>
The following code is generated by babel:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Object.defineProperty(exports, "__esModule", {
value: true
});
exports.foo = undefined;
var _foo = require("./foo");
Object.defineProperty(exports, "foo", {
enumerable: true,
get: function get() {
return _interopRequireDefault(_foo).default;
}
});
require("babel-polyfill");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }"><pre class="notranslate"><span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-c1">undefined</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_foo</span> <span class="pl-c1">=</span> <span class="pl-en">require</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-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"foo"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">enumerable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-en">get</span>: <span class="pl-k">function</span> <span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_foo</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">default</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">"babel-polyfill"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">obj</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">obj</span> <span class="pl-c1">&&</span> <span class="pl-s1">obj</span><span class="pl-kos">.</span><span class="pl-c1">__esModule</span> ? <span class="pl-s1">obj</span> : <span class="pl-kos">{</span> <span class="pl-c1">default</span>: <span class="pl-s1">obj</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">The <code class="notranslate">require("./foo")</code> call gets hoisted above the <code class="notranslate">require("babel-polyfill")</code> call, and so regeneratorRuntime is not defined when the contents of the foo module runs. I found this issue with babel-polyfill specifically, but it could manifest with any import that performs a side-effect, followed by an <code class="notranslate">export ... from</code> with a module that relies on that side-effect.</p>
<h3 dir="auto">Possible Solution</h3>
<p dir="auto">It seems like the the <code class="notranslate">export ... from</code> should cause the module to be imported in the same order that it would be imported if the export statement were replaced with an import statement.</p>
<h3 dir="auto">Your Environment</h3>
<table role="table">
<thead>
<tr>
<th>software</th>
<th>version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Babel</td>
<td>6.4.14</td>
</tr>
<tr>
<td>node</td>
<td>4.4.4</td>
</tr>
<tr>
<td>npm</td>
<td>3.9.0</td>
</tr>
</tbody>
</table> | 1 |
<p dir="auto">When attempting to use <code class="notranslate">exportAs</code> with a template-based directive, the following behaviour occurs:</p>
<p dir="auto">(1) <strong>When used with <code class="notranslate">*</code> syntax:</strong> You get the error "There is no directive with "exportAs" set to "foo"" despite this not being true<br>
(2) <strong>When used with <code class="notranslate">template</code></strong>: You don't get an error, but the export is null, so any method calls or property access will error</p>
<p dir="auto"><del>The only way for the export to work is:</del></p>
<p dir="auto"><del>(1) Using <code class="notranslate"><template></code></del><br>
<del>(2) and specifying exportAs, despite having to... [edit: not actually necessary for workaround]</del><br>
<del>(3) manually set the local with `ViewRef.setLocal("exportAsName", this);</del></p>
<p dir="auto"><del>Additionally, in no case is the exported variable accessible in the external context. When set with <code class="notranslate">setLocal</code> it can only be accessed inside the template. (It makes sense that setLocal only works inside the template, so this is more a consequence of the overall divergent behaviour)</del></p>
<p dir="auto">(While that's a workaround to get at the variable inside the template, it doesn't constitute a "way for the export to work" since it's somewhat unrelated feature-wise)</p>
<p dir="auto">Demonstration plunkr: <a href="http://plnkr.co/edit/jXYxQ6NYk7tec4QNf355?p=preview" rel="nofollow">http://plnkr.co/edit/jXYxQ6NYk7tec4QNf355?p=preview</a></p> | <p dir="auto">If you want to use a <code class="notranslate">TemplateRef</code> to instantiate an embedded View anywhere other than in that template's location (i.e., with its own <code class="notranslate">ViewRef</code>), the inability to grab the TemplateRef (or a directive instance) on the template element becomes cumbersome. The only real way to accomplish it now is to use <code class="notranslate">@ViewChild</code> / <code class="notranslate">@ViewChildren</code> to retrieve some decorating <code class="notranslate">Directive</code> that exposes the TemplateRef.</p>
<p dir="auto">For example:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<component-with-popup [popup]="content"></component-with-popup>
<template popup-content #content>
This is the template content!
</template>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">component-with-popup</span> <span class="pl-c1">[popup]</span>="<span class="pl-s">content</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">component-with-popup</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">template</span> <span class="pl-c1">popup-content</span> <span class="pl-c1">#content</span><span class="pl-kos">></span>
This is the template content!
<span class="pl-kos"></</span><span class="pl-ent">template</span><span class="pl-kos">></span></pre></div>
<p dir="auto">This doesn't work, since the assumption is that <code class="notranslate">#content</code> is for something <em>in</em> the template rather than the template itself.</p>
<h3 dir="auto">Proposal:</h3>
<p dir="auto">Add a new syntax for referencing the template itself:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<component-with-popup [popup]="content"></component-with-popup>
<template popup-content template-var-content>
This is the template content!
</template>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">component-with-popup</span> <span class="pl-c1">[popup]</span>="<span class="pl-s">content</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">component-with-popup</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">template</span> <span class="pl-c1">popup-content</span> <span class="pl-c1">template-var-content</span><span class="pl-kos">></span>
This is the template content!
<span class="pl-kos"></</span><span class="pl-ent">template</span><span class="pl-kos">></span></pre></div>
<p dir="auto">This uses <code class="notranslate">template-var-</code> as the prefix for the variable over the standard <code class="notranslate">var-</code>. Since this is going to be a somewhat uncommon use-case, a shorthand syntax isn't strictly necessary.</p>
<p dir="auto">If desired, possible shorthand syntaxes:<br>
<code class="notranslate"><template @content></code><br>
<code class="notranslate"><template *#content></code><br>
<code class="notranslate"><template **content></code><br>
<code class="notranslate"><template ##content></code><br>
<code class="notranslate"><template !#content></code><br>
<code class="notranslate"><template 😱content></code></p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vsavkin/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vsavkin">@vsavkin</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tbosch/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tbosch">@tbosch</a></p> | 1 |
<p dir="auto">When I initialize popover via javascript(not adding data attributes) does some facinating things it shoudn't do. It appends content to .content. as it should, but doesn't clear previous content, so there will be this content I need to append there, and previous content</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Whatever.prototype.init(){
var parent=this;
this.elem.popover({
content:parent.content,
title:'Heading',
container:'body',
});
}
Whatever.prototype.content = function() {
$form=$($.Mustache.render('content',this));
return $form;
};"><pre class="notranslate"><span class="pl-v">Whatever</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">init</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">parent</span><span class="pl-c1">=</span><span class="pl-smi">this</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">elem</span><span class="pl-kos">.</span><span class="pl-en">popover</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">content</span>:<span class="pl-s1">parent</span><span class="pl-kos">.</span><span class="pl-c1">content</span><span class="pl-kos">,</span>
<span class="pl-c1">title</span>:<span class="pl-s">'Heading'</span><span class="pl-kos">,</span>
<span class="pl-c1">container</span>:<span class="pl-s">'body'</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">Whatever</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">content</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-s1">$form</span><span class="pl-c1">=</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s1">$</span><span class="pl-kos">.</span><span class="pl-c1">Mustache</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s">'content'</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-k">return</span> <span class="pl-s1">$form</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">So when I press first time:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4953629/3589872/55a7d3b8-0c52-11e4-81f2-0c16334baab5.png"><img src="https://cloud.githubusercontent.com/assets/4953629/3589872/55a7d3b8-0c52-11e4-81f2-0c16334baab5.png" alt="screenshot from 2014-07-15 21 58 25" style="max-width: 100%;"></a></p>
<p dir="auto">And say fifth time:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4953629/3589887/63244d78-0c52-11e4-9d21-f31059d4efe6.png"><img src="https://cloud.githubusercontent.com/assets/4953629/3589887/63244d78-0c52-11e4-9d21-f31059d4efe6.png" alt="screenshot from 2014-07-15 21 58 44" style="max-width: 100%;"></a></p>
<p dir="auto">today I need to do quite idiotic thing:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Whatever.prototype.content = function() {
$(this).data('bs.popover').$tip.find('.popover-content').empty();
$form=$($.Mustache.render('content',this));
return $form;
};"><pre class="notranslate"><span class="pl-v">Whatever</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">content</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-en">$</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-en">data</span><span class="pl-kos">(</span><span class="pl-s">'bs.popover'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">$tip</span><span class="pl-kos">.</span><span class="pl-en">find</span><span class="pl-kos">(</span><span class="pl-s">'.popover-content'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">empty</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">$form</span><span class="pl-c1">=</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s1">$</span><span class="pl-kos">.</span><span class="pl-c1">Mustache</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s">'content'</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-k">return</span> <span class="pl-s1">$form</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> | <p dir="auto">Hey there,</p>
<p dir="auto">A recent change <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/twbs/bootstrap/commit/5bf13914e49942409c0b21aeaf2ed756c41bd498/hovercard" href="https://github.com/twbs/bootstrap/commit/5bf13914e49942409c0b21aeaf2ed756c41bd498"><tt>5bf1391</tt></a> related to issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="19542402" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/10658" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/10658/hovercard" href="https://github.com/twbs/bootstrap/issues/10658">#10658</a></p>
<p dir="auto">Leads to behavior I'd consider at the very least undesired(and probably overlooked). The net effect is that by using "append", the content returned by the popover method gets re-appended on every single popover toggle.<br>
<a href="http://jsfiddle.net/jQxdv/" rel="nofollow">http://jsfiddle.net/jQxdv/</a></p>
<p dir="auto">This is different than the plugin's behavior historically. Was this a desired change? If yes, why is piling up content considered correct in this case?</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=reiner.kuehl" rel="nofollow">Reiner Kühl</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4106?redirect=false" rel="nofollow">SPR-4106</a></strong> and commented</p>
<p dir="auto">We have va working web flow for Spring 2.0.7. When trying the new 2.5 RCs we find it works only with Spring-2.5RC1 and spring-webmvc-2.0.7.</p>
<p dir="auto">With Spring-2.5RC1 and spring-webmvc-2.5RC1 we get a complaint about an invalid property (name of property is empty?!)</p>
<p dir="auto">2007-11-15 14:03:51,616 ErrorsTag ERROR: Invalid property '' of bean class [de.qvc.vendormgt.web.VendorCommand]: Bean property '' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?<br>
org.springframework.beans.NotReadablePropertyException: Invalid property '' of bean class [de.qvc.vendormgt.web.VendorCommand]: Bean property '' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?<br>
at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:544)<br>
at org.springframework.beans.BeanWrapperImpl.getPropertyValue(BeanWrapperImpl.java:536)<br>
at org.springframework.validation.AbstractPropertyBindingResult.getActualFieldValue(AbstractPropertyBindingResult.java:78)<br>
at org.springframework.validation.AbstractBindingResult.getFieldValue(AbstractBindingResult.java:337)<br>
at org.springframework.web.servlet.support.BindStatus.<init>(BindStatus.java:118)<br>
at org.springframework.web.servlet.tags.form.AbstractDataBoundFormElementTag.getBindStatus(AbstractDataBoundFormElementTag.java:171)<br>
at org.springframework.web.servlet.tags.form.ErrorsTag.shouldRender(ErrorsTag.java:131)<br>
at org.springframework.web.servlet.tags.form.AbstractHtmlElementBodyTag.writeTagContent(AbstractHtmlElementBodyTag.java:46)<br>
at org.springframework.web.servlet.tags.form.AbstractFormTag.doStartTagInternal(AbstractFormTag.java:90)<br>
at org.springframework.web.servlet.tags.RequestContextAwareTag.doStartTag(RequestContextAwareTag.java:77)<br>
at org.apache.jsp.WEB_002dINF.jsp.vendorManagement_jsp._jspService(vendorManagement_jsp.java:161)<br>
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)</p>
<p dir="auto">With Spring-2.5RC2 and spring-webmvc-2.5RC2 we get a complaint about a NPE while deserializing some webflow:</p>
<p dir="auto">2007-11-15 14:13:12,831 [vendorMgt] ERROR: Servlet.service() for servlet vendorMgt threw exception<br>
java.lang.NullPointerException<br>
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1839)<br>
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1738)<br>
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1324)<br>
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)<br>
at org.springframework.webflow.engine.impl.FlowExecutionImpl.readExternal(FlowExecutionImpl.java:486)<br>
at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1774)<br>
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1736)<br>
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1324)<br>
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:362)<br>
at org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuation.deserialize(SerializedFlowExecutionContinuation.java:186)<br>
at org.springframework.webflow.execution.repository.continuation.SerializedFlowExecutionContinuation.unmarshal(SerializedFlowExecutionContinuation.java:93)<br>
at org.springframework.webflow.execution.repository.continuation.ContinuationFlowExecutionRepository.getFlowExecution(ContinuationFlowExecutionRepository.java:149)<br>
at org.springframework.webflow.executor.FlowExecutorImpl.refresh(FlowExecutorImpl.java:253)<br>
at org.springframework.webflow.executor.support.FlowRequestHandler.handleFlowRequest(FlowRequestHandler.java:117)<br>
at org.springframework.webflow.executor.mvc.FlowController.handleRequestInternal(FlowController.java:165)<br>
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)<br>
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)<br>
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:861)<br>
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:795)<br>
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:476)<br>
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:431)</p>
<p dir="auto">What`s happening? Why is the behavior so different?</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 RC1, 2.5 RC2</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="398082626" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8783" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8783/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8783">#8783</a> Spring-webflow fails when runs on Spring2.5 RC2 (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/[email protected]" rel="nofollow">Mohan</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4105?redirect=false" rel="nofollow">SPR-4105</a></strong> and commented</p>
<p dir="auto">De serializing org.springframework.webflow.execution.FlowSessionStatus throws following error.</p>
<p dir="auto">Exception in thread "main" java.lang.IllegalArgumentException: Unsupported labeled enumeration type 'class org.springframework.core.enums.StaticLabeledEnum': make sure you've properly defined this enumeration: if it's static, are the class and its fields public/static/final?<br>
at org.springframework.core.enums.AbstractCachingLabeledEnumResolver$1.create(AbstractCachingLabeledEnumResolver.java:53)<br>
at org.springframework.util.CachingMapDecorator.get(CachingMapDecorator.java:152)<br>
at org.springframework.core.enums.AbstractCachingLabeledEnumResolver.getLabeledEnumMap(AbstractCachingLabeledEnumResolver.java:74)<br>
at org.springframework.core.enums.AbstractCachingLabeledEnumResolver.getLabeledEnumByCode(AbstractCachingLabeledEnumResolver.java:79)<br>
at org.springframework.core.enums.StaticLabeledEnum.readResolve(StaticLabeledEnum.java:97)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:585)<br>
at java.io.ObjectStreamClass.invokeReadResolve(ObjectStreamClass.java:1033)<br>
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1727)<br>
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1304)<br>
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:349)</p>
<p dir="auto">I think is issue is in getType method org.springframework.core.enums.AbstractLabeledEnum , it should be<br>
public Class getType() {<br>
final Class declaringClass = getClass().getDeclaringClass();<br>
return (declaringClass == null) ? getClass() : getClass().getSuperclass(); // instead of return (declaringClass != null) ? getClass() : getClass().getSuperclass();<br>
}</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5 RC2</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="398082641" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8784" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8784/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8784">#8784</a> Web Flow deserialization problem on Spring 2.5 RC2 - was working on Spring 2.0.7 (<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="398082352" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8745" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8745/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8745">#8745</a> enum comparsion fails</li>
</ul>
<p dir="auto">1 votes, 2 watchers</p> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-learn-how-script-tags-and-document-ready-work</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-target-the-same-element-with-multiple-jquery-selectors" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-target-the-same-element-with-multiple-jquery-selectors</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">Code below "You shouldn't need to modify code below this line" initially missing, then once it appears, instructions disappear. Reloading page sometimes causes scrollbar next to instructions to disappear as well. Requires reloading page 4-5 times for everything to return, so maybe it's just me?</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/13267050/9484517/4feb513e-4b62-11e5-9ebf-b184a4062c4b.png"><img src="https://cloud.githubusercontent.com/assets/13267050/9484517/4feb513e-4b62-11e5-9ebf-b184a4062c4b.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">During package updates the "Updating" status of many (not all) packages doesn't seem to change to "Updated" even after the updates have been successfully installed. I can see the updates were successfully installed by clicking "Check for Updates" again after which the "Updating" message disappears and I get the message "All of your installed packages are up to date!".</p>
<p dir="auto">The issue only appeared after the 1.0.0 release and mostly with some of the larger packages. I realise that larger packages take longer to install but I've tested by waiting more than 10 min and then checking for updates again.</p>
<p dir="auto">This is not a major issue – in the past I usually waited for conformation that all packages were installed before I continued working where now I have to allow enough time to ensure the process has successfully run.</p>
<p dir="auto">System specs:<br>
MacBook Pro 17" 2011<br>
Mac OS X Yosemite (10.10.4)<br>
Atom Version 1.0.0</p>
<p dir="auto">Thx!<br>
(PS. I've tried pretty much all available editors and Atom is by far the best.)</p> | <p dir="auto">Just noticed this as of Atom 0.208.0-c06d62e:</p>
<ol dir="auto">
<li>Click the <code class="notranslate">Update</code> button in an available update package card in the Updates panel</li>
<li>Wait a sufficiently long time so you know it should've been installed (~5 mins with an SSD, for example)</li>
<li>Package card will still say "Updating..."</li>
<li>Click another panel in Settings View</li>
<li>Close Settings View</li>
<li>Reopen Settings View</li>
<li>Click the Updates panel</li>
<li>Assuming there was only 1 update, it will report that all packages are up-to-date.</li>
</ol>
<p dir="auto">Can anyone in @atom/feedback reproduce with the same version?</p> | 1 |
<ul dir="auto">
<li>VSCode Version:1.2.0</li>
<li>OS Version:Windows 7</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<h3 dir="auto">Problem 1</h3>
<ol dir="auto">
<li>Ctrl + `</li>
<li>Chinese character gash in Terminal.</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5000396/15890455/322fce9a-2da2-11e6-9ce4-4b99be7f52ef.png"><img src="https://cloud.githubusercontent.com/assets/5000396/15890455/322fce9a-2da2-11e6-9ce4-4b99be7f52ef.png" alt="2016-06-08_174351" style="max-width: 100%;"></a></p>
<h3 dir="auto">Problem 2</h3>
<ol dir="auto">
<li>创建一个目录: D:\新建文件夹</li>
<li>打开VS Code, 文件 -> 打开文件夹,选择创建好的“新建文件夹”</li>
<li>Ctrl + ` 无法打开 Terminal。</li>
</ol> | <p dir="auto">After updating I now receive an error.</p>
<p dir="auto">[c:/Program Files (x86)/Microsoft VS Code/resources/app/extensions/csharp-o]: Cannot read file c:/Program Files (x86)/Microsoft VS Code/resources/app/extensions/csharp-o/package.json: ENOENT: no such file or directory, open 'c:\Program Files (x86)\Microsoft VS Code\resources\app\extensions\csharp-o\package.json'</p>
<p dir="auto">Upon checking I found that the entire c# extension is empty and have found no solutions yet to remedy this.</p> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.10</p>
<p dir="auto"><strong>Visual studio Version:</strong></p>
<p dir="auto">2015 community version update 2<br>
typescript tools for visual studio 1.8.29.0</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="any typescript code
"><pre class="notranslate">any <span class="pl-s1">typescript</span> <span class="pl-s1">code</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">Visual studio typescript debugger could correctly setup breakpoint red point at the line I double clicked.</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">When enable <code class="notranslate">inlineSourceMap: true</code> in tsconfig.json, when setting a breakpoint in VS editor, it can map that source line number from .ts file to the corresponding line number in the .js file, however, the breakpoint red point in the VS editor is shown on the line number in the .js file, rather than the line number on the .ts file. Therefore, if I double click on line 100 in one .ts file, the breakpoint red point would be shown on maybe line 90 of that .ts file, corresponding to what the mapped line number is in the corresponding .js file.</p>
<p dir="auto">If I disable <code class="notranslate">inlineSourceMap: true</code>, and enable <code class="notranslate">sourceMap: true</code> in tsconfig.json, everything would be just fine.</p>
<p dir="auto">I've noticed that there is a previous issue similar to this: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101845971" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4360" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4360/hovercard" href="https://github.com/microsoft/TypeScript/issues/4360">#4360</a>, and that issue is closed. Is my configuration wrong or missing something? Thanks.</p>
<p dir="auto">My tsconfig.json:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"removeComments": false,
"preserveConstEnums": true,
"forceConsistentCasingInFileNames": true,
"noEmitOnError": true,
// "sourceMap": true,
"inlineSourceMap": true,
"inlineSources": true
}
}"><pre class="notranslate"><code class="notranslate">{
"compileOnSave": true,
"compilerOptions": {
"module": "commonjs",
"target": "ES5",
"noImplicitAny": true,
"suppressImplicitAnyIndexErrors": true,
"removeComments": false,
"preserveConstEnums": true,
"forceConsistentCasingInFileNames": true,
"noEmitOnError": true,
// "sourceMap": true,
"inlineSourceMap": true,
"inlineSources": true
}
}
</code></pre></div> | <p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.7</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="private streamProcess(stream: NodeJS.ReadableStream): Promise<void> {
return new Promise<void>((ok, fail) => {
stream
.pipe(this.parser.createStream()) // returning type is `NodeJS.ReadWriteStream`
.on("error", fail)
.pipe(this.transformer.createStream()) // returning type is `NodeJS.ReadWriteStream` and error appears in the line
// error TS2339: Property 'pipe' does not exist on type 'EventEmitter'.
.on("error", fail)
.pipe(this.persister.createStream()) // returning type is `NodeJS.WritableStream`
.on("error", fail)
.once("finish", () => {
});
});
}"><pre class="notranslate"><span class="pl-k">private</span> <span class="pl-en">streamProcess</span><span class="pl-kos">(</span><span class="pl-s1">stream</span>: <span class="pl-smi">NodeJS</span><span class="pl-kos">.</span><span class="pl-c1">ReadableStream</span><span class="pl-kos">)</span>: <span class="pl-smi">Promise</span><span class="pl-kos"><</span><span class="pl-smi"><span class="pl-k">void</span></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">Promise</span><span class="pl-kos"><</span><span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">ok</span><span class="pl-kos">,</span> <span class="pl-s1">fail</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">stream</span>
<span class="pl-kos">.</span><span class="pl-en">pipe</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">parser</span><span class="pl-kos">.</span><span class="pl-en">createStream</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// returning type is `NodeJS.ReadWriteStream`</span>
<span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"error"</span><span class="pl-kos">,</span> <span class="pl-s1">fail</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">pipe</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">transformer</span><span class="pl-kos">.</span><span class="pl-en">createStream</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// returning type is `NodeJS.ReadWriteStream` and error appears in the line</span>
<span class="pl-c">// error TS2339: Property 'pipe' does not exist on type 'EventEmitter'.</span>
<span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"error"</span><span class="pl-kos">,</span> <span class="pl-s1">fail</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">pipe</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">persister</span><span class="pl-kos">.</span><span class="pl-en">createStream</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-c">// returning type is `NodeJS.WritableStream`</span>
<span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">"error"</span><span class="pl-kos">,</span> <span class="pl-s1">fail</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">once</span><span class="pl-kos">(</span><span class="pl-s">"finish"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-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>Expected behavior:</strong></p>
<p dir="auto"><strong>Actual behavior:</strong><br>
i got error if only set event emitters, what's the wrong of the code?</p> | 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">Ansible setup module.</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">ansible 2.2.2.0<br>
config file = /etc/ansible/ansible.cfg<br>
configured module search path = Default w/o overrides</p>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Control: CentOS 7.3<br>
Target: CentOS 7.3</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When gathering facts for a host with a high open file limit setting, fact gathering can take a long time. This is exacerbated on systems with many network interfaces. On a system with an open file limit of 1048576 and ~50 network interfaces (mostly virtual), fact gathering takes in excess of 20 seconds.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Set the open file limit to a high value:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all
become: yes
tasks:
- name: increase file descriptor limit
copy:
dest: /etc/security/limits.d/99-nofile.conf
content: |
root soft nofile 1048576
root hard nofile 1048576"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span>
<span class="pl-ent">become</span>: <span class="pl-s">yes</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">name</span>: <span class="pl-s">increase file descriptor limit</span>
<span class="pl-ent">copy</span>:
<span class="pl-ent">dest</span>: <span class="pl-s">/etc/security/limits.d/99-nofile.conf</span>
<span class="pl-ent">content</span>: <span class="pl-s">|</span>
<span class="pl-s"> root soft nofile 1048576</span>
<span class="pl-s"> root hard nofile 1048576</span></pre></div>
<p dir="auto">Gather facts:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all
become: yes
gather_facts: yes"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span>
<span class="pl-ent">become</span>: <span class="pl-s">yes</span>
<span class="pl-ent">gather_facts</span>: <span class="pl-s">yes</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Facts are gathered in a reasonable time.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Facts took a long time to be gathered.</p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">setup</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.1.0.0"><pre class="notranslate"><code class="notranslate">ansible 2.1.0.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Linux</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">On some of my linux cluster servers, I have quite large max-open-files configuration (for some practical need), like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" $ulimit -n
655360"><pre class="notranslate"><code class="notranslate"> $ulimit -n
655360
</code></pre></div>
<p dir="auto">And ansible playbook's setup stage takes more than one minutes.</p>
<p dir="auto"><code class="notranslate"> time ansible -vvvv <any host> -m setup</code></p>
<p dir="auto">use <code class="notranslate">strace -f python /home/admin/.ansible/tmp/ansible-tmp-1493734939.34-186220473132806/setup</code>, I can see that when forking commands it's closing all fds until <code class="notranslate">os.sysconf('SC_OPEN_MAX')</code>, which cost lots of time。</p>
<p dir="auto">Since that is python's subprocess implementation behavior, for testing I hacked <code class="notranslate">build_module_command</code> in <code class="notranslate">ansible/plugins/shell/__init__.py</code> like this: <code class="notranslate">cmd_parts = ['ulimit -n 1024;', env_string.strip(), shebang.replace("#!", "").strip(), cmd]</code>, setup will only take less than 2 seconds.</p>
<p dir="auto">Any good idea? Or just should never config such large max-open-files at OS scope?</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=""><pre class="notranslate"></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div> | 1 |
<p dir="auto">I feel like the previous issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26321602" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/12392" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/12392/hovercard" href="https://github.com/twbs/bootstrap/pull/12392">#12392</a> was locked without explaining why. What is wrong with this piece of code when edited into the project? If nothing I would be happy to create a pull request.</p>
<div class="highlight highlight-source-css-scss notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".btn-group-justified {
&> .btn {
border-right-width: 0px;
}
&> .btn:last-child {
border-right-width: 1px;
}
&> .btn:hover + .btn, .btn:focus + .btn {
/* Bootstrap sass mixins/_buttons L18 and _buttons L58*/
border-left-color: darken($btn-default-border, 12%);
}
&> .btn:active + .btn, .btn.active + .btn {
/* Bootstrap sass _theme L49 and L63*/
border-left-color: darken($btn-default-bg, 14%);
}
}"><pre class="notranslate"><span class="pl-e">.btn-group-justified</span> {
<span class="pl-ent">&</span>> <span class="pl-e">.btn</span> {
<span class="pl-c1"><span class="pl-c1">border-right-width</span></span>: <span class="pl-c1">0<span class="pl-k">px</span></span>;
}
<span class="pl-ent">&</span>> <span class="pl-e">.btn</span><span class="pl-e">:last-child</span> {
<span class="pl-c1"><span class="pl-c1">border-right-width</span></span>: <span class="pl-c1">1<span class="pl-k">px</span></span>;
}
<span class="pl-ent">&</span>> <span class="pl-e">.btn</span><span class="pl-e">:hover</span> + <span class="pl-e">.btn</span>, <span class="pl-e">.btn</span><span class="pl-e">:focus</span> + <span class="pl-e">.btn</span> {
<span class="pl-c"><span class="pl-c">/*</span> Bootstrap sass mixins/_buttons L18 and _buttons L58<span class="pl-c">*/</span></span>
<span class="pl-c1"><span class="pl-c1">border-left-color</span></span>: <span class="pl-c1">darken</span>(<span class="pl-v">$btn-default-border</span>, <span class="pl-c1">12<span class="pl-k">%</span></span>);
}
<span class="pl-ent">&</span>> <span class="pl-e">.btn</span><span class="pl-e">:active</span> + <span class="pl-e">.btn</span>, <span class="pl-e">.btn.active</span> + <span class="pl-e">.btn</span> {
<span class="pl-c"><span class="pl-c">/*</span> Bootstrap sass _theme L49 and L63<span class="pl-c">*/</span></span>
<span class="pl-c1"><span class="pl-c1">border-left-color</span></span>: <span class="pl-c1">darken</span>(<span class="pl-v">$btn-default-bg</span>, <span class="pl-c1">14<span class="pl-k">%</span></span>);
}
}</pre></div>
<p dir="auto">I understand <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cvrebert/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cvrebert">@cvrebert</a> might have had good reasons to lock the previous issue, I didn't understand them though. Would you be so kind to leave this one unlocked for me to give a reaction?</p> | <p dir="auto">Please consider removing the double border on justified link variation, like you have on multiple buttons in an input group, in the upcoming v3.1.0?</p>
<p dir="auto"><a href="http://getbootstrap.com/components/#btn-groups-justified" rel="nofollow">http://getbootstrap.com/components/#btn-groups-justified</a></p>
<p dir="auto">Thanks!<br>
Lee</p> | 1 |
<p dir="auto">If that makes sense, I can create a pull.</p>
<h4 dir="auto">Description</h4>
<h4 dir="auto">Steps/Code to Reproduce</h4>
<h4 dir="auto">Expected Results</h4>
<h4 dir="auto">Actual Results</h4>
<h4 dir="auto">Versions</h4> | <p dir="auto">It would be nice if these rates would be included in the metrics module:</p>
<ul dir="auto">
<li>False positive rate (Fall-out)</li>
<li>False negative rate (Miss rate)</li>
<li>True negative rate (specificity)</li>
</ul> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>11.03</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>macOS 11.0.1</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">remote.screen</code> has EventEmitter methods such as <code class="notranslate">on</code> defined, to listen to screen events such as <code class="notranslate">display-added</code></p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">remote.screen</code> does not have any defined EventEmitter methods</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">In the devtools, inspect <code class="notranslate">require('electron').remote.screen</code> and notice that it does not have the <code class="notranslate">on</code> method defined</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">There was a PR to address other <code class="notranslate">remote.screen</code> methods not being defined that was merged in 11.0.3 (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="749150327" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/26660" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/26660/hovercard" href="https://github.com/electron/electron/pull/26660">#26660</a>), but it did not seem to address this bug</p> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>11.0.2</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>NixOS 21.03 x86_64</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>10.1.6</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><code class="notranslate">remote.screen.getPrimaryDisplay()</code> works.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><code class="notranslate">Uncaught TypeError: remote.screen.getPrimaryDisplay is not a function</code></p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Electron Fiddle: <a href="https://gist.github.com/andersk/6158c0016c56e52c58cec4aa4cd8317e">https://gist.github.com/andersk/6158c0016c56e52c58cec4aa4cd8317e</a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">This broke between 11.0.0-nightly.20200724 and 11.0.0-nightly.20200729, probably in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="663345379" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/24677" data-hovercard-type="pull_request" data-hovercard-url="/electron/electron/pull/24677/hovercard" href="https://github.com/electron/electron/pull/24677">#24677</a>. Cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nornagon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nornagon">@nornagon</a>.</p>
<p dir="auto">See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="746749192" data-permission-text="Title is private" data-url="https://github.com/electron-userland/spectron/issues/771" data-hovercard-type="issue" data-hovercard-url="/electron-userland/spectron/issues/771/hovercard" href="https://github.com/electron-userland/spectron/issues/771">electron-userland/spectron#771</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="746069996" data-permission-text="Title is private" data-url="https://github.com/webtorrent/webtorrent-desktop/issues/1896" data-hovercard-type="issue" data-hovercard-url="/webtorrent/webtorrent-desktop/issues/1896/hovercard" href="https://github.com/webtorrent/webtorrent-desktop/issues/1896">webtorrent/webtorrent-desktop#1896</a>.</p> | 1 |
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-create-a-set-of-radio-buttons" rel="nofollow">http://freecodecamp.com/challenges/waypoint-create-a-set-of-radio-buttons</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">When I visit challenge page, the HTML inside editor is rendered twice.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1451171/9511733/ea83859e-4ca3-11e5-823f-4e636292e702.png"><img src="https://cloud.githubusercontent.com/assets/1451171/9511733/ea83859e-4ca3-11e5-823f-4e636292e702.png" alt="catphotoapp" style="max-width: 100%;"></a></p>
<p dir="auto">Notice there are two title CatPhotoApp.</p>
<p dir="auto">This issue, however, is gone when click the <code class="notranslate">Run Code</code> button or press control + Enter.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1451171/9511769/4185f002-4ca4-11e5-96e2-0e09eac1a322.png"><img src="https://cloud.githubusercontent.com/assets/1451171/9511769/4185f002-4ca4-11e5-96e2-0e09eac1a322.png" alt="catphotoapp after run" style="max-width: 100%;"></a></p>
<p dir="auto">Maybe there is something wrong with the onload/initial callback.</p>
<p dir="auto">Additional info:<br>
Browser: Mozilla Firefox 40.0<br>
OS: Ubuntu 14.04</p>
<p dir="auto">Thank you for the amazing learning resource :)</p> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-line-up-form-elements-responsively-with-bootstrap</a> has an issue.</p>
<p dir="auto">I think the problem is happening on all Waypoint pages; the device right side of the screen where the CatPhotoApp page displays the information is being displayed duplicated;</p>
<p dir="auto">Another point is that the HTML / CSS code is not completely displayed when the page is loaded, it is necessary to click or edit the code so that the code from the previous lesson is displayed correctly;</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8672039/9483149/cbe9f67c-4b72-11e5-9b2a-698deaa06a4e.png"><img src="https://cloud.githubusercontent.com/assets/8672039/9483149/cbe9f67c-4b72-11e5-9b2a-698deaa06a4e.png" alt="duplicate" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8672039/9483184/285ff19a-4b73-11e5-8601-6c5fbb58215b.png"><img src="https://cloud.githubusercontent.com/assets/8672039/9483184/285ff19a-4b73-11e5-8601-6c5fbb58215b.png" alt="lost previous code" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Describe what you were doing when the bug occurred:<br>
1.<br>
2.<br>
3.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.2.1-3816ae7c3</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br>
at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br>
at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br>
at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)<br>
at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br>
at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br>
at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)</p>
<p dir="auto">Component stack: in vl<br>
in div<br>
in div<br>
in div<br>
in wo<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Li<br>
in $e<br>
in dn<br>
in Ca<br>
in Pc</p> | <p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p>
<p dir="auto">I got this error when I click 'Ranked'.</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 chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br>
at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<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</p>
<p dir="auto">Component stack: in _i<br>
in div<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 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 4.4.7, 5.0.5, master</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<ol dir="auto">
<li>Run celery with default pool</li>
<li>Add <code class="notranslate">autoretry_for</code> or <code class="notranslate">raise Retry(exc=ValueError())</code></li>
<li>Intercept <code class="notranslate">task-retried</code> event (i.e. for RabbitMQ it's published to <code class="notranslate">celeryev</code> exchange with routing key <code class="notranslate">task.retried</code></li>
<li>Expecting "exception" argument to be not empty, getting "None" in it.</li>
</ol>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
x = Retry('foo', KeyError(), when=datetime.utcnow())
y = pickle.loads(pickle.dumps(x))
assert repr(x) == repr(y)"><pre class="notranslate"><span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-v">Retry</span>(<span class="pl-s">'foo'</span>, <span class="pl-v">KeyError</span>(), <span class="pl-s1">when</span><span class="pl-c1">=</span><span class="pl-s1">datetime</span>.<span class="pl-en">utcnow</span>())
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">pickle</span>.<span class="pl-en">loads</span>(<span class="pl-s1">pickle</span>.<span class="pl-en">dumps</span>(<span class="pl-s1">x</span>))
<span class="pl-k">assert</span> <span class="pl-en">repr</span>(<span class="pl-s1">x</span>) <span class="pl-c1">==</span> <span class="pl-en">repr</span>(<span class="pl-s1">y</span>)</pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Retry instance after pickle/unpickle is the same as initial one</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">After unpicklig Retry looses <code class="notranslate">self.exc</code></p> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Description</h1>
<p dir="auto">Documentation <a href="https://docs.celeryproject.org/en/master/userguide/workers.html#stopping-the-worker" rel="nofollow">https://docs.celeryproject.org/en/master/userguide/workers.html#stopping-the-worker</a> is outdated due merged PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="988367000" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6942" data-hovercard-type="pull_request" data-hovercard-url="/celery/celery/pull/6942/hovercard" href="https://github.com/celery/celery/pull/6942">#6942</a>.</p>
<h1 dir="auto">Suggestions</h1>
<p dir="auto">Documentation should mention that Celery worker main process running on systems supporting <code class="notranslate">prctl. PR_SET_PDEATHSIG </code> should be able to kill all child processes using SIGKILL signal.</p> | 0 |
<p dir="auto">By default babel is looking for <code class="notranslate">node_modules</code> in current directory.<br>
But sometimes we need to use <code class="notranslate">node_modules</code> from some child or other directory.<br>
I tried to use <code class="notranslate">NODE_PATH</code> env, but it doesn't work.<br>
So, maybe it's good idea to add supporting some environment variable, for example <code class="notranslate">BABEL_NODE_MODULES</code> with list of path to search <code class="notranslate">node_modules</code> directory.<br>
Let's make babel more flexible!</p> | <p dir="auto">This is a bug report - I am getting this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
Module build failed: Error: Couldn't find preset "latest" relative to directory "/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman-browser-polyfills/modules"
at /Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-loader/lib/index.js:46:20)
at Object.module.exports (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-loader/lib/index.js:163:20)
@ ./lib/index.js 136:9-22
@ multi babel-polyfill ./lib/index.js
ERROR in .-browser-polyfills/modules/assert.js
Module build failed: Error: Couldn't find preset "latest" relative to directory "/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman-browser-polyfills/modules"
at /Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-loader/lib/index.js:46:20)
at Object.module.exports (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-loader/lib/index.js:163:20)
@ ./lib/index.js 131:13-30
@ multi babel-polyfill ./lib/index.js"><pre class="notranslate"><code class="notranslate">
Module build failed: Error: Couldn't find preset "latest" relative to directory "/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman-browser-polyfills/modules"
at /Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-loader/lib/index.js:46:20)
at Object.module.exports (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-loader/lib/index.js:163:20)
@ ./lib/index.js 136:9-22
@ multi babel-polyfill ./lib/index.js
ERROR in .-browser-polyfills/modules/assert.js
Module build failed: Error: Couldn't find preset "latest" relative to directory "/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman-browser-polyfills/modules"
at /Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at File.initOptions (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/index.js:212:65)
at new File (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/file/index.js:135:24)
at Pipeline.transform (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at transpile (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-loader/lib/index.js:46:20)
at Object.module.exports (/Users/alexamil/WebstormProjects/oresoftware/sumanjs/suman/node_modules/babel-loader/lib/index.js:163:20)
@ ./lib/index.js 131:13-30
@ multi babel-polyfill ./lib/index.js
</code></pre></div>
<p dir="auto">Webpack should be able to find the babel modules, because I am using NODE_PATH, which allows me to store Babel deps in a particular location, and I run webpack like so:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env bash
NODE_PATH=${NODE_PATH}:~/.suman/global/node_modules webpack"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#!</span>/usr/bin/env bash</span>
NODE_PATH=<span class="pl-smi">${NODE_PATH}</span>:<span class="pl-k">~</span>/.suman/global/node_modules webpack</pre></div>
<p dir="auto">I have this webpack config:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const path = require('path');
module.exports = {
entry: ['babel-polyfill', './lib/index.js'],
output: {
path: path.resolve(__dirname + '/dist'),
filename: 'suman.js'
},
module: {
loaders: [
{
test: /\.js$/,
loader: 'babel-loader',
exclude: /node_modules/,
options: {
presets: ['latest'],
plugins: ['transform-runtime']
}
},
{
test: /(\/lib\/init\/|cli.js$)/,
loader: 'ignore-loader'
}
]
},
resolve: {
alias: {
fs: require.resolve('suman-browser-polyfills/modules/fs'),
assert: require.resolve('suman-browser-polyfills/modules/assert')
},
extensions: ['.js']
},
node: {
// assert: true,
buffer: true,
child_process: 'empty',
cluster: 'empty',
console: true,
constants: true,
crypto: 'empty',
dgram: 'empty',
dns: 'mock',
domain: true,
events: true,
// fs: 'empty',
http: true,
https: true,
module: 'empty',
net: 'mock',
os: true,
path: true,
process: true,
punycode: true,
querystring: true,
readline: 'empty',
repl: 'empty',
stream: true,
string_decoder: true,
timers: true,
tls: 'mock',
tty: true,
url: true,
util: true,
v8: 'mock',
vm: true,
zlib: 'empty',
}
};"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">entry</span>: <span class="pl-kos">[</span><span class="pl-s">'babel-polyfill'</span><span class="pl-kos">,</span> <span class="pl-s">'./lib/index.js'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">output</span>: <span class="pl-kos">{</span>
<span class="pl-c1">path</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span> <span class="pl-c1">+</span> <span class="pl-s">'/dist'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">filename</span>: <span class="pl-s">'suman.js'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">module</span>: <span class="pl-kos">{</span>
<span class="pl-c1">loaders</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span>
<span class="pl-c1">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-cce">\.</span>js<span class="pl-cce">$</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'babel-loader'</span><span class="pl-kos">,</span>
<span class="pl-c1">exclude</span>: <span class="pl-pds"><span class="pl-c1">/</span>node_modules<span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">options</span>: <span class="pl-kos">{</span>
<span class="pl-c1">presets</span>: <span class="pl-kos">[</span><span class="pl-s">'latest'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">plugins</span>: <span class="pl-kos">[</span><span class="pl-s">'transform-runtime'</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">test</span>: <span class="pl-pds"><span class="pl-c1">/</span><span class="pl-kos">(</span><span class="pl-cce">\/</span>lib<span class="pl-cce">\/</span>init<span class="pl-cce">\/</span><span class="pl-c1">|</span>cli.js<span class="pl-cce">$</span><span class="pl-kos">)</span><span class="pl-c1">/</span></span><span class="pl-kos">,</span>
<span class="pl-c1">loader</span>: <span class="pl-s">'ignore-loader'</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">resolve</span>: <span class="pl-kos">{</span>
<span class="pl-c1">alias</span>: <span class="pl-kos">{</span>
<span class="pl-c1">fs</span>: <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">'suman-browser-polyfills/modules/fs'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">assert</span>: <span class="pl-en">require</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s">'suman-browser-polyfills/modules/assert'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">extensions</span>: <span class="pl-kos">[</span><span class="pl-s">'.js'</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">node</span>: <span class="pl-kos">{</span>
<span class="pl-c">// assert: true,</span>
<span class="pl-c1">buffer</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">child_process</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span>
<span class="pl-c1">cluster</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span>
<span class="pl-c1">console</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">constants</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">crypto</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span>
<span class="pl-c1">dgram</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span>
<span class="pl-c1">dns</span>: <span class="pl-s">'mock'</span><span class="pl-kos">,</span>
<span class="pl-c1">domain</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">events</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c">// fs: 'empty',</span>
<span class="pl-c1">http</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">https</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">module</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span>
<span class="pl-c1">net</span>: <span class="pl-s">'mock'</span><span class="pl-kos">,</span>
<span class="pl-c1">os</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">path</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">process</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">punycode</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">querystring</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">readline</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span>
<span class="pl-c1">repl</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span>
<span class="pl-c1">stream</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">string_decoder</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">timers</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">tls</span>: <span class="pl-s">'mock'</span><span class="pl-kos">,</span>
<span class="pl-c1">tty</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">url</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">util</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">v8</span>: <span class="pl-s">'mock'</span><span class="pl-kos">,</span>
<span class="pl-c1">vm</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">zlib</span>: <span class="pl-s">'empty'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">as you can see, in <code class="notranslate">resolve.alias</code>, we are referencing another project. No Babel dependencies are installed in</p>
<p dir="auto">But that should not matter, the Babel deps needed are located in the directory referenced in NODE_PATH.</p>
<p dir="auto">What's probably happening is that Webpack/Babel is doing a relative path lookup check for the needed Babel deps, but it should also check on NODE_PATH, if it needs to do a "pre-check".</p> | 1 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">I see RENDER WARNING in the two examples on my Windows + Chrome.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[.Offscreen-For-WebGL-000002652FEC91C0]RENDER WARNING: Render count or primcount is 0."><pre class="notranslate"><code class="notranslate">[.Offscreen-For-WebGL-000002652FEC91C0]RENDER WARNING: Render count or primcount is 0.
</code></pre></div>
<p dir="auto"><a href="https://threejs.org/examples/webgl_octree.html" rel="nofollow">https://threejs.org/examples/webgl_octree.html</a><br>
<a href="https://threejs.org/examples/webgl_materials_cubemap_dynamic.html" rel="nofollow">https://threejs.org/examples/webgl_materials_cubemap_dynamic.html</a></p>
<p dir="auto">But I don't see on FireFox nightly. It could be (Windows) Chrome specific issue?</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r95</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> | <p dir="auto">Sorry, it was glitch on my side after ObjLoader update. After my code fixing everything works fine.<br>
...</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r74</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r75</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li>[] All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li>
</ul> | 1 |
<p dir="auto">It would be great if aside from the current way of building widgets you could add JSX like capabilities. I mean add tiny syntactic sugar to enable XML like constructs inside dart code. It just makes code so much easier to read/develop/debug/maintain and also easier for powerful GUI builders to integrate with editable code.</p>
<p dir="auto">Looking for something like DSX:<br>
<a href="https://spark-heroku-dsx.herokuapp.com/index.html" rel="nofollow">https://spark-heroku-dsx.herokuapp.com/index.html</a></p>
<p dir="auto">Carlos.</p>
<hr>
<p dir="auto">The current issue with DSX is about proper integration with Flutter tools as to provide a great developer experience with debugger, auto-complete, etc. working on .dsx files.</p>
<p dir="auto">Telling users that they can use DSX but can't use debugger or enjoy auto-complete is a non starter for me. If anybody wants to help, what I need is to figure out a way to add full preprocessing support (with source map) to Dart Tools and VS Code Dart plug in. Once the tools support that DSX or any other transpiling language (any language that is a superset of Dart but compiles everything down to Dart) would just work.</p>
<p dir="auto">If you can and would like to help, let me know.</p> | <h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Create a widget that contains a CameraPreview.</li>
<li>Try to take a screenshot using this method: <a href="https://docs.flutter.io/flutter/rendering/RenderRepaintBoundary/toImage.html" rel="nofollow">https://docs.flutter.io/flutter/rendering/RenderRepaintBoundary/toImage.html</a></li>
<li>I made a small demo app that can be found at: <a href="https://gist.github.com/eduardkieser/ffea183945d56f537d789888008cbc4e">https://gist.github.com/eduardkieser/ffea183945d56f537d789888008cbc4e</a> (You can move the blue square around)</li>
<li>Short video here: <a href="https://www.youtube.com/watch?v=CWBLjCwH5c0" rel="nofollow">https://www.youtube.com/watch?v=CWBLjCwH5c0</a></li>
</ol>
<p dir="auto">Expected Behaviour: That the screenshot should include the CameraPreview.<br>
Actual behaviour: The screenshot contains painted widgets, but no Camera data.</p>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Performing hot restart...
[+7732 ms] Refreshing active FlutterViews before restarting.
[ ] _flutter.listViews: {isolateId: isolates/301279252}
[ +405 ms] DevFS: Starting sync from LocalDirectory: 'C:\Users\Eduard\Google Drive\WorkSpaces\flutter\widget_paint_test'
[ ] Scanning project files
[ ] Scanning package files
[ +45 ms] Scanning asset files
[ ] Scanning for deleted files
[ +22 ms] Compiling dart to kernel with 0 updated files
[ +190 ms] Updating files
[ +603 ms] DevFS: Sync finished
[ ] Synced 0.0MB.
[ ] getIsolate: {isolateId: isolates/301279252}
[ +44 ms] _flutter.runInView: {viewId: _flutterView/0x725824b498, mainScript: /data/user/0/com.kieserengineering.widgetpainttest/cache/widget_paint_testEDMOVU/widget_paint_test/lib/bugExample.dart.dill, packagesFile: /data/user/0/com.kieserengineering.widgetpainttest/cache/widget_paint_testEDMOVU/widget_paint_test/.packages, assetDirectory: /data/user/0/com.kieserengineering.widgetpainttest/cache/widget_paint_testEDMOVU/widget_paint_test/build/flutter_assets}
[ +595 ms] {streamId: Isolate, event: {type: Event, kind: IsolateStart, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531814327}}
[ +3 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531814332, extensionRPC: ext.ui.window.scheduleFrame}}
[ +1 ms] getIsolate: {isolateId: isolates/513879693}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: IsolateExit, isolate: {type: @Isolate, fixedId: true, id: isolates/301279252, name: main.dart:main(), number: 301279252}, timestamp: 1530531814348}}
[ ] {streamId: Isolate, event: {type: Event, kind: IsolateRunnable, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531814611}}
[ ] Isolate is runnable.
[ ] _flutter.listViews: {isolateId: isolates/513879693}
[ +61 ms] Restart performed in 1 952ms.
[ +3 ms] Restarted app in 1 987ms.
[ +381 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815095, extensionRPC: ext.flutter.reassemble}}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815095, extensionRPC: ext.flutter.exit}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815095, extensionRPC: ext.flutter.frameworkPresent}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815095, extensionRPC: ext.flutter.platformOverride}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815096, extensionRPC: ext.flutter.evict}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815096, extensionRPC: ext.flutter.timeDilation}}
[ +1 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugPaint}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugPaintBaselinesEnabled}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.repaintRainbow}}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpRenderTree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpLayerTree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpSemanticsTreeInTraversalOrder}}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpApp}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.showPerformanceOverlay}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugAllowBanner}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugWidgetInspector}}
[ +3 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815102, extensionRPC: ext.flutter.inspector.show}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815103, extensionRPC: ext.flutter.inspector.disposeAllGroups}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815103, extensionRPC: ext.flutter.inspector.disposeGroup}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815103, extensionRPC: ext.flutter.inspector.isWidgetTreeReady}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815104, extensionRPC: ext.flutter.inspector.disposeId}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815104, extensionRPC: ext.flutter.inspector.setPubRootDirectories}}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815104, extensionRPC: ext.flutter.inspector.setSelectionById}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815104, extensionRPC: ext.flutter.inspector.getParentChain}}
[ +3 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815108, extensionRPC: ext.flutter.inspector.getProperties}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getChildren}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getChildrenSummaryTree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getChildrenDetailsSubtree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getRootWidget}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getRootRenderObject}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getRootWidgetSummaryTree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getDetailsSubtree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getSelectedRenderObject}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getSelectedWidget}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815110, extensionRPC: ext.flutter.inspector.getSelectedSummaryWidget}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815110, extensionRPC: ext.flutter.inspector.isWidgetCreationTracked}}
[ ] ext.flutter.inspector.setPubRootDirectories: {arg0: file:///C:/Users/Eduard/Google Drive/WorkSpaces/flutter/widget_paint_test, isolateId: isolates/513879693}
[ +532 ms] E/libc ( 3950): Access denied finding property "persist.camera.cfa.packagelist"
[ ] W/widgetpainttest( 3950): type=1400 audit(0.0:102586): avc: denied { read } for name="u:object_r:camera_prop:s0" dev="tmpfs" ino=22660 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0
[ +147 ms] ext.flutter.inspector.getSelectedSummaryWidget: {objectGroup: selection_214, isolateId: isolates/513879693}
[ +31 ms] ext.flutter.inspector.getSelectedWidget: {objectGroup: selection_214, isolateId: isolates/513879693}
[ +15 ms] ext.flutter.inspector.getRootWidgetSummaryTree: {objectGroup: tree_215, isolateId: isolates/513879693}
[+2738 ms] I/zygote64( 3950): Do full code cache collection, code=123KB, data=83KB
[ +1 ms] I/zygote64( 3950): After code cache collection, code=116KB, data=72KB
[+9214 ms] I/zygote64( 3950): Do partial code cache collection, code=122KB, data=77KB
[ ] I/zygote64( 3950): After code cache collection, code=122KB, data=77KB
[ ] I/zygote64( 3950): Increasing code cache capacity to 512KB
"><pre class="notranslate"><code class="notranslate">Performing hot restart...
[+7732 ms] Refreshing active FlutterViews before restarting.
[ ] _flutter.listViews: {isolateId: isolates/301279252}
[ +405 ms] DevFS: Starting sync from LocalDirectory: 'C:\Users\Eduard\Google Drive\WorkSpaces\flutter\widget_paint_test'
[ ] Scanning project files
[ ] Scanning package files
[ +45 ms] Scanning asset files
[ ] Scanning for deleted files
[ +22 ms] Compiling dart to kernel with 0 updated files
[ +190 ms] Updating files
[ +603 ms] DevFS: Sync finished
[ ] Synced 0.0MB.
[ ] getIsolate: {isolateId: isolates/301279252}
[ +44 ms] _flutter.runInView: {viewId: _flutterView/0x725824b498, mainScript: /data/user/0/com.kieserengineering.widgetpainttest/cache/widget_paint_testEDMOVU/widget_paint_test/lib/bugExample.dart.dill, packagesFile: /data/user/0/com.kieserengineering.widgetpainttest/cache/widget_paint_testEDMOVU/widget_paint_test/.packages, assetDirectory: /data/user/0/com.kieserengineering.widgetpainttest/cache/widget_paint_testEDMOVU/widget_paint_test/build/flutter_assets}
[ +595 ms] {streamId: Isolate, event: {type: Event, kind: IsolateStart, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531814327}}
[ +3 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531814332, extensionRPC: ext.ui.window.scheduleFrame}}
[ +1 ms] getIsolate: {isolateId: isolates/513879693}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: IsolateExit, isolate: {type: @Isolate, fixedId: true, id: isolates/301279252, name: main.dart:main(), number: 301279252}, timestamp: 1530531814348}}
[ ] {streamId: Isolate, event: {type: Event, kind: IsolateRunnable, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531814611}}
[ ] Isolate is runnable.
[ ] _flutter.listViews: {isolateId: isolates/513879693}
[ +61 ms] Restart performed in 1 952ms.
[ +3 ms] Restarted app in 1 987ms.
[ +381 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815095, extensionRPC: ext.flutter.reassemble}}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815095, extensionRPC: ext.flutter.exit}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815095, extensionRPC: ext.flutter.frameworkPresent}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815095, extensionRPC: ext.flutter.platformOverride}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815096, extensionRPC: ext.flutter.evict}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815096, extensionRPC: ext.flutter.timeDilation}}
[ +1 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugPaint}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugPaintBaselinesEnabled}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.repaintRainbow}}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpRenderTree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpLayerTree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpSemanticsTreeInTraversalOrder}}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpSemanticsTreeInInverseHitTestOrder}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugDumpApp}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.showPerformanceOverlay}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugAllowBanner}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815097, extensionRPC: ext.flutter.debugWidgetInspector}}
[ +3 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815102, extensionRPC: ext.flutter.inspector.show}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815103, extensionRPC: ext.flutter.inspector.disposeAllGroups}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815103, extensionRPC: ext.flutter.inspector.disposeGroup}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815103, extensionRPC: ext.flutter.inspector.isWidgetTreeReady}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815104, extensionRPC: ext.flutter.inspector.disposeId}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815104, extensionRPC: ext.flutter.inspector.setPubRootDirectories}}
[ +2 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815104, extensionRPC: ext.flutter.inspector.setSelectionById}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815104, extensionRPC: ext.flutter.inspector.getParentChain}}
[ +3 ms] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815108, extensionRPC: ext.flutter.inspector.getProperties}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getChildren}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getChildrenSummaryTree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getChildrenDetailsSubtree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getRootWidget}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getRootRenderObject}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getRootWidgetSummaryTree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getDetailsSubtree}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getSelectedRenderObject}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815109, extensionRPC: ext.flutter.inspector.getSelectedWidget}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815110, extensionRPC: ext.flutter.inspector.getSelectedSummaryWidget}}
[ ] {streamId: Isolate, event: {type: Event, kind: ServiceExtensionAdded, isolate: {type: @Isolate, fixedId: true, id: isolates/513879693, name: main.dart:main(), number: 513879693}, timestamp: 1530531815110, extensionRPC: ext.flutter.inspector.isWidgetCreationTracked}}
[ ] ext.flutter.inspector.setPubRootDirectories: {arg0: file:///C:/Users/Eduard/Google Drive/WorkSpaces/flutter/widget_paint_test, isolateId: isolates/513879693}
[ +532 ms] E/libc ( 3950): Access denied finding property "persist.camera.cfa.packagelist"
[ ] W/widgetpainttest( 3950): type=1400 audit(0.0:102586): avc: denied { read } for name="u:object_r:camera_prop:s0" dev="tmpfs" ino=22660 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:object_r:camera_prop:s0 tclass=file permissive=0
[ +147 ms] ext.flutter.inspector.getSelectedSummaryWidget: {objectGroup: selection_214, isolateId: isolates/513879693}
[ +31 ms] ext.flutter.inspector.getSelectedWidget: {objectGroup: selection_214, isolateId: isolates/513879693}
[ +15 ms] ext.flutter.inspector.getRootWidgetSummaryTree: {objectGroup: tree_215, isolateId: isolates/513879693}
[+2738 ms] I/zygote64( 3950): Do full code cache collection, code=123KB, data=83KB
[ +1 ms] I/zygote64( 3950): After code cache collection, code=116KB, data=72KB
[+9214 ms] I/zygote64( 3950): Do partial code cache collection, code=122KB, data=77KB
[ ] I/zygote64( 3950): After code cache collection, code=122KB, data=77KB
[ ] I/zygote64( 3950): Increasing code cache capacity to 512KB
</code></pre></div>
<p dir="auto">All the issues look like they are related to other files (i didn't create a separate project for the example code...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing widget_paint_test...
info - Unused import: 'dart:async' - lib\display_window.dart:4:8
info - Unused import: 'dart:typed_data' - lib\display_window.dart:6:8
info - This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) - lib\display_window.dart:10:7
info - The value of the field '_offset' isn't used - lib\display_window.dart:41:10
info - The method '_toggleActive' isn't used - lib\display_window.dart:113:8
info - Unused import: 'GlobalState.dart' - lib\main.dart:2:8
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:127:16
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:160:34
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:172:22
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:176:21
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:177:28
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:181:29
info - This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) - lib\roi_window.dart:5:7
info - The value of the field '_implementationType' isn't used - lib\roi_window.dart:34:7
info - The value of the field '_offset' isn't used - lib\roi_window.dart:36:10
info - Unused import: 'diagonally_movable_button.dart' - lib\stack_test.dart:2:8
info - Unused import: 'package:mlkit/mlkit.dart' - lib\stack_test.dart:7:8
info - Unused import: 'dart:typed_data' - lib\stack_test.dart:11:8
info - Unused import: 'display_window.dart' - lib\stack_test.dart:13:8
info - Avoid using braces in interpolation when not needed - lib\stack_test.dart:129:44
info - Unused import: 'package:widget_paint_test/main.dart' - test\widget_test.dart:10:8
error - The constructor returns type 'dynamic' that isn't of expected type 'Widget' - test\widget_test.dart:15:29
error - Undefined class 'MyApp' - test\widget_test.dart:15:33
23 issues found. (ran in 10.7s)
"><pre class="notranslate"><code class="notranslate">Analyzing widget_paint_test...
info - Unused import: 'dart:async' - lib\display_window.dart:4:8
info - Unused import: 'dart:typed_data' - lib\display_window.dart:6:8
info - This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) - lib\display_window.dart:10:7
info - The value of the field '_offset' isn't used - lib\display_window.dart:41:10
info - The method '_toggleActive' isn't used - lib\display_window.dart:113:8
info - Unused import: 'GlobalState.dart' - lib\main.dart:2:8
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:127:16
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:160:34
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:172:22
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:176:21
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:177:28
info - Avoid using braces in interpolation when not needed - lib\mlkit_minimum_test.dart:181:29
info - This class inherits from a class marked as @immutable, and therefore should be immutable (all instance fields must be final) - lib\roi_window.dart:5:7
info - The value of the field '_implementationType' isn't used - lib\roi_window.dart:34:7
info - The value of the field '_offset' isn't used - lib\roi_window.dart:36:10
info - Unused import: 'diagonally_movable_button.dart' - lib\stack_test.dart:2:8
info - Unused import: 'package:mlkit/mlkit.dart' - lib\stack_test.dart:7:8
info - Unused import: 'dart:typed_data' - lib\stack_test.dart:11:8
info - Unused import: 'display_window.dart' - lib\stack_test.dart:13:8
info - Avoid using braces in interpolation when not needed - lib\stack_test.dart:129:44
info - Unused import: 'package:widget_paint_test/main.dart' - test\widget_test.dart:10:8
error - The constructor returns type 'dynamic' that isn't of expected type 'Widget' - test\widget_test.dart:15:29
error - Undefined class 'MyApp' - test\widget_test.dart:15:33
23 issues found. (ran in 10.7s)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="C:\Users\Eduard\Google Drive\WorkSpaces\flutter\widget_paint_test>flutter doctor -v
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.16299.492], locale en-ZA)
• Flutter version 0.5.1 at C:\Program Files\Android\flutter
• Framework revision c7ea3ca377 (5 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\Eduard\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.4
• Flutter plugin version 24.2.1
• Dart plugin version 173.4700
[√] Connected devices (1 available)
• ONEPLUS A5000 • 77cd7290 • android-arm64 • Android 8.1.0 (API 27)
• No issues found!
"><pre class="notranslate"><code class="notranslate">C:\Users\Eduard\Google Drive\WorkSpaces\flutter\widget_paint_test>flutter doctor -v
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.16299.492], locale en-ZA)
• Flutter version 0.5.1 at C:\Program Files\Android\flutter
• Framework revision c7ea3ca377 (5 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[√] Android toolchain - develop for Android devices (Android SDK 27.0.3)
• Android SDK at C:\Users\Eduard\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-27, build-tools 27.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 25.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] IntelliJ IDEA Community Edition (version 2017.3)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2017.3.4
• Flutter plugin version 24.2.1
• Dart plugin version 173.4700
[√] Connected devices (1 available)
• ONEPLUS A5000 • 77cd7290 • android-arm64 • Android 8.1.0 (API 27)
• No issues found!
</code></pre></div> | 0 |
<p dir="auto">An optional parameter on the facet, like sort's "ignore_unmapped" parameter would be great.</p>
<p dir="auto">Context : We use "dynamic_templates" in our index mapping and allow clients to search, sort, and "facet" on any field that is valid by the rules of the mapping.</p>
<p dir="auto">The problem arises when facets are run on fields that do not exist in the data, and thus are not "actually" in the mapping.</p>
<p dir="auto">Example : With a "dynamic_template" for "rating-*" fields, we can search, filter, and sort<br>
(with "ignore_unmapped" = true), against a "rating-Tuna" field, even though there are no<br>
documents in the index with that field.</p>
<p dir="auto">See Gist <a href="https://gist.github.com/4568689">https://gist.github.com/4568689</a> for a script that will quickly demonstrate the problem.</p> | <p dir="auto">Changing the routing value or parent id of a document will lead to duplicate documents with the same index, type, and id. I <em>think</em> that internally a documents id is constructed from the index, type, id, and routing value so internally the id's are different, yet they look the same to the end user.</p>
<p dir="auto">Is there something we can do to address this? Maybe add an "old_route" and "old_parent" flag that when found can be used to do issue a delete on the old shard? Is there a better approach?</p> | 0 |
<ul dir="auto">
<li>VSCode Version:1.0.0</li>
<li>OS Version:win7</li>
</ul>
<p dir="auto">I hope have a plugin like bootstrap-3-snippets, we can use it quote myself snippets from localhost or server(for example github).</p> | 0 |
|
<p dir="auto">Hi,<br>
Is there any plan to add support for <code class="notranslate">CMake</code> build tool? <code class="notranslate">CMake</code> is more easy and portable.</p> | <p dir="auto">I'm creating this issue to discuss the possibility of standardizing our build system on CMake, which seems to be getting significant traction as a saner, cross-platform build system than Make. If we decide to use this to build Julia, we may want to standardize on it as a standard build system for Julia packages that need to compile things too.</p> | 1 |
<p dir="auto">Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT</p>
<p dir="auto"><strong>Atom Version</strong>: 0.152.0<br>
<strong>System</strong>: linux 3.13.0-40-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
</code></pre></div> | <p dir="auto"><strong>TEMPORARY WORKAROUND</strong>: <code class="notranslate">ln -s /usr/share/atom/atom "/usr/share/atom/atom (deleted)"</code></p>
<p dir="auto">Uncaught Error: spawn /opt/atom/atom (deleted) ENOENT</p>
<p dir="auto"><strong>Atom Version</strong>: 0.152.0<br>
<strong>System</strong>: linux 3.13.0-40-generic<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<h3 dir="auto">Stack Trace</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
"><pre class="notranslate"><code class="notranslate">At events.js:85
Error: spawn /opt/atom/atom (deleted) ENOENT
at exports._errnoException (util.js:742:11)
at Process.ChildProcess._handle.onexit (child_process.js:1051:32)
at child_process.js:1142:20
at process._tickCallback (node.js:378:11)
</code></pre></div> | 1 |
<p dir="auto">Describe what you were doing when the bug occurred:<br>
1.<br>
2.<br>
3.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.2.1-3816ae7c3</p>
<p dir="auto">Call stack: at n.value (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:163226)<br>
at m (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:332702)<br>
at uc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:332919)<br>
at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br>
at el (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:68139)<br>
at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:108547)<br>
at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br>
at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br>
at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:46341</p>
<p dir="auto">Component stack: in uc<br>
in div<br>
in div<br>
in wo<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Li<br>
in $e<br>
in dn<br>
in Ca<br>
in Pc</p> | <p dir="auto">Here is the link to <a href="http://codesandbox.io/s/34r1l9wl4m" rel="nofollow">Sandbox</a></p>
<p dir="auto">I have simple code like this:</p>
<p dir="auto"><strong>Sidebar.js</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React, { Component } from "react";
import { BrowserRouter as Router, Route, NavLink } from "react-router-dom";
import Menu from "./Menu";
class SidebarExample extends Component {
render() {
console.log("Sidebar - render()", new Date());
return (
<Router>
<div>
<div>
If I uncomment the below component Menu the render() method of the component is called everytime I change the link. Why? In the Menu component the is the same html code below. What is going on?
{/*<Menu />*/}
<ul>
<li>
<NavLink exact to="/">
Home
</NavLink>
</li>
<li>
<NavLink to="/bubblegum">Bubblegum</NavLink>
</li>
<li>
<NavLink to="/shoelaces">Shoelaces</NavLink>
</li>
</ul>
</div>
</div>
</Router>
);
}
}
export default SidebarExample;"><pre class="notranslate"><code class="notranslate">import React, { Component } from "react";
import { BrowserRouter as Router, Route, NavLink } from "react-router-dom";
import Menu from "./Menu";
class SidebarExample extends Component {
render() {
console.log("Sidebar - render()", new Date());
return (
<Router>
<div>
<div>
If I uncomment the below component Menu the render() method of the component is called everytime I change the link. Why? In the Menu component the is the same html code below. What is going on?
{/*<Menu />*/}
<ul>
<li>
<NavLink exact to="/">
Home
</NavLink>
</li>
<li>
<NavLink to="/bubblegum">Bubblegum</NavLink>
</li>
<li>
<NavLink to="/shoelaces">Shoelaces</NavLink>
</li>
</ul>
</div>
</div>
</Router>
);
}
}
export default SidebarExample;
</code></pre></div>
<p dir="auto"><strong>Menu.js</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React, { Component } from "react";
import { NavLink } from "react-router-dom";
class Menu extends Component {
render() {
console.log("Menu - render()", new Date());
return (
<ul>
<li>
<NavLink exact to="/">
Home
</NavLink>
</li>
<li>
<NavLink to="/bubblegum">Bubblegum</NavLink>
</li>
<li>
<NavLink to="/shoelaces">Shoelaces</NavLink>
</li>
</ul>
);
}
}
export default Menu;"><pre class="notranslate"><code class="notranslate">import React, { Component } from "react";
import { NavLink } from "react-router-dom";
class Menu extends Component {
render() {
console.log("Menu - render()", new Date());
return (
<ul>
<li>
<NavLink exact to="/">
Home
</NavLink>
</li>
<li>
<NavLink to="/bubblegum">Bubblegum</NavLink>
</li>
<li>
<NavLink to="/shoelaces">Shoelaces</NavLink>
</li>
</ul>
);
}
}
export default Menu;
</code></pre></div>
<p dir="auto">If I uncomment the component the render() method of the component is called everytime I change the link. Why? In the Menu component there is the same html code below.</p>
<p dir="auto"><strong>What is going on?</strong></p>
<p dir="auto">I'm loosing my mind!</p> | 0 |
<blockquote>
<p dir="auto">Issue originally reported by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sheerun/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sheerun">@sheerun</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="262055792" data-permission-text="Title is private" data-url="https://github.com/babel/babel-preset-env/issues/434" data-hovercard-type="issue" data-hovercard-url="/babel/babel-preset-env/issues/434/hovercard" href="https://github.com/babel/babel-preset-env/issues/434">babel/babel-preset-env#434</a></p>
</blockquote>
<p dir="auto">When using <code class="notranslate">useBuiltIns: 'usage'</code> and doing two passes with babel, it can require polyfills multiple times, what makes babel not idempotent on second run (in my opinion it should be).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="require("babel-polyfill/lib/core-js/modules/es6.promise");
require("babel-polyfill/lib/core-js/modules/es6.symbol");
require("babel-polyfill/lib/core-js/modules/web.dom.iterable");
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
require("babel-polyfill/lib/core-js/modules/es6.symbol");
require("babel-polyfill/lib/core-js/modules/web.dom.iterable");
require("babel-polyfill/lib/regenerator-runtime/runtime");
require("babel-polyfill/lib/core-js/modules/es6.string.starts-with");"><pre class="notranslate"><code class="notranslate">require("babel-polyfill/lib/core-js/modules/es6.promise");
require("babel-polyfill/lib/core-js/modules/es6.symbol");
require("babel-polyfill/lib/core-js/modules/web.dom.iterable");
function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
require("babel-polyfill/lib/core-js/modules/es6.symbol");
require("babel-polyfill/lib/core-js/modules/web.dom.iterable");
require("babel-polyfill/lib/regenerator-runtime/runtime");
require("babel-polyfill/lib/core-js/modules/es6.string.starts-with");
</code></pre></div> | <blockquote>
<p dir="auto">Issue originally made by Ivan (istarkov)</p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.6.0</li>
<li><strong>Node version:</strong> 5.6.0</li>
<li><strong>npm version:</strong> 3.7.5</li>
</ul>
<h3 dir="auto">Description</h3>
<p dir="auto">Looks like bug in latest 6.6.0 babel version</p>
<p dir="auto">Next simple plugin</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default function (/* { types: t } */) {
return {
visitor: {
CallExpression(path) {
const { callee: { type, name } } = path.node;
console.log('calleeName', type, name);
},
},
};
}"><pre class="notranslate"><code class="notranslate">export default function (/* { types: t } */) {
return {
visitor: {
CallExpression(path) {
const { callee: { type, name } } = path.node;
console.log('calleeName', type, name);
},
},
};
}
</code></pre></div>
<p dir="auto">for a file</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import css from './some';"><pre class="notranslate"><code class="notranslate">import css from './some';
</code></pre></div>
<p dir="auto">outputs</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="calleeName Identifier require
calleeName Identifier _interopRequireDefault"><pre class="notranslate"><code class="notranslate">calleeName Identifier require
calleeName Identifier _interopRequireDefault
</code></pre></div>
<p dir="auto">but for a same file + console.log</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import css from './some';
console.log(css);"><pre class="notranslate"><code class="notranslate">import css from './some';
console.log(css);
</code></pre></div>
<p dir="auto">outputs</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="calleeName MemberExpression undefined"><pre class="notranslate"><code class="notranslate">calleeName MemberExpression undefined
</code></pre></div>
<p dir="auto">but must output</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="calleeName MemberExpression undefined
calleeName Identifier require
calleeName Identifier _interopRequireDefault"><pre class="notranslate"><code class="notranslate">calleeName MemberExpression undefined
calleeName Identifier require
calleeName Identifier _interopRequireDefault
</code></pre></div>
<p dir="auto">This breaks this plugin <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="137472092" data-permission-text="Title is private" data-url="https://github.com/istarkov/babel-plugin-webpack-loaders/issues/39" data-hovercard-type="issue" data-hovercard-url="/istarkov/babel-plugin-webpack-loaders/issues/39/hovercard" href="https://github.com/istarkov/babel-plugin-webpack-loaders/issues/39">istarkov/babel-plugin-webpack-loaders#39</a><br>
And some others I know</p> | 0 |
<p dir="auto">I want to have 2 parallel VGG models that share an input. I can do this with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="modelA = vgg16.VGG16(include_top=True,weights='imagenet')
modelB = vgg16.VGG16(include_top=True,weights='imagenet')
y = modelB(modelA.input)
modelC = Model(inputs=modelA.input,outputs=[modelA.output,y])"><pre class="notranslate"><code class="notranslate">modelA = vgg16.VGG16(include_top=True,weights='imagenet')
modelB = vgg16.VGG16(include_top=True,weights='imagenet')
y = modelB(modelA.input)
modelC = Model(inputs=modelA.input,outputs=[modelA.output,y])
</code></pre></div>
<p dir="auto">The top of the plotted model looks like:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7025717/27660801-7f89bb10-5c1d-11e7-92ec-964f3c73907d.png"><img src="https://user-images.githubusercontent.com/7025717/27660801-7f89bb10-5c1d-11e7-92ec-964f3c73907d.png" alt="mergedvgg" style="max-width: 100%;"></a><br>
The layers in the left-hand side behave as normal and can be accessed with modelC.layers[1] through modelC.layers[22].</p>
<p dir="auto">The right-hand side treats the entire 2nd VGG model as being compressed into one layer, accessed in modelC.layers[23]. This seems okay because this layer 23 has its own array of layers, which seem accessible as normal, e.g. modelC.layers[23].layers[2].name will give 'block1_conv2'.</p>
<p dir="auto">... eventually, I am using the mean output of a layer to compute a gradient. This works fine with the left VGG model:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="loss = K.mean(modelC.layers[2].output[:,:,:,:])"><pre class="notranslate"><code class="notranslate">loss = K.mean(modelC.layers[2].output[:,:,:,:])
</code></pre></div>
<p dir="auto">but if I try to access a layer in the right VGG model:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="loss = K.mean(modelC.layers[23].layers[2].output[:,:,:,:])"><pre class="notranslate"><code class="notranslate">loss = K.mean(modelC.layers[23].layers[2].output[:,:,:,:])
</code></pre></div>
<p dir="auto">I get a 'Disconnected Input' error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File "C:\Users\Sam\Anaconda2\lib\site-packages\theano\gradient.py", line 526, in handle_disconnected
raise DisconnectedInputError(message)
DisconnectedInputError: "><pre class="notranslate"><code class="notranslate">File "C:\Users\Sam\Anaconda2\lib\site-packages\theano\gradient.py", line 526, in handle_disconnected
raise DisconnectedInputError(message)
DisconnectedInputError:
</code></pre></div>
<p dir="auto">I don't know if this is a bug because it seems like it should work. An alternative solution would be to be able to incorporate the 2nd VGG model without it being compressed, but I cannot find a way to do that with the functional API.</p> | <p dir="auto">I run into the above warning when saving sub-classed models with <code class="notranslate">model.save()</code>.</p>
<p dir="auto">After some investigation, the error seems to occur when using sub-classed layers in combination with sub-classed models.</p>
<p dir="auto">See the code below for a minimal example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
class CustomLayer(tf.keras.layers.Layer):
def __init__(self, units=2):
super(CustomLayer, self).__init__()
self.units = units
self.layer = tf.keras.layers.Dense(units)
def get_config(self):
config = super(CustomLayer, self).get_config()
config['units'] = self.units
return config
def call(self, x, **kwargs):
x = self.layer(x)
return x
class CustomModel(tf.keras.Model):
def __init__(self, hidden_units):
super(CustomModel, self).__init__()
self.hidden_units = hidden_units
self.dense_layers = [CustomLayer(u) for u in hidden_units]
def call(self, inputs):
x = inputs
for layer in self.dense_layers:
x = layer(x)
return x
def get_config(self):
return {"hidden_units": self.hidden_units}
@classmethod
def from_config(cls, config):
return cls(**config)
model = CustomModel([16, 16, 10])
print(model(tf.random.uniform((1, 5))).shape)
model.compile()
model.save("my_model", )
print('---')
loaded_model = tf.keras.models.load_model('my_model')"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
class CustomLayer(tf.keras.layers.Layer):
def __init__(self, units=2):
super(CustomLayer, self).__init__()
self.units = units
self.layer = tf.keras.layers.Dense(units)
def get_config(self):
config = super(CustomLayer, self).get_config()
config['units'] = self.units
return config
def call(self, x, **kwargs):
x = self.layer(x)
return x
class CustomModel(tf.keras.Model):
def __init__(self, hidden_units):
super(CustomModel, self).__init__()
self.hidden_units = hidden_units
self.dense_layers = [CustomLayer(u) for u in hidden_units]
def call(self, inputs):
x = inputs
for layer in self.dense_layers:
x = layer(x)
return x
def get_config(self):
return {"hidden_units": self.hidden_units}
@classmethod
def from_config(cls, config):
return cls(**config)
model = CustomModel([16, 16, 10])
print(model(tf.random.uniform((1, 5))).shape)
model.compile()
model.save("my_model", )
print('---')
loaded_model = tf.keras.models.load_model('my_model')
</code></pre></div>
<p dir="auto">Or check out this <a href="https://colab.research.google.com/gist/mhorlacher/e172e2dc8ec10fc790cf1c3fa1931e8a/untitled8.ipynb" rel="nofollow">gist</a>.</p>
<p dir="auto">My TF version is <code class="notranslate">2.8.0</code>.</p> | 0 |
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>"yes and no"</td>
</tr>
<tr>
<td>Feature request?</td>
<td>"yes and no"</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.3.x, probably ever since there is this bridge though (so 2.7 minimum ?)</td>
</tr>
</tbody>
</table>
<p dir="auto">I am currently using the Doctrine bridge on a Flex install. For some reasons, if I add a typehint to an action in a controller (<code class="notranslate">public function myAction(Request $request)</code> for example), it tries to load the <code class="notranslate">form.type_guesser.doctrine</code> service, which in turn implements an interface that is present in the Form Component.</p>
<p dir="auto">I think that if the form component is not available, this service shouldn't be registered, as <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sstok/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sstok">@sstok</a> suggested it on Slack.</p> | <table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>yes</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>yes</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.3.6</td>
</tr>
</tbody>
</table>
<p dir="auto">Install Symfony Flex, create console comand which uses <code class="notranslate">Doctrine\DBAL\Connection</code>, run it and got an error</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Z:\home\dev\gleb-migrator>php bin/console app:migrate-issues
PHP Fatal error: Uncaught ReflectionException: Class Symfony\Component\Form\FormTypeGuesserInterface not found in Z:\home\dev\gleb-migrator\vendor\symfony\doctrine-bridge\Form\DoctrineOrmTypeGuesser.php:25
Stack trace:
#0 Z:\home\dev\gleb-migrator\vendor\symfony\debug\DebugClassLoader.php(144): require_once('Z:\\home\\dev\\gle...')
#1 [internal function]: Symfony\Component\Debug\DebugClassLoader->loadClass('Symfony\\Bridge\\...')
#2 [internal function]: spl_autoload_call('Symfony\\Bridge\\...')
#3 Z:\home\dev\gleb-migrator\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('Symfony\\Bridge\\...')
#4 Z:\home\dev\gleb-migrator\vendor\symfony\config\Resource\SelfCheckingResourceChecker.php(34): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(1502115661)
#5 Z:\home\dev\gleb-migrator\vendor\symfony\config\ResourceCheckerConfigCache.php(113): Symfony\Component\Config\Resource\SelfCheckingResourceChecker->isFresh(Object(Symfony\Component\Config\Resource\ClassExistenceResource), 1502115661)
in Z:\home\dev\gleb-migrator\vendor\symfony\doctrine-bridge\Form\DoctrineOrmTypeGuesser.php on line 25
Fatal error: Uncaught ReflectionException: Class Symfony\Component\Form\FormTypeGuesserInterface not found in Z:\home\dev\gleb-migrator\vendor\symfony\doctrine-bridge\Form\DoctrineOrmTypeGuesser.php on line 25
ReflectionException: Class Symfony\Component\Form\FormTypeGuesserInterface not found in Z:\home\dev\gleb-migrator\vendor\symfony\doctrine-bridge\Form\DoctrineOrmTypeGuesser.php on line 25
Call Stack:
0.5601 2716928 1. Symfony\Component\Debug\ErrorHandler->handleException() Z:\home\dev\gleb-migrator\vendor\symfony\debug\ErrorHandler.php:0 "><pre class="notranslate"><code class="notranslate">Z:\home\dev\gleb-migrator>php bin/console app:migrate-issues
PHP Fatal error: Uncaught ReflectionException: Class Symfony\Component\Form\FormTypeGuesserInterface not found in Z:\home\dev\gleb-migrator\vendor\symfony\doctrine-bridge\Form\DoctrineOrmTypeGuesser.php:25
Stack trace:
#0 Z:\home\dev\gleb-migrator\vendor\symfony\debug\DebugClassLoader.php(144): require_once('Z:\\home\\dev\\gle...')
#1 [internal function]: Symfony\Component\Debug\DebugClassLoader->loadClass('Symfony\\Bridge\\...')
#2 [internal function]: spl_autoload_call('Symfony\\Bridge\\...')
#3 Z:\home\dev\gleb-migrator\vendor\symfony\config\Resource\ClassExistenceResource.php(78): class_exists('Symfony\\Bridge\\...')
#4 Z:\home\dev\gleb-migrator\vendor\symfony\config\Resource\SelfCheckingResourceChecker.php(34): Symfony\Component\Config\Resource\ClassExistenceResource->isFresh(1502115661)
#5 Z:\home\dev\gleb-migrator\vendor\symfony\config\ResourceCheckerConfigCache.php(113): Symfony\Component\Config\Resource\SelfCheckingResourceChecker->isFresh(Object(Symfony\Component\Config\Resource\ClassExistenceResource), 1502115661)
in Z:\home\dev\gleb-migrator\vendor\symfony\doctrine-bridge\Form\DoctrineOrmTypeGuesser.php on line 25
Fatal error: Uncaught ReflectionException: Class Symfony\Component\Form\FormTypeGuesserInterface not found in Z:\home\dev\gleb-migrator\vendor\symfony\doctrine-bridge\Form\DoctrineOrmTypeGuesser.php on line 25
ReflectionException: Class Symfony\Component\Form\FormTypeGuesserInterface not found in Z:\home\dev\gleb-migrator\vendor\symfony\doctrine-bridge\Form\DoctrineOrmTypeGuesser.php on line 25
Call Stack:
0.5601 2716928 1. Symfony\Component\Debug\ErrorHandler->handleException() Z:\home\dev\gleb-migrator\vendor\symfony\debug\ErrorHandler.php:0
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="composer show
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
clue/stream-filter v1.3.0 A simple and modern approach to stream filtering in PHP
doctrine/annotations v1.5.0 Docblock Annotations Parser
doctrine/cache v1.7.0 Caching library offering an object-oriented API for many cache backends
doctrine/collections v1.5.0 Collections Abstraction library
doctrine/common v2.7.3 Common Library for Doctrine projects
doctrine/dbal v2.5.13 Database Abstraction Layer
doctrine/doctrine-bundle 1.6.8 Symfony DoctrineBundle
doctrine/doctrine-cache-bundle 1.3.0 Symfony Bundle for Doctrine Cache
doctrine/inflector v1.2.0 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator 1.0.5 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/orm v2.5.6 Object-Relational-Mapper for PHP
guzzlehttp/guzzle 6.3.0 Guzzle is a PHP HTTP client library
guzzlehttp/promises v1.3.1 Guzzle promises library
guzzlehttp/psr7 1.4.2 PSR-7 message implementation that also provides common utility methods
jdorn/sql-formatter v1.2.17 a PHP SQL highlighting library
monolog/monolog 1.23.0 Sends your logs to files, sockets, inboxes, databases and various web services
php-http/cache-plugin v1.4.0 PSR-6 Cache plugin for HTTPlug
php-http/client-common 1.5.0 Common HTTP Client implementations and tools for HTTPlug
php-http/discovery 1.3.0 Finds installed HTTPlug implementations and PSR-7 message factories
php-http/guzzle6-adapter v1.1.1 Guzzle 6 HTTP Adapter
php-http/httplug v1.1.0 HTTPlug, the HTTP client abstraction for PHP
php-http/httplug-bundle v1.7.0 Symfony integration for HTTPlug
php-http/logger-plugin v1.0.0 PSR-3 Logger plugin for HTTPlug
php-http/message 1.6.0 HTTP Message related tools
php-http/message-factory v1.0.2 Factory interfaces for PSR-7 HTTP Message
php-http/promise v1.0.0 Promise used for asynchronous HTTP requests
php-http/stopwatch-plugin 1.0.1 Symfony Stopwatch plugin for HTTPlug
psr/cache 1.0.1 Common interface for caching libraries
psr/container 1.0.0 Common Container Interface (PHP FIG PSR-11)
psr/http-message 1.0.1 Common interface for HTTP messages
psr/log 1.0.2 Common interface for logging libraries
psr/simple-cache 1.0.0 Common interfaces for simple caching
symfony/cache v3.3.6 Symfony Cache component with PSR-6, PSR-16, and tags
symfony/class-loader v3.3.6 Symfony ClassLoader Component
symfony/config v3.3.6 Symfony Config Component
symfony/console v3.3.6 Symfony Console Component
symfony/debug v3.3.6 Symfony Debug Component
symfony/dependency-injection v3.3.6 Symfony DependencyInjection Component
symfony/doctrine-bridge v3.3.6 Symfony Doctrine Bridge
symfony/dotenv v3.3.6 Registers environment variables from a .env file
symfony/event-dispatcher v3.3.6 Symfony EventDispatcher Component
symfony/filesystem v3.3.6 Symfony Filesystem Component
symfony/finder v3.3.6 Symfony Finder Component
symfony/flex v1.0.14
symfony/framework-bundle v3.3.6 Symfony FrameworkBundle
symfony/http-foundation v3.3.6 Symfony HttpFoundation Component
symfony/http-kernel v3.3.6 Symfony HttpKernel Component
symfony/monolog-bridge v3.3.6 Symfony Monolog Bridge
symfony/monolog-bundle v3.1.0 Symfony MonologBundle
symfony/options-resolver v3.3.6 Symfony OptionsResolver Component
symfony/orm-pack v1.0.0 A pack for the Doctrine ORM
symfony/polyfill-mbstring v1.4.0 Symfony polyfill for the Mbstring extension
symfony/routing v3.3.6 Symfony Routing Component
symfony/stopwatch v3.3.6 Symfony Stopwatch Component
symfony/var-dumper v3.3.6 Symfony mechanism for exploring and dumping PHP variables
symfony/yaml v3.3.6 Symfony Yaml Component
twig/twig v2.4.3 Twig, the flexible, fast, and secure template language for PHP"><pre class="notranslate"><code class="notranslate">composer show
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
clue/stream-filter v1.3.0 A simple and modern approach to stream filtering in PHP
doctrine/annotations v1.5.0 Docblock Annotations Parser
doctrine/cache v1.7.0 Caching library offering an object-oriented API for many cache backends
doctrine/collections v1.5.0 Collections Abstraction library
doctrine/common v2.7.3 Common Library for Doctrine projects
doctrine/dbal v2.5.13 Database Abstraction Layer
doctrine/doctrine-bundle 1.6.8 Symfony DoctrineBundle
doctrine/doctrine-cache-bundle 1.3.0 Symfony Bundle for Doctrine Cache
doctrine/inflector v1.2.0 Common String Manipulations with regard to casing and singular/plural rules.
doctrine/instantiator 1.0.5 A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer v1.0.1 Base library for a lexer that can be used in Top-Down, Recursive Descent Parsers.
doctrine/orm v2.5.6 Object-Relational-Mapper for PHP
guzzlehttp/guzzle 6.3.0 Guzzle is a PHP HTTP client library
guzzlehttp/promises v1.3.1 Guzzle promises library
guzzlehttp/psr7 1.4.2 PSR-7 message implementation that also provides common utility methods
jdorn/sql-formatter v1.2.17 a PHP SQL highlighting library
monolog/monolog 1.23.0 Sends your logs to files, sockets, inboxes, databases and various web services
php-http/cache-plugin v1.4.0 PSR-6 Cache plugin for HTTPlug
php-http/client-common 1.5.0 Common HTTP Client implementations and tools for HTTPlug
php-http/discovery 1.3.0 Finds installed HTTPlug implementations and PSR-7 message factories
php-http/guzzle6-adapter v1.1.1 Guzzle 6 HTTP Adapter
php-http/httplug v1.1.0 HTTPlug, the HTTP client abstraction for PHP
php-http/httplug-bundle v1.7.0 Symfony integration for HTTPlug
php-http/logger-plugin v1.0.0 PSR-3 Logger plugin for HTTPlug
php-http/message 1.6.0 HTTP Message related tools
php-http/message-factory v1.0.2 Factory interfaces for PSR-7 HTTP Message
php-http/promise v1.0.0 Promise used for asynchronous HTTP requests
php-http/stopwatch-plugin 1.0.1 Symfony Stopwatch plugin for HTTPlug
psr/cache 1.0.1 Common interface for caching libraries
psr/container 1.0.0 Common Container Interface (PHP FIG PSR-11)
psr/http-message 1.0.1 Common interface for HTTP messages
psr/log 1.0.2 Common interface for logging libraries
psr/simple-cache 1.0.0 Common interfaces for simple caching
symfony/cache v3.3.6 Symfony Cache component with PSR-6, PSR-16, and tags
symfony/class-loader v3.3.6 Symfony ClassLoader Component
symfony/config v3.3.6 Symfony Config Component
symfony/console v3.3.6 Symfony Console Component
symfony/debug v3.3.6 Symfony Debug Component
symfony/dependency-injection v3.3.6 Symfony DependencyInjection Component
symfony/doctrine-bridge v3.3.6 Symfony Doctrine Bridge
symfony/dotenv v3.3.6 Registers environment variables from a .env file
symfony/event-dispatcher v3.3.6 Symfony EventDispatcher Component
symfony/filesystem v3.3.6 Symfony Filesystem Component
symfony/finder v3.3.6 Symfony Finder Component
symfony/flex v1.0.14
symfony/framework-bundle v3.3.6 Symfony FrameworkBundle
symfony/http-foundation v3.3.6 Symfony HttpFoundation Component
symfony/http-kernel v3.3.6 Symfony HttpKernel Component
symfony/monolog-bridge v3.3.6 Symfony Monolog Bridge
symfony/monolog-bundle v3.1.0 Symfony MonologBundle
symfony/options-resolver v3.3.6 Symfony OptionsResolver Component
symfony/orm-pack v1.0.0 A pack for the Doctrine ORM
symfony/polyfill-mbstring v1.4.0 Symfony polyfill for the Mbstring extension
symfony/routing v3.3.6 Symfony Routing Component
symfony/stopwatch v3.3.6 Symfony Stopwatch Component
symfony/var-dumper v3.3.6 Symfony mechanism for exploring and dumping PHP variables
symfony/yaml v3.3.6 Symfony Yaml Component
twig/twig v2.4.3 Twig, the flexible, fast, and secure template language for PHP
</code></pre></div> | 1 |
<p dir="auto">They look disconnected, detached.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/459ba91e9c313a194e58e6da2707da528e7ff44cece2179aae90a0f0203a26bb/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313530353337322f323035393932332f30336138313130382d386265382d313165332d386336612d6634626364343730313934382e706e67"><img src="https://camo.githubusercontent.com/459ba91e9c313a194e58e6da2707da528e7ff44cece2179aae90a0f0203a26bb/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313530353337322f323035393932332f30336138313130382d386265382d313165332d386336612d6634626364343730313934382e706e67" alt="bs3-tooltips-disrupted" data-canonical-src="https://f.cloud.github.com/assets/1505372/2059923/03a81108-8be8-11e3-8c6a-f4bcd4701948.png" style="max-width: 100%;"></a><br>
Scenario: Settings -> Web content -> Page zoom: 150%</p> | <p dir="auto">Chrome for Mac. Taken from the docs.</p>
<p dir="auto">To repro:</p>
<ol dir="auto">
<li>Zoom at 90%. (ctrl + <code class="notranslate">-</code>)</li>
<li>Notice the tooltip arrow has this line of whitespace.</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/93eb174dea23b026bfdf6cef14edbda779f157d8875daf4b673b275af14a3c98/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3733313734332f3936333734382f62366363623335652d303530382d313165332d393265392d3865643261376638383863622e706e67"><img src="https://camo.githubusercontent.com/93eb174dea23b026bfdf6cef14edbda779f157d8875daf4b673b275af14a3c98/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3733313734332f3936333734382f62366363623335652d303530382d313165332d393265392d3865643261376638383863622e706e67" alt="screen shot 2013-08-14 at 18 41 06" data-canonical-src="https://f.cloud.github.com/assets/731743/963748/b6ccb35e-0508-11e3-92e9-8ed2a7f888cb.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">While <a href="https://github.com/pytorch/pytorch/issues/7484" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/7484/hovercard">7494</a> and <a href="https://github.com/pytorch/pytorch/issues/906" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/906/hovercard">906</a> both describe behaviors that might surprise, it seems to be the ones expected.</p>
<p dir="auto">However this really looks like a bug to me, if not, I'm really curious of an explanation:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> import torch
>>> a = torch.arange(20)
>>> a[1:].sub(a[:-1]) # Achieve the same thing as numpy.diff
tensor([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
>>> a[1:].sub_(a[:-1])
tensor([ 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 16, 2, 17])"><pre class="notranslate"><code class="notranslate">>>> import torch
>>> a = torch.arange(20)
>>> a[1:].sub(a[:-1]) # Achieve the same thing as numpy.diff
tensor([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])
>>> a[1:].sub_(a[:-1])
tensor([ 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 1, 1, 1, 1, 1, 1, 16, 2, 17])
</code></pre></div> | <p dir="auto">Sometimes an in-place division where the denominator comes from the same tensor will yield unpredictable results. For example, if you want an array that counts from 0 to 100 in each of 50 rows, but actually you want to normalize to the range [0..1], it seems natural to write:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch
c = torch.arange(101)[None,:].repeat(50, 1)
c /= c[:,100:]
print(c.max())"><pre class="notranslate"><code class="notranslate">import torch
c = torch.arange(101)[None,:].repeat(50, 1)
c /= c[:,100:]
print(c.max())
</code></pre></div>
<p dir="auto">However, running this on CPU repeatedly will produce an unpredictable max, e.g., 82, 95, 87, etc, rather than the expected 1.0.</p>
<p dir="auto">This operation appears to be reliable on numpy, and for many array shapes it also works fine in pytorch. But it fails on certain sizes, leading to oddly rare and difficult-to-find bugs.</p>
<p dir="auto">Should <code class="notranslate">c /= c[:,-1:]</code> be reliable? If not, would it be reasonable to warn on such operations?</p> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li 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">Electron Version</h3>
<p dir="auto">12.0.5</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">Ubuntu</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">Ubuntu 21.04 x86_64 5.11.0-16-generic</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Having a transparency background.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Black background instead.</p>
<h3 dir="auto">Testcase Gist URL</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">This might be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="387241744" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/15947" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/15947/hovercard" href="https://github.com/electron/electron/issues/15947">#15947</a>, but the issue is closed by the bot saying the version reported is not longer supported. I use the latest version, 12.0.5 and this issue still exists tho...</p> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong> 7.1.1
<ul dir="auto">
<li>
</li>
</ul>
</li>
<li><strong>Operating System:</strong> Win 10
<ul dir="auto">
<li>
</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong> Dunno
<ul dir="auto">
<li>
</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">The current detected width should be consistent.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">It isn't.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">I don't have reproducible steps, but just fidgeting with <code class="notranslate">setMinimumSize</code> and resizing the window may work.</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">This is what I'm seeing:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1812093/68557803-d7938f00-042e-11ea-8855-10dbae23dd20.png"><img width="885" alt="Screen Shot 2019-11-11 at 02 54 11" src="https://user-images.githubusercontent.com/1812093/68557803-d7938f00-042e-11ea-8855-10dbae23dd20.png" style="max-width: 100%;"></a></p>
<p dir="auto">You can see how the current width is lower than the current minimum width, I can resize the window to that dimension manually.</p>
<p dir="auto">Also, crucially, when resizing the window manually the top-right corner thing that tells you the size of the window thinks that it's only 694px wide, so it seems like different parts of the app compute different dimensions for the same window.</p>
<p dir="auto">Ps. I don't know what's about that transparent rectangle there, I think it's just Windows being Windows.</p> | 0 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.3.1</li>
<li>Operating System / Platform => High Siera</li>
<li>Compiler => make</li>
</ul>
<p dir="auto">COMMAND:</p>
<ol dir="auto">
<li>
<p dir="auto">cmake -DOPENCV_EXTRA_MODULES_PATH=/Users/....../Desktop/opencv_contrib-master/modules -DBUILD_opencv_aruco=OFF -DBUILD_opencv_bgsegm=OFF -DBUILD_opencv_bioinspired=OFF -DBUILD_opencv_ccalib=OFF -DBUILD_opencv_cnn_3dobj=OFF -DBUILD_opencv_cvv=OFF -DBUILD_opencv_datasets=OFF -DBUILD_opencv_dnn_modern=OFF -DBUILD_opencv_dnns_easily_fooled=OFF -DBUILD_opencv_dpm=OFF -DBUILD_opencv_face=OFF -DBUILD_opencv_fuzzy=OFF -DBUILD_opencv_freetype=OFF -DBUILD_opencv_hdf=OFF -DBUILD_opencv_img_hash=OFF -DBUILD_opencv_line_descriptor=OFF -DBUILD_opencv_matlab=OFF -DBUILD_opencv_optflow=OFF -DBUILD_opencv_ovis=OFF -DBUILD_opencv_phase_unwrapping=OFF -DBUILD_opencv_plot=OFF -DBUILD_opencv_reg=OFF -DBUILD_opencv_rgbd=OFF -DBUILD_opencv_saliency=OFF -DBUILD_opencv_sfm=OFF -DBUILD_opencv_stereo=OFF -DBUILD_opencv_structured_light=OFF -DBUILD_opencv_surface_matching=OFF -DBUILD_opencv_text=OFF -DBUILD_opencv_tracking=OFF -DBUILD_opencv_xfeatures2d=OFF -DBUILD_opencv_xobjdetect=OFF -DBUILD_opencv_xphoto=OFF ..</p>
</li>
<li>
<p dir="auto">make -j5</p>
</li>
</ol>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Scanning dependencies of target gen-pkgconfig<br>
Scanning dependencies of target zlib<br>
Scanning dependencies of target libjpeg<br>
Scanning dependencies of target libjasper<br>
Scanning dependencies of target libwebp<br>
[ 0%] Generate opencv.pc<br>
[ 0%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/adler32.c.o<br>
[ 0%] Built target gen-pkgconfig<br>
Scanning dependencies of target ippiw<br>
[ 0%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jaricom.c.o<br>
[ 0%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_cm.c.o<br>
[ 0%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_core.c.o<br>
[ 0%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcapimin.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/alpha_dec.c.o<br>
[ 1%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcapistd.c.o<br>
[ 1%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image.c.o<br>
[ 2%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/compress.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/buffer_dec.c.o<br>
[ 2%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcarith.c.o<br>
[ 2%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/crc32.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/frame_dec.c.o<br>
[ 2%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/deflate.c.o<br>
[ 2%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jccoefct.c.o<br>
[ 2%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_color_convert_all.c.o<br>
[ 2%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_debug.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/idec_dec.c.o<br>
[ 2%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jccolor.c.o<br>
[ 2%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_getopt.c.o<br>
[ 2%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_color_convert_rgbs.c.o<br>
/Users/filippocicirelli/Desktop/opencv-3.3.1/3rdparty/libjasper/jas_getopt.c:129:25: warning:<br>
this function declaration is not a prototype [-Wstrict-prototypes]<br>
jas_eprintf("unknown long option %s\n", s);<br>
^<br>
1 warning generated.<br>
[ 2%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_icc.c.o<br>
[ 2%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcdctmgr.c.o<br>
[ 2%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_bilateral.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/io_dec.c.o<br>
[ 3%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jchuff.c.o<br>
[ 3%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_box.c.o<br>
[ 3%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzclose.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/quant_dec.c.o<br>
[ 3%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_canny.c.o<br>
[ 3%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzlib.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/tree_dec.c.o<br>
[ 3%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_gaussian.c.o<br>
[ 3%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzread.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/vp8_dec.c.o<br>
[ 3%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_general.c.o<br>
[ 3%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/gzwrite.c.o<br>
[ 3%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_laplacian.c.o<br>
[ 3%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inflate.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/vp8l_dec.c.o<br>
[ 3%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_morphology.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_scharr.c.o<br>
[ 4%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcinit.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_sobel.c.o<br>
[ 4%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcmainct.c.o<br>
[ 4%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcmarker.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy.c.o<br>
[ 4%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_iccdata.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy_channel.c.o<br>
[ 4%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_image.c.o<br>
[ 4%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/infback.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy_make_border.c.o<br>
[ 4%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcmaster.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dec/webp_dec.c.o<br>
[ 4%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inftrees.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy_merge.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/demux/anim_decode.c.o<br>
[ 4%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcomapi.c.o<br>
[ 4%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/inffast.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy_split.c.o<br>
[ 4%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcparam.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/demux/demux.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_scale.c.o<br>
[ 4%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_init.c.o<br>
[ 4%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/trees.c.o<br>
[ 4%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_malloc.c.o<br>
[ 4%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcprepct.c.o<br>
[ 4%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_set.c.o<br>
[ 4%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_seq.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/alpha_processing.c.o<br>
[ 4%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jcsample.c.o<br>
[ 5%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_stream.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/alpha_processing_mips_dsp_r2.c.o<br>
[ 5%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_set_channel.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/alpha_processing_neon.c.o<br>
[ 5%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jctrans.c.o<br>
[ 5%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/uncompr.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/alpha_processing_sse2.c.o<br>
[ 5%] Building C object 3rdparty/zlib/CMakeFiles/zlib.dir/zutil.c.o<br>
[ 5%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_swap_channels.c.o<br>
[ 6%] Linking C static library ../lib/libzlib.a<br>
[ 7%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdapimin.c.o<br>
[ 7%] Built target zlib<br>
[ 7%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_transform_mirror.c.o<br>
Scanning dependencies of target ittnotify<br>
[ 7%] Building C object 3rdparty/ittnotify/CMakeFiles/ittnotify.dir/src/ittnotify/ittnotify_static.c.o<br>
[ 7%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdapistd.c.o<br>
[ 7%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_string.c.o<br>
[ 7%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_transform_resize.c.o<br>
[ 7%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdarith.c.o<br>
[ 7%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_tmr.c.o<br>
[ 7%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/alpha_processing_sse41.c.o<br>
[ 7%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_tvp.c.o<br>
[ 7%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/argb.c.o<br>
[ 7%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_transform_rotate.c.o<br>
[ 7%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jas_version.c.o<br>
[ 7%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdatadst.c.o<br>
[ 7%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jp2_cod.c.o<br>
[ 7%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/argb_mips_dsp_r2.c.o<br>
[ 8%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_transform_warpaffine.c.o<br>
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/argb_sse2.c.o<br>
[ 9%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdatasrc.c.o<br>
[ 9%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdcoefct.c.o<br>
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/cost.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_own.c.o<br>
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/cost_mips32.c.o<br>
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/cost_mips_dsp_r2.c.o<br>
[ 9%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdcolor.c.o<br>
[ 9%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jp2_dec.c.o<br>
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/cost_sse2.c.o<br>
[ 9%] Linking C static library ../lib/libippiw.a<br>
[ 9%] Building C object 3rdparty/ittnotify/CMakeFiles/ittnotify.dir/src/ittnotify/jitprofiling.c.o<br>
[ 9%] Built target ippiw<br>
Scanning dependencies of target libprotobuf<br>
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/cpu.c.o<br>
[ 9%] Linking C static library ../lib/libittnotify.a<br>
[ 9%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec.c.o<br>
[ 9%] Built target ittnotify<br>
Scanning dependencies of target libtiff<br>
[ 9%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jp2_enc.c.o<br>
[ 9%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jddctmgr.c.o<br>
[ 10%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_aux.c.o<br>
[ 10%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_bs.c.o<br>
[ 10%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdhuff.c.o<br>
[ 10%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_close.c.o<br>
[ 10%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_cs.c.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o<br>
[ 10%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_codec.c.o<br>
[ 10%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_color.c.o<br>
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_clip_tables.c.o<br>
[ 10%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_compress.c.o<br>
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_mips32.c.o<br>
[ 10%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdinput.c.o<br>
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_mips_dsp_r2.c.o<br>
[ 10%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dir.c.o<br>
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_msa.c.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arenastring.cc.o<br>
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_neon.c.o<br>
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_sse2.c.o<br>
[ 10%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdmainct.c.o<br>
[ 10%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_dec.c.o<br>
[ 10%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdmarker.c.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set.cc.o<br>
[ 10%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dirinfo.c.o<br>
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/dec_sse41.c.o<br>
[ 10%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc.c.o<br>
[ 10%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dirread.c.o<br>
[ 10%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdmaster.c.o<br>
[ 10%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdmerge.c.o<br>
[ 10%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdpostct.c.o<br>
[ 10%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_enc.c.o<br>
[ 11%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdsample.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_avx2.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_mips32.c.o<br>
[ 12%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jdtrans.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_mips_dsp_r2.c.o<br>
[ 12%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jerror.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_msa.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_neon.c.o<br>
[ 12%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jfdctflt.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_sse2.c.o<br>
[ 12%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jfdctfst.c.o<br>
[ 12%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jfdctint.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/enc_sse41.c.o<br>
[ 12%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dirwrite.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/filters.c.o<br>
[ 12%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_math.c.o<br>
[ 12%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_mct.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/filters_mips_dsp_r2.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/filters_msa.c.o<br>
[ 12%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_mqcod.c.o<br>
[ 12%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/filters_neon.c.o<br>
[ 13%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_mqdec.c.o<br>
[ 13%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/filters_sse2.c.o<br>
[ 13%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_mqenc.c.o<br>
[ 13%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jidctflt.c.o<br>
[ 13%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_qmfb.c.o<br>
[ 13%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jidctfst.c.o<br>
[ 13%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless.c.o<br>
[ 13%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_dumpmode.c.o<br>
[ 13%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jidctint.c.o<br>
[ 13%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_error.c.o<br>
[ 13%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_extension.c.o<br>
[ 13%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_fax3.c.o<br>
[ 13%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_enc.c.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_util.cc.o<br>
[ 14%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_enc_mips32.c.o<br>
[ 14%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_enc_mips_dsp_r2.c.o<br>
[ 14%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/coded_stream.cc.o<br>
[ 14%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_enc_msa.c.o<br>
[ 14%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_enc_neon.c.o<br>
[ 14%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_fax3sm.c.o<br>
[ 14%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_enc_sse2.c.o<br>
[ 14%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_flush.c.o<br>
[ 15%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_getimage.c.o<br>
[ 15%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jmemmgr.c.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_enc_sse41.c.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_mips_dsp_r2.c.o<br>
[ 15%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream.cc.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_msa.c.o<br>
[ 15%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jmemnobs.c.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_neon.c.o<br>
[ 15%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jquant1.c.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/lossless_sse2.c.o<br>
[ 15%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o<br>
[ 15%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jquant2.c.o<br>
[ 15%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_t1cod.c.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/rescaler.c.o<br>
[ 15%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_t1dec.c.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/rescaler_mips32.c.o<br>
/Users/filippocicirelli/Desktop/opencv-3.3.1/3rdparty/libjasper/jpc_t1dec.c:243:21: warning:<br>
this function declaration is not a prototype [-Wstrict-prototypes]<br>
jas_eprintf("warning: corrupt code stream\n");<br>
^<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/rescaler_mips_dsp_r2.c.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/rescaler_msa.c.o<br>
[ 15%] Building C object 3rdparty/libjpeg/CMakeFiles/libjpeg.dir/jutils.c.o<br>
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/rescaler_neon.c.o<br>
[ 15%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.o<br>
[ 16%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/rescaler_sse2.c.o<br>
[ 17%] Linking C static library ../lib/liblibjpeg.a<br>
[ 17%] Built target libjpeg<br>
Scanning dependencies of target libpng<br>
[ 17%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/png.c.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/upsampling.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jbig.c.o<br>
[ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/repeated_field.cc.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg_12.c.o<br>
1 warning generated.<br>
[ 17%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_t1enc.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_jpeg.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_luv.c.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/upsampling_mips_dsp_r2.c.o<br>
[ 17%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngerror.c.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/upsampling_msa.c.o<br>
[ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/upsampling_neon.c.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/upsampling_sse2.c.o<br>
[ 17%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngget.c.o<br>
[ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/bytestream.cc.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzma.c.o<br>
[ 17%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngmem.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_lzw.c.o<br>
[ 17%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngpread.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_next.c.o<br>
[ 17%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_t2cod.c.o<br>
[ 17%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngread.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_ojpeg.c.o<br>
[ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/common.cc.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_open.c.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/yuv.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_packbits.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_pixarlog.c.o<br>
[ 17%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_t2dec.c.o<br>
[ 17%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_t2enc.c.o<br>
[ 17%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngrio.c.o<br>
[ 17%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngrtran.c.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/yuv_mips32.c.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/yuv_mips_dsp_r2.c.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/dsp/yuv_sse2.c.o<br>
[ 17%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_tagtree.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_predict.c.o<br>
[ 17%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_tsfb.c.o<br>
/Users/filippocicirelli/Desktop/opencv-3.3.1/3rdparty/libjasper/jpc_tsfb.c:124:34: warning:<br>
this function declaration is not a prototype [-Wstrict-prototypes]<br>
return (tsfb->numlvls > 0) ? jpc_tsfb_analyze2(tsfb, jas_seq2d_getref(a,<br>
^<br>
/Users/filippocicirelli/Desktop/opencv-3.3.1/3rdparty/libjasper/jpc_tsfb.c:151:34: warning:<br>
this function declaration is not a prototype [-Wstrict-prototypes]<br>
return (tsfb->numlvls > 0) ? jpc_tsfb_synthesize2(tsfb,<br>
^<br>
2 warnings generated.<br>
[ 17%] Building C object 3rdparty/libjasper/CMakeFiles/libjasper.dir/jpc_util.c.o<br>
[ 17%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/int128.cc.o<br>
[ 17%] Linking C static library ../lib/liblibjasper.a<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_print.c.o<br>
[ 17%] Built target libjasper<br>
Scanning dependencies of target IlmImf<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/alpha_enc.c.o<br>
[ 17%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_read.c.o<br>
[ 17%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Half/half.cpp.o<br>
[ 17%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/analysis_enc.c.o<br>
[ 18%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_strip.c.o<br>
[ 18%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_swab.c.o<br>
[ 18%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/backward_references_enc.c.o<br>
[ 18%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_thunder.c.o<br>
[ 18%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_tile.c.o<br>
[ 18%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_version.c.o<br>
[ 19%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/once.cc.o<br>
[ 19%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_warning.c.o<br>
[ 19%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_write.c.o<br>
[ 19%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_zip.c.o<br>
[ 19%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/status.cc.o<br>
[ 19%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngrutil.c.o<br>
[ 19%] Building CXX object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_stream.cxx.o<br>
[ 19%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Iex/IexBaseExc.cpp.o<br>
[ 19%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/statusor.cc.o<br>
[ 19%] Building C object 3rdparty/libtiff/CMakeFiles/libtiff.dir/tif_unix.c.o<br>
[ 19%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/config_enc.c.o<br>
[ 19%] Linking CXX static library ../lib/liblibtiff.a<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_jbig.c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_jpeg_12.c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_jpeg.c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_lzma.c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_ojpeg.c.o) has no symbols<br>
[ 19%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/cost_enc.c.o<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_jbig.c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_jpeg_12.c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_jpeg.c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_lzma.c.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibtiff.a(tif_ojpeg.c.o) has no symbols<br>
[ 19%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngset.c.o<br>
[ 19%] Built target libtiff<br>
[ 19%] Processing OpenCL kernels (core)<br>
[ 19%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Iex/IexThrowErrnoExc.cpp.o<br>
Scanning dependencies of target opencv_core<br>
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/delta_palettization_enc.c.o<br>
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/filter_enc.c.o<br>
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/stringpiece.cc.o<br>
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/frame_enc.c.o<br>
[ 20%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngtrans.c.o<br>
[ 20%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngwio.c.o<br>
[ 20%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngwrite.c.o<br>
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/histogram_enc.c.o<br>
[ 20%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/stringprintf.cc.o<br>
[ 20%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngwtran.c.o<br>
[ 20%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/iterator_enc.c.o<br>
[ 20%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThread.cpp.o<br>
[ 20%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadMutex.cpp.o<br>
[ 21%] Building C object 3rdparty/libpng/CMakeFiles/libpng.dir/pngwutil.c.o<br>
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadMutexPosix.cpp.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/near_lossless_enc.c.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/picture_csp_enc.c.o<br>
[ 21%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/structurally_valid.cc.o<br>
[ 21%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o<br>
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadPool.cpp.o<br>
[ 21%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/strutil.cc.o<br>
[ 21%] Linking C static library ../lib/liblibpng.a<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/picture_enc.c.o<br>
[ 21%] Built target libpng<br>
[ 21%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/picture_psnr_enc.c.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/picture_rescale_enc.c.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/picture_tools_enc.c.o<br>
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadPosix.cpp.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/predictor_enc.c.o<br>
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphore.cpp.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/quant_enc.c.o<br>
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphorePosix.cpp.o<br>
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphorePosixCompat.cpp.o<br>
[ 21%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/time.cc.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/syntax_enc.c.o<br>
[ 21%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathColorAlgo.cpp.o<br>
[ 21%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o<br>
[ 21%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/token_enc.c.o<br>
[ 22%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/tree_enc.c.o<br>
[ 22%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/vp8l_enc.c.o<br>
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathFun.cpp.o<br>
[ 22%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format_lite.cc.o<br>
[ 22%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o<br>
[ 22%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathMatrixAlgo.cpp.o<br>
[ 22%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/enc/webp_enc.c.o<br>
[ 22%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/mux/anim_encode.c.o<br>
[ 22%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.cc.o<br>
[ 22%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/mux/muxedit.c.o<br>
[ 22%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/mux/muxinternal.c.o<br>
[ 22%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.pb.cc.o<br>
[ 22%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/mux/muxread.c.o<br>
[ 22%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/bit_reader_utils.c.o<br>
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathRandom.cpp.o<br>
[ 23%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/bit_writer_utils.c.o<br>
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathVec.cpp.o<br>
[ 23%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/color_cache_utils.c.o<br>
[ 23%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/filters_utils.c.o<br>
[ 23%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/huffman_encode_utils.c.o<br>
[ 23%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/huffman_utils.c.o<br>
[ 23%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/api.pb.cc.o<br>
[ 23%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/quant_levels_dec_utils.c.o<br>
[ 23%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/quant_levels_utils.c.o<br>
[ 23%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfAcesFile.cpp.o<br>
[ 24%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/random_utils.c.o<br>
[ 24%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/rescaler_utils.c.o<br>
[ 24%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/thread_utils.c.o<br>
[ 24%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/utils/utils.c.o<br>
[ 24%] Linking C static library ../lib/liblibwebp.a<br>
[ 24%] Built target libwebp<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/command_line_parser.cpp.o<br>
[ 24%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.cc.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfAttribute.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/conjugate_gradient.cpp.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfB44Compressor.cpp.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfBoxAttribute.cpp.o<br>
[ 24%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.pb.cc.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCRgbaFile.cpp.o<br>
[ 24%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor_database.cc.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChannelList.cpp.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChannelListAttribute.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.cpp.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChromaticities.cpp.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChromaticitiesAttribute.cpp.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCompressionAttribute.cpp.o<br>
[ 24%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCompressor.cpp.o<br>
[ 25%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/duration.pb.cc.o<br>
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfConvert.cpp.o<br>
[ 25%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfDoubleAttribute.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/copy.cpp.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfEnvmap.cpp.o<br>
[ 27%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_gpu_mat.cpp.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfEnvmapAttribute.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/dynamic_message.cc.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFloatAttribute.cpp.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFrameBuffer.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/empty.pb.cc.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFramesPerSecond.cpp.o<br>
[ 27%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_host_mem.cpp.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfHeader.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set_heavy.cc.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfHuf.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/field_mask.pb.cc.o<br>
[ 27%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_info.cpp.o<br>
[ 27%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_stream.cpp.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfIO.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_reflection.cc.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfInputFile.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/gzip_stream.cc.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfIntAttribute.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/printer.cc.o<br>
[ 27%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/datastructs.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/strtod.cc.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfKeyCode.cpp.o<br>
[ 27%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/directx.cpp.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfKeyCodeAttribute.cpp.o<br>
[ 27%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/downhill_simplex.cpp.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfLineOrderAttribute.cpp.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfLut.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/tokenizer.cc.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl.cc.o<br>
[ 27%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMatrixAttribute.cpp.o<br>
[ 27%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/dxt.cpp.o<br>
[ 27%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/map_field.cc.o<br>
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMisc.cpp.o<br>
[ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message.cc.o<br>
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMultiView.cpp.o<br>
[ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/reflection_ops.cc.o<br>
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfOpaqueAttribute.cpp.o<br>
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfOutputFile.cpp.o<br>
[ 28%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/gl_core_3_1.cpp.o<br>
[ 28%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPizCompressor.cpp.o<br>
[ 28%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/service.cc.o<br>
[ 29%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/source_context.pb.cc.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPreviewImage.cpp.o<br>
[ 29%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/glob.cpp.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPreviewImageAttribute.cpp.o<br>
[ 29%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/struct.pb.cc.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPxr24Compressor.cpp.o<br>
[ 29%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/mathlimits.cc.o<br>
[ 29%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRational.cpp.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRationalAttribute.cpp.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRgbaFile.cpp.o<br>
[ 29%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/substitute.cc.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRgbaYca.cpp.o<br>
[ 29%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/kmeans.cpp.o<br>
[ 29%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/text_format.cc.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRleCompressor.cpp.o<br>
[ 29%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfScanLineInputFile.cpp.o<br>
[ 29%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o<br>
[ 29%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/type.pb.cc.o<br>
[ 29%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStandardAttributes.cpp.o<br>
[ 29%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lda.cpp.o<br>
[ 30%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStdIO.cpp.o<br>
[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStringAttribute.cpp.o<br>
[ 31%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/unknown_field_set.cc.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStringVectorAttribute.cpp.o<br>
[ 31%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_comparator.cc.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTestFile.cpp.o<br>
[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs.cpp.o<br>
[ 31%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_mask_util.cc.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfThreading.cpp.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTileDescriptionAttribute.cpp.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTileOffsets.cpp.o<br>
[ 31%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/datapiece.cc.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledInputFile.cpp.o<br>
[ 31%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/default_value_objectwriter.cc.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledMisc.cpp.o<br>
[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs_core.dispatch.cpp.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledOutputFile.cpp.o<br>
[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.o<br>
[ 31%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/field_mask_utility.cc.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledRgbaFile.cpp.o<br>
[ 31%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_escaping.cc.o<br>
[ 31%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTimeCode.cpp.o<br>
[ 31%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_objectwriter.cc.o<br>
[ 31%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matop.cpp.o<br>
[ 32%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_stream_parser.cc.o<br>
[ 32%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTimeCodeAttribute.cpp.o<br>
[ 32%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix.cpp.o<br>
[ 32%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfVecAttribute.cpp.o<br>
[ 32%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfVersion.cpp.o<br>
[ 32%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/object_writer.cc.o<br>
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfWav.cpp.o<br>
[ 33%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfZipCompressor.cpp.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/proto_writer.cc.o<br>
[ 33%] Linking CXX static library ../lib/libIlmImf.a<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libIlmImf.a(IlmThread.cpp.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libIlmImf.a(IlmThreadMutex.cpp.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libIlmImf.a(IlmThreadSemaphore.cpp.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libIlmImf.a(IlmThreadSemaphorePosix.cpp.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libIlmImf.a(IlmThread.cpp.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libIlmImf.a(IlmThreadMutex.cpp.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libIlmImf.a(IlmThreadSemaphore.cpp.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/libIlmImf.a(IlmThreadSemaphorePosix.cpp.o) has no symbols<br>
[ 33%] Built target IlmImf<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_decomp.cpp.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectsource.cc.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectwriter.cc.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/type_info.cc.o<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.o<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/utility.cc.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/json_util.cc.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/message_differencer.cc.o<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdblas.cpp.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/time_util.cc.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/type_resolver_util.cc.o<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdfft.cpp.o<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_core.cpp.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format.cc.o<br>
[ 33%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wrappers.pb.cc.o<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opengl.cpp.o<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/out.cpp.o<br>
[ 33%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ovx.cpp.o<br>
[ 33%] Linking CXX static library ../lib/liblibprotobuf.a<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(atomicops_internals_x86_gcc.cc.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(gzip_stream.cc.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(atomicops_internals_x86_gcc.cc.o) has no symbols<br>
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: ../lib/liblibprotobuf.a(gzip_stream.cc.o) has no symbols<br>
[ 33%] Built target libprotobuf<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel_pthreads.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/pca.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/rand.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/softfloat.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/split.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.dispatch.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stl.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/trace.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.o<br>
[ 34%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/va_intel.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.sse2.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.sse4_1.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/stat.sse4_2.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.fp16.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.avx2.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx2.cpp.o<br>
[ 35%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/stat.avx2.cpp.o<br>
[ 35%] Linking CXX shared library ../../lib/libopencv_core.dylib<br>
[ 35%] Built target opencv_core<br>
[ 35%] Processing OpenCL kernels (imgproc)<br>
Scanning dependencies of target opencv_flann<br>
Scanning dependencies of target opencv_ml<br>
[ 35%] Building CXX object modules/flann/CMakeFiles/opencv_flann.dir/src/flann.cpp.o<br>
[ 35%] Building CXX object modules/flann/CMakeFiles/opencv_flann.dir/src/miniflann.cpp.o<br>
Scanning dependencies of target opencv_imgproc<br>
[ 35%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/ann_mlp.cpp.o<br>
[ 35%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/boost.cpp.o<br>
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.cpp.o<br>
[ 36%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/data.cpp.o<br>
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.dispatch.cpp.o<br>
[ 36%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/em.cpp.o<br>
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/approx.cpp.o<br>
[ 36%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/gbt.cpp.o<br>
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/blend.cpp.o<br>
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/canny.cpp.o<br>
[ 36%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/clahe.cpp.o<br>
[ 36%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/inner_functions.cpp.o<br>
[ 36%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/kdtree.cpp.o<br>
[ 37%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/knearest.cpp.o<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color.cpp.o<br>
[ 37%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/lr.cpp.o<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/colormap.cpp.o<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/connectedcomponents.cpp.o<br>
[ 37%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/nbayes.cpp.o<br>
[ 37%] Linking CXX shared library ../../lib/libopencv_flann.dylib<br>
[ 37%] Built target opencv_flann<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/contours.cpp.o<br>
[ 37%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/rtrees.cpp.o<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/convhull.cpp.o<br>
[ 37%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/svm.cpp.o<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/corner.cpp.o<br>
[ 37%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/svmsgd.cpp.o<br>
[ 37%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/testset.cpp.o<br>
[ 37%] Building CXX object modules/ml/CMakeFiles/opencv_ml.dir/src/tree.cpp.o<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/cornersubpix.cpp.o<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/demosaicing.cpp.o<br>
[ 37%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/deriv.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/distransform.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/drawing.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/emd.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featureselect.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.cpp.o<br>
[ 38%] Linking CXX shared library ../../lib/libopencv_ml.dylib<br>
[ 38%] Built target opencv_ml<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/floodfill.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/gabor.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/generalized_hough.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/geometry.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/grabcut.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hershey_fonts.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/histogram.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hough.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o<br>
[ 38%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/intersection.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/linefit.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/lsd.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/main.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/matchcontours.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/min_enclosing_triangle.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/moments.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/morph.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/phasecorr.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/pyramids.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/rotcalipers.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/samplers.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/segmentation.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/shapedescr.cpp.o<br>
[ 39%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/smooth.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/spatialgradient.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/subdivision2d.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/sumpixels.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/tables.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/templmatch.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/thresh.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/undistort.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/utils.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/opencl_kernels_imgproc.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/accum.sse2.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.sse4_1.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.sse4_1.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/corner.avx.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/accum.avx.cpp.o<br>
[ 40%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.avx2.cpp.o<br>
[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.avx2.cpp.o<br>
[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.avx2.cpp.o<br>
[ 41%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/undistort.avx2.cpp.o<br>
[ 41%] Linking CXX shared library ../../lib/libopencv_imgproc.dylib<br>
[ 41%] Built target opencv_imgproc<br>
[ 41%] Processing OpenCL kernels (objdetect)<br>
[ 41%] Processing OpenCL kernels (photo)<br>
Scanning dependencies of target opencv_imgcodecs<br>
[ 41%] Processing OpenCL kernels (video)<br>
[ 41%] Processing OpenCL kernels (dnn)<br>
Scanning dependencies of target opencv_photo<br>
Scanning dependencies of target opencv_objdetect<br>
Scanning dependencies of target opencv_video<br>
Scanning dependencies of target opencv_dnn<br>
[ 41%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/cascadedetect.cpp.o<br>
[ 41%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_KNN.cpp.o<br>
[ 41%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/align.cpp.o<br>
[ 41%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/loadsave.cpp.o<br>
[ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/attr_value.pb.cc.o<br>
[ 42%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/bgfg_gaussmix2.cpp.o<br>
[ 42%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/calibrate.cpp.o<br>
[ 42%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/utils.cpp.o<br>
[ 42%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/camshift.cpp.o<br>
[ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/function.pb.cc.o<br>
[ 42%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/contrast_preserve.cpp.o<br>
[ 42%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/cascadedetect_convert.cpp.o<br>
[ 42%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/compat_video.cpp.o<br>
[ 42%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_base.cpp.o<br>
[ 42%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/denoise_tvl1.cpp.o<br>
[ 42%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/detection_based_tracker.cpp.o<br>
[ 42%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_bmp.cpp.o<br>
[ 42%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/ecc.cpp.o<br>
[ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/graph.pb.cc.o<br>
[ 42%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/denoising.cpp.o<br>
[ 42%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_exr.cpp.o<br>
[ 42%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/haar.cpp.o<br>
[ 42%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_gdal.cpp.o<br>
[ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/op_def.pb.cc.o<br>
[ 42%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/kalman.cpp.o<br>
[ 42%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_gdcm.cpp.o<br>
[ 42%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/hog.cpp.o<br>
[ 42%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/lkpyramid.cpp.o<br>
[ 42%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/tensor.pb.cc.o<br>
[ 43%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_hdr.cpp.o<br>
[ 43%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/tensor_shape.pb.cc.o<br>
[ 43%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_jpeg.cpp.o<br>
[ 43%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/types.pb.cc.o<br>
[ 43%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/optflowgf.cpp.o<br>
[ 43%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/tensorflow/versions.pb.cc.o<br>
[ 44%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/main.cpp.o<br>
[ 44%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_jpeg2000.cpp.o<br>
[ 44%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/misc/caffe/caffe.pb.cc.o<br>
[ 44%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/opencl_kernels_objdetect.cpp.o<br>
[ 44%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_pam.cpp.o<br>
[ 45%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/src/tvl1flow.cpp.o<br>
[ 45%] Building CXX object modules/objdetect/CMakeFiles/opencv_objdetect.dir/src/haar.avx.cpp.o<br>
[ 45%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_png.cpp.o<br>
[ 45%] Linking CXX shared library ../../lib/libopencv_objdetect.dylib<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/denoising.cuda.cpp.o<br>
[ 46%] Built target opencv_objdetect<br>
[ 46%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/caffe/caffe_importer.cpp.o<br>
[ 46%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_pxm.cpp.o<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/hdr_common.cpp.o<br>
[ 46%] Building CXX object modules/video/CMakeFiles/opencv_video.dir/opencl_kernels_video.cpp.o<br>
[ 46%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_sunras.cpp.o<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/inpaint.cpp.o<br>
[ 46%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_tiff.cpp.o<br>
[ 46%] Linking CXX shared library ../../lib/libopencv_video.dylib<br>
[ 46%] Built target opencv_video<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/merge.cpp.o<br>
Scanning dependencies of target opencv_shape<br>
[ 46%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/aff_trans.cpp.o<br>
[ 46%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o<br>
[ 46%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/caffe/caffe_io.cpp.o<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/npr.cpp.o<br>
[ 46%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/bitstrm.cpp.o<br>
[ 46%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/emdL1.cpp.o<br>
[ 46%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/rgbe.cpp.o<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/seamless_cloning.cpp.o<br>
[ 46%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/haus_dis.cpp.o<br>
[ 46%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/exif.cpp.o<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/seamless_cloning_impl.cpp.o<br>
[ 46%] Linking CXX shared library ../../lib/libopencv_imgcodecs.dylib<br>
[ 46%] Built target opencv_imgcodecs<br>
[ 46%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/caffe/caffe_shrinker.cpp.o<br>
[ 46%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/hist_cost.cpp.o<br>
Scanning dependencies of target opencv_videoio<br>
[ 46%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap.cpp.o<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/src/tonemap.cpp.o<br>
[ 46%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/sc_dis.cpp.o<br>
[ 46%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/darknet/darknet_importer.cpp.o<br>
[ 46%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_images.cpp.o<br>
[ 46%] Building CXX object modules/photo/CMakeFiles/opencv_photo.dir/opencl_kernels_photo.cpp.o<br>
[ 46%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/darknet/darknet_io.cpp.o<br>
[ 47%] Building CXX object modules/shape/CMakeFiles/opencv_shape.dir/src/tps_trans.cpp.o<br>
[ 47%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_encoder.cpp.o<br>
[ 47%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/dnn.cpp.o<br>
[ 47%] Linking CXX shared library ../../lib/libopencv_photo.dylib<br>
[ 47%] Built target opencv_photo<br>
[ 47%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_decoder.cpp.o<br>
[ 47%] Linking CXX shared library ../../lib/libopencv_shape.dylib<br>
[ 47%] Built target opencv_shape<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/halide_scheduler.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/init.cpp.o<br>
[ 48%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o<br>
[ 48%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_avfoundation_mac.mm.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/batch_norm_layer.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/blank_layer.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/concat_layer.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/convolution_layer.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/crop_layer.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/detection_output_layer.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/elementwise_layers.cpp.o<br>
[ 48%] Linking CXX shared library ../../lib/libopencv_videoio.dylib<br>
[ 48%] Built target opencv_videoio<br>
Scanning dependencies of target opencv_highgui<br>
[ 48%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window.cpp.o<br>
[ 48%] Processing OpenCL kernels (superres)<br>
Scanning dependencies of target opencv_superres<br>
[ 48%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1.cpp.o<br>
[ 48%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/roiSelector.cpp.o<br>
[ 48%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/btv_l1_cuda.cpp.o<br>
[ 48%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_cocoa.mm.o<br>
[ 48%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/frame_source.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/eltwise_layer.cpp.o<br>
[ 48%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/input_array_utility.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/flatten_layer.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/fully_connected_layer.cpp.o<br>
[ 48%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/optical_flow.cpp.o<br>
[ 48%] Linking CXX shared library ../../lib/libopencv_highgui.dylib<br>
[ 48%] Built target opencv_highgui<br>
Scanning dependencies of target opencv_ts<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/layers_common.cpp.o<br>
[ 48%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/cuda_perf.cpp.o<br>
[ 48%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/src/super_resolution.cpp.o<br>
[ 48%] Processing OpenCL kernels (features2d)<br>
Scanning dependencies of target opencv_features2d<br>
[ 48%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/cuda_test.cpp.o<br>
[ 48%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/lrn_layer.cpp.o<br>
[ 48%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/agast.cpp.o<br>
[ 48%] Building CXX object modules/superres/CMakeFiles/opencv_superres.dir/opencl_kernels_superres.cpp.o<br>
[ 49%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/max_unpooling_layer.cpp.o<br>
[ 49%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ocl_perf.cpp.o<br>
[ 49%] Linking CXX shared library ../../lib/libopencv_superres.dylib<br>
[ 49%] Built target opencv_superres<br>
Scanning dependencies of target opencv_annotation<br>
[ 49%] Building CXX object apps/annotation/CMakeFiles/opencv_annotation.dir/opencv_annotation.cpp.o<br>
[ 49%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/agast_score.cpp.o<br>
[ 49%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/mvn_layer.cpp.o<br>
[ 49%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ocl_test.cpp.o<br>
[ 49%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/normalize_bbox_layer.cpp.o<br>
[ 49%] Linking CXX executable ../../bin/opencv_annotation<br>
[ 49%] Built target opencv_annotation<br>
Scanning dependencies of target opencv_visualisation<br>
[ 49%] Building CXX object apps/visualisation/CMakeFiles/opencv_visualisation.dir/opencv_visualisation.cpp.o<br>
[ 49%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts.cpp.o<br>
[ 49%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/padding_layer.cpp.o<br>
[ 49%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/akaze.cpp.o<br>
[ 49%] Linking CXX executable ../../bin/opencv_visualisation<br>
[ 49%] Built target opencv_visualisation<br>
Scanning dependencies of target opencv_version<br>
[ 49%] Building CXX object apps/version/CMakeFiles/opencv_version.dir/opencv_version.cpp.o<br>
[ 49%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/permute_layer.cpp.o<br>
[ 49%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/bagofwords.cpp.o<br>
[ 49%] Linking CXX executable ../../bin/opencv_version<br>
[ 49%] Built target opencv_version<br>
[ 49%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/pooling_layer.cpp.o<br>
[ 49%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_arrtest.cpp.o<br>
[ 49%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/prior_box_layer.cpp.o<br>
[ 50%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_func.cpp.o<br>
[ 50%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/blobdetector.cpp.o<br>
[ 50%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_gtest.cpp.o<br>
[ 50%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/recurrent_layers.cpp.o<br>
[ 50%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/brisk.cpp.o<br>
[ 50%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/region_layer.cpp.o<br>
[ 50%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_perf.cpp.o<br>
[ 50%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/reorg_layer.cpp.o<br>
[ 50%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/draw.cpp.o<br>
[ 50%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/reshape_layer.cpp.o<br>
[ 50%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/dynamic.cpp.o<br>
[ 50%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/resize_nearest_neighbor_layer.cpp.o<br>
[ 50%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/evaluation.cpp.o<br>
[ 50%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/scale_layer.cpp.o<br>
[ 51%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast.cpp.o<br>
[ 51%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/shift_layer.cpp.o<br>
[ 51%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/fast_score.cpp.o<br>
[ 51%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/slice_layer.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/softmax_layer.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/layers/split_layer.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/feature2d.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/gftt.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze.cpp.o<br>
[ 52%] Linking CXX static library ../../lib/libopencv_ts.a<br>
[ 52%] Built target opencv_ts<br>
Scanning dependencies of target opencv_perf_core<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/common.cpp.o<br>
[ 52%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/cuda/perf_gpumat.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/math_functions.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/AKAZEFeatures.cpp.o<br>
[ 52%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/opencl/perf_arithm.cpp.o<br>
Scanning dependencies of target opencv_test_core<br>
[ 52%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/opencl/perf_bufferpool.cpp.o<br>
[ 52%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_arithm.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_conv_spatial.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/KAZEFeatures.cpp.o<br>
Scanning dependencies of target opencv_test_flann<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_inner_product.cpp.o<br>
[ 52%] Building CXX object modules/flann/CMakeFiles/opencv_test_flann.dir/test/test_lshtable_badarg.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_lrn.cpp.o<br>
[ 52%] Building CXX object modules/flann/CMakeFiles/opencv_test_flann.dir/test/test_main.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/fed.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_pool.cpp.o<br>
[ 52%] Linking CXX executable ../../bin/opencv_test_flann<br>
[ 52%] Built target opencv_test_flann<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/ocl4dnn/src/ocl4dnn_softmax.cpp.o<br>
Scanning dependencies of target opencv_test_imgproc<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/kaze/nldiffusion_functions.cpp.o<br>
[ 52%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_accumulate.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/op_halide.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/tensorflow/tf_importer.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/keypoint.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/main.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/matchers.cpp.o<br>
[ 52%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_blend.cpp.o<br>
[ 52%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_channels.cpp.o<br>
[ 52%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_boxfilter.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/mser.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/src/orb.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/tensorflow/tf_io.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/torch/THDiskFile.cpp.o<br>
[ 52%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_canny.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/torch/THFile.cpp.o<br>
[ 52%] Building CXX object modules/features2d/CMakeFiles/opencv_features2d.dir/opencl_kernels_features2d.cpp.o<br>
[ 52%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/torch/THGeneral.cpp.o<br>
[ 52%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_dft.cpp.o<br>
[ 53%] Linking CXX shared library ../../lib/libopencv_features2d.dylib<br>
[ 53%] Built target opencv_features2d<br>
Scanning dependencies of target opencv_perf_imgproc<br>
[ 54%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/src/torch/torch_importer.cpp.o<br>
[ 54%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_3vs4.cpp.o<br>
[ 55%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_color.cpp.o<br>
[ 55%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/opencl/perf_channels.cpp.o<br>
[ 55%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_accumulate.cpp.o<br>
[ 55%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/opencl_kernels_dnn.cpp.o<br>
[ 56%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_gemm.cpp.o<br>
[ 56%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx.cpp.o<br>
[ 56%] Building CXX object modules/dnn/CMakeFiles/opencv_dnn.dir/layers/layers_common.avx2.cpp.o<br>
[ 57%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/opencl/perf_dxt.cpp.o<br>
[ 58%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_blend.cpp.o<br>
[ 58%] Linking CXX shared library ../../lib/libopencv_dnn.dylib<br>
[ 58%] Built target opencv_dnn<br>
Scanning dependencies of target opencv_test_ml<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_emknearestkmeans.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_image2d.cpp.o<br>
[ 58%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_color.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/opencl/perf_gemm.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_matrix_expr.cpp.o<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_gbttest.cpp.o<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_lr.cpp.o<br>
[ 58%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_filters.cpp.o<br>
[ 58%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_filter2d.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/opencl/perf_matop.cpp.o<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_main.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_matrix_operation.cpp.o<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_mltests.cpp.o<br>
[ 58%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_filters.cpp.o<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_mltests2.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/opencl/perf_usage_flags.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_arithm.cpp.o<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_save_load.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_abs.cpp.o<br>
[ 58%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_gftt.cpp.o<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_svmsgd.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_addWeighted.cpp.o<br>
[ 58%] Building CXX object modules/ml/CMakeFiles/opencv_test_ml.dir/test/test_svmtrainauto.cpp.o<br>
[ 58%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_houghLines.cpp.o<br>
[ 58%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_arithm.cpp.o<br>
[ 59%] Linking CXX executable ../../bin/opencv_test_ml<br>
[ 59%] Built target opencv_test_ml<br>
Scanning dependencies of target opencv_test_objdetect<br>
[ 59%] Building CXX object modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/opencl/test_hogdetector.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_gftt.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_imgproc.cpp.o<br>
[ 59%] Building CXX object modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/test_cascadeandhog.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_histogram.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_concatenation.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_conjugate_gradient.cpp.o<br>
[ 59%] Building CXX object modules/objdetect/CMakeFiles/opencv_test_objdetect.dir/test/test_main.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_bitwise.cpp.o<br>
[ 59%] Linking CXX executable ../../bin/opencv_test_objdetect<br>
[ 59%] Built target opencv_test_objdetect<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_imgwarp.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_countnonzero.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_houghlines.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_compare.cpp.o<br>
Scanning dependencies of target opencv_perf_objdetect<br>
[ 59%] Building CXX object modules/objdetect/CMakeFiles/opencv_perf_objdetect.dir/perf/opencl/perf_cascades.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_downhill_simplex.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_matchTemplate.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_imgproc.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_convertTo.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_ds.cpp.o<br>
[ 59%] Building CXX object modules/objdetect/CMakeFiles/opencv_perf_objdetect.dir/perf/opencl/perf_hogdetect.cpp.o<br>
[ 59%] Building CXX object modules/objdetect/CMakeFiles/opencv_perf_objdetect.dir/perf/perf_main.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_cvround.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_moments.cpp.o<br>
[ 59%] Linking CXX executable ../../bin/opencv_perf_objdetect<br>
[ 59%] Built target opencv_perf_objdetect<br>
Scanning dependencies of target opencv_perf_photo<br>
[ 59%] Building CXX object modules/photo/CMakeFiles/opencv_perf_photo.dir/perf/opencl/perf_denoising.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_dxt.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_dft.cpp.o<br>
[ 59%] Building CXX object modules/photo/CMakeFiles/opencv_perf_photo.dir/perf/perf_cuda.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/opencl/perf_pyramid.cpp.o<br>
[ 59%] Building CXX object modules/photo/CMakeFiles/opencv_perf_photo.dir/perf/perf_inpaint.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_eigen.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_match_template.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_accumulate.cpp.o<br>
[ 59%] Building CXX object modules/photo/CMakeFiles/opencv_perf_photo.dir/perf/perf_main.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_dot.cpp.o<br>
[ 59%] Linking CXX executable ../../bin/opencv_perf_photo<br>
[ 59%] Built target opencv_perf_photo<br>
Scanning dependencies of target opencv_test_photo<br>
[ 59%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/ocl/test_denoising.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_hal_core.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_inRange.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_medianfilter.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_bilateral.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_io_base64.cpp.o<br>
[ 59%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin.cpp.o<br>
[ 59%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_cloning.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_blur.cpp.o<br>
[ 59%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_pyramids.cpp.o<br>
[ 59%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_decolor.cpp.o<br>
[ 60%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_lut.cpp.o<br>
[ 60%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_denoise_tvl1.cpp.o<br>
[ 60%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_main.cpp.o<br>
[ 60%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_sepfilter2D.cpp.o<br>
[ 60%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_denoising.cpp.o<br>
[ 60%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_mat.cpp.o<br>
[ 60%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_canny.cpp.o<br>
[ 60%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_denoising.cuda.cpp.o<br>
[ 60%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_hdr.cpp.o<br>
[ 60%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/ocl/test_warp.cpp.o<br>
[ 60%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_math.cpp.o<br>
[ 60%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_corners.cpp.o<br>
[ 60%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_inpaint.cpp.o<br>
[ 60%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_merge.cpp.o<br>
[ 60%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_main.cpp.o<br>
[ 61%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_cvt_color.cpp.o<br>
[ 61%] Building CXX object modules/photo/CMakeFiles/opencv_test_photo.dir/test/test_npr.cpp.o<br>
[ 61%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_minmaxloc.cpp.o<br>
[ 62%] Linking CXX executable ../../bin/opencv_test_photo<br>
[ 62%] Built target opencv_test_photo<br>
Scanning dependencies of target opencv_perf_video<br>
[ 62%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_approxpoly.cpp.o<br>
[ 62%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/opencl/perf_bgfg_mog2.cpp.o<br>
[ 62%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_norm.cpp.o<br>
[ 62%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_bilateral_filter.cpp.o<br>
[ 62%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_io.cpp.o<br>
[ 62%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/opencl/perf_motempl.cpp.o<br>
[ 62%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_distanceTransform.cpp.o<br>
[ 62%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_boundingrect.cpp.o<br>
[ 62%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/opencl/perf_optflow_dualTVL1.cpp.o<br>
[ 63%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_canny.cpp.o<br>
[ 63%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/opencl/perf_optflow_farneback.cpp.o<br>
[ 63%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_filter2d.cpp.o<br>
[ 63%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_reduce.cpp.o<br>
[ 63%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_color.cpp.o<br>
[ 63%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/opencl/perf_optflow_pyrlk.cpp.o<br>
[ 63%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_sort.cpp.o<br>
[ 63%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_floodfill.cpp.o<br>
[ 64%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/perf_ecc.cpp.o<br>
[ 65%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_ippasync.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_goodFeaturesToTrack.cpp.o<br>
[ 65%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_split.cpp.o<br>
[ 65%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_lpsolver.cpp.o<br>
[ 65%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/perf_main.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_connectedcomponents.cpp.o<br>
[ 65%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/perf_optflowpyrlk.cpp.o<br>
[ 65%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_stat.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_histogram.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_contours.cpp.o<br>
[ 65%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_main.cpp.o<br>
[ 65%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_mat.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_convhull.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_houghLines.cpp.o<br>
[ 65%] Building CXX object modules/core/CMakeFiles/opencv_perf_core.dir/perf/perf_umat.cpp.o<br>
[ 65%] Building CXX object modules/video/CMakeFiles/opencv_perf_video.dir/perf/perf_tvl1optflow.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_integral.cpp.o<br>
[ 65%] Linking CXX executable ../../bin/opencv_perf_core<br>
[ 65%] Built target opencv_perf_core<br>
Scanning dependencies of target opencv_test_video<br>
[ 65%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/ocl/test_bgfg_mog2.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_cvtyuv.cpp.o<br>
[ 65%] Linking CXX executable ../../bin/opencv_perf_video<br>
[ 65%] Built target opencv_perf_video<br>
Scanning dependencies of target opencv_perf_dnn<br>
[ 65%] Building CXX object modules/dnn/CMakeFiles/opencv_perf_dnn.dir/perf/opencl/perf_convolution.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_main.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_distancetransform.cpp.o<br>
[ 65%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/ocl/test_optflow_farneback.cpp.o<br>
[ 65%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_math.cpp.o<br>
[ 65%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_matchTemplate.cpp.o<br>
[ 66%] Building CXX object modules/dnn/CMakeFiles/opencv_perf_dnn.dir/perf/perf_caffe.cpp.o<br>
[ 66%] Building CXX object modules/dnn/CMakeFiles/opencv_perf_dnn.dir/perf/perf_convolution.cpp.o<br>
[ 66%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_drawing.cpp.o<br>
[ 67%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/ocl/test_optflow_tvl1flow.cpp.o<br>
[ 67%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_moments.cpp.o<br>
[ 67%] Building CXX object modules/dnn/CMakeFiles/opencv_perf_dnn.dir/perf/perf_main.cpp.o<br>
[ 67%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_emd.cpp.o<br>
[ 67%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/ocl/test_optflowpyrlk.cpp.o<br>
[ 67%] Building CXX object modules/dnn/CMakeFiles/opencv_perf_dnn.dir/perf/perf_net.cpp.o<br>
[ 67%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_morph.cpp.o<br>
[ 67%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_filter.cpp.o<br>
[ 67%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_accum.cpp.o<br>
[ 67%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_phasecorr.cpp.o<br>
[ 67%] Linking CXX executable ../../bin/opencv_perf_dnn<br>
[ 67%] Built target opencv_perf_dnn<br>
Scanning dependencies of target opencv_test_dnn<br>
[ 67%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/npy_blob.cpp.o<br>
[ 67%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_camshift.cpp.o<br>
[ 68%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_caffe_importer.cpp.o<br>
[ 68%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_pyramids.cpp.o<br>
[ 68%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_ecc.cpp.o<br>
[ 68%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_fitellipse.cpp.o<br>
[ 68%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_darknet_importer.cpp.o<br>
[ 68%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_misc.cpp.o<br>
[ 68%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_estimaterigid.cpp.o<br>
[ 68%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_fitellipseAMS.cpp.o<br>
[ 68%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_remap.cpp.o<br>
[ 68%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_kalman.cpp.o<br>
[ 68%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_googlenet.cpp.o<br>
[ 68%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_main.cpp.o<br>
[ 68%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_operations.cpp.o<br>
[ 68%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_fitellipseDirect.cpp.o<br>
[ 69%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_resize.cpp.o<br>
[ 69%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_optflowpyrlk.cpp.o<br>
[ 69%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_halide_layers.cpp.o<br>
[ 69%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_floodfill.cpp.o<br>
[ 69%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_halide_nets.cpp.o<br>
[ 69%] Building CXX object modules/video/CMakeFiles/opencv_test_video.dir/test/test_tvl1optflow.cpp.o<br>
[ 69%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_layers.cpp.o<br>
[ 69%] Linking CXX executable ../../bin/opencv_test_video<br>
[ 69%] Built target opencv_test_video<br>
Scanning dependencies of target opencv_perf_imgcodecs<br>
[ 69%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_perf_imgcodecs.dir/perf/perf_main.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_goodfeaturetotrack.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_sepfilters.cpp.o<br>
[ 70%] Linking CXX executable ../../bin/opencv_perf_imgcodecs<br>
[ 70%] Built target opencv_perf_imgcodecs<br>
Scanning dependencies of target opencv_test_imgcodecs<br>
[ 70%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_test_imgcodecs.dir/test/test_grfmt.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_grabcut.cpp.o<br>
[ 70%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_main.cpp.o<br>
[ 70%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_tf_importer.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_histograms.cpp.o<br>
[ 70%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_test_imgcodecs.dir/test/test_jpeg.cpp.o<br>
[ 70%] Building CXX object modules/dnn/CMakeFiles/opencv_test_dnn.dir/test/test_torch_importer.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_houghLines.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_spatialgradient.cpp.o<br>
[ 70%] Linking CXX executable ../../bin/opencv_test_dnn<br>
[ 70%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_test_imgcodecs.dir/test/test_main.cpp.o<br>
[ 70%] Built target opencv_test_dnn<br>
[ 70%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_ptr.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_threshold.cpp.o<br>
[ 70%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_test_imgcodecs.dir/test/test_png.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_imgproc_umat.cpp.o<br>
Scanning dependencies of target opencv_test_shape<br>
[ 70%] Building CXX object modules/shape/CMakeFiles/opencv_test_shape.dir/test/test_main.cpp.o<br>
[ 70%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_test_imgcodecs.dir/test/test_read_write.cpp.o<br>
[ 70%] Building CXX object modules/shape/CMakeFiles/opencv_test_shape.dir/test/test_shape.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_imgwarp.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_perf_imgproc.dir/perf/perf_warp.cpp.o<br>
[ 70%] Linking CXX executable ../../bin/opencv_test_shape<br>
[ 70%] Built target opencv_test_shape<br>
[ 70%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_rand.cpp.o<br>
[ 70%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_test_imgcodecs.dir/test/test_tiff.cpp.o<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_imgwarp_strict.cpp.o<br>
Scanning dependencies of target opencv_perf_videoio<br>
[ 70%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_rotatedrect.cpp.o<br>
[ 70%] Building CXX object modules/videoio/CMakeFiles/opencv_perf_videoio.dir/perf/perf_input.cpp.o<br>
[ 70%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_test_imgcodecs.dir/test/test_webp.cpp.o<br>
[ 70%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_umat.cpp.o<br>
[ 70%] Building CXX object modules/videoio/CMakeFiles/opencv_perf_videoio.dir/perf/perf_main.cpp.o<br>
[ 70%] Linking CXX executable ../../bin/opencv_perf_imgproc<br>
[ 70%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_intersection.cpp.o<br>
[ 70%] Built target opencv_perf_imgproc<br>
Scanning dependencies of target opencv_test_videoio<br>
[ 70%] Building CXX object modules/videoio/CMakeFiles/opencv_test_videoio.dir/test/test_ffmpeg.cpp.o<br>
[ 70%] Building CXX object modules/videoio/CMakeFiles/opencv_perf_videoio.dir/perf/perf_output.cpp.o<br>
[ 70%] Linking CXX executable ../../bin/opencv_test_imgcodecs<br>
[ 70%] Built target opencv_test_imgcodecs<br>
Scanning dependencies of target opencv_test_highgui<br>
[ 71%] Building CXX object modules/highgui/CMakeFiles/opencv_test_highgui.dir/test/test_gui.cpp.o<br>
[ 71%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_lsd.cpp.o<br>
[ 71%] Building CXX object modules/videoio/CMakeFiles/opencv_test_videoio.dir/test/test_fourcc.cpp.o<br>
[ 71%] Building CXX object modules/highgui/CMakeFiles/opencv_test_highgui.dir/test/test_main.cpp.o<br>
[ 71%] Linking CXX executable ../../bin/opencv_perf_videoio<br>
[ 71%] Built target opencv_perf_videoio<br>
Scanning dependencies of target opencv_perf_superres<br>
[ 71%] Building CXX object modules/superres/CMakeFiles/opencv_perf_superres.dir/perf/perf_main.cpp.o<br>
[ 71%] Linking CXX executable ../../bin/opencv_test_highgui<br>
[ 71%] Built target opencv_test_highgui<br>
Scanning dependencies of target opencv_test_superres<br>
[ 71%] Building CXX object modules/superres/CMakeFiles/opencv_test_superres.dir/test/test_main.cpp.o<br>
[ 71%] Building CXX object modules/superres/CMakeFiles/opencv_perf_superres.dir/perf/perf_superres.cpp.o<br>
[ 71%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_main.cpp.o<br>
[ 71%] Building CXX object modules/videoio/CMakeFiles/opencv_test_videoio.dir/test/test_main.cpp.o<br>
[ 71%] Building CXX object modules/superres/CMakeFiles/opencv_test_superres.dir/test/test_superres.cpp.o<br>
[ 71%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_moments.cpp.o<br>
[ 71%] Building CXX object modules/videoio/CMakeFiles/opencv_test_videoio.dir/test/test_mfx.cpp.o<br>
[ 71%] Linking CXX executable ../../bin/opencv_perf_superres<br>
[ 71%] Built target opencv_perf_superres<br>
Scanning dependencies of target opencv_perf_features2d<br>
[ 71%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/opencl/perf_brute_force_matcher.cpp.o<br>
[ 71%] Linking CXX executable ../../bin/opencv_test_superres<br>
[ 71%] Built target opencv_test_superres<br>
Scanning dependencies of target opencv_test_features2d<br>
[ 71%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/ocl/test_brute_force_matcher.cpp.o<br>
[ 72%] Building CXX object modules/videoio/CMakeFiles/opencv_test_videoio.dir/test/test_video_io.cpp.o<br>
[ 72%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_pc.cpp.o<br>
[ 72%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_utils.cpp.o<br>
[ 72%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_templmatch.cpp.o<br>
[ 72%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/ocl/test_feature2d.cpp.o<br>
[ 72%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/opencl/perf_feature2d.cpp.o<br>
[ 72%] Linking CXX executable ../../bin/opencv_test_videoio<br>
[ 72%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_thresh.cpp.o<br>
[ 72%] Built target opencv_test_videoio<br>
[ 72%] Processing OpenCL kernels (calib3d)<br>
Scanning dependencies of target opencv_calib3d<br>
[ 72%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/ap3p.cpp.o<br>
[ 72%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_agast.cpp.o<br>
[ 72%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin.fp16.cpp.o<br>
[ 72%] Building CXX object modules/imgproc/CMakeFiles/opencv_test_imgproc.dir/test/test_watershed.cpp.o<br>
[ 72%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/perf_batchDistance.cpp.o<br>
[ 72%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/calibinit.cpp.o<br>
[ 72%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_akaze.cpp.o<br>
[ 72%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_brisk.cpp.o<br>
[ 72%] Linking CXX executable ../../bin/opencv_test_core<br>
[ 72%] Built target opencv_test_core<br>
[ 72%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/perf_feature2d.cpp.o<br>
[ 73%] Linking CXX executable ../../bin/opencv_test_imgproc<br>
[ 73%] Built target opencv_test_imgproc<br>
[ 73%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/calibration.cpp.o<br>
[ 74%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_descriptors_invariance.cpp.o<br>
[ 74%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/checkchessboard.cpp.o<br>
[ 74%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_descriptors_regression.cpp.o<br>
[ 74%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_detectors_invariance.cpp.o<br>
[ 74%] Building CXX object modules/features2d/CMakeFiles/opencv_perf_features2d.dir/perf/perf_main.cpp.o<br>
[ 74%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/circlesgrid.cpp.o<br>
[ 74%] Linking CXX executable ../../bin/opencv_perf_features2d<br>
[ 74%] Built target opencv_perf_features2d<br>
[ 74%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_detectors_regression.cpp.o<br>
[ 74%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/compat_ptsetreg.cpp.o<br>
[ 74%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/compat_stereo.cpp.o<br>
[ 74%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_fast.cpp.o<br>
[ 74%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_keypoints.cpp.o<br>
[ 74%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_main.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/dls.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/epnp.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/fisheye.cpp.o<br>
[ 75%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_matchers_algorithmic.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/five-point.cpp.o<br>
[ 75%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_mser.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/fundam.cpp.o<br>
[ 75%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_nearestneighbors.cpp.o<br>
[ 75%] Building CXX object modules/features2d/CMakeFiles/opencv_test_features2d.dir/test/test_orb.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/homography_decomp.cpp.o<br>
[ 75%] Linking CXX executable ../../bin/opencv_test_features2d<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/levmarq.cpp.o<br>
[ 75%] Built target opencv_test_features2d<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/main.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/p3p.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/polynom_solver.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/posit.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/ptsetreg.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/quadsubpix.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/rho.cpp.o<br>
[ 75%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/solvepnp.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/stereobm.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/stereosgbm.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/triangulate.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/src/upnp.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_calib3d.dir/opencl_kernels_calib3d.cpp.o<br>
[ 76%] Linking CXX shared library ../../lib/libopencv_calib3d.dylib<br>
[ 76%] Built target opencv_calib3d<br>
[ 76%] Processing OpenCL kernels (stitching)<br>
Scanning dependencies of target opencv_perf_calib3d<br>
Scanning dependencies of target opencv_videostab<br>
Scanning dependencies of target opencv_test_calib3d<br>
[ 76%] Processing OpenCL kernels (ximgproc)<br>
Scanning dependencies of target opencv_stitching<br>
Scanning dependencies of target opencv_ximgproc<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/perf/opencl/perf_stereobm.cpp.o<br>
[ 76%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/deblurring.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/opencl/test_stereobm.cpp.o<br>
[ 76%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/autocalib.cpp.o<br>
[ 76%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/adaptive_manifold_filter_n.cpp.o<br>
[ 76%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/fast_marching.cpp.o<br>
[ 76%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/blenders.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/perf/perf_affine2d.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_affine2d_estimator.cpp.o<br>
[ 76%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/frame_source.cpp.o<br>
[ 76%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/anisodiff.cpp.o<br>
[ 76%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/global_motion.cpp.o<br>
[ 76%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/camera.cpp.o<br>
[ 76%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/bilateral_texture_filter.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_affine3.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/perf/perf_cicrlesGrid.cpp.o<br>
[ 76%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/exposure_compensate.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_affine3d_estimator.cpp.o<br>
[ 76%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/inpainting.cpp.o<br>
[ 76%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/brightedges.cpp.o<br>
[ 76%] Building CXX object modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/perf/perf_main.cpp.o<br>
[ 76%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/matchers.cpp.o<br>
[ 77%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_affine_partial2d_estimator.cpp.o<br>
[ 77%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/deriche_filter.cpp.o<br>
[ 77%] Building CXX object modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/perf/perf_pnp.cpp.o<br>
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/log.cpp.o<br>
[ 78%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_cameracalibration.cpp.o<br>
[ 78%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/motion_stabilizing.cpp.o<br>
[ 78%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/motion_estimators.cpp.o<br>
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/disparity_filters.cpp.o<br>
[ 79%] Building CXX object modules/calib3d/CMakeFiles/opencv_perf_calib3d.dir/perf/perf_stereosgbm.cpp.o<br>
[ 79%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/optical_flow.cpp.o<br>
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/domain_transform.cpp.o<br>
[ 79%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/outlier_rejection.cpp.o<br>
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/dtfilter_cpu.cpp.o<br>
[ 79%] Linking CXX executable ../../bin/opencv_perf_calib3d<br>
[ 79%] Built target opencv_perf_calib3d<br>
Scanning dependencies of target opencv_traincascade<br>
[ 79%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/HOGfeatures.cpp.o<br>
[ 79%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/seam_finders.cpp.o<br>
[ 79%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/stabilizer.cpp.o<br>
[ 79%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/boost.cpp.o<br>
[ 79%] Building CXX object modules/videostab/CMakeFiles/opencv_videostab.dir/src/wobble_suppression.cpp.o<br>
[ 79%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/cascadeclassifier.cpp.o<br>
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/edgeaware_filters_common.cpp.o<br>
[ 79%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_cameracalibration_artificial.cpp.o<br>
[ 79%] Linking CXX shared library ../../lib/libopencv_videostab.dylib<br>
[ 79%] Built target opencv_videostab<br>
Scanning dependencies of target opencv_createsamples<br>
[ 79%] Building CXX object apps/createsamples/CMakeFiles/opencv_createsamples.dir/createsamples.cpp.o<br>
[ 79%] Building CXX object apps/createsamples/CMakeFiles/opencv_createsamples.dir/utility.cpp.o<br>
[ 79%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/stitcher.cpp.o<br>
[ 79%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/edgeboxes.cpp.o<br>
[ 79%] Linking CXX executable ../../bin/opencv_createsamples<br>
[ 79%] Built target opencv_createsamples<br>
Scanning dependencies of target opencv_interactive-calibration<br>
[ 79%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/features.cpp.o<br>
[ 79%] Building CXX object apps/interactive-calibration/CMakeFiles/opencv_interactive-calibration.dir/calibController.cpp.o<br>
[ 79%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_cameracalibration_badarg.cpp.o<br>
[ 79%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/haarfeatures.cpp.o<br>
[ 79%] Building CXX object apps/interactive-calibration/CMakeFiles/opencv_interactive-calibration.dir/calibPipeline.cpp.o<br>
[ 80%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/imagestorage.cpp.o<br>
[ 80%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/estimated_covariance.cpp.o<br>
[ 80%] Building CXX object apps/interactive-calibration/CMakeFiles/opencv_interactive-calibration.dir/frameProcessor.cpp.o<br>
[ 80%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/timelapsers.cpp.o<br>
[ 80%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/lbpfeatures.cpp.o<br>
[ 80%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_cameracalibration_tilt.cpp.o<br>
[ 80%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fast_hough_transform.cpp.o<br>
[ 80%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/util.cpp.o<br>
[ 80%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_boost.cpp.o<br>
[ 80%] Building CXX object apps/interactive-calibration/CMakeFiles/opencv_interactive-calibration.dir/main.cpp.o<br>
[ 80%] Building CXX object apps/interactive-calibration/CMakeFiles/opencv_interactive-calibration.dir/parametersController.cpp.o<br>
[ 80%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/warpers.cpp.o<br>
[ 80%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_data.cpp.o<br>
[ 80%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_chessboardgenerator.cpp.o<br>
[ 80%] Building CXX object apps/interactive-calibration/CMakeFiles/opencv_interactive-calibration.dir/rotationConverters.cpp.o<br>
[ 80%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fast_line_detector.cpp.o<br>
[ 80%] Linking CXX executable ../../bin/opencv_interactive-calibration<br>
[ 80%] Built target opencv_interactive-calibration<br>
[ 80%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/src/warpers_cuda.cpp.o<br>
[ 80%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_inner_functions.cpp.o<br>
Scanning dependencies of target opencv_test_videostab<br>
[ 80%] Building CXX object modules/videostab/CMakeFiles/opencv_test_videostab.dir/test/test_main.cpp.o<br>
[ 80%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_chesscorners.cpp.o<br>
[ 81%] Building CXX object modules/stitching/CMakeFiles/opencv_stitching.dir/opencl_kernels_stitching.cpp.o<br>
[ 81%] Building CXX object modules/videostab/CMakeFiles/opencv_test_videostab.dir/test/test_motion_estimation.cpp.o<br>
[ 81%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/old_ml_tree.cpp.o<br>
[ 81%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fgs_filter.cpp.o<br>
[ 81%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_chesscorners_badarg.cpp.o<br>
[ 81%] Linking CXX shared library ../../lib/libopencv_stitching.dylib<br>
[ 81%] Built target opencv_stitching<br>
Scanning dependencies of target opencv_test_stitching<br>
[ 81%] Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/ocl/test_warpers.cpp.o<br>
[ 81%] Linking CXX executable ../../bin/opencv_test_videostab<br>
[ 81%] Built target opencv_test_videostab<br>
Scanning dependencies of target opencv_perf_stitching<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/opencl/perf_stitch.cpp.o<br>
[ 82%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_chesscorners_timing.cpp.o<br>
[ 82%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/fourier_descriptors.cpp.o<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/test_blenders.cpp.o<br>
[ 82%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_compose_rt.cpp.o<br>
[ 82%] Building CXX object apps/traincascade/CMakeFiles/opencv_traincascade.dir/traincascade.cpp.o<br>
[ 82%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/graphsegmentation.cpp.o<br>
[ 82%] Linking CXX executable ../../bin/opencv_traincascade<br>
[ 82%] Built target opencv_traincascade<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/opencl/perf_warpers.cpp.o<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/test_blenders.cuda.cpp.o<br>
[ 82%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_cornerssubpix.cpp.o<br>
[ 82%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/guided_filter.cpp.o<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/perf_estimators.cpp.o<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/test_main.cpp.o<br>
[ 82%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_decompose_projection.cpp.o<br>
[ 82%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/joint_bilateral_filter.cpp.o<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_test_stitching.dir/test/test_matchers.cpp.o<br>
[ 82%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_fisheye.cpp.o<br>
[ 82%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/l0_smooth.cpp.o<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/perf_main.cpp.o<br>
[ 82%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_fundam.cpp.o<br>
[ 82%] Linking CXX executable ../../bin/opencv_test_stitching<br>
[ 82%] Built target opencv_test_stitching<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/perf_matchers.cpp.o<br>
[ 82%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/lsc.cpp.o<br>
[ 82%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_homography.cpp.o<br>
[ 82%] Building CXX object modules/stitching/CMakeFiles/opencv_perf_stitching.dir/perf/perf_stich.cpp.o<br>
[ 83%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/niblack_thresholding.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_homography_decomp.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/paillou_filter.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/peilin.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_main.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/ridgedetectionfilter.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_modelest.cpp.o<br>
[ 84%] Linking CXX executable ../../bin/opencv_perf_stitching<br>
[ 84%] Built target opencv_perf_stitching<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/rolling_guidance_filter.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/seeds.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_posit.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/selectivesearchsegmentation.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_reproject_image_to_3d.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_solvepnp_ransac.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/slic.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_stereomatching.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/sparse_match_interpolators.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_undistort.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/structured_edge_detection.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_undistort_badarg.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/thinning.cpp.o<br>
[ 84%] Building CXX object modules/calib3d/CMakeFiles/opencv_test_calib3d.dir/test/test_undistort_points.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/src/weighted_median_filter.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_ximgproc.dir/opencl_kernels_ximgproc.cpp.o<br>
[ 84%] Linking CXX executable ../../bin/opencv_test_calib3d<br>
[ 84%] Built target opencv_test_calib3d<br>
[ 84%] Linking CXX shared library ../../lib/libopencv_ximgproc.dylib<br>
[ 84%] Built target opencv_ximgproc<br>
Scanning dependencies of target opencv_test_ximgproc<br>
[ 84%] Generating gen/imgproc+CLAHE.java, gen/imgproc+Imgproc.java, gen/imgproc+LineSegmentDetector.java, gen/imgproc+Subdiv2D.java, gen/imgproc.cpp<br>
[ 84%] Generating gen/core+Algorithm.java, gen/core+Core.java, gen/core+TickMeter.java, gen/core.cpp<br>
Scanning dependencies of target opencv_perf_ximgproc<br>
[ 84%] Generating gen/ml+ANN_MLP.java, gen/ml+Boost.java, gen/ml+DTrees.java, gen/ml+EM.java, gen/ml+KNearest.java, gen/ml+LogisticRegression.java, gen/ml+Ml.java, gen/ml+NormalBayesClassifier.java, gen/ml+ParamGrid.java, gen/ml+RTrees.java, gen/ml+SVM.java, gen/ml+SVMSGD.java, gen/ml+StatModel.java, gen/ml+TrainData.java, gen/ml.cpp<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_perf_ximgproc.dir/perf/perf_adaptive_manifold.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_test_ximgproc.dir/test/test_adaptive_manifold.cpp.o<br>
duplicated: CLASS cv::.Algorithm :<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_perf_ximgproc.dir/perf/perf_bilateral_texture_filter.cpp.o<br>
[ 84%] Building CXX object modules/ximgproc/CMakeFiles/opencv_test_ximgproc.dir/test/test_adaptive_manifold_ref_impl.cpp.o<br>
[ 84%] Generating gen/objdetect+BaseCascadeClassifier.java, gen/objdetect+CascadeClassifier.java, gen/objdetect+HOGDescriptor.java, gen/objdetect+Objdetect.java, gen/objdetect.cpp<br>
SKIP:bool read(FileNode node) due to ARG typeFileNode/I<br>
[ 85%] Generating gen/photo+AlignExposures.java, gen/photo+AlignMTB.java, gen/photo+CalibrateCRF.java, gen/photo+CalibrateDebevec.java, gen/photo+CalibrateRobertson.java, gen/photo+MergeDebevec.java, gen/photo+MergeExposures.java, gen/photo+MergeMertens.java, gen/photo+MergeRobertson.java, gen/photo+Photo.java, gen/photo+Tonemap.java, gen/photo+TonemapDrago.java, gen/photo+TonemapDurand.java, gen/photo+TonemapMantiuk.java, gen/photo+TonemapReinhard.java, gen/photo.cpp<br>
/Users/filippocicirelli/Desktop/opencv_contrib-master/modules/ximgproc/test/test_adaptive_manifold.cpp:188:41: error:<br>
use of undeclared identifier 'INTER_LINEAR_EXACT'<br>
resize(guide, guide, dstSize, 0, 0, INTER_LINEAR_EXACT);<br>
^<br>
/Users/filippocicirelli/Desktop/opencv_contrib-master/modules/ximgproc/test/test_adaptive_manifold.cpp:189:37: error:<br>
use of undeclared identifier 'INTER_LINEAR_EXACT'<br>
resize(src, src, dstSize, 0, 0, INTER_LINEAR_EXACT);<br>
^<br>
2 errors generated.<br>
make[2]: *** [modules/ximgproc/CMakeFiles/opencv_test_ximgproc.dir/test/test_adaptive_manifold.cpp.o] Error 1<br>
make[2]: *** Waiting for unfinished jobs....<br>
[ 85%] Building CXX object modules/ximgproc/CMakeFiles/opencv_perf_ximgproc.dir/perf/perf_disparity_wls_filter.cpp.o<br>
[ 85%] Generating gen/video+BackgroundSubtractor.java, gen/video+BackgroundSubtractorKNN.java, gen/video+BackgroundSubtractorMOG2.java, gen/video+DenseOpticalFlow.java, gen/video+DualTVL1OpticalFlow.java, gen/video+FarnebackOpticalFlow.java, gen/video+KalmanFilter.java, gen/video+SparseOpticalFlow.java, gen/video+SparsePyrLKOpticalFlow.java, gen/video+Video.java, gen/video.cpp<br>
[ 85%] Generating gen/dnn+DictValue.java, gen/dnn+Dnn.java, gen/dnn+Importer.java, gen/dnn+Layer.java, gen/dnn+Net.java, gen/dnn.cpp<br>
SKIP:void forward(vector_vector_Mat outputBlobs, vector_String outBlobNames) due to ARG typevector_vector_Mat/I<br>
SKIP:void getLayersShapes(MatShape netInputShape, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes) due to ARG typevector_vector_MatShape/O<br>
SKIP:void getLayersShapes(vector_MatShape netInputShapes, vector_int& layersIds, vector_vector_MatShape& inLayersShapes, vector_vector_MatShape& outLayersShapes) due to ARG typevector_vector_MatShape/O<br>
[ 85%] Generating gen/imgcodecs+Imgcodecs.java, gen/imgcodecs.cpp<br>
[ 85%] Generating gen/videoio+VideoCapture.java, gen/videoio+VideoWriter.java, gen/videoio+Videoio.java, gen/videoio.cpp<br>
/Users/filippocicirelli/Desktop/opencv_contrib-master/modules/ximgproc/perf/perf_disparity_wls_filter.cpp:78:52: error:<br>
use of undeclared identifier 'INTER_LINEAR_EXACT'<br>
resize(disp_left,disp_left,Size(),0.5,0.5, INTER_LINEAR_EXACT);<br>
^<br>
/Users/filippocicirelli/Desktop/opencv_contrib-master/modules/ximgproc/perf/perf_disparity_wls_filter.cpp:80:54: error:<br>
use of undeclared identifier 'INTER_LINEAR_EXACT'<br>
resize(disp_right,disp_right,Size(),0.5,0.5, INTER_LINEAR_EXACT);<br>
^<br>
2 errors generated.<br>
make[2]: *** [modules/ximgproc/CMakeFiles/opencv_perf_ximgproc.dir/perf/perf_disparity_wls_filter.cpp.o] Error 1<br>
make[2]: *** Waiting for unfinished jobs....<br>
[ 85%] Generating gen/highgui+Highgui.java, gen/highgui.cpp<br>
[ 85%] Generating gen/features2d+AKAZE.java, gen/features2d+AgastFeatureDetector.java, gen/features2d+BFMatcher.java, gen/features2d+BOWImgDescriptorExtractor.java, gen/features2d+BOWKMeansTrainer.java, gen/features2d+BOWTrainer.java, gen/features2d+BRISK.java, gen/features2d+DescriptorExtractor.java, gen/features2d+DescriptorMatcher.java, gen/features2d+FastFeatureDetector.java, gen/features2d+Feature2D.java, gen/features2d+FeatureDetector.java, gen/features2d+Features2d.java, gen/features2d+FlannBasedMatcher.java, gen/features2d+GFTTDetector.java, gen/features2d+KAZE.java, gen/features2d+MSER.java, gen/features2d+ORB.java, gen/features2d+Params.java, gen/features2d.cpp<br>
[ 85%] Generating gen/calib3d+Calib3d.java, gen/calib3d+StereoBM.java, gen/calib3d+StereoMatcher.java, gen/calib3d+StereoSGBM.java, gen/calib3d.cpp<br>
[ 85%] Generating gen/ximgproc+AdaptiveManifoldFilter.java, gen/ximgproc+ContourFitting.java, gen/ximgproc+DTFilter.java, gen/ximgproc+DisparityFilter.java, gen/ximgproc+DisparityWLSFilter.java, gen/ximgproc+EdgeAwareInterpolator.java, gen/ximgproc+EdgeBoxes.java, gen/ximgproc+FastGlobalSmootherFilter.java, gen/ximgproc+FastLineDetector.java, gen/ximgproc+GraphSegmentation.java, gen/ximgproc+GuidedFilter.java, gen/ximgproc+RFFeatureGetter.java, gen/ximgproc+RidgeDetectionFilter.java, gen/ximgproc+SelectiveSearchSegmentation.java, gen/ximgproc+SelectiveSearchSegmentationStrategy.java, gen/ximgproc+SelectiveSearchSegmentationStrategyColor.java, gen/ximgproc+SelectiveSearchSegmentationStrategyFill.java, gen/ximgproc+SelectiveSearchSegmentationStrategyMultiple.java, gen/ximgproc+SelectiveSearchSegmentationStrategySize.java, gen/ximgproc+SelectiveSearchSegmentationStrategyTexture.java, gen/ximgproc+SparseMatchInterpolator.java, gen/ximgproc+StructuredEdgeDetection.java, gen/ximgproc+SuperpixelLSC.java, gen/ximgproc+SuperpixelSEEDS.java, gen/ximgproc+SuperpixelSLIC.java, gen/ximgproc+Ximgproc.java, gen/ximgproc.cpp<br>
SKIP:BOWImgDescriptorExtractor(Ptr_DescriptorExtractor dextractor, Ptr_DescriptorMatcher dmatcher) due to ARG typePtr_DescriptorExtractor/I<br>
duplicated: CONST CALIB_FIX_PRINCIPAL_POINT=1 << 9<br>
make[1]: *** [modules/ximgproc/CMakeFiles/opencv_perf_ximgproc.dir/all] Error 2<br>
make[1]: *** Waiting for unfinished jobs....<br>
[ 85%] Generating src/org/opencv/core/Algorithm.java<br>
[ 85%] Generating src/org/opencv/imgproc/CLAHE.java<br>
SKIP:uchar Params::blobColor due to RET typeuchar<br>
SKIP:void Params::blobColor due to ARG typeuchar/I<br>
SKIP:Ptr_DisparityWLSFilter createDisparityWLSFilter(Ptr_StereoMatcher matcher_left) due to ARG typePtr_StereoMatcher/I<br>
SKIP:Ptr_StereoMatcher createRightMatcher(Ptr_StereoMatcher matcher_left) due to RET typePtr_StereoMatcher<br>
[ 85%] Generating src/org/opencv/ml/ANN_MLP.java<br>
[ 85%] Generating src/org/opencv/objdetect/BaseCascadeClassifier.java<br>
[ 85%] Generating src/org/opencv/photo/AlignExposures.java<br>
SKIP:bool findCirclesGrid(Mat image, Size patternSize, Mat& centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters parameters) due to ARG typePtr_FeatureDetector/I<br>
SKIP:bool findCirclesGrid2(Mat image, Size patternSize, Mat& centers, int flags, Ptr_FeatureDetector blobDetector, CirclesGridFinderParameters2 parameters) due to ARG typePtr_FeatureDetector/I<br>
[ 85%] Generating src/org/opencv/video/BackgroundSubtractor.java<br>
[ 86%] Generating src/org/opencv/dnn/DictValue.java<br>
[ 86%] Generating src/org/opencv/imgcodecs/Imgcodecs.java<br>
[ 86%] Generating src/org/opencv/videoio/VideoCapture.java<br>
[ 86%] Generating src/org/opencv/highgui/Highgui.java<br>
[ 86%] Generating src/org/opencv/features2d/AKAZE.java<br>
[ 86%] Generating src/org/opencv/ximgproc/AdaptiveManifoldFilter.java<br>
[ 86%] Generating src/org/opencv/core/Core.java<br>
[ 86%] Generating src/org/opencv/core/TickMeter.java<br>
[ 86%] Generating src/org/opencv/imgproc/Imgproc.java<br>
[ 87%] Generating src/org/opencv/imgproc/LineSegmentDetector.java<br>
[ 87%] Generating src/org/opencv/imgproc/Subdiv2D.java<br>
[ 87%] Generating src/org/opencv/ml/Boost.java<br>
[ 87%] Generating src/org/opencv/ml/DTrees.java<br>
[ 87%] Generating src/org/opencv/ml/EM.java<br>
[ 87%] Generating src/org/opencv/ml/KNearest.java<br>
[ 87%] Generating src/org/opencv/ml/LogisticRegression.java<br>
[ 87%] Generating src/org/opencv/ml/Ml.java<br>
[ 87%] Generating src/org/opencv/ml/NormalBayesClassifier.java<br>
[ 87%] Generating src/org/opencv/ml/ParamGrid.java<br>
[ 87%] Generating src/org/opencv/ml/RTrees.java<br>
[ 87%] Generating src/org/opencv/ml/SVM.java<br>
[ 87%] Generating src/org/opencv/ml/SVMSGD.java<br>
[ 87%] Generating src/org/opencv/ml/StatModel.java<br>
[ 88%] Generating src/org/opencv/ml/TrainData.java<br>
[ 88%] Generating src/org/opencv/objdetect/CascadeClassifier.java<br>
[ 88%] Generating src/org/opencv/objdetect/HOGDescriptor.java<br>
[ 88%] Generating src/org/opencv/objdetect/Objdetect.java<br>
[ 88%] Generating src/org/opencv/photo/AlignMTB.java<br>
[ 88%] Generating src/org/opencv/photo/CalibrateCRF.java<br>
[ 88%] Generating src/org/opencv/photo/CalibrateDebevec.java<br>
[ 88%] Generating src/org/opencv/photo/CalibrateRobertson.java<br>
[ 88%] Generating src/org/opencv/photo/MergeDebevec.java<br>
[ 88%] Generating src/org/opencv/photo/MergeExposures.java<br>
[ 88%] Generating src/org/opencv/photo/MergeMertens.java<br>
[ 88%] Generating src/org/opencv/photo/MergeRobertson.java<br>
[ 88%] Generating src/org/opencv/photo/Photo.java<br>
[ 89%] Generating src/org/opencv/photo/Tonemap.java<br>
[ 89%] Generating src/org/opencv/photo/TonemapDrago.java<br>
[ 89%] Generating src/org/opencv/photo/TonemapDurand.java<br>
[ 89%] Generating src/org/opencv/photo/TonemapMantiuk.java<br>
[ 89%] Generating src/org/opencv/photo/TonemapReinhard.java<br>
[ 89%] Generating src/org/opencv/video/BackgroundSubtractorKNN.java<br>
[ 89%] Generating src/org/opencv/video/BackgroundSubtractorMOG2.java<br>
[ 89%] Generating src/org/opencv/video/DenseOpticalFlow.java<br>
[ 89%] Generating src/org/opencv/video/DualTVL1OpticalFlow.java<br>
[ 89%] Generating src/org/opencv/video/FarnebackOpticalFlow.java<br>
[ 89%] Generating src/org/opencv/video/KalmanFilter.java<br>
[ 89%] Generating src/org/opencv/video/SparseOpticalFlow.java<br>
[ 89%] Generating src/org/opencv/video/SparsePyrLKOpticalFlow.java<br>
[ 89%] Generating src/org/opencv/video/Video.java<br>
[ 89%] Generating src/org/opencv/dnn/Dnn.java<br>
[ 89%] Generating src/org/opencv/dnn/Importer.java<br>
[ 89%] Generating src/org/opencv/dnn/Layer.java<br>
[ 89%] Generating src/org/opencv/dnn/Net.java<br>
[ 89%] Generating src/org/opencv/videoio/VideoWriter.java<br>
[ 89%] Generating src/org/opencv/videoio/Videoio.java<br>
[ 89%] Generating src/org/opencv/features2d/AgastFeatureDetector.java<br>
[ 89%] Generating src/org/opencv/features2d/BFMatcher.java<br>
[ 89%] Generating src/org/opencv/features2d/BOWImgDescriptorExtractor.java<br>
[ 89%] Generating src/org/opencv/features2d/BOWKMeansTrainer.java<br>
[ 90%] Generating src/org/opencv/features2d/BOWTrainer.java<br>
[ 90%] Generating src/org/opencv/features2d/BRISK.java<br>
[ 90%] Generating src/org/opencv/features2d/DescriptorExtractor.java<br>
[ 90%] Generating src/org/opencv/features2d/DescriptorMatcher.java<br>
[ 90%] Generating src/org/opencv/features2d/FastFeatureDetector.java<br>
[ 90%] Generating src/org/opencv/features2d/Feature2D.java<br>
[ 90%] Generating src/org/opencv/features2d/FeatureDetector.java<br>
[ 90%] Generating src/org/opencv/features2d/Features2d.java<br>
[ 90%] Generating src/org/opencv/features2d/FlannBasedMatcher.java<br>
[ 90%] Generating src/org/opencv/features2d/GFTTDetector.java<br>
[ 90%] Generating src/org/opencv/features2d/KAZE.java<br>
[ 90%] Generating src/org/opencv/features2d/MSER.java<br>
[ 90%] Generating src/org/opencv/features2d/ORB.java<br>
[ 90%] Generating src/org/opencv/features2d/Params.java<br>
[ 91%] Generating src/org/opencv/calib3d/StereoBM.java<br>
[ 91%] Generating src/org/opencv/calib3d/Calib3d.java<br>
[ 91%] Generating src/org/opencv/calib3d/StereoMatcher.java<br>
[ 91%] Generating src/org/opencv/calib3d/StereoSGBM.java<br>
[ 91%] Generating src/org/opencv/ximgproc/ContourFitting.java<br>
[ 91%] Generating src/org/opencv/ximgproc/DTFilter.java<br>
[ 91%] Generating src/org/opencv/ximgproc/DisparityFilter.java<br>
[ 91%] Generating src/org/opencv/ximgproc/DisparityWLSFilter.java<br>
[ 91%] Generating src/org/opencv/ximgproc/EdgeAwareInterpolator.java<br>
[ 91%] Generating src/org/opencv/ximgproc/EdgeBoxes.java<br>
[ 91%] Generating src/org/opencv/ximgproc/FastGlobalSmootherFilter.java<br>
[ 91%] Generating src/org/opencv/ximgproc/GraphSegmentation.java<br>
[ 91%] Generating src/org/opencv/ximgproc/FastLineDetector.java<br>
[ 91%] Generating src/org/opencv/ximgproc/GuidedFilter.java<br>
[ 91%] Generating src/org/opencv/ximgproc/RFFeatureGetter.java<br>
[ 92%] Generating src/org/opencv/ximgproc/RidgeDetectionFilter.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SelectiveSearchSegmentation.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategy.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyColor.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyFill.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyMultiple.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategySize.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SelectiveSearchSegmentationStrategyTexture.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SparseMatchInterpolator.java<br>
[ 92%] Generating src/org/opencv/ximgproc/StructuredEdgeDetection.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SuperpixelLSC.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SuperpixelSEEDS.java<br>
[ 92%] Generating src/org/opencv/ximgproc/Ximgproc.java<br>
[ 92%] Generating src/org/opencv/ximgproc/SuperpixelSLIC.java<br>
[ 93%] Generating opencv-331.jar<br>
make[1]: *** [modules/ximgproc/CMakeFiles/opencv_test_ximgproc.dir/all] Error 2<br>
[javac] Note: Some input files use or override a deprecated API.<br>
[javac] Note: Recompile with -Xlint:deprecation for details.</p>
<p dir="auto">BUILD SUCCESSFUL<br>
Total time: 10 seconds<br>
Scanning dependencies of target opencv_java<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/generator/src/cpp/converters.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/generator/src/cpp/jni_part.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/generator/src/cpp/utils.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/generator/src/cpp/Mat.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/generator/src/cpp/listconverters.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/<strong>/core/misc/java/src/cpp/core_manual.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/</strong>/dnn/misc/java/src/cpp/dnn_converters.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/__/features2d/misc/java/src/cpp/features2d_converters.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/core.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/imgproc.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/ml.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/objdetect.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/photo.cpp.o<br>
[ 93%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/video.cpp.o<br>
[ 94%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/dnn.cpp.o<br>
[ 94%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/imgcodecs.cpp.o<br>
[ 94%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/videoio.cpp.o<br>
[ 94%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/highgui.cpp.o<br>
[ 94%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/features2d.cpp.o<br>
[ 94%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/calib3d.cpp.o<br>
[ 94%] Building CXX object modules/java/CMakeFiles/opencv_java.dir/gen/ximgproc.cpp.o<br>
[ 94%] Linking CXX shared library ../../lib/libopencv_java331.dylib<br>
[ 94%] Built target opencv_java<br>
make: *** [all] Error 2</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/44631967/58918202-efac0780-8746-11e9-8d83-f4e61e5b19eb.png"><img src="https://user-images.githubusercontent.com/44631967/58918202-efac0780-8746-11e9-8d83-f4e61e5b19eb.png" alt="Screenshot from 2019-06-05 04-00-20" style="max-width: 100%;"></a></p>
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.1</li>
<li>Operating System / Platform => Linux 4.18.0-kali2-amd64</li>
<li>Compiler => g++ 8.3.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Not able to execute the make command ,as it is showing<br>
<code class="notranslate"> # include <Eigen/Core></code><br>
No such directory exists</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Installation steps were taken from this <a href="https://www.learnopencv.com/install-opencv-4-on-ubuntu-16-04/" rel="nofollow">installation steps</a></p>
<p dir="auto">and the make command was this</p>
<p dir="auto"><code class="notranslate">cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=$cwd/installation/OpenCV-"$cvVersion" \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D WITH_TBB=ON \ -D WITH_V4L=ON \ -D OPENCV_PYTHON3_INSTALL_PATH=$cwd/OpenCV-$cvVersion-py3/lib/python3.5/site-packages \ -D WITH_QT=ON \ -D WITH_OPENGL=ON \ -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib/modules \ -D BUILD_EXAMPLES=ON ..</code></p>
<p dir="auto">Please describe the make command for successful build</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=derenbacha" rel="nofollow">Alexander Derenbach</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8873?redirect=false" rel="nofollow">SPR-8873</a></strong> and commented</p>
<p dir="auto">I want to have a cache class which clears itself. Since the both annotations are not working together I have to create a special task class.<br>
The problem is that the cache class is a proxy and then the scheduler runs into a ClassCastException.</p>
<p dir="auto">Perhaps it is no real bug. For me it is.<br>
It is also possible that is already a known issue without any possible solution.</p>
<p dir="auto">Desired syntax would be something like that:</p>
<p dir="auto"><code class="notranslate">@Scheduled</code>(fixedDelay=50000)<br>
<code class="notranslate">@CacheEvict</code>(value = "country", allEntries=true)<br>
public void clearCache() {<br>
//only clear cache;<br>
}</p>
<p dir="auto">greets Alex</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 RC1</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="398114271" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13293" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13293/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13293">#13293</a> <code class="notranslate">@Scheduled</code> doesn't work with well with proxies (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=paulm" rel="nofollow">Paul Middelkoop</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8651?redirect=false" rel="nofollow">SPR-8651</a></strong> and commented</p>
<p dir="auto">Tested on nightly build of August 29th 2011:</p>
<p dir="auto">public interface MyRepository {<br>
}</p>
<p dir="auto"><code class="notranslate">@Component</code><br>
public class MyRepositoryImpl implements MyRepository {<br>
<code class="notranslate">@Scheduled</code>(fixedDelay = 5)<br>
public void initCache() {}<br>
}</p>
<p dir="auto">This works. But when I change from <code class="notranslate">@Component</code> to <code class="notranslate">@Repository</code> I get this exception:</p>
<p dir="auto">java.lang.IllegalArgumentException: object is not an instance of declaring class<br>
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
at java.lang.reflect.Method.invoke(Method.java:597)<br>
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)<br>
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)<br>
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)<br>
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)<br>
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)<br>
at java.util.concurrent.FutureTask.run(FutureTask.java:138)<br>
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)<br>
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:206)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)<br>
at java.lang.Thread.run(Thread.java:662)</p>
<p dir="auto">Adding the <code class="notranslate">@Scheduled</code> method to the interface doesn't help also.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 M2</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="398115736" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13514" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13514/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13514">#13514</a> <code class="notranslate">@Scheduled</code> does not work in classes annotated with <code class="notranslate">@Cacheable</code> (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/d4123d06379fadc0b05043f5ab5a1a2cb264314b/hovercard" href="https://github.com/spring-projects/spring-framework/commit/d4123d06379fadc0b05043f5ab5a1a2cb264314b"><tt>d4123d0</tt></a></p>
<p dir="auto">2 votes, 3 watchers</p> | 1 |
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function isOkOf<a>(anything: { isOk: a }) : a {
return anything.isOk;
}
function notOver<a>(is: (value: a) => boolean) : (value: a) => boolean {
return function not(value: a) : boolean {
return !is(value);
};
}
interface A {
isOk: boolean;
}
var values : A[] = [{ isOk: true }];
values.map(notOver(isOkOf)); // <-- expected: compilation error, actual: `a` inferred to {} without a warning"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">isOkOf</span><span class="pl-c1"><</span><span class="pl-smi">a</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">anything</span>: <span class="pl-kos">{</span> <span class="pl-c1">isOk</span>: <span class="pl-smi">a</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> : <span class="pl-smi">a</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">anything</span><span class="pl-kos">.</span><span class="pl-c1">isOk</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">notOver</span><span class="pl-c1"><</span><span class="pl-smi">a</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">is</span>: <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">boolean</span><span class="pl-kos">)</span> : <span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">boolean</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">function</span> <span class="pl-en">not</span><span class="pl-kos">(</span><span class="pl-s1">value</span>: <span class="pl-smi">a</span><span class="pl-kos">)</span> : <span class="pl-smi">boolean</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1">!</span><span class="pl-en">is</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-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-c1">isOk</span>: <span class="pl-smi">boolean</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">values</span> : <span class="pl-smi">A</span><span class="pl-kos">[</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-kos">{</span> <span class="pl-c1">isOk</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-s1">values</span><span class="pl-kos">.</span><span class="pl-en">map</span><span class="pl-kos">(</span><span class="pl-en">notOver</span><span class="pl-kos">(</span><span class="pl-s1">isOkOf</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// <-- expected: compilation error, actual: `a` inferred to {} without a warning</span></pre></div> | <p dir="auto">Motivating example (one of many):</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function compare<T>(lhs: T, rhs: T): boolean {
return lhs === rhs;
}
if(compare('1', 1)) { // Expected: Error -- I made 'compare' generic for a reason!
/* ... */
}"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">compare</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">lhs</span>: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">rhs</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi">boolean</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">lhs</span> <span class="pl-c1">===</span> <span class="pl-s1">rhs</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-en">compare</span><span class="pl-kos">(</span><span class="pl-s">'1'</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-kos">{</span> <span class="pl-c">// Expected: Error -- I made 'compare' generic for a reason!</span>
<span class="pl-c">/* ... */</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Proposal</h3>
<p dir="auto">When generic type inference performs its Best Common Type operation (4.12.2), it should be an error if this returns <code class="notranslate">{}</code> when <code class="notranslate">{}</code> was not one of the input types.</p>
<p dir="auto">This is entirely consistent with other behavior already in the compiler:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var foo = bar ? '1' : 1; // Error, no BCT between '1' and 1
function fn() { // Error, no BCT between '1' and 1
if(foo) {
return '1';
} else {
return 1;
}
}"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-s1">bar</span> ? <span class="pl-s">'1'</span> : <span class="pl-c1">1</span><span class="pl-kos">;</span> <span class="pl-c">// Error, no BCT between '1' and 1</span>
<span class="pl-k">function</span> <span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// Error, no BCT between '1' and 1</span>
<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">foo</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s">'1'</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Open Questions</h3>
<p dir="auto">From @KamyarNazeri -- should this apply when there are zero input types? e.g.:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class List<T> {
items: T[];
}
var x = new List(); // Probably want an error here"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">List</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c1">items</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-kos">}</span>
<span class="pl-k">var</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">List</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Probably want an error here</span></pre></div>
<p dir="auto">That seems desirable, but has some collateral damage:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function foo<T>(x: number, a?: T, b?: T) { }
foo(0); // Error, zero input types provided for inference"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">foo</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">number</span><span class="pl-kos">,</span> <span class="pl-s1">a</span>?: <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-s1">b</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-en">foo</span><span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Error, zero input types provided for inference</span></pre></div>
<p dir="auto">This would come up slightly more often than naively expected because many .d.ts authors (mistakenly) create generic types which don't actually consume their type parameters. Perhaps this warning would effectively discourage them from doing so?</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">the following example reproducibly crashes the kernel after printing the topics. I do not get any error message.</p>
<p dir="auto">Example in question:<br>
<a href="http://scikit-learn.org/stable/auto_examples/applications/topics_extraction_with_nmf_lda.html#example-applications-topics-extraction-with-nmf-lda-py" rel="nofollow">http://scikit-learn.org/stable/auto_examples/applications/topics_extraction_with_nmf_lda.html#example-applications-topics-extraction-with-nmf-lda-py</a></p>
<p dir="auto">My input and output:<br>
<a href="http://pastebin.com/UPEfbynB" rel="nofollow">http://pastebin.com/UPEfbynB</a></p>
<p dir="auto">This occurs using python 2.7.10 64bit and scikit-learn 0.17 (fully updated anaconda) running on linux.</p>
<p dir="auto">Best regards<br>
Matthias</p> | <p dir="auto">There is a call to <code class="notranslate">exit</code> in the topic extraction example. I didn't have time to blame but that seems odd.</p> | 1 |
<h3 dir="auto">Description</h3>
<p dir="auto">The <a href="https://github.com/dart-lang/reflectable">reflectable</a> package does not work with flutter v0.6.0, while it does work with v0.5.1.</p>
<h3 dir="auto">Minimal Example</h3>
<p dir="auto">Given the following minimal example: <a href="https://github.com/s-bauer/flutter_reflectable_minimal">https://github.com/s-bauer/flutter_reflectable_minimal</a></p>
<h3 dir="auto">Working with v0.5.1</h3>
<p dir="auto">With v0.5.1 it works like expected. I execute the <code class="notranslate">tools/builder.dart</code> script using the following command<br>
<code class="notranslate">flutter packages pub run tools/builder.dart lib/main.dart</code></p>
<p dir="auto">It produces the expected <code class="notranslate">main.reflectable.dart</code> output producing the following <a href="https://gist.github.com/f8b2179af387ae4783c71063166b5772">OUTPUT</a></p>
<h3 dir="auto">Failing with v0.6.0+</h3>
<p dir="auto">With version v0.6.0 I execute the same command, but this time it fails with the following <a href="https://gist.github.com/e7b903f06b7c8688ecd95e1d3f79d7c1">OUTPUT</a>.<br>
I tested it with version v0.6.0 and 0.6.2-pre.15, maybe the bug even occurred in earlier versions of flutter. I haven't checked that!</p>
<p dir="auto"><br>
<br>
<br>
<br>
I have no idea how to further investigate this issue. Can you please look into it and find out what is going wrong here?</p> | <p dir="auto">Running the built_value generator on flutter code currently spits out a severe error:</p>
<p dir="auto"><code class="notranslate">[SEVERE] Instance of 'PartBuilder' on dartsugar|lib/models/module_data.dart: Unable to resolve asset ID for "dart:ui"</code></p>
<p dir="auto">It still works, but I wonder if 1) there is potential for things to break down the line, in which case we should make sure this doesn't happen; and 2) there's a way to do it without getting the warning. Any ideas please?</p>
<p dir="auto">See: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="282653884" data-permission-text="Title is private" data-url="https://github.com/google/built_value.dart/issues/282" data-hovercard-type="issue" data-hovercard-url="/google/built_value.dart/issues/282/hovercard" href="https://github.com/google/built_value.dart/issues/282">google/built_value.dart#282</a></p> | 1 |
<p dir="auto">Cudnn8.0 remove function "cudnnGetConvolutionForwardAlgorithm", but OpenCV still use it. So how to resolve it?</p> | <p dir="auto">New CuDNN release introduced new libraries and headers layout and excluded some functions. See initial discussion and found issues in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="614468863" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/17238" data-hovercard-type="pull_request" data-hovercard-url="/opencv/opencv/pull/17238/hovercard" href="https://github.com/opencv/opencv/pull/17238">#17238</a>. The PR is closed a s abandoned.</p>
<p dir="auto">Found changes:</p>
<ul dir="auto">
<li>introduced <code class="notranslate">cudnn_version.h</code> header with version information</li>
<li>libcudnn is split on several libraries</li>
<li><code class="notranslate">cudnnGetConvolutionForwardAlgorithm</code> function removed, but it's used in OpenCV: <div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/opencv/opencv/blob/434014b05eee6bc92c693bc7a462008b6df05b33/modules/dnn/src/cuda4dnn/csl/cudnn/convolution.hpp#L262-L270">opencv/modules/dnn/src/cuda4dnn/csl/cudnn/convolution.hpp</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 262 to 270
in
<a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/434014b05eee6bc92c693bc7a462008b6df05b33">434014b</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="L262" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="262"></td>
<td id="LC262" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">CUDA4DNN_CHECK_CUDNN</span>( </td>
</tr>
<tr class="border-0">
<td id="L263" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="263"></td>
<td id="LC263" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">cudnnGetConvolutionForwardAlgorithm</span>( </td>
</tr>
<tr class="border-0">
<td id="L264" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="264"></td>
<td id="LC264" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> handle.<span class="pl-c1">get</span>(), </td>
</tr>
<tr class="border-0">
<td id="L265" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="265"></td>
<td id="LC265" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> input.<span class="pl-c1">get</span>(), filter.<span class="pl-c1">get</span>(), conv.<span class="pl-c1">get</span>(), output.<span class="pl-c1">get</span>(), </td>
</tr>
<tr class="border-0">
<td id="L266" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="266"></td>
<td id="LC266" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> CUDNN_CONVOLUTION_FWD_PREFER_FASTEST, </td>
</tr>
<tr class="border-0">
<td id="L267" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="267"></td>
<td id="LC267" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">0</span>, <span class="pl-c"><span class="pl-c">/*</span> no memory limit <span class="pl-c">*/</span></span> </td>
</tr>
<tr class="border-0">
<td id="L268" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="268"></td>
<td id="LC268" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> &algo </td>
</tr>
<tr class="border-0">
<td id="L269" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="269"></td>
<td id="LC269" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ) </td>
</tr>
<tr class="border-0">
<td id="L270" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="270"></td>
<td id="LC270" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ); </td>
</tr>
</tbody></table>
</div>
</div>
</li>
</ul> | 1 |
<h1 dir="auto">❓ Questions & Help</h1>
<h2 dir="auto">Details</h2>
<p dir="auto">Is there a way to generate all possible sentences using a fine-tuned GPT-2 model given a certain sampling technique? For some reason I wan to exhaust all possible combination of tokens given a fine-tuned GPT-2 model with certain sampling technique. Is it doable? If it is not, how do we get an estimate of how many possible sentences are there in the latent space?</p>
<p dir="auto"><strong>A link to original question on Stack Overflow</strong>:</p> | <p dir="auto">I have a custom Bert model for relation classification based on the <a href="https://arxiv.org/abs/1905.08284" rel="nofollow">R-BERT paper</a>. The model performs well but is relatively slow on CPU, so I'd like to try exporting to ONNX.</p>
<p dir="auto">The model inherits from <code class="notranslate">BertPreTrainedModel</code> and is relatively simple:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class BertForRelationClassification(BertPreTrainedModel):
def __init__(self, config):
super(BertForRelationClassification, self).__init__(config)
self.num_labels = config.num_labels
self.bert = BertModel(config)
self.cls_dropout = nn.Dropout(0.1)
self.ent_dropout = nn.Dropout(0.1)
self.classifier = nn.Linear(config.hidden_size*3, self.config.num_labels)
self.init_weights()
def forward(self, input_ids, token_type_ids=None, attention_mask=None, e1_mask=None, e2_mask=None,
labels=None, position_ids=None, head_mask=None):
outputs = self.bert(input_ids, position_ids=position_ids, token_type_ids=token_type_ids,
attention_mask=attention_mask, head_mask=head_mask)
pooled_output = outputs[1]
sequence_output = outputs[0]
def extract_entity(sequence_output, e_mask):
extended_e_mask = e_mask.unsqueeze(1)
extended_e_mask = torch.bmm(
extended_e_mask.float(), sequence_output).squeeze(1)
return extended_e_mask.float()
e1_h = self.ent_dropout(extract_entity(sequence_output, e1_mask))
e2_h = self.ent_dropout(extract_entity(sequence_output, e2_mask))
context = self.cls_dropout(pooled_output)
pooled_output = torch.cat([context, e1_h, e2_h], dim=-1)
logits = self.classifier(pooled_output)
outputs = (logits,) + outputs[2:]
if labels is not None:
loss_fct = CrossEntropyLoss()
loss = loss_fct(logits.view(-1, self.num_labels), labels.view(-1))
outputs = (loss,) + outputs
return outputs "><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">BertForRelationClassification</span>(<span class="pl-v">BertPreTrainedModel</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>, <span class="pl-s1">config</span>):
<span class="pl-en">super</span>(<span class="pl-v">BertForRelationClassification</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>(<span class="pl-s1">config</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">num_labels</span> <span class="pl-c1">=</span> <span class="pl-s1">config</span>.<span class="pl-s1">num_labels</span>
<span class="pl-s1">self</span>.<span class="pl-s1">bert</span> <span class="pl-c1">=</span> <span class="pl-v">BertModel</span>(<span class="pl-s1">config</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">cls_dropout</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Dropout</span>(<span class="pl-c1">0.1</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">ent_dropout</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Dropout</span>(<span class="pl-c1">0.1</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">classifier</span> <span class="pl-c1">=</span> <span class="pl-s1">nn</span>.<span class="pl-v">Linear</span>(<span class="pl-s1">config</span>.<span class="pl-s1">hidden_size</span><span class="pl-c1">*</span><span class="pl-c1">3</span>, <span class="pl-s1">self</span>.<span class="pl-s1">config</span>.<span class="pl-s1">num_labels</span>)
<span class="pl-s1">self</span>.<span class="pl-en">init_weights</span>()
<span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">input_ids</span>, <span class="pl-s1">token_type_ids</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">attention_mask</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">e1_mask</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">e2_mask</span><span class="pl-c1">=</span><span class="pl-c1">None</span>,
<span class="pl-s1">labels</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">position_ids</span><span class="pl-c1">=</span><span class="pl-c1">None</span>, <span class="pl-s1">head_mask</span><span class="pl-c1">=</span><span class="pl-c1">None</span>):
<span class="pl-s1">outputs</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">bert</span>(<span class="pl-s1">input_ids</span>, <span class="pl-s1">position_ids</span><span class="pl-c1">=</span><span class="pl-s1">position_ids</span>, <span class="pl-s1">token_type_ids</span><span class="pl-c1">=</span><span class="pl-s1">token_type_ids</span>,
<span class="pl-s1">attention_mask</span><span class="pl-c1">=</span><span class="pl-s1">attention_mask</span>, <span class="pl-s1">head_mask</span><span class="pl-c1">=</span><span class="pl-s1">head_mask</span>)
<span class="pl-s1">pooled_output</span> <span class="pl-c1">=</span> <span class="pl-s1">outputs</span>[<span class="pl-c1">1</span>]
<span class="pl-s1">sequence_output</span> <span class="pl-c1">=</span> <span class="pl-s1">outputs</span>[<span class="pl-c1">0</span>]
<span class="pl-k">def</span> <span class="pl-en">extract_entity</span>(<span class="pl-s1">sequence_output</span>, <span class="pl-s1">e_mask</span>):
<span class="pl-s1">extended_e_mask</span> <span class="pl-c1">=</span> <span class="pl-s1">e_mask</span>.<span class="pl-en">unsqueeze</span>(<span class="pl-c1">1</span>)
<span class="pl-s1">extended_e_mask</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">bmm</span>(
<span class="pl-s1">extended_e_mask</span>.<span class="pl-en">float</span>(), <span class="pl-s1">sequence_output</span>).<span class="pl-en">squeeze</span>(<span class="pl-c1">1</span>)
<span class="pl-k">return</span> <span class="pl-s1">extended_e_mask</span>.<span class="pl-en">float</span>()
<span class="pl-s1">e1_h</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">ent_dropout</span>(<span class="pl-en">extract_entity</span>(<span class="pl-s1">sequence_output</span>, <span class="pl-s1">e1_mask</span>))
<span class="pl-s1">e2_h</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">ent_dropout</span>(<span class="pl-en">extract_entity</span>(<span class="pl-s1">sequence_output</span>, <span class="pl-s1">e2_mask</span>))
<span class="pl-s1">context</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">cls_dropout</span>(<span class="pl-s1">pooled_output</span>)
<span class="pl-s1">pooled_output</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">cat</span>([<span class="pl-s1">context</span>, <span class="pl-s1">e1_h</span>, <span class="pl-s1">e2_h</span>], <span class="pl-s1">dim</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">1</span>)
<span class="pl-s1">logits</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">classifier</span>(<span class="pl-s1">pooled_output</span>)
<span class="pl-s1">outputs</span> <span class="pl-c1">=</span> (<span class="pl-s1">logits</span>,) <span class="pl-c1">+</span> <span class="pl-s1">outputs</span>[<span class="pl-c1">2</span>:]
<span class="pl-k">if</span> <span class="pl-s1">labels</span> <span class="pl-c1">is</span> <span class="pl-c1">not</span> <span class="pl-c1">None</span>:
<span class="pl-s1">loss_fct</span> <span class="pl-c1">=</span> <span class="pl-v">CrossEntropyLoss</span>()
<span class="pl-s1">loss</span> <span class="pl-c1">=</span> <span class="pl-en">loss_fct</span>(<span class="pl-s1">logits</span>.<span class="pl-en">view</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-s1">self</span>.<span class="pl-s1">num_labels</span>), <span class="pl-s1">labels</span>.<span class="pl-en">view</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>))
<span class="pl-s1">outputs</span> <span class="pl-c1">=</span> (<span class="pl-s1">loss</span>,) <span class="pl-c1">+</span> <span class="pl-s1">outputs</span>
<span class="pl-k">return</span> <span class="pl-s1">outputs</span> </pre></div>
<p dir="auto">Following the <a href="https://huggingface.co/transformers/serialization.html#implementing-a-custom-configuration-for-an-unsupported-architecture" rel="nofollow">guidelines for exporting custom models to ONNX</a>, I've created a custom OnnxConfig for it and specified inputs and outputs:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
class BertForRelationClassificationOnnxConfig(OnnxConfig):
@property
def inputs(self) -> Mapping[str, Mapping[int, str]]:
return OrderedDict(
[
("input_ids", {0: "batch", 1: "sequence"}),
("attention_mask", {0: "batch", 1: "sequence"}),
("token_type_ids", {0: "batch", 1: "sequence"}),
("labels", {0: "batch", 1: "sequence"}),
("e1_mask", {0: "batch", 1: "sequence"}),
("e2_mask", {0: "batch", 1: "sequence"}),
]
)
@property
def outputs(self) -> Mapping[str, Mapping[int, str]]:
return OrderedDict([("outputs", {0: "batch", 1: "sequence"})]) "><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">BertForRelationClassificationOnnxConfig</span>(<span class="pl-v">OnnxConfig</span>):
<span class="pl-en">@<span class="pl-s1">property</span></span>
<span class="pl-k">def</span> <span class="pl-en">inputs</span>(<span class="pl-s1">self</span>) <span class="pl-c1">-></span> <span class="pl-v">Mapping</span>[<span class="pl-s1">str</span>, <span class="pl-v">Mapping</span>[<span class="pl-s1">int</span>, <span class="pl-s1">str</span>]]:
<span class="pl-k">return</span> <span class="pl-v">OrderedDict</span>(
[
(<span class="pl-s">"input_ids"</span>, {<span class="pl-c1">0</span>: <span class="pl-s">"batch"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"sequence"</span>}),
(<span class="pl-s">"attention_mask"</span>, {<span class="pl-c1">0</span>: <span class="pl-s">"batch"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"sequence"</span>}),
(<span class="pl-s">"token_type_ids"</span>, {<span class="pl-c1">0</span>: <span class="pl-s">"batch"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"sequence"</span>}),
(<span class="pl-s">"labels"</span>, {<span class="pl-c1">0</span>: <span class="pl-s">"batch"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"sequence"</span>}),
(<span class="pl-s">"e1_mask"</span>, {<span class="pl-c1">0</span>: <span class="pl-s">"batch"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"sequence"</span>}),
(<span class="pl-s">"e2_mask"</span>, {<span class="pl-c1">0</span>: <span class="pl-s">"batch"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"sequence"</span>}),
]
)
<span class="pl-en">@<span class="pl-s1">property</span></span>
<span class="pl-k">def</span> <span class="pl-en">outputs</span>(<span class="pl-s1">self</span>) <span class="pl-c1">-></span> <span class="pl-v">Mapping</span>[<span class="pl-s1">str</span>, <span class="pl-v">Mapping</span>[<span class="pl-s1">int</span>, <span class="pl-s1">str</span>]]:
<span class="pl-k">return</span> <span class="pl-v">OrderedDict</span>([(<span class="pl-s">"outputs"</span>, {<span class="pl-c1">0</span>: <span class="pl-s">"batch"</span>, <span class="pl-c1">1</span>: <span class="pl-s">"sequence"</span>})]) </pre></div>
<p dir="auto">However when I run <code class="notranslate">convert_graph_to_onnx.py</code>, (of course) the model is assumed to be <code class="notranslate">BertModel</code> and the inputs and outputs are those of the vanilla <code class="notranslate">BertModel</code>. I'm unclear on the next steps.</p>
<p dir="auto">I'm fairly sure this is what I should do next as stated on the documentation page: <em><strong>"Once this is done, a single step remains: adding this configuration object to the initialisation of the model class, and to the general <code class="notranslate">transformers</code> initialisation"</strong></em>.</p>
<p dir="auto">While I feel a bit dense I'm still not following how to make this work, as the <code class="notranslate">BertForRelationClassificationOnnxConfig</code> class I created doesn't inherit from <code class="notranslate">BertConfig</code> (I could make it do so, but the documentation doesn't specify this) so I don't see how I can use this for initialization of the model. The <a href="https://github.com/huggingface/transformers/pull/13049/commits/d097adcebd89a520f04352eb215a85916934204f">MBart example</a> doesn't make sense to me as I'm not contributing to the transformers code base.</p>
<p dir="auto">Can you please provide guidance or a specific example? Thank you!</p> | 0 |
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class C {
p: number; // Should be an error under --strictNullChecks
method() {
this.p;
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">C</span> <span class="pl-kos">{</span>
<span class="pl-c1">p</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span> <span class="pl-c">// Should be an error under --strictNullChecks</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">p</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto"><em>[A search yields this addresses <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="136845222" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/7271" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/7271/hovercard" href="https://github.com/microsoft/TypeScript/issues/7271">#7271</a>. However, I found that out only after it was written, but still decided to post it separately, as I felt it wouldn't gain enough exposure there]</em></p>
<p dir="auto">Since TS classes are purely structural, there is no current way to precisely model the <code class="notranslate">instanceof</code> runtime expression, which is the idiomatic way that instances of classes are tested at runtime:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A {
prop: number;
}
class B {
prop: number;
}
function giveMeA(x: A) {
if (!(x instanceof A))
throw new TypeError("This is not A!");
}
giveMeA(new A()); // Compiles and works
giveMeA(new B()); // Compiles but errors in runtime: "This is not A!""><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-c1">prop</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-c1">prop</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">A</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">A</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">TypeError</span><span class="pl-kos">(</span><span class="pl-s">"This is not A!"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">A</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">// Compiles and works</span>
<span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">B</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">// Compiles but errors in runtime: "This is not A!"</span></pre></div>
<h3 dir="auto">Proposed solution</h3>
<p dir="auto"><code class="notranslate">instanceof T</code>, where <code class="notranslate">T</code> is a class or possibly a function type, is a strict subtype of <code class="notranslate">T</code> that only includes the nominal reference to <code class="notranslate">T</code>, or any one of its nominal subtypes, and excludes all other structurally compatible types.</p>
<p dir="auto">It is used as follows:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A {
prop: number;
}
class B {
prop: number;
}
function giveMeA(x: instanceof A) {
if (!(x instanceof A))
throw new TypeError("This is not A!");
}
giveMeA(new A()); // Compiles and works
giveMeA(new B()); // Compilation error: "[instanceof] B is not assignable to type 'instanceof A'""><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-c1">prop</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-c1">prop</span>: <span class="pl-smi">number</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">instanceof</span> <span class="pl-smi">A</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">A</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">TypeError</span><span class="pl-kos">(</span><span class="pl-s">"This is not A!"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">A</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">// Compiles and works</span>
<span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">B</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">// Compilation error: "[instanceof] B is not assignable to type 'instanceof A'"</span></pre></div>
<h3 dir="auto">Implicit narrowing through assignment and flow analysis</h3>
<p dir="auto">In most cases, there wouldn't be a need to explicitly state <code class="notranslate">let x: instanceof A</code> as it would be implicitly inferred through code analysis:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="let x = new A(); // Type of 'x' is 'instanceof A'
x = new B(); // Type of 'x' has now been widened back to 'A'
// or alternatively implicitly changed to 'instanceof B'!"><pre class="notranslate"><span class="pl-k">let</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">A</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'x' is 'instanceof A'</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">B</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'x' has now been widened back to 'A' </span>
<span class="pl-c">// or alternatively implicitly changed to 'instanceof B'!</span></pre></div>
<p dir="auto">The <code class="notranslate">instanceof</code> runtime operator will now be used as a guard that will also cause the type to be narrowed:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare var x: A; // Type of 'x' is 'A' - it cannot be narrowed as not enough info is available
declare var y: B; // Type of 'y' is 'B'
if (x instanceof A) {
// Type of 'x' is now narrowed to `instanceof A`
x = y; // Type of 'x' is now widened back to 'A'
}
else if (x instanceof B) {
// Type is now narrowed to `instanceof B`
x = y; // Type of 'x' is now widened to 'A' (not 'B')
} "><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">x</span>: <span class="pl-smi">A</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'x' is 'A' - it cannot be narrowed as not enough info is available</span>
<span class="pl-k">declare</span> <span class="pl-k">var</span> <span class="pl-s1">y</span>: <span class="pl-smi">B</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'y' is 'B'</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">A</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Type of 'x' is now narrowed to `instanceof A`</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">y</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'x' is now widened back to 'A'</span>
<span class="pl-kos">}</span>
<span class="pl-k">else</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">B</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Type is now narrowed to `instanceof B`</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">y</span><span class="pl-kos">;</span> <span class="pl-c">// Type of 'x' is now widened to 'A' (not 'B')</span>
<span class="pl-kos">}</span> </pre></div>
<h3 dir="auto">Application on plain constructor functions</h3>
<p dir="auto">The same behavior may also be given to regular functions that are used as constructors with the <code class="notranslate">new</code> keyword (I'm using some proposed syntax here for illustration):</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function A(this: { prop: number }) {
this.prop: = 1;
}
function B(this: { prop: number }) {
this.prop: = 2;
}
function giveMeA(x: instanceof A) {
if (!(x instanceof A))
throw new TypeError("This is not A!");
}
giveMeA(new A()); // Compiles and works
giveMeA(new B()); // Compilation error: 'instanceof B' is not assignable to 'instanceof A'"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-smi">A</span><span class="pl-kos">(</span><span class="pl-smi">this</span>: <span class="pl-kos">{</span> <span class="pl-c1">prop</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">prop</span>: <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-smi">B</span><span class="pl-kos">(</span><span class="pl-smi">this</span>: <span class="pl-kos">{</span> <span class="pl-c1">prop</span>: <span class="pl-smi">number</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">prop</span>: <span class="pl-c1">=</span> <span class="pl-c1">2</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-s1">x</span>: <span class="pl-smi">instanceof</span> <span class="pl-smi">A</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</span> <span class="pl-smi">A</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">TypeError</span><span class="pl-kos">(</span><span class="pl-s">"This is not A!"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">A</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">// Compiles and works</span>
<span class="pl-en">giveMeA</span><span class="pl-kos">(</span><span class="pl-k">new</span> <span class="pl-smi">B</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">// Compilation error: 'instanceof B' is not assignable to 'instanceof A'</span></pre></div>
<h3 dir="auto">Remarks</h3>
<p dir="auto">The more conceptual way to look at this is that it takes nominal subtyping and simply views it as a specialized subdivision of structural subtyping (similarly to the way, say, string literal types are a specialization of string types), and allows both to live together in a backwards compatible way, without requiring explicitly stating a class as particularly being 'nominal' or 'structural'. It doesn't require any compiler switches and most of the time would be effective implicitly through assignment and flow analysis.</p>
<p dir="auto">I have no idea of the difficulty of implementing this, especially the analysis part, but I believe it might be possible, considering flow analysis has already been proven viable and integrated to the next release. I'm aware this may not turn out to be the 'ultimate' solution that would eventually chosen, but I thought this was interesting enough to share.</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0"><pre class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Open a session to one of the WSL containers. Open midnight commander and start scrolling with the arrows and tab between panes.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">No additional characters appearing and disappearing. No changes to the borders.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Visual artifcats that don't seem to depend on the selected font. Both screensohts use different fonts - one is Inconsolata LGC, the other is Consolas. What seem to suffer the most are the borders.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12109622/61859667-3e695880-aed1-11e9-9ec2-fa7e1698f581.png"><img src="https://user-images.githubusercontent.com/12109622/61859667-3e695880-aed1-11e9-9ec2-fa7e1698f581.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/12109622/61859681-432e0c80-aed1-11e9-9d80-207b95a9ea99.png"><img src="https://user-images.githubusercontent.com/12109622/61859681-432e0c80-aed1-11e9-9d80-207b95a9ea99.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">This is a screenshot from the current cmd connecting to the same container for reference:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/12109622/61859972-d6674200-aed1-11e9-8d8b-951797fdd354.png"><img src="https://user-images.githubusercontent.com/12109622/61859972-d6674200-aed1-11e9-8d8b-951797fdd354.png" alt="image" style="max-width: 100%;"></a></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.239]
Windows Terminal version (if applicable): 0.2.1831.0
Any other software?
- WSL Ubuntu: [1804.2019.521.0]
- Midnight Commander (standard WSL Ubuntu repository)."><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.18362.239]
Windows Terminal version (if applicable): 0.2.1831.0
Any other software?
- WSL Ubuntu: [1804.2019.521.0]
- Midnight Commander (standard WSL Ubuntu repository).
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Install Pragmata Pro Mono Liga 0.827 font (any other Unicode font should work as well).</li>
<li>Install Midnight Commander under WSL Ubuntu.
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ sudo apt install mc"><pre class="notranslate">$ sudo apt install mc</pre></div>
</li>
<li>Run Midnight Commander.
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ TERM=xterm-256color mc -d -S modarin256-defbg"><pre class="notranslate">$ TERM=xterm-256color mc -d -S modarin256-defbg</pre></div>
</li>
<li>If the issue is not there, try to resize the Terminal window or make it full screen. Press CTRL-O several times.</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">All box drawing characters rendered correctly.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Various characters rendering issues (see the red marks on the picture):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7956686/61333018-694b1100-a82e-11e9-908f-69828d9ff5a9.png"><img src="https://user-images.githubusercontent.com/7956686/61333018-694b1100-a82e-11e9-908f-69828d9ff5a9.png" alt="terminal-bug-01" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=alysson.rodrigues" rel="nofollow">Alysson Rodrigues</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9424?redirect=false" rel="nofollow">SPR-9424</a></strong> and commented</p>
<p dir="auto">Hibernate 4.1.0.Final isn´t auto flushing during before completion phase when using JTA (CMT) under Spring 3.1.1.RELEASE and JBoss AS 7.1.</p>
<p dir="auto">I´ve set hibernate.transaction.factory_class to org.hibernate.engine.transaction.internal.jta.CMTTransactionFactory and hibernate.transaction.jta.platform to org.hibernate.service.jta.platform.internal.JBossAppServerJtaPlatform. My transaction manager bean is a org.springframework.transaction.jta.JtaTransactionManager configured bean.</p>
<p dir="auto">Then, logging (TRACE mode) shows me the following info:</p>
<p dir="auto">15:23:58,555 TRACE [org.springframework.transaction.interceptor.TransactionInterceptor] (http--127.0.0.1-8080-1) Completing transaction for...</p>
<p dir="auto">15:23:58,557 TRACE [org.springframework.transaction.jta.JtaTransactionManager] (http--127.0.0.1-8080-1) Triggering beforeCommit synchronization<br>
15:23:58,558 TRACE [org.springframework.transaction.jta.JtaTransactionManager] (http--127.0.0.1-8080-1) Triggering beforeCompletion synchronization<br>
15:23:58,559 DEBUG [org.springframework.orm.jpa.EntityManagerFactoryUtils] (http--127.0.0.1-8080-1) Closing JPA EntityManager<br>
15:23:58,560 DEBUG [org.springframework.transaction.jta.JtaTransactionManager] (http--127.0.0.1-8080-1) Initiating transaction commit<br>
15:23:58,561 TRACE [org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization] (http--127.0.0.1-8080-1) JTA sync : beforeCompletion()<br>
15:23:58,562 TRACE [org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl] (http--127.0.0.1-8080-1) Transaction before completion callback<br>
15:23:58,564 TRACE [org.hibernate.internal.SessionImpl] (http--127.0.0.1-8080-1) before transaction completion<br>
15:23:58,566 TRACE [org.hibernate.engine.transaction.synchronization.internal.RegisteredSynchronization] (http--127.0.0.1-8080-1) JTA sync : afterCompletion(3)<br>
15:23:58,567 TRACE [org.hibernate.engine.transaction.synchronization.internal.SynchronizationCallbackCoordinatorImpl] (http--127.0.0.1-8080-1) Transaction after completion callback [status=3]<br>
15:23:58,568 TRACE [org.hibernate.engine.transaction.internal.TransactionCoordinatorImpl] (http--127.0.0.1-8080-1) after transaction completion<br>
15:23:58,569 DEBUG [org.hibernate.engine.jdbc.internal.LogicalConnectionImpl] (http--127.0.0.1-8080-1) Aggressively releasing JDBC connection<br>
15:23:58,570 TRACE [org.hibernate.internal.SessionImpl] (http--127.0.0.1-8080-1) after transaction completion<br>
15:23:58,571 DEBUG [org.hibernate.ejb.EntityManagerImpl] (http--127.0.0.1-8080-1) Closing entity manager after transaction completion<br>
15:23:58,572 TRACE [org.hibernate.internal.SessionImpl] (http--127.0.0.1-8080-1) Closing session<br>
15:23:58,573 TRACE [org.hibernate.engine.jdbc.internal.LogicalConnectionImpl] (http--127.0.0.1-8080-1) Closing logical connection<br>
15:23:58,574 TRACE [org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler] (http--127.0.0.1-8080-1) Handling invocation of connection method [close]<br>
15:23:58,575 TRACE [org.hibernate.engine.jdbc.internal.proxy.ConnectionProxyHandler] (http--127.0.0.1-8080-1) Invalidating connection handle<br>
15:23:58,576 TRACE [org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl] (http--127.0.0.1-8080-1) Closing JDBC container [org.hibernate.engine.jdbc.internal.JdbcResourceRegistryImpl@17072bf]<br>
...</p>
<p dir="auto">HOWEVER, IF I use org.springframework.orm.jpa.JpaTransactionManager, instead of JtaTransactionManager, adjusting the configurations above, logging shows me:</p>
<p dir="auto">16:40:36,014 TRACE [org.springframework.transaction.interceptor.TransactionInterceptor] (http--127.0.0.1-8080-1) Completing transaction for...</p>
<p dir="auto">16:40:36,015 TRACE [org.springframework.orm.jpa.JpaTransactionManager] (http--127.0.0.1-8080-1) Triggering beforeCommit synchronization<br>
16:40:36,015 TRACE [org.springframework.orm.jpa.JpaTransactionManager] (http--127.0.0.1-8080-1) Triggering beforeCompletion synchronization<br>
16:40:36,016 DEBUG [org.springframework.orm.jpa.JpaTransactionManager] (http--127.0.0.1-8080-1) Initiating transaction commit<br>
16:40:36,016 DEBUG [org.springframework.orm.jpa.JpaTransactionManager] (http--127.0.0.1-8080-1) Committing JPA transaction on EntityManager [org.hibernate.ejb.EntityManagerImpl@2d885a]<br>
16:40:36,017 DEBUG [org.hibernate.engine.transaction.spi.AbstractTransactionImpl] (http--127.0.0.1-8080-1) committing<br>
16:40:36,017 TRACE [org.hibernate.internal.SessionImpl] (http--127.0.0.1-8080-1) Automatically flushing session<br>
16:40:36,017 TRACE [org.hibernate.event.internal.AbstractFlushingEventListener] (http--127.0.0.1-8080-1) Flushing session<br>
16:40:36,018 DEBUG [org.hibernate.event.internal.AbstractFlushingEventListener] (http--127.0.0.1-8080-1) Processing flush-time cascades<br>
16:40:36,018 TRACE [org.hibernate.engine.internal.Cascade] (http--127.0.0.1-8080-1) Processing cascade ACTION_PERSIST_ON_FLUSH for: br.gov.tcu.sgos.modelo.entidade.ordemservico.OrdemServico<br>
16:40:36,019 TRACE [org.hibernate.engine.spi.CascadingAction] (http--127.0.0.1-8080-1) Cascading to persist on flush: br.gov.tcu.sgos.modelo.entidade.contrato.Contrato<br>
16:40:36,020 TRACE [org.hibernate.engine.internal.Cascade] (http--127.0.0.1-8080-1) Done processing cascade ACTION_PERSIST_ON_FLUSH for: br.gov.tcu.sgos.modelo.entidade.ordemservico.OrdemServico<br>
16:40:36,021 DEBUG [org.hibernate.event.internal.AbstractFlushingEventListener] (http--127.0.0.1-8080-1) Dirty checking collections<br>
16:40:36,021 TRACE [org.hibernate.event.internal.AbstractFlushingEventListener] (http--127.0.0.1-8080-1) Flushing entities and processing referenced collections<br>
16:40:36,022 TRACE [org.hibernate.persister.entity.AbstractEntityPersister] (http--127.0.0.1-8080-1) br.gov.tcu.sgos.modelo.entidade.ordemservico.OrdemServico.descricao is dirty<br>
16:40:36,022 TRACE [org.hibernate.event.internal.DefaultFlushEntityEventListener] (http--127.0.0.1-8080-1) Found dirty properties [[br.gov.tcu.sgos.modelo.entidade.ordemservico.OrdemServico#5]] : [Ljava.lang.String;<code class="notranslate">@1882506</code><br>
16:40:36,023 TRACE [org.hibernate.event.internal.DefaultFlushEntityEventListener] (http--127.0.0.1-8080-1) Updating entity: [br.gov.tcu.sgos.modelo.entidade.ordemservico.OrdemServico#5]<br>
16:40:36,024 TRACE [org.hibernate.engine.internal.Versioning] (http--127.0.0.1-8080-1) Incrementing: 2 to 3<br>
16:40:36,026 TRACE [org.hibernate.event.internal.AbstractFlushingEventListener] (http--127.0.0.1-8080-1) Processing unreferenced collections<br>
16:40:36,026 TRACE [org.hibernate.event.internal.AbstractFlushingEventListener] (http--127.0.0.1-8080-1) Scheduling collection removes/(re)creates/updates<br>
16:40:36,027 DEBUG [org.hibernate.event.internal.AbstractFlushingEventListener] (http--127.0.0.1-8080-1) Flushed: 0 insertions, 1 updates, 0 deletions to 1 objects</p>
<p dir="auto">SO, is something missing? Some additional configuration? Using JpaTransactionaManager everything works as expected, but when using JtaTransactionManager there is no auto flush during the before completion phase.</p>
<p dir="auto">Could you please help me?</p>
<p dir="auto">I´m looking forward to hearing good news from you.</p>
<p dir="auto">Thank you.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</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="398150499" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14040" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14040/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14040">#14040</a> Session not flushed with Hibernate 4.1.3, JTA and Spring transaction management integration (<em><strong>"duplicates"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=koen.serneels" rel="nofollow">Koen Serneels</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9404?redirect=false" rel="nofollow">SPR-9404</a></strong> and commented</p>
<p dir="auto">I have been migrating from hibernate 3.3.x to hibernate 4.1.3-final using Spring 3.1.1-release.<br>
Besides the hibernate specific refactorings (due to API changes) I thought the only changes for the Spring integration were changing packages names:</p>
<ul dir="auto">
<li>Use the LocalSessionFactoryBean from the hibernate4 package</li>
<li>Use the HibernateTransactionManger (which we only use for testing) from the hibernate4 package.</li>
</ul>
<p dir="auto">As it turned out the migration when smooth and everything was working on a local tomcat.<br>
However, once we ran our app on glassfish with the JtaTransactionManager (I tested it on GF3.1.2) we got a "No Session found for current thread" when obtaining sessionFactory.currentSession().<br>
After checking SpringSessionContext, we learned that if TransactionSynchronizationManager does not return a existing session or SessionHolder, a check<br>
is performed for a jtaSessionContext, which was null.<br>
The fact that no SessionHolder is registered made also sense as this done by the HibernateTransactionManager and we are using the JtaTransactionManager.</p>
<p dir="auto">So then learned that in case of JTA you have to specify manually how the tx manager/user transaction can be found.<br>
This was done automatically for you in the hibernate3 LocalSessionFactoryBean, but no longer in the hibernate4 LocalSessionFactoryBean.<br>
So to solve this we configured:</p>
<p dir="auto">hibernate.transaction.jta.platform and set it to SunOneJtaPlatform.</p>
<p dir="auto">This resolved the "No Session found for current thread" as it initialized the jtaSessionContext with the txmanager provided by the configured JtaPlatform.</p>
<p dir="auto">However, now it turns out that the hibernate session is not flushed before the transaction is commited and hence no modifications are written to database.<br>
In the supplied sample we have a basic hibernate setup with H2. Next we have a JtaTransactionManager and a transactional facade.<br>
Next we have a test entity having a single property. The facade has two methods, one to store the entity and one to retrieve the entity.<br>
They both marked as <code class="notranslate">@Transactional</code> and if called will run in there own transaction.<br>
The trigger is a plain JEE servlet which retrieves the facade from application context.<br>
First the store method is called (tx1) then the retrieve method is called (tx2).<br>
As you will see with the Spring hibernate4 integration there was nothing saved.<br>
With the hibernate3 integration everything works as expected and the record is saved<br>
(it can be retrieved by the subsequent retrieval transaction)</p>
<p dir="auto">What is also bizarre is that in hibernate3 modus everything goes via the Spring TransactionSynchronizationManager (even in JTA mode).<br>
Also the current session is bound via a thread local referenced via the synchronization.<br>
This is bound using a SpringSessionSynchronization which will call flush before transaction completion.</p>
<p dir="auto">All of this is gone with the hibernate4 integration from the moment a JTA environment is detected.<br>
As of then everything goes via the JTA transaction manager, as there where no Spring Transacion management involved.<br>
This could be normal to a certain extend, but it feels odd compared to the way is was done with hibernate3.</p>
<p dir="auto">I supplied two samples:</p>
<ul dir="auto">
<li>
<p dir="auto">hibernate3.zip : this is the working one, deploy it on GF and goto "<a href="http://localhost:8080/hibernate3/Persist" rel="nofollow">http://localhost:8080/hibernate3/Persist</a>"<br>
You will see that it stores a record and is able to retrieve it again</p>
</li>
<li>
<p dir="auto">hibernate4.zip : the exact same sample as above, but now with hibernate4 and using LocalSessionFactoryBean from the hibernate4 package and the hibernate.transaction.jta.platform set.<br>
You will see that it stores a record and is NOT able to retrieve it.</p>
</li>
</ul>
<p dir="auto">Both samples have a POM so it should be trivial to build them.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19646/hibernate3.zip" rel="nofollow">hibernate3.zip</a> (<em>7.33 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/19647/hibernate4.zip" rel="nofollow">hibernate4.zip</a> (<em>7.35 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151014" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14115" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14115/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14115">#14115</a> Hibernate 4 smart flushing does not work unless CMTTransactionFactory is being specified (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398109875" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12571" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12571/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12571">#12571</a> util:map support for key-types other than String not working (<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="398150642" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14060" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14060/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14060">#14060</a> Spring JtaTransactionManager is not flushing during before completion phase when using Hibernate 4 or Hibernate 3 (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">5 votes, 4 watchers</p> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
No other software?"><pre lang="none" class="notranslate"><code class="notranslate">Win32NT 10.0.18362.0 Microsoft Windows NT 10.0.18362.0
No other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Just open Windows Terminal and launch ssh command : ssh login@ipadress</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">expected to connect to ssh on remote computer</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">having an error 3 times :</p>
<p dir="auto">Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) Permission denied, please try again.<br>
Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) Permission denied, please try again.<br>
Exception non gérée : System.IndexOutOfRangeException: L'index se trouve en dehors des limites du tableau. à askpass.Program.Main(String[] args) [email protected]: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.0
Windows Terminal version: 0.6.2951.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.0
Windows Terminal version: 0.6.2951.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Setwindow width to its minimum size.<br>
Tabs are not visible now.<br>
Restore window to its previous size .</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4542110/68895067-e5942900-0728-11ea-9828-d5e28d6422e4.png"><img src="https://user-images.githubusercontent.com/4542110/68895067-e5942900-0728-11ea-9828-d5e28d6422e4.png" alt="image" style="max-width: 100%;"></a></p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/4542110/68894883-846c5580-0728-11ea-9a62-b785ee256ca6.png"><img src="https://user-images.githubusercontent.com/4542110/68894883-846c5580-0728-11ea-9a62-b785ee256ca6.png" alt="tabs2" style="max-width: 100%;"></a></p>
<p dir="auto">Tabs are now only partialy visible or not visible at all.<br>
Also terminal content is gone (when I change booth width and height), but that could be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="517959392" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/3446" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/3446/hovercard" href="https://github.com/microsoft/terminal/issues/3446">#3446</a>.</p> | 0 |
<p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>Start Atom</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.201.0<br>
<strong>System</strong>: LUCASPC<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Cannot find module './context-menu'<br>
Error: Cannot find module './context-menu'<br>
at Function.Module._resolveFilename (module.js:328:15)<br>
at Function.Module._load (module.js:270:25)<br>
at Module.require (module.js:357:17)<br>
at require (module.js:376:17)<br>
at BrowserWindow. (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\browser\atom-window.js:152:27)<br>
at emitOne (events.js:77:13)<br>
at BrowserWindow.emit (events.js:166:7)<br>
at callFunction (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br>
at EventEmitter. (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br>
at emitMany (events.js:108:13)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)"><pre class="notranslate"><code class="notranslate">At C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\Luca\AppData\Local\atom\app-0.201.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"disabledPackages": [
"git-plus",
"welcome",
"wrap-guide",
"jenkins",
"hex",
"atom-html-preview",
"bower-install",
"project-manager",
"language-ejs",
"todo-show",
"npm-install",
"minimap"
],
"projectHome": "c:\\users\\luca\\Development\\Atom\\",
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"editor": {
"invisibles": {},
"fontSize": 17
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"disabledPackages"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>git-plus<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>welcome<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>wrap-guide<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>jenkins<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>hex<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>atom-html-preview<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>bower-install<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>project-manager<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>language-ejs<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>todo-show<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>npm-install<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>minimap<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>c:<span class="pl-cce">\\</span>users<span class="pl-cce">\\</span>luca<span class="pl-cce">\\</span>Development<span class="pl-cce">\\</span>Atom<span class="pl-cce">\\</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"fontSize"</span>: <span class="pl-c1">17</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
angularjs-snippets, v0.10.2
color-picker, v1.7.0
file-icons, v1.5.5
filetype-color, v0.1.4
javascript-snippets, v1.0.0
keyboard-localization, v1.3.1
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
angularjs<span class="pl-k">-</span>snippets, v0.<span class="pl-ii">10</span>.<span class="pl-ii">2</span>
color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">7</span>.<span class="pl-ii">0</span>
file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">5</span>.<span class="pl-ii">5</span>
filetype<span class="pl-k">-</span>color, v0.<span class="pl-ii">1</span>.<span class="pl-ii">4</span>
javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
keyboard<span class="pl-k">-</span>localization, v1.<span class="pl-ii">3</span>.<span class="pl-ii">1</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">I right-clicked on a folder in the tree view</p>
<p dir="auto"><strong>Atom Version</strong>: 0.194.0<br>
<strong>System</strong>: Windows 7 Entreprise<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Cannot find module './context-menu'<br>
Error: Cannot find module './context-menu'<br>
at Function.Module._resolveFilename (module.js:328:15)<br>
at Function.Module._load (module.js:270:25)<br>
at Module.require (module.js:357:17)<br>
at require (module.js:376:17)<br>
at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br>
at emitOne (events.js:77:13)<br>
at BrowserWindow.emit (events.js:166:7)<br>
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br>
at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br>
at emitMany (events.js:108:13)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
"><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
-3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:38.2.0 core:cut (atom-text-editor.editor)
-2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
-2:26.6.0 core:save (atom-text-editor.editor.is-focused)
-2:20.6.0 core:move-down (atom-text-editor.editor)
-2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
-2:15.8.0 core:save (atom-text-editor.editor)
-2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
-2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:59.7.0 core:save (atom-text-editor.editor.is-focused)
-1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:51.6.0 core:save (atom-text-editor.editor.is-focused)
-1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
-3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:38.2.0 core:cut (atom-text-editor.editor)
-2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
-2:26.6.0 core:save (atom-text-editor.editor.is-focused)
-2:20.6.0 core:move-down (atom-text-editor.editor)
-2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
-2:15.8.0 core:save (atom-text-editor.editor)
-2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
-2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:59.7.0 core:save (atom-text-editor.editor.is-focused)
-1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:51.6.0 core:save (atom-text-editor.editor.is-focused)
-1:30.6.0 core:backspace (atom-text-editor.editor)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"ignoredNames": [
"node_modules"
],
"themes": [
"atom-dark-ui",
"seti-syntax"
],
"disabledPackages": [
"Tern"
],
"projectHome": "Y:\\app-tfoumax"
},
"editor": {
"invisibles": {},
"softWrap": true,
"showIndentGuide": true
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"ignoredNames"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"disabledPackages"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
autocomplete-plus, v2.12.0
autocomplete-snippets, v1.2.0
javascript-snippets, v1.0.0
jshint, v1.3.5
language-ejs, v0.1.0
linter, v0.12.1
pretty-json, v0.3.3
save-session, v0.14.0
Search, v0.4.0
seti-syntax, v0.4.0
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span>
language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span>
pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span>
Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Currently I have to import my components for declarations in bootstrap and in my router config.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
I should only have to import my declarations in my router config, The module should take care of adding the declarations.</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
If the current behavior is a bug or you can illustrate your feature request better with an example, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://plnkr.co" rel="nofollow">https://plnkr.co</a> or similar (you can use this template as a starting point: <a href="http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5" rel="nofollow">http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5</a>).</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Extra work that was not needed before.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.5</li>
<li><strong>Browser:</strong> [all]</li>
<li><strong>Language:</strong> [all]</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report
[x] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">Before <code class="notranslate">NgModules</code> I only had to import my routes in the routes config:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {DashboardComponent} from "./dashboard/dashboard.component";
import {SettingsComponent} from "./settings/settings.component";
import {AboutComponent} from "./about/about.component";
import {LoginComponent,LoginGuard,UserResolver} from "./login/index";
import {NotFoundComponent} from "./not-found/not-found.component";
import {TasksComponent} from './tasks/tasks.component';
export const APP_ROUTES: Routes = [
{path: '', component: DashboardComponent},
{path: 'settings', component: SettingsComponent},
{path: 'about', component: AboutComponent}
];"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">DashboardComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./dashboard/dashboard.component"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">SettingsComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./settings/settings.component"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">AboutComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./about/about.component"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">LoginComponent</span><span class="pl-kos">,</span><span class="pl-smi">LoginGuard</span><span class="pl-kos">,</span><span class="pl-smi">UserResolver</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./login/index"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">NotFoundComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./not-found/not-found.component"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">TasksComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./tasks/tasks.component'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-smi">APP_ROUTES</span>: <span class="pl-smi">Routes</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span>
<span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">''</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">DashboardComponent</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">'settings'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">SettingsComponent</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span><span class="pl-c1">path</span>: <span class="pl-s">'about'</span><span class="pl-kos">,</span> <span class="pl-c1">component</span>: <span class="pl-smi">AboutComponent</span><span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">after upgrading to NgModule I need to import this whole list once again in my bootstrap-file / MainModule:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import {DashboardComponent} from "./dashboard/dashboard.component";
import {SettingsComponent} from "./settings/settings.component";
import {AboutComponent} from "./about/about.component";
import {LoginComponent,LoginGuard,UserResolver} from "./login/index";
import {NotFoundComponent} from "./not-found/not-found.component";
import {TasksComponent} from './tasks/tasks.component';
@NgModule({
imports: [BrowserModule, FormsModule, RouterModule.forRoot(APP_ROUTES)],
entryComponents: [AppComponent],
declarations: [DashboardComponent, SettingsComponent, AboutComponent, LoginComponent, NotFoundComponent, TasksComponent ],
bootstrap: [AppComponent]
})
class MainModule {
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">DashboardComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./dashboard/dashboard.component"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">SettingsComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./settings/settings.component"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">AboutComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./about/about.component"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">LoginComponent</span><span class="pl-kos">,</span><span class="pl-smi">LoginGuard</span><span class="pl-kos">,</span><span class="pl-smi">UserResolver</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./login/index"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">NotFoundComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"./not-found/not-found.component"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span><span class="pl-smi">TasksComponent</span><span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./tasks/tasks.component'</span><span class="pl-kos">;</span>
@<span class="pl-smi">NgModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">imports</span>: <span class="pl-kos">[</span><span class="pl-smi">BrowserModule</span><span class="pl-kos">,</span> <span class="pl-smi">FormsModule</span><span class="pl-kos">,</span> <span class="pl-smi">RouterModule</span><span class="pl-kos">.</span><span class="pl-en">forRoot</span><span class="pl-kos">(</span><span class="pl-smi">APP_ROUTES</span><span class="pl-kos">)</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">entryComponents</span>: <span class="pl-kos">[</span><span class="pl-smi">AppComponent</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">declarations</span>: <span class="pl-kos">[</span><span class="pl-smi">DashboardComponent</span><span class="pl-kos">,</span> <span class="pl-smi">SettingsComponent</span><span class="pl-kos">,</span> <span class="pl-smi">AboutComponent</span><span class="pl-kos">,</span> <span class="pl-smi">LoginComponent</span><span class="pl-kos">,</span> <span class="pl-smi">NotFoundComponent</span><span class="pl-kos">,</span> <span class="pl-smi">TasksComponent</span> <span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">bootstrap</span>: <span class="pl-kos">[</span><span class="pl-smi">AppComponent</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">class</span> <span class="pl-smi">MainModule</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">This is quite a lot of copy paste...</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">I would assume, that when I pass the routing-config to the RouterModule, it should be possible for Angular to add the Routing-Components (like <code class="notranslate">DashboardComponent</code>) automatically to the module.</p>
<p dir="auto">Whereas for other Directives the NgModule-approach means less work, for Routing-Components it currently means more work than before. So it would be cool to reduce the need of copy-pasting here.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/angular/angular/commit/8efbcc996a0f9582387ee3c78dc1c54d5bed9c51/hovercard" href="https://github.com/angular/angular/commit/8efbcc996a0f9582387ee3c78dc1c54d5bed9c51"><tt>8efbcc9</tt></a></li>
<li><strong>Browser:</strong> [all ]</li>
<li><strong>Language:</strong> [all]</li>
</ul> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">It's great that you in sf 2.1 can set a global translation_domain for a form, but it's not delegated to repeated types, and setting <code class="notranslate">"options" => array("translation_domain" => "xxx")</code> does not work.</p>
<p dir="auto">My builder element looks like this:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$builder->add('password', 'repeated', array(
'type' => 'password',
'invalid_message' => 'password.invalid.match',
'first_name' => 'pass',
'second_name' => 'pass_repeated',
'required' => true,
'error_bubbling' => true,
'options' => array(
'attr' => array('autocomplete' => 'off'),
'translation_domain' => 'account'
),
));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>builder</span>-><span class="pl-en">add</span>(<span class="pl-s">'password'</span>, <span class="pl-s">'repeated'</span>, <span class="pl-en">array</span>(
<span class="pl-s">'type'</span> => <span class="pl-s">'password'</span>,
<span class="pl-s">'invalid_message'</span> => <span class="pl-s">'password.invalid.match'</span>,
<span class="pl-s">'first_name'</span> => <span class="pl-s">'pass'</span>,
<span class="pl-s">'second_name'</span> => <span class="pl-s">'pass_repeated'</span>,
<span class="pl-s">'required'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'error_bubbling'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'options'</span> => <span class="pl-en">array</span>(
<span class="pl-s">'attr'</span> => <span class="pl-en">array</span>(<span class="pl-s">'autocomplete'</span> => <span class="pl-s">'off'</span>),
<span class="pl-s">'translation_domain'</span> => <span class="pl-s">'account'</span>
),
));</pre></div>
<p dir="auto">any idea how to make this work ?</p> | <p dir="auto">I noticed that my local copy of packagist started to fail, and after some digging it appears related to PHP5.3</p>
<p dir="auto">This is all based on the 2.3 symfony branch.</p>
<p dir="auto">Here is a test to show my thinking.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /**
* https://github.com/composer/packagist/issues/458
* Based on https://github.com/composer/packagist/commit/daba8a97422a2c993653acb1b9f127f495d16c70
*/
public function testPackagist()
{
$storage = $this->getStorage();
$bag = new FlashBag();
$storage->registerBag($bag);
$storage->getBag($bag->getName());
$storage->save();
$this->assertSame($bag, $storage->getBag($bag->getName()));
}"><pre class="notranslate"><code class="notranslate"> /**
* https://github.com/composer/packagist/issues/458
* Based on https://github.com/composer/packagist/commit/daba8a97422a2c993653acb1b9f127f495d16c70
*/
public function testPackagist()
{
$storage = $this->getStorage();
$bag = new FlashBag();
$storage->registerBag($bag);
$storage->getBag($bag->getName());
$storage->save();
$this->assertSame($bag, $storage->getBag($bag->getName()));
}
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PHPUnit 4.4.0 by Sebastian Bergmann.
Configuration read from /var/www/HttpFoundation/phpunit.xml.dist
............................................................... 63 / 736 ( 8%)
............................................................... 126 / 736 ( 17%)
...........................S....................E.............. 189 / 736 ( 25%)
............................................................... 252 / 736 ( 34%)
............................................................... 315 / 736 ( 42%)
............................................................... 378 / 736 ( 51%)
............................................................... 441 / 736 ( 59%)
............................................................... 504 / 736 ( 68%)
............................................................... 567 / 736 ( 77%)
........................................................SSSSSSS 630 / 736 ( 85%)
SSSSSSSSSSSSSSSSSSSSS....................................E..... 693 / 736 ( 94%)
....S.S.S.....S.S..S..S....................
Time: 6.34 seconds, Memory: 56.25Mb
There were 2 errors:
1) Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetContent
json_encode(): Invalid UTF-8 sequence in argument
/var/www/HttpFoundation/JsonResponse.php:94
/var/www/HttpFoundation/JsonResponse.php:44
/var/www/HttpFoundation/JsonResponse.php:52
/var/www/HttpFoundation/Tests/JsonResponseTest.php:183
2) Symfony\Component\HttpFoundation\Tests\Session\Storage\NativeSessionStorageTest::testPackagist
RuntimeException: Failed to start the session: already started by PHP ($_SESSION is set).
/var/www/HttpFoundation/Session/Storage/NativeSessionStorage.php:139
/var/www/HttpFoundation/Session/Storage/NativeSessionStorage.php:265
/var/www/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php:89
FAILURES!
Tests: 736, Assertions: 1556, Errors: 2, Skipped: 36.
$ php -v
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies"><pre class="notranslate"><code class="notranslate">PHPUnit 4.4.0 by Sebastian Bergmann.
Configuration read from /var/www/HttpFoundation/phpunit.xml.dist
............................................................... 63 / 736 ( 8%)
............................................................... 126 / 736 ( 17%)
...........................S....................E.............. 189 / 736 ( 25%)
............................................................... 252 / 736 ( 34%)
............................................................... 315 / 736 ( 42%)
............................................................... 378 / 736 ( 51%)
............................................................... 441 / 736 ( 59%)
............................................................... 504 / 736 ( 68%)
............................................................... 567 / 736 ( 77%)
........................................................SSSSSSS 630 / 736 ( 85%)
SSSSSSSSSSSSSSSSSSSSS....................................E..... 693 / 736 ( 94%)
....S.S.S.....S.S..S..S....................
Time: 6.34 seconds, Memory: 56.25Mb
There were 2 errors:
1) Symfony\Component\HttpFoundation\Tests\JsonResponseTest::testSetContent
json_encode(): Invalid UTF-8 sequence in argument
/var/www/HttpFoundation/JsonResponse.php:94
/var/www/HttpFoundation/JsonResponse.php:44
/var/www/HttpFoundation/JsonResponse.php:52
/var/www/HttpFoundation/Tests/JsonResponseTest.php:183
2) Symfony\Component\HttpFoundation\Tests\Session\Storage\NativeSessionStorageTest::testPackagist
RuntimeException: Failed to start the session: already started by PHP ($_SESSION is set).
/var/www/HttpFoundation/Session/Storage/NativeSessionStorage.php:139
/var/www/HttpFoundation/Session/Storage/NativeSessionStorage.php:265
/var/www/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php:89
FAILURES!
Tests: 736, Assertions: 1556, Errors: 2, Skipped: 36.
$ php -v
PHP 5.3.10-1ubuntu3.15 with Suhosin-Patch (cli) (built: Oct 29 2014 12:19:04)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
</code></pre></div>
<p dir="auto">The passes in PHP 5.5.19</p> | 0 |
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/opencv/opencv/blob/c3e8a82c9c0b18432627fe100db332b42d64b8d3/modules/core/include/opencv2/core/private.hpp#L119">opencv/modules/core/include/opencv2/core/private.hpp</a>
</p>
<p class="mb-0 color-fg-muted">
Line 119
in
<a data-pjax="true" class="commit-tease-sha" href="/opencv/opencv/commit/c3e8a82c9c0b18432627fe100db332b42d64b8d3">c3e8a82</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="L119" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="119"></td>
<td id="LC119" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">define</span> <span class="pl-en">CV_MALLOC_ALIGN</span> <span class="pl-c1">64</span> </td>
</tr>
</tbody></table>
</div>
</div>
<br>
there is a problem: if a small struct which is created by <code class="notranslate">new</code> is stored with cv::Mat, the memory increases a lot, if CV_MALLOC_ALIGN = 64, else it is normal when CV_MALLOC_ALIGN=8<p></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include <thread>
#include <boost/circular_buffer.hpp>
#include <Eigen/Eigen>
#include <opencv2/core/core.hpp>
#include <stdlib.h>
#include <iostream>
struct OdometryEigen
{
Eigen::Matrix<double, 6, 6> p_cov;
Eigen::Matrix<double, 6, 6> v_cov;
Eigen::Matrix<double, 3, 3> R;
Eigen::Matrix<double, 3, 1> t;
Eigen::Matrix<double, 6, 1> v;
};
struct Impl
uint32_t s;
uint32_t ns;
};
struct TimestampOut
{
TimestampOut()
: impl_(new Impl)
{
}
std::shared_ptr<Impl> impl_;
};
#define ALIGN_BYTE 8
struct AlignedMat // opencv mat alloc
{
AlignedMat()
: data_(NULL)
{
}
AlignedMat(int size)
: size_(size)
, data_(NULL)
{
init();
}
AlignedMat(const AlignedMat& in)
{
size_ = in.size_;
init();
}
bool init()
{
int ret;
std::cerr << "size ----" << size_ << std::endl;
ret = posix_memalign((void**)&data_, ALIGN_BYTE, size_);
if (ret)
{
std::cerr << "failde ------------" << std::endl;
data_ = NULL;
return false;
}
std::cerr << "sucess -------" << std::endl;
for (int i = 0; i < size_; i++)
{
data_[i] = 0;
}
return true;
}
~AlignedMat()
{
if (data_)
{
free(data_);
}
}
void operator=(const AlignedMat& in)
{
if (data_)
{
free(data_);
}
size_ = in.size_;
init();
}
int size_;
char* data_;
};
#define USE_ALIGNED 1
#define USE_IMPL 0
struct ImageMat
{
#if USE_ALIGNED
ImageMat(int size)
: mat(size)
{
}
AlignedMat mat;
#else
cv::Mat mat;
#endif
ImageMat()
{
}
#if USE_IMPL
Impl timestamp;
#else
TimestampOut timestamp;
#endif
};
void addImage();
void addOdometry();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int main(int argc, char** argv)
{
(void) argc;
(void) argv;
std::shared_ptr<std::thread> add_thread = std::make_shared<std::thread>(&addImage);
add_thread->detach();
// add odo
addOdometry();
return 0;
}
void addImage()
{
static uint64_t i = 0u;
boost::circular_buffer<ImageMat> img_buffer(100);
uint64_t num = 1e7;
float delta_t = 1e-3;
(void) delta_t;
for(; i < num; i++)
{
// prepare data
const uint16_t width = 1920u;
const uint16_t height = 1080;
const uint64_t buffer_size = static_cast<uint64_t>(width) * height * 3u;
uint8_t buffer_stack[buffer_size];
(void) buffer_stack;
uint8_t* buffer = new uint8_t[buffer_size];
// set image data
#if USE_ALIGNED
ImageMat image(buffer_size);
#else
ImageMat image;
image.mat.create(width, height, CV_8UC3);
if (image.mat.isContinuous())
{
std::cerr << "true" << std::endl;
}
else
{
std::cerr << "flase" << std::endl;
}
for(int i = 0;i < (int)buffer_size; i++)
{
image.mat.data[i] = 0;
}
//memcpy(image.mat.data, buffer_stack, buffer_size);
memcpy(image.mat.data, buffer, buffer_size);
#endif
delete [] buffer;
usleep(1e5);
std::cerr << i << "th run \n";
img_buffer.push_back(image);
std::cerr << "image buffer size: " << img_buffer.size() << std::endl;
}
return;
}
void addOdometry()
{
static uint64_t i = 0u;
boost::circular_buffer<OdometryEigen> odo_buffer(1000);
uint64_t num = 1e7;
float delta_t = 1e-3;
(void) delta_t;
for(; i < num; i++)
{
OdometryEigen odo;
usleep(1e5);
std::cerr << i << "th odo run \n";
odo_buffer.push_back(odo);
std::cerr << "odo buffer size: " << odo_buffer.size() << std::endl;
}
return;
}"><pre class="notranslate"><code class="notranslate">#include <thread>
#include <boost/circular_buffer.hpp>
#include <Eigen/Eigen>
#include <opencv2/core/core.hpp>
#include <stdlib.h>
#include <iostream>
struct OdometryEigen
{
Eigen::Matrix<double, 6, 6> p_cov;
Eigen::Matrix<double, 6, 6> v_cov;
Eigen::Matrix<double, 3, 3> R;
Eigen::Matrix<double, 3, 1> t;
Eigen::Matrix<double, 6, 1> v;
};
struct Impl
uint32_t s;
uint32_t ns;
};
struct TimestampOut
{
TimestampOut()
: impl_(new Impl)
{
}
std::shared_ptr<Impl> impl_;
};
#define ALIGN_BYTE 8
struct AlignedMat // opencv mat alloc
{
AlignedMat()
: data_(NULL)
{
}
AlignedMat(int size)
: size_(size)
, data_(NULL)
{
init();
}
AlignedMat(const AlignedMat& in)
{
size_ = in.size_;
init();
}
bool init()
{
int ret;
std::cerr << "size ----" << size_ << std::endl;
ret = posix_memalign((void**)&data_, ALIGN_BYTE, size_);
if (ret)
{
std::cerr << "failde ------------" << std::endl;
data_ = NULL;
return false;
}
std::cerr << "sucess -------" << std::endl;
for (int i = 0; i < size_; i++)
{
data_[i] = 0;
}
return true;
}
~AlignedMat()
{
if (data_)
{
free(data_);
}
}
void operator=(const AlignedMat& in)
{
if (data_)
{
free(data_);
}
size_ = in.size_;
init();
}
int size_;
char* data_;
};
#define USE_ALIGNED 1
#define USE_IMPL 0
struct ImageMat
{
#if USE_ALIGNED
ImageMat(int size)
: mat(size)
{
}
AlignedMat mat;
#else
cv::Mat mat;
#endif
ImageMat()
{
}
#if USE_IMPL
Impl timestamp;
#else
TimestampOut timestamp;
#endif
};
void addImage();
void addOdometry();
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
int main(int argc, char** argv)
{
(void) argc;
(void) argv;
std::shared_ptr<std::thread> add_thread = std::make_shared<std::thread>(&addImage);
add_thread->detach();
// add odo
addOdometry();
return 0;
}
void addImage()
{
static uint64_t i = 0u;
boost::circular_buffer<ImageMat> img_buffer(100);
uint64_t num = 1e7;
float delta_t = 1e-3;
(void) delta_t;
for(; i < num; i++)
{
// prepare data
const uint16_t width = 1920u;
const uint16_t height = 1080;
const uint64_t buffer_size = static_cast<uint64_t>(width) * height * 3u;
uint8_t buffer_stack[buffer_size];
(void) buffer_stack;
uint8_t* buffer = new uint8_t[buffer_size];
// set image data
#if USE_ALIGNED
ImageMat image(buffer_size);
#else
ImageMat image;
image.mat.create(width, height, CV_8UC3);
if (image.mat.isContinuous())
{
std::cerr << "true" << std::endl;
}
else
{
std::cerr << "flase" << std::endl;
}
for(int i = 0;i < (int)buffer_size; i++)
{
image.mat.data[i] = 0;
}
//memcpy(image.mat.data, buffer_stack, buffer_size);
memcpy(image.mat.data, buffer, buffer_size);
#endif
delete [] buffer;
usleep(1e5);
std::cerr << i << "th run \n";
img_buffer.push_back(image);
std::cerr << "image buffer size: " << img_buffer.size() << std::endl;
}
return;
}
void addOdometry()
{
static uint64_t i = 0u;
boost::circular_buffer<OdometryEigen> odo_buffer(1000);
uint64_t num = 1e7;
float delta_t = 1e-3;
(void) delta_t;
for(; i < num; i++)
{
OdometryEigen odo;
usleep(1e5);
std::cerr << i << "th odo run \n";
odo_buffer.push_back(odo);
std::cerr << "odo buffer size: " << odo_buffer.size() << std::endl;
}
return;
}
</code></pre></div>
<p dir="auto">thanks.</p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.1</li>
<li>Operating System / Platform => Ubuntu 18.04</li>
<li>Compiler => GCC 7.4.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">When creating large Mat objects followed by smaller allocations that are kept in a loop, resident memory keeps growing. This does not occur when the matrices are smaller or an allocation does not happen in between. If left to keep growing, the system will run out of memory and lock up, even though no more than 2000 small strings and 2 matrices should be in memory.</p>
<p dir="auto">I've tried with OpenCV 3.4 as well, and the same thing happens</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">compile the following, run it and keep an eye on memory.</p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include <thread>
#include <utility>
#include <vector>
#include <opencv2/core/mat.hpp>
int main() {
// minimum size for leak on my machine: 558995 x 1
cv::Size size(600000, 5);
cv::Mat tmp(size, CV_8UC3, cv::Scalar(0, 0, 0));
std::vector<std::string> strings;
for (size_t i = 0; i < 2000; ++i)
{
cv::Mat tmp2(size, CV_8UC3, cv::Scalar(0, 0, 0));
tmp = tmp2;
// needs to be suitably large, so it gets allocated on the heap
std::string val("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa");
strings.push_back(val);
// gives you time to kill the process before it runs out of memory
std::this_thread::sleep_for(std::chrono::milliseconds(10));
}
}
"><pre class="notranslate">#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>thread<span class="pl-pds">></span></span>
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>utility<span class="pl-pds">></span></span>
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>vector<span class="pl-pds">></span></span>
#<span class="pl-k">include</span> <span class="pl-s"><span class="pl-pds"><</span>opencv2/core/mat.hpp<span class="pl-pds">></span></span>
<span class="pl-k">int</span> <span class="pl-en">main</span>() {
<span class="pl-c"><span class="pl-c">//</span> minimum size for leak on my machine: 558995 x 1</span>
cv::<span class="pl-c1">Size</span> <span class="pl-smi">size</span>(<span class="pl-c1">600000</span>, <span class="pl-c1">5</span>);
cv::Mat <span class="pl-smi">tmp</span>(size, CV_8UC3, <span class="pl-c1">cv::Scalar</span>(<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>));
std::vector<std::string> strings;
<span class="pl-k">for</span> (<span class="pl-c1">size_t</span> i = <span class="pl-c1">0</span>; i < <span class="pl-c1">2000</span>; ++i)
{
cv::Mat <span class="pl-smi">tmp2</span>(size, CV_8UC3, <span class="pl-c1">cv::Scalar</span>(<span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>));
tmp = tmp2;
<span class="pl-c"><span class="pl-c">//</span> needs to be suitably large, so it gets allocated on the heap</span>
std::string <span class="pl-smi">val</span>(<span class="pl-s"><span class="pl-pds">"</span>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa<span class="pl-pds">"</span></span>);
strings.<span class="pl-c1">push_back</span>(val);
<span class="pl-c"><span class="pl-c">//</span> gives you time to kill the process before it runs out of memory</span>
<span class="pl-c1">std::this_thread::sleep_for</span>(<span class="pl-c1">std::chrono::milliseconds</span>(<span class="pl-c1">10</span>));
}
}
</pre></div>
<p dir="auto">update:</p>
<p dir="auto">this appears to be an issue with the usage of posix_memalign: if I remove the checks for it in the CMakeLists.txt and remove the checks for it then recompile, the leak disappears. Strangely, just allocating with posix_memalign instead of using cv::Mat does not create the issue on its own, there seems to be some interaction with the other operations cv::Mat does when creating it.</p> | 1 |
<p dir="auto">I'm on webgl_postprocessing_outline.html line 241 added</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const parameters = {
format: THREE.RGBFormat
};
const size = renderer.getDrawingBufferSize( new THREE.Vector2() );
const renderTarget = new THREE.WebGLMultisampleRenderTarget( size.width, size.height, parameters );
composer = new EffectComposer( renderer,renderTarget );"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">parameters</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">format</span>: <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">RGBFormat</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">size</span> <span class="pl-c1">=</span> <span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">getDrawingBufferSize</span><span class="pl-kos">(</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">Vector2</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">renderTarget</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">WebGLMultisampleRenderTarget</span><span class="pl-kos">(</span> <span class="pl-s1">size</span><span class="pl-kos">.</span><span class="pl-c1">width</span><span class="pl-kos">,</span> <span class="pl-s1">size</span><span class="pl-kos">.</span><span class="pl-c1">height</span><span class="pl-kos">,</span> <span class="pl-s1">parameters</span> <span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">composer</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">EffectComposer</span><span class="pl-kos">(</span> <span class="pl-s1">renderer</span><span class="pl-kos">,</span><span class="pl-s1">renderTarget</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">code<br>
It will cause problems similar to delay effect.<br>
R134 does not have this problem</p>
<p dir="auto">A clear and concise description of what you expected to happen.</p>
<p dir="auto"><strong>Screenshots</strong></p>
<p dir="auto">If applicable, add screenshots to help explain your problem (drag and drop the image).</p>
<p dir="auto"><strong>Platform:</strong></p>
<ul dir="auto">
<li>Device: [Desktop, Mobile]</li>
<li>OS: [Windows, MacOS, Linux, Android, iOS]</li>
<li>Browser: [Chrome, Firefox, Safari, Edge]</li>
<li>Three.js version: [dev, r135]<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26533053/144235937-92070a21-b00b-4a5f-8742-1a67b1c70625.jpg"><img src="https://user-images.githubusercontent.com/26533053/144235937-92070a21-b00b-4a5f-8742-1a67b1c70625.jpg" alt="5dm1qxlnoz3igrt79d43kxi66_0" style="max-width: 100%;"></a></li>
</ul> | <p dir="auto">Because <a href="https://github.com/mrdoob/three.js/blob/27811881f61e647ae2b8b009e3032f62739c2c25/examples/js/loaders/GLTFLoader.js#L2009">GLTFParser.prototype.loadTexture</a> passes an Object URL to <code class="notranslate">loader.load</code>, the image is added to THREE.Cache with an Object URL (a random UUID string each time) as the key.</p>
<p dir="auto">After loading the same .glb file three times, THREE.Cache.files will look like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="blob://96EC1B8D-B513-4858-A051-EDE713598B4C
blob://FCDAAA03-9C00-467C-B3FF-C230551A8C92
blob://ABDE21C5-F197-4108-B1CA-CF874BEC125A"><pre class="notranslate"><code class="notranslate">blob://96EC1B8D-B513-4858-A051-EDE713598B4C
blob://FCDAAA03-9C00-467C-B3FF-C230551A8C92
blob://ABDE21C5-F197-4108-B1CA-CF874BEC125A
</code></pre></div>
<p dir="auto">Each time, the data is converted from an ArrayBuffer again, e.g.:</p>
<p dir="auto"><code class="notranslate">source.bufferView -> Blob -> URL.createObjectURL -> loader.load</code></p>
<p dir="auto">What if the image could instead be cached with a key representing the source .glb file + a "fragment" if the image filename is known? e.g.:</p>
<p dir="auto"><code class="notranslate">path/to/scene.glb#embedded-texture-image.jpg</code></p>
<p dir="auto">Then there would not be duplicate cache entries for the same image.</p>
<p dir="auto">Demo:<br>
<a href="https://codepen.io/audionerd/pen/bZodea" rel="nofollow">https://codepen.io/audionerd/pen/bZodea</a></p>
<p dir="auto">A similar issue happens with embedded data uris in GLTF files where cache key is the full data URI (e.g.: <code class="notranslate">data:image/png;base64,iVBORw0KGg....</code>). Cache works, but the key is very long.</p>
<h5 dir="auto">Three.js version</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r102</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul> | 0 |
<p dir="auto">It would be useful to be able to declare optional properties on a class, similar to how it works for interfaces. This would allow more expressive structural subtyping with plain classes:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Name {
first: string;
middle?: string;
last: string;
}
function printName(name: Name) {
//...
}
printName({first: "First", last: "Last" });
"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Name</span> <span class="pl-kos">{</span>
<span class="pl-c1">first</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">middle</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">last</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-en">printName</span><span class="pl-kos">(</span><span class="pl-s1">name</span>: <span class="pl-smi">Name</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">//...</span>
<span class="pl-kos">}</span>
<span class="pl-en">printName</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">first</span>: <span class="pl-s">"First"</span><span class="pl-kos">,</span> <span class="pl-c1">last</span>: <span class="pl-s">"Last"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Technically, this is already possible with the recent change to allow merging interfaces and non-ambient classes:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Name {
middle?: string;
}
class Name {
first: string;
last: string
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Name</span> <span class="pl-kos">{</span>
<span class="pl-c1">middle</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Name</span> <span class="pl-kos">{</span>
<span class="pl-c1">first</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">last</span>: <span class="pl-smi">string</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">However, it's not very DRY for this use case. Now, you might ask, why not just use an interface and not a class when dealing with plain objects with optional properties? Because interfaces are not real values, which means that they cannot be passed around or be decorated, both of which are often useful.</p>
<p dir="auto">My motivation for requesting this comes from writing a wrapper library for Immutable.js. I'm trying to create a nice way for library users to declare data items and update them. Here's an abbreviated example of how I would like it to look:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class TodoData {
@prop text?: string;
@prop completed?: boolean;
}
class Todo extends TypedMap(TodoData) { }
// todoMap is a typed map representing a Todo
var todo = Todo.create();
// The optional properties allow a nice typed syntax for updating the map
todoMap = todoMap.set({text: "Hello"});
// The @prop decorator was used to run Object.defineProperty on each declared property
console.log(todoMap.text);"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">TodoData</span> <span class="pl-kos">{</span>
@<span class="pl-s1">prop</span> <span class="pl-c1">text</span>?: <span class="pl-smi">string</span><span class="pl-kos">;</span>
@<span class="pl-s1">prop</span> <span class="pl-c1">completed</span>?: <span class="pl-smi">boolean</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">Todo</span> <span class="pl-k">extends</span> <span class="pl-smi">TypedMap</span><span class="pl-kos">(</span><span class="pl-smi">TodoData</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-c">// todoMap is a typed map representing a Todo</span>
<span class="pl-k">var</span> <span class="pl-s1">todo</span> <span class="pl-c1">=</span> <span class="pl-smi">Todo</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// The optional properties allow a nice typed syntax for updating the map</span>
<span class="pl-s1">todoMap</span> <span class="pl-c1">=</span> <span class="pl-s1">todoMap</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">text</span>: <span class="pl-s">"Hello"</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// The <span class="pl-k">@prop</span> decorator was used to run Object.defineProperty on each declared property</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">todoMap</span><span class="pl-kos">.</span><span class="pl-c1">text</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | <p dir="auto">I have problem of a non-DRY situation. I have <code class="notranslate">View</code> class that set a bunch of labels through a method. It must be a method because I need to give it some context.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Labels {
label1: string;
label2: string;
label3: string;
label4: string;
label5: string;
label6: string;
label7: string;
label8: string;
label9: string;
label10: string;
}
class FormView extends View {
label: Labels;
labels(l: (key: string) => string): Labels { // Some abstraction take the return of this and set it to 'this.label'.
return {
label1: l('hello_world_1'),
label2: l('hello_world_2'),
label3: l('hello_world_3'),
label4: l('hello_world_4'),
label5: l('hello_world_5'),
label6: l('hello_world_6'),
label7: l('hello_world_7'),
label8: l('hello_world_8'),
label9: l('hello_world_9'),
label10: l('hello_world_10'),
}
}
view() {
return <div>this.label.label1</div>;
}
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Labels</span> <span class="pl-kos">{</span>
<span class="pl-c1">label1</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label2</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label3</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label4</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label5</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label6</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label7</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label8</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label9</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-c1">label10</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">FormView</span> <span class="pl-k">extends</span> <span class="pl-smi">View</span> <span class="pl-kos">{</span>
<span class="pl-c1">label</span>: <span class="pl-smi">Labels</span><span class="pl-kos">;</span>
<span class="pl-en">labels</span><span class="pl-kos">(</span><span class="pl-s1">l</span>: <span class="pl-kos">(</span><span class="pl-s1">key</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">string</span><span class="pl-kos">)</span>: <span class="pl-smi">Labels</span> <span class="pl-kos">{</span> <span class="pl-c">// Some abstraction take the return of this and set it to 'this.label'.</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span>
<span class="pl-c1">label1</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_1'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label2</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_2'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label3</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_3'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label4</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_4'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label5</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_5'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label6</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_6'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label7</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_7'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label8</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_8'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label9</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_9'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label10</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_10'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-en">view</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-smi">div</span><span class="pl-kos">></span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">label</span><span class="pl-kos">.</span><span class="pl-c1">label1</span><span class="pl-c1"><</span><span class="pl-pds"><span class="pl-c1">/</span>div>;</span><span class="pl-c1"></span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">As you can see above there is a heavy repeating of properties one as an interface and one as a returning data structure. And I need to do this on every view class. And there is a bunch of them.</p>
<h1 dir="auto">Solution</h1>
<p dir="auto">Contextually type type argument.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="abstract class A<T> {
label: T;
public labels(): T;
}
class B extends A {
labels() {
return {
label1: l('hello_world_1'),
label2: l('hello_world_2'),
label3: l('hello_world_3'),
label4: l('hello_world_4'),
label5: l('hello_world_5'),
label6: l('hello_world_6'),
label7: l('hello_world_7'),
label8: l('hello_world_8'),
label9: l('hello_world_9'),
label10: l('hello_world_10'),
}
}
view() {
return <div>this.label.label1</div>;
}
}"><pre class="notranslate"><span class="pl-k">abstract</span> <span class="pl-k">class</span> <span class="pl-smi">A</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-c1">label</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-k">public</span> <span class="pl-c1">labels</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-k">extends</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-en">labels</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">label1</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_1'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label2</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_2'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label3</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_3'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label4</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_4'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label5</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_5'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label6</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_6'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label7</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_7'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label8</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_8'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label9</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_9'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-c1">label10</span>: <span class="pl-en">l</span><span class="pl-kos">(</span><span class="pl-s">'hello_world_10'</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-en">view</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-smi">div</span><span class="pl-kos">></span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">label</span><span class="pl-kos">.</span><span class="pl-c1">label1</span><span class="pl-c1"><</span><span class="pl-pds"><span class="pl-c1">/</span>div>;</span><span class="pl-c1"></span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">There is no repetition of <code class="notranslate">label1, label2...</code> etc above.</p> | 0 |
<p dir="auto">[ * ] bug report<br>
[ ] feature request<br>
[ ] support request</p>
<p dir="auto">When I try to add to many cases info [ngClass] directive appear an error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ngClass]="{
'COAAccount': node.data.type == 1,
'COACounter': node.data.type == 3,
'COAMirrorAccountMinus': node.data.type == 4,
'COAAccountCopy': node.data.type == 5,
'COAResult': node.data.type == 6,
'COAComment': node.data.type == 7,
'margin-left-level-0': level == 0,
'margin-left-level-1': level == 1,
'margin-left-level-2': level == 2,
'margin-left-level-3': level == 3
'margin-left-level-4': level == 4
}""><pre class="notranslate"><code class="notranslate">[ngClass]="{
'COAAccount': node.data.type == 1,
'COACounter': node.data.type == 3,
'COAMirrorAccountMinus': node.data.type == 4,
'COAAccountCopy': node.data.type == 5,
'COAResult': node.data.type == 6,
'COAComment': node.data.type == 7,
'margin-left-level-0': level == 0,
'margin-left-level-1': level == 1,
'margin-left-level-2': level == 2,
'margin-left-level-3': level == 3
'margin-left-level-4': level == 4
}"
</code></pre></div>
<p dir="auto">EXCEPTION: Uncaught (in promise): Error: Unsupported number of argument for pure functions: 11<br>
Error: Unsupported number of argument for pure functions: 11</p>
<p dir="auto">When remove last case <code class="notranslate">'margin-left-level-4': level == 4</code> all working fine. I assume there is some limitation for how many cases you can add into [ngClass] directive.</p> | <p dir="auto">**I'm submitting a <strong>bug</strong>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x ] bug report
[ ] feature request
[ ] support request"><pre class="notranslate"><code class="notranslate">[x ] bug report
[ ] feature request
[ ] support request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">I wanted to repeat particular element several amount of time, so I'm using <code class="notranslate">*ngFor</code> directive with hard-coded array like <code class="notranslate">[1,2,3,4,5,6,7,8,9,10]</code> and that got worked awesome. I achieved what I wanted to do.</p>
<p dir="auto"><strong>Code</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({
selector: 'my-app',
template: `<h1>My First Angular App</h1>
<div *ngFor="let item of [1,2,3,4,5,6,7,8,9,10]">
{{item}}: My Element
</div>`
})"><pre class="notranslate"><code class="notranslate">@Component({
selector: 'my-app',
template: `<h1>My First Angular App</h1>
<div *ngFor="let item of [1,2,3,4,5,6,7,8,9,10]">
{{item}}: My Element
</div>`
})
</code></pre></div>
<p dir="auto">[Demo Plunkr][1]</p>
<p dir="auto">But as soon as I increased the array size more than 10, I start getting below error. Which is really annoying.</p>
<blockquote>
<p dir="auto">[email protected]?main=browser:355 Unhandled Promise rejection:<br>
Unsupported number of argument for pure functions: 11 ; Zone: ;<br>
Task: Promise.then ; Value: Error: Unsupported number of argument for<br>
pure functions: 11(…) Error: Unsupported number of argument for pure<br>
functions: 11</p>
</blockquote>
<p dir="auto"><strong>Template</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div *ngFor="let item of [1,2,3,4,5,6,7,8,9,10,11]">
{{item}}
</div>`"><pre class="notranslate"><code class="notranslate"><div *ngFor="let item of [1,2,3,4,5,6,7,8,9,10,11]">
{{item}}
</div>`
</code></pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">I'm curious to know why that error is happening as soon as array size increase more than 10? But another interesting thing is when I put the same array in component inside variable <code class="notranslate">items= [1,2,3,4,5,6,7,8,9,10,11]</code> and used <code class="notranslate">items</code> in <code class="notranslate">*ngFor</code> and it got worked.</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.1</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> all</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> TypeScript</p>
</li>
</ul> | 1 |
<p dir="auto"><strong>Migrated issue, originally created by Maik Riechert (<a href="https://github.com/letmaik">@letmaik</a>)</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mybool = Column(Boolean, nullable=False, default=False)"><pre class="notranslate"><code class="notranslate">mybool = Column(Boolean, nullable=False, default=False)
</code></pre></div>
<p dir="auto">I use PostgreSQL which has a native boolean type. If I then also use naming convention:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""ck": "ck_%(table_name)s_%(constraint_name)s","><pre class="notranslate"><code class="notranslate">"ck": "ck_%(table_name)s_%(constraint_name)s",
</code></pre></div>
<p dir="auto">Then sqlalchemy complains:</p>
<p dir="auto">sqlalchemy.exc.InvalidRequestError: Naming convention including %(constraint_name)s token requires that constraint is explicitly named.</p>
<p dir="auto">If I define the column as</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="isPublic = Column(Boolean(create_constraint=False), nullable=False, default=False)"><pre class="notranslate"><code class="notranslate">isPublic = Column(Boolean(create_constraint=False), nullable=False, default=False)
</code></pre></div>
<p dir="auto">it works, so I think this is a bug in which sqlalchemy doesn't connect the fact that there is a native Boolean and no constraint exists actually.</p>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3067/3067.1.patch">3067.1.patch</a> | <a href="../wiki/imported_issue_attachments/3067/3067.patch">3067.patch</a> | <a href="../wiki/imported_issue_attachments/3067/3067.2.patch">3067.2.patch</a></p> | <p dir="auto">When performing a <code class="notranslate">deepcopy</code> on some serialized data, I found that anything that's of the type <code class="notranslate">MutableList</code> gets its elements duplicated. I'm using <code class="notranslate">1.3.2</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> foo = MutableList(['bar'])
>>> print(foo)
['bar']
>>> print(deepcopy(foo))
['bar', 'bar']"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-v">MutableList</span>([<span class="pl-s">'bar'</span>])
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-s1">foo</span>)
[<span class="pl-s">'bar'</span>]
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-en">deepcopy</span>(<span class="pl-s1">foo</span>))
[<span class="pl-s">'bar'</span>, <span class="pl-s">'bar'</span>]</pre></div> | 0 |
<h4 dir="auto">Issue Description</h4>
<ul dir="auto">
<li>After finish the questions in Computer Basics videos for example: <strong>Computer Basics: Measuring Data Speed</strong> I can see a flash with the first question of the next questionnaire.</li>
</ul>
<h4 dir="auto">Steps To Reproduce</h4>
<ol dir="auto">
<li>Go to <a href="http://www.freecodecamp.com/videos/computer-basics-measuring-data-speed" rel="nofollow">http://www.freecodecamp.com/videos/computer-basics-measuring-data-speed</a></li>
<li>Click in <code class="notranslate">Take me to the questions</code>.</li>
<li>Finish the questionnaire successful</li>
</ol>
<p dir="auto">Actual: View a flash with the first question of the next questionnaire and then redirect to the next video.<br>
Expected: Go to the next video.</p>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Google Chrome, Version 48.0.2564.116 (64-bit)</li>
<li>OSX El Capitan 10.11.3</li>
</ul>
<h4 dir="auto">Screenshot</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11529571/13723577/5013125e-e861-11e5-90b8-7cf849c993a5.gif"><img src="https://cloud.githubusercontent.com/assets/11529571/13723577/5013125e-e861-11e5-90b8-7cf849c993a5.gif" alt="bug-free-code-camp" data-animated-image="" style="max-width: 100%;"></a></p> | <h4 dir="auto">Issue Description</h4>
<p dir="auto">When you go into any of the hike videos, after watching the video, campers get to answer a few questions. After completing all the questions, right or wrong, all right, or with a few wrong at first, before going into the next hike, you get the first question of the next hike briefly before you are able to play the next video.</p>
<p dir="auto">I have been able to reproduce the issues without problems by playing a video and then answering the questions, also by just answering the questions without playing the video.</p>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Chrome, Version 48.0.2564.116 m</li>
<li>Windows 10 Home 64bits</li>
</ul>
<h4 dir="auto">Screenshot</h4>
<p dir="auto">In order, first it show me the next question and then it goes to the next hike.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/25eda872760564e755145808f97cd0bfdc5fe0c6fb97b30484218e843a3a16d2/687474703a2f2f692e696d6775722e636f6d2f6a366f714337502e706e67"><img src="https://camo.githubusercontent.com/25eda872760564e755145808f97cd0bfdc5fe0c6fb97b30484218e843a3a16d2/687474703a2f2f692e696d6775722e636f6d2f6a366f714337502e706e67" alt="Imgur" data-canonical-src="http://i.imgur.com/j6oqC7P.png" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/921af78e5d214b05ea98f0c4f5a02e7e2c5e98b2a801d88f952a97b15801dc8e/687474703a2f2f692e696d6775722e636f6d2f5a4f6b3979514d2e706e67"><img src="https://camo.githubusercontent.com/921af78e5d214b05ea98f0c4f5a02e7e2c5e98b2a801d88f952a97b15801dc8e/687474703a2f2f692e696d6775722e636f6d2f5a4f6b3979514d2e706e67" alt="Imgur" data-canonical-src="http://i.imgur.com/ZOk9yQM.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">In v122 (Win7), I accidentally noticed that some menu items are still missing the full key binding and only have the first part, specifically these three:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7287076/3932934/9c09a78e-2474-11e4-8e53-400adcbaeef5.png"><img src="https://cloud.githubusercontent.com/assets/7287076/3932934/9c09a78e-2474-11e4-8e53-400adcbaeef5.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7287076/3932939/b094528a-2474-11e4-8cd7-d5d5c4202c5c.png"><img src="https://cloud.githubusercontent.com/assets/7287076/3932939/b094528a-2474-11e4-8cd7-d5d5c4202c5c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">All the others appear to be fine.</p>
<p dir="auto">This is related to issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="37817249" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/2971" data-hovercard-type="issue" data-hovercard-url="/atom/atom/issues/2971/hovercard" href="https://github.com/atom/atom/issues/2971">#2971</a>.</p> | <p dir="auto">Copy/Paste don't work in the feedback editor</p>
<p dir="auto">User: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jbarnette/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jbarnette">@jbarnette</a><br>
Atom Version: 0.43.0<br>
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_0) AppleWebKit/537.36 (KHTML, like Gecko) Atom/0.43.0 Safari/537.36</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.9</li>
<li>Operating System version: windows</li>
<li>Java version: jdk1.</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">org.apache.dubbo.remoting.etcd.jetcd.LeaseTest 中的Charsets 包错误<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17998496/91008270-99a7d600-e610-11ea-9e9c-31b41735740a.png"><img src="https://user-images.githubusercontent.com/17998496/91008270-99a7d600-e610-11ea-9e9c-31b41735740a.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/17998496/91008286-a1677a80-e610-11ea-9d1f-d3050fd957aa.png"><img src="https://user-images.githubusercontent.com/17998496/91008286-a1677a80-e610-11ea-9d1f-d3050fd957aa.png" alt="image" style="max-width: 100%;"></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.3</li>
<li>Operating System version: macOs sierra</li>
<li>Java version: 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">Sometimes, when debugging connect time issue, we don't know whether the port is listening. We can check the connected log if the connect timeout occurs.</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=dbanduri" rel="nofollow">Deep Banduri</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4184?redirect=false" rel="nofollow">SPR-4184</a></strong> and commented</p>
<p dir="auto">We are seeing an issue that happens with Jboss 4.2.x where a transaction is not rolling back when the time out period has elapsed.</p>
<p dir="auto">Following is the scenario and how I can consistently reproduce the error.<br>
<br>
We have a transactional method on a bean with 2 db update operations - 1 insert and 1 delete as follows:<br>
<br>
public void foo() {<br>
<br>
dbInsertOperation();<br>
<br>
dbDeleteOperation();<br>
<br>
}<br>
<br>
I used a very small transaction time of 2 seconds, and then waited on a break point on the dbDeleteOperation line to ensure that the time out period elapses, and then executed the delete operation. What we found is that in 4.2.1, while waiting at the breakpoint, after the time out is detected by JBoss, the database receives a Rollback command from the app server which rolls back the inserted records - and the method still has not completed yet. When I then execute the delete operation, it is executed by SQL Server as a standalone transaction, since the original one associated with the method is already rolled back. When the method now returns, Spring code tries to commit the transaction, gets an IllegalStateException exception, and then tries to rollback and gets another exception. So what we have is the inserted records were rolled back but the deleted records were commited resulting in an inconsistent database.<br>
<br>
However this same exact sequence of events in 4.0.3 works exactly as one would logically expect - even after I sit on the breakpoint for a while for the time out period to elapse, then execute the delete statement, it is still part of the transaction associated with the method call. AFter the method call, Spring code tries to commit, gets an exception (I think a RollbackException), and then issues a rollback which is sent to the database and the entire transaction (insert and delete) is rolled back.<br>
<br>
So it seems that what was working logically in 4.0.3 seems to be broken in 4.2.x, everything else being equal. Question is why is JBoss issuing a rollback in the middle of the method? I opened a support ticket with JBoss Support - their response is that this is something Spring should be fixing. See below for their response:</p>
<hr>
<p dir="auto">I believe this is a problem with Spring. It should be checking the thread-to-transaction association of the thread doing the delete. In the case of the timeout, it will find that there is an inactive transaction associated with the thread (the transaction has rolled back, but it has not been removed from the active thread). It should not be trying to make forward progress with the thread at that point, particularly if the thread is about to try to do something within the scope of that transaction.</p>
<p dir="auto">The reason this worked in the 4.0.3 release was that the transaction was not rolled back, so the delete operation was done in the scope of the transaction, even though by that point the state of the transaction would have been marked as ROLLBACK_ONLY, i.e., the delete was wasted effort, so it's arguable that Spring should have checked the state anyway and optimised that operation away, since it wasn't going to complete.</p>
<p dir="auto">JBossTS now terminates transactions as soon as their timeout goes off. The old JBossTM did not: it simply marked them as ROLLBACK_ONLY, which will force them to rollback only when the container eventually tries to commit the transaction.<br>
</p>
<hr>
<p dir="auto">Thanks,<br>
Deep</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.6</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="398082647" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8786" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8786/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8786">#8786</a> Transaction Manager issue "NO Active JTA Transaction". Sprying trying to synchronise a transaction marked for rollback.</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kavipriya" rel="nofollow">Kavipriya Gnanasambandam</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4107?redirect=false" rel="nofollow">SPR-4107</a></strong> and commented</p>
<p dir="auto">I am using Spring 2.0.2 with JBoss 4.2.1 which uses Arjuna Transaction Manager. When i am trying to rollback a transaction i am getting the error message as IllegalStateException"No Active JTA Transaction" The integration between Spring and JBOSS does not work properly anymore after upgrading jboss from 4.0.4 to 4.2.1.</p>
<p dir="auto">Raised the same issue in the JBoss forum but they have replied that it is a spring bug that it is trying to synchronise a inactive transaction.</p>
<p dir="auto">For more information Please refer the below links.</p>
<p dir="auto"><a href="http://jira.jboss.com/jira/browse/JBAS-4972" rel="nofollow">http://jira.jboss.com/jira/browse/JBAS-4972</a><br>
<a href="http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118261" rel="nofollow">http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118261</a></p>
<p dir="auto">I have also raised it in the spring forum Please refer the below link</p>
<p dir="auto"><a href="http://forum.springframework.org/showthread.php?t=27867" rel="nofollow">http://forum.springframework.org/showthread.php?t=27867</a></p>
<p dir="auto">Can you please help me out in this as this seems to be very critical.</p>
<p dir="auto">Thanks,<br>
Kavipriya</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.2, 2.5 RC1</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="398083237" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8862" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8862/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8862">#8862</a> Transaction not rolling back with JBoss 4.2.x</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398082760" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8801" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8801/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8801">#8801</a> Propagation REQUIRES_NEW fails on JBoss Application Server 4.2.1 when keeping a JDBC Connection handle</li>
</ul>
<p dir="auto"><strong>Backported to:</strong> <a href="https://github.com/spring-projects/spring-framework/milestone/45?closed=1">2.0.8</a></p> | 1 |
<p dir="auto">It would be helpful if the legend shadow could be set to an arbitrary color or set to match the edgecolor of the legend.</p> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">Calls for tight_layout can produce figure titles that overlap with the input.</p>
<p dir="auto"><a href="https://gist.github.com/anonymous/44b1d44637614fc7c677e4daa53f063d">This notebook</a> has a full replication of the problem.</p>
<p dir="auto"><strong>System info</strong></p>
<p dir="auto">{'commit_hash': 'd86648c5d',<br>
'commit_source': 'installation',<br>
'default_encoding': 'UTF-8',<br>
'ipython_path': '/Users/fperez/usr/conda/envs/s159/lib/python3.6/site-packages/IPython',<br>
'ipython_version': '6.1.0',<br>
'os_name': 'posix',<br>
'platform': 'Darwin-16.7.0-x86_64-i386-64bit',<br>
'sys_executable': '/Users/fperez/usr/conda/envs/s159/bin/python',<br>
'sys_platform': 'darwin',<br>
'sys_version': '3.6.3 |Anaconda, Inc.| (default, Oct 6 2017, 12:04:38) \n'<br>
'[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]'}</p>
<p dir="auto">These were installed from default conda channels.</p> | 0 |
<p dir="auto">I'm running my nodes with<br>
<code class="notranslate">bootstrap.mlockall: true</code><br>
and I have verified that the memory is allocated using task manager and if I run<br>
<code class="notranslate">curl http://localhost:9200/_nodes/process?pretty</code><br>
it's confirmed the lock's in place.</p>
<p dir="auto">I've experienced that a node might "loose" some of the previously allocated memory, where instead I see that memory has been allocated to lucene index files as mapped files.</p>
<p dir="auto">As soon as there's load on the node (assuming it's trying to use the expected available heap memory) the cluster turns red, shows all shards assigned to the node as unassigned. Nothing is logged when it happens.</p> | <p dir="auto">I'm using Windows 2012 R2 machine.</p>
<p dir="auto">I have set my Heap Size in Environment variable as follows<br>
ES_HEAP_SIZE<br>
4g</p>
<p dir="auto">After setting the heap size, i have installed Elasticsearch as windows service using command</p>
<blockquote>
<p dir="auto">service.bat install</p>
</blockquote>
<p dir="auto">When i started the service, Elasticsearch services has taken 4GB properly (Checked in Taskmanger.exe)</p>
<p dir="auto">After some time, the memory used by elasticsearch service is came down to 1 GB.</p>
<p dir="auto">Is this expected?</p>
<p dir="auto">Helps much appreciated :)</p> | 1 |
<p dir="auto">Is there any possible chance we might see File Nesting in Visual Studio Code the same way it works in Visual Studio 2015? It was really convenient and helpful. I would adore such a feature!</p> | <ul dir="auto">
<li>VSCode Version: 1.2</li>
<li>OS Version: Windows 10 x64</li>
</ul>
<p dir="auto">THE PROBLEM: At least under cp936 and using TrueType fonts, when rendering some characters, like <code class="notranslate">λ</code>, Windows will measure the real character width of the console font chosen, and allocate console cells to display them. (The full alglrithm of how character widths are calculated is listed in <a href="https://github.com/lzybkr/PSReadLine/blob/0ffd1b2351214f1f25a433060a6c75a29c59c90f/PSReadLine/ConsoleLib.cs#L676">consolelib.cs#L676</a>.) (ps. I am curious about why this algorithm is not ported to non-DBCS code pages, like 65001, given that the Console can actually render these characters, the result is not layouted well.)</p>
<p dir="auto">Therefore if the font used for the hidden console is inconsistent with the font configured in VSCode, the character widths may be incorrect. For the <code class="notranslate">λ</code>, most Windows users under cp936/932 will see this character rendered and layouted in full-width in the real console (because this lambda in NSimSun and MS Gothic is full-width), but Code will treat them as half-width, causing incorrect layout.</p>
<p dir="auto">THE SOLUTION: Give option to set the font of the hidden console used by winpty in sync with the font used in Code.</p>
<p dir="auto">A sample font package: <a href="http://be5invis.github.io/Iosevka/inziu.html" rel="nofollow">Inziu</a>. (Inziu Iosevka SC for 936, Inziu Iosevka J for 932.)</p> | 0 |
<p dir="auto">While searching for some icons, I found the current recommended selection limited, and some icons could not be present (e.g. Twitter, Facebook, G+, Github, etc.) and I found myself looking at other alternatives. It seems other projects do exist and it would be nice to recommend them instead of duplicating the efforts.</p>
<p dir="auto">One such project is <a href="https://github.com/TeamWertarbyte/mdi-material-ui">TeamWertarbyte/mdi-material-ui</a> which actually seems to target this package (although <code class="notranslate"><1.0.0</code>) as a peer dependency.</p>
<p dir="auto">Are there any plans to include missing SVG icons, or encourage third party modules as such, or otherwise?</p> | <p dir="auto">In <a href="https://material-ui-1dab0.firebaseapp.com/demos/cards/#complex-interaction" rel="nofollow">this</a> example <code class="notranslate">Collapse</code> component is <a href="https://github.com/callemall/material-ui/blob/v1-beta/docs/src/pages/demos/cards/RecipeReviewCard.js#L93">used with <code class="notranslate">unmountOnExit</code> property</a>, which is passed to its inherited component <code class="notranslate">Transition</code>.<br>
<code class="notranslate">Transition</code> is not present in Component API docs, since it is internal.</p>
<p dir="auto">So maybe it's worth to expose that component?<br>
It will also add a possibility to write own transitions easier.</p> | 0 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Enable an option to omit the # pound sign when copying a hex code</h2>
<p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em><br>
After activating the color picker and clicking on the screen to capture the hex code, capture that value without the pound sign. For applications where I'm pasting in that data frequently they already have a pound sign in the input field so it causes a small additional edit each time.</p>
<hr>
<p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p> | <p dir="auto">Definitely a useful tool. Some things have to be done from the command-line & being able to right-click and choose "Cmd (or PS or Bash) from here" to drop-in and execute some code is an awesome feature that I miss from the past.</p> | 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" code HeroFormComponent .ts
import { Component} from '@angular/core';
import { FormControl, FormGroup, Validators,FormBuilder } from '@angular/forms';
import { ValidationService } from './validation.service';
@Component({
selector: 'hero-form',
templateUrl: 'app/hero-form.component.html'
template: `
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<div formGroupName="name">
<input formControlName="first" placeholder="First name">
<input formControlName="last" placeholder="Last name">
</div>
<input formControlName="email" placeholder="Email">
<button type="submit">Submit</button>
</form>
`,
})
export class HeroFormComponent {
form: any;
constructor(private _formBuilder: FormBuilder) {
this.form = new FormGroup({
name: new FormGroup({
first: new FormControl('Nancy',Validators.compose([Validators.required,ValidationService.codeValidator])),
last: new FormControl('Drew',Validators.compose([Validators.required,ValidationService.codeValidator]))
}),
email: new FormControl('kjA001', Validators.compose([Validators.required]))
});
}
code ValidationService.ts
export class ValidationService {
static getValidatorErrorMessage(code: string) {
let config = {
'required': '该字段必填',
'invalidCode': '验证码错误!',
};
return config[code];
}
static codeValidator(control) {
// 验证码
if (control.value.match(/^[0-9]{6}$/)) {
return null;
} else {
return { 'invalidCode': true };
}
}
}
https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate"> code HeroFormComponent .ts
import { Component} from '@angular/core';
import { FormControl, FormGroup, Validators,FormBuilder } from '@angular/forms';
import { ValidationService } from './validation.service';
@Component({
selector: 'hero-form',
templateUrl: 'app/hero-form.component.html'
template: `
<form [formGroup]="form" (ngSubmit)="onSubmit()">
<div formGroupName="name">
<input formControlName="first" placeholder="First name">
<input formControlName="last" placeholder="Last name">
</div>
<input formControlName="email" placeholder="Email">
<button type="submit">Submit</button>
</form>
`,
})
export class HeroFormComponent {
form: any;
constructor(private _formBuilder: FormBuilder) {
this.form = new FormGroup({
name: new FormGroup({
first: new FormControl('Nancy',Validators.compose([Validators.required,ValidationService.codeValidator])),
last: new FormControl('Drew',Validators.compose([Validators.required,ValidationService.codeValidator]))
}),
email: new FormControl('kjA001', Validators.compose([Validators.required]))
});
}
code ValidationService.ts
export class ValidationService {
static getValidatorErrorMessage(code: string) {
let config = {
'required': '该字段必填',
'invalidCode': '验证码错误!',
};
return config[code];
}
static codeValidator(control) {
// 验证码
if (control.value.match(/^[0-9]{6}$/)) {
return null;
} else {
return { 'invalidCode': true };
}
}
}
https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">When change the input frame's error value<br>
this.form.errors is null</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">this.form.errors show the current error: { 'invalidCode': true }</p>
<p dir="auto"><strong>Reproduction of the problem</strong></p>
<p dir="auto">Have so a piece of code in the source code:</p>
<p dir="auto">dir.valueAccessor.registerOnChange(function (newValue) {<br>
dir.viewToModelUpdate(newValue);<br>
control.markAsDirty();<br>
control.setValue(newValue, { emitModelToViewChange: false });<br>
});</p>
<p dir="auto">FormControl.prototype.setValue = function (value, _a) {<br>
var _this = this;<br>
var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent, emitModelToViewChange = _b.emitModelToViewChange, emitViewToModelChange = _b.emitViewToModelChange;<br>
emitModelToViewChange = isPresent(emitModelToViewChange) ? emitModelToViewChange : true;<br>
emitViewToModelChange = isPresent(emitViewToModelChange) ? emitViewToModelChange : true;<br>
this._value = value;<br>
if (this._onChange.length && emitModelToViewChange) {<br>
this._onChange.forEach(function (changeFn) { return changeFn(_this._value, emitViewToModelChange); });<br>
}<br>
this.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });<br>
};</p>
<p dir="auto">The inside of the source onlySelf is undefined<br>
onlySelf:false;</p>
<p dir="auto">Continue to the source code below this.updateValueAndValidity</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="AbstractControl.prototype.updateValueAndValidity = function (_a) {
var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;
onlySelf = normalizeBool(onlySelf);
emitEvent = isPresent(emitEvent) ? emitEvent : true;
this._setInitialStatus();
this._updateValue();
if (this.enabled) {
this._errors = this._runValidator();
this._status = this._calculateStatus();
if (this._status === VALID || this._status === PENDING) {
this._runAsyncValidator(emitEvent);
}
}
if (emitEvent) {
this._valueChanges.emit(this._value);
this._statusChanges.emit(this._status);
}
if (isPresent(this._parent) && !onlySelf) {
this._parent.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });
}
};"><pre class="notranslate"><code class="notranslate">AbstractControl.prototype.updateValueAndValidity = function (_a) {
var _b = _a === void 0 ? {} : _a, onlySelf = _b.onlySelf, emitEvent = _b.emitEvent;
onlySelf = normalizeBool(onlySelf);
emitEvent = isPresent(emitEvent) ? emitEvent : true;
this._setInitialStatus();
this._updateValue();
if (this.enabled) {
this._errors = this._runValidator();
this._status = this._calculateStatus();
if (this._status === VALID || this._status === PENDING) {
this._runAsyncValidator(emitEvent);
}
}
if (emitEvent) {
this._valueChanges.emit(this._value);
this._statusChanges.emit(this._status);
}
if (isPresent(this._parent) && !onlySelf) {
this._parent.updateValueAndValidity({ onlySelf: onlySelf, emitEvent: emitEvent });
}
};
</code></pre></div>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.0</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [Chrome ]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript ]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =</p>
</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ ] bug report
[x feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[ ] bug report
[x feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When there are errors in a form group, the formGroup.status is 'INVALID' but the formGroup.errors property is null.</p>
<p dir="auto">ex.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="formGroup.controls.username.errors: {invalidEmail: true}
formGroup.errors: null"><pre class="notranslate"><code class="notranslate">formGroup.controls.username.errors: {invalidEmail: true}
formGroup.errors: null
</code></pre></div>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
When the validity of a FormControl changes, have the parent FormGroup.errors merged with the errors from the controls. This is similar to how the angularjs formController.$error property works.<br>
<a href="https://docs.angularjs.org/api/ng/type/form.FormController" rel="nofollow">https://docs.angularjs.org/api/ng/type/form.FormController</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
This would be helpful because I prefer to only disable a submit button when specific errors are on a form, such as required. With this I could drive that attribute off the formControl.errors value instead of formControl.status.</p>
<p dir="auto">ex.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="From:
<button [disabled]="myForm.status !== 'VALID'">Submit</button>
To:
<button [disabled]="myForm.errors.required">Submit</button>"><pre class="notranslate"><code class="notranslate">From:
<button [disabled]="myForm.status !== 'VALID'">Submit</button>
To:
<button [disabled]="myForm.errors.required">Submit</button>
</code></pre></div> | 1 |
<p dir="auto">When 'this' is used as type it is replaced with the following interface or class.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class A {
f(a : this) {} // <=> f(a : A)
g(x : any) {
if (x instanceof this) { } // <=> x instanceof A
}
interface B {
x : this; // <=> x : B
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-en">f</span><span class="pl-kos">(</span><span class="pl-s1">a</span> : this<span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c">// <=> f(a : A)</span>
<span class="pl-en">g</span><span class="pl-kos">(</span><span class="pl-s1">x</span> : <span class="pl-smi">any</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">x</span> <span class="pl-k">instanceof</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-c">// <=> x instanceof A</span>
<span class="pl-kos">}</span>
<span class="pl-c1">interface</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-c1">x</span> : this<span class="pl-kos">;</span> <span class="pl-c">// <=> x : B</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">The early discussions about generics had this feature outlined, but it never made it into the final version for some reason. Meanwhile, it would be extremely helpful in some cases. The use case that it most dear to my heart is Knockout:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="interface Observable<T> {
<U>( this: U, value: T ): U;
}
var viewModel = {
Str: ko.observable( "abc" ),
Num: ko.observable( 5 )
};
viewModel.Str( "xyz" ).Num( 10 );"><pre class="notranslate"><code class="notranslate">interface Observable<T> {
<U>( this: U, value: T ): U;
}
var viewModel = {
Str: ko.observable( "abc" ),
Num: ko.observable( 5 )
};
viewModel.Str( "xyz" ).Num( 10 );
</code></pre></div> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">On some Windows machines (including Windows 10 and Windows 7), we experienced <code class="notranslate">ImportError: DLL load failed: The specific module could not be found</code> after upgrading from Matplotlib 3.3.0 to 3.3.1.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<p dir="auto"><code class="notranslate">import matplotlib</code> would trigger the import error while trying to import ft2font.</p>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [1]: import matplotlib
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-0484cd13f94d> in <module>
----> 1 import matplotlib
c:\users\nzlab\envs\nta-1465\lib\site-packages\matplotlib\__init__.py in <module>
172
173
--> 174 _check_versions()
175
176
c:\users\nzlab\envs\nta-1465\lib\site-packages\matplotlib\__init__.py in _check_versions()
157 # Quickfix to ensure Microsoft Visual C++ redistributable
158 # DLLs are loaded before importing kiwisolver
--> 159 from . import ft2font
160
161 for modname, minver in [
ImportError: DLL load failed: The specified module could not be found.
"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">1</span>]: <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">ImportError</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-c1"><</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-c1">-</span><span class="pl-c1">0484</span><span class="pl-s1">cd13f94d</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">1</span> <span class="pl-s1">import</span> <span class="pl-s1">matplotlib</span>
<span class="pl-s1">c</span>:\u<span class="pl-s1">sers</span>\n<span class="pl-s1">zlab</span>\e<span class="pl-s1">nvs</span>\n<span class="pl-s1">ta</span><span class="pl-c1">-</span><span class="pl-c1">1465</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\m<span class="pl-s1">atplotlib</span>\_<span class="pl-s1">_init__</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-c1">172</span>
<span class="pl-c1">173</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">174</span> <span class="pl-en">_check_versions</span>()
<span class="pl-c1">175</span>
<span class="pl-c1">176</span>
<span class="pl-s1">c</span>:\u<span class="pl-s1">sers</span>\n<span class="pl-s1">zlab</span>\e<span class="pl-s1">nvs</span>\n<span class="pl-s1">ta</span><span class="pl-c1">-</span><span class="pl-c1">1465</span>\l<span class="pl-s1">ib</span>\s<span class="pl-s1">ite</span><span class="pl-c1">-</span><span class="pl-s1">packages</span>\m<span class="pl-s1">atplotlib</span>\_<span class="pl-s1">_init__</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_check_versions</span>()
<span class="pl-c1">157</span> <span class="pl-c"># Quickfix to ensure Microsoft Visual C++ redistributable</span>
<span class="pl-c1">158</span> <span class="pl-c"># DLLs are loaded before importing kiwisolver</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">159</span> <span class="pl-k">from</span> . <span class="pl-k">import</span> <span class="pl-s1">ft2font</span>
<span class="pl-c1">160</span>
<span class="pl-c1">161</span> <span class="pl-k">for</span> <span class="pl-s1">modname</span>, <span class="pl-s1">minver</span> <span class="pl-c1">in</span> [
<span class="pl-v">ImportError</span>: <span class="pl-v">DLL</span> <span class="pl-s1">load</span> <span class="pl-s1">failed</span>: <span class="pl-v">The</span> <span class="pl-s1">specified</span> <span class="pl-s1">module</span> <span class="pl-s1">could</span> <span class="pl-c1">not</span> <span class="pl-s1">be</span> <span class="pl-s1">found</span>.</pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">No error should be presented.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 7 (64bit), Windows 10 (64bit)</li>
<li>Matplotlib version: 3.3.1</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li>
<li>Python version: Python 3.7.6</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries: Microsoft Visual C++ 2015-2019 Redistributable (x64) - 14.27.29016 <strong>NOT INSTALLED</strong></li>
</ul>
<p dir="auto">**Further diagnose shows: **</p>
<ul dir="auto">
<li>ft2font.cp37-win_amd64.pyd (Matplotlib 3.3.0) links VCRUNTIME140.dll</li>
<li>ft2font.cp37-win_amd64.pyd (Matplotlib 3.3.1) links VCRUNTIME140_1.dll</li>
</ul>
<p dir="auto">Those computers which have DLL load failed don't have VCRUNTIME140_1.dll in DLL search path.</p>
<p dir="auto"><strong>Solution</strong><br>
Installing the latest <a href="https://support.microsoft.com/en-nz/help/2977003/the-latest-supported-visual-c-downloads" rel="nofollow">Visual Studio 2015, 2019 and 2019 redistributable</a> should address the issue.</p>
<p dir="auto"><strong>Question</strong><br>
Is changing in VC++ API (from 14 to 14.1) an intentional move on Matplotlib 3.3.1 for Windows release? If so, should the VC++ dependency to be added to Installation Guide?</p> | <h3 dir="auto">Bug summary</h3>
<p dir="auto"><code class="notranslate">import</code>ing matplotlib on a fresh Windows machine or container fails with the following traceback:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python\lib\site-packages\matplotlib\__init__.py", line 113, in <module>
from . import _api, _version, cbook, _docstring, rcsetup
File "C:\Python\lib\site-packages\matplotlib\rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "C:\Python\lib\site-packages\matplotlib\colors.py", line 56, in <module>
from matplotlib import _api, _cm, cbook, scale
File "C:\Python\lib\site-packages\matplotlib\scale.py", line 22, in <module>
from matplotlib.ticker import (
File "C:\Python\lib\site-packages\matplotlib\ticker.py", line 138, in <module>
from matplotlib import transforms as mtransforms
File "C:\Python\lib\site-packages\matplotlib\transforms.py", line 49, in <module>
from matplotlib._path import (
ImportError: DLL load failed while importing _path: The specified module could not be found."><pre class="notranslate"><code class="notranslate">>>> import matplotlib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python\lib\site-packages\matplotlib\__init__.py", line 113, in <module>
from . import _api, _version, cbook, _docstring, rcsetup
File "C:\Python\lib\site-packages\matplotlib\rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "C:\Python\lib\site-packages\matplotlib\colors.py", line 56, in <module>
from matplotlib import _api, _cm, cbook, scale
File "C:\Python\lib\site-packages\matplotlib\scale.py", line 22, in <module>
from matplotlib.ticker import (
File "C:\Python\lib\site-packages\matplotlib\ticker.py", line 138, in <module>
from matplotlib import transforms as mtransforms
File "C:\Python\lib\site-packages\matplotlib\transforms.py", line 49, in <module>
from matplotlib._path import (
ImportError: DLL load failed while importing _path: The specified module could not be found.
</code></pre></div>
<p dir="auto">AFAIK, the DLL that's being called for isn't displayed here but I suspect this is something from the MSVC runtime.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker run -it python:3.11.1-windowsservercore-1809 powershell
pip install matplotlib
python
import matplotlib"><pre class="notranslate"><code class="notranslate">docker run -it python:3.11.1-windowsservercore-1809 powershell
pip install matplotlib
python
import matplotlib
</code></pre></div>
<h3 dir="auto">Actual outcome</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python\lib\site-packages\matplotlib\__init__.py", line 113, in <module>
from . import _api, _version, cbook, _docstring, rcsetup
File "C:\Python\lib\site-packages\matplotlib\rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "C:\Python\lib\site-packages\matplotlib\colors.py", line 56, in <module>
from matplotlib import _api, _cm, cbook, scale
File "C:\Python\lib\site-packages\matplotlib\scale.py", line 22, in <module>
from matplotlib.ticker import (
File "C:\Python\lib\site-packages\matplotlib\ticker.py", line 138, in <module>
from matplotlib import transforms as mtransforms
File "C:\Python\lib\site-packages\matplotlib\transforms.py", line 49, in <module>
from matplotlib._path import (
ImportError: DLL load failed while importing _path: The specified module could not be found."><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python\lib\site-packages\matplotlib\__init__.py", line 113, in <module>
from . import _api, _version, cbook, _docstring, rcsetup
File "C:\Python\lib\site-packages\matplotlib\rcsetup.py", line 27, in <module>
from matplotlib.colors import Colormap, is_color_like
File "C:\Python\lib\site-packages\matplotlib\colors.py", line 56, in <module>
from matplotlib import _api, _cm, cbook, scale
File "C:\Python\lib\site-packages\matplotlib\scale.py", line 22, in <module>
from matplotlib.ticker import (
File "C:\Python\lib\site-packages\matplotlib\ticker.py", line 138, in <module>
from matplotlib import transforms as mtransforms
File "C:\Python\lib\site-packages\matplotlib\transforms.py", line 49, in <module>
from matplotlib._path import (
ImportError: DLL load failed while importing _path: The specified module could not be found.
</code></pre></div>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">matplotlib imports without errors.</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto">I <em>think</em> the MSVC runtime is currently a dependency of matplotlib and the required DLL should be distributed with the wheel. If I run <code class="notranslate">pip install msvc-runtime</code> the import works, maybe that package or something like it could be a transient OS-specific dependency.</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">Windows 10</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">Import fails (3.6.2, 3.6.1, 3.6.0)</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">Unknown, import fails</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">3.11.1</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto">N/A</p>
<h3 dir="auto">Installation</h3>
<p dir="auto">pip</p> | 1 |
Subsets and Splits