text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<h3 dir="auto">Current Behavior:</h3>
<p dir="auto">publishing throws an error</p>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">publish without error</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<p dir="auto">nvm use 15.12.0;<br>
npm publish</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="0 verbose cli [
0 verbose cli '/home/jonathan/.nvm/versions/node/v15.12.0/bin/node',
0 verbose cli '/home/jonathan/.nvm/versions/node/v15.12.0/bin/npm',
0 verbose cli 'publish',
0 verbose cli '--tag',
0 verbose cli 'alpha'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:/home/jonathan/.nvm/versions/node/v15.12.0/lib/node_modules/npm/npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/home/jonathan/Workspace/nti/app/webapp/.npmrc Completed in 2ms
9 timing config:load:project Completed in 2ms
10 timing config:load:file:/home/jonathan/.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:/home/jonathan/.nvm/versions/node/v15.12.0/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 8ms
19 verbose npm-session 58bbfc3072044dcf
20 timing npm:load Completed in 12ms
21 verbose publish [ '.' ]
22 timing command:publish Completed in 19ms
23 verbose stack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
23 verbose stack at new NodeError (node:internal/errors:329:5)
23 verbose stack at validateString (node:internal/validators:129:11)
23 verbose stack at join (node:path:1081:7)
23 verbose stack at flatten (/home/jonathan/.nvm/versions/node/v15.12.0/lib/node_modules/npm/lib/utils/flat-options.js:50:10)
23 verbose stack at Publish.publishConfigToOpts (/home/jonathan/.nvm/versions/node/v15.12.0/lib/node_modules/npm/lib/publish.js:140:12)
23 verbose stack at Publish.publish (/home/jonathan/.nvm/versions/node/v15.12.0/lib/node_modules/npm/lib/publish.js:58:32)
24 verbose cwd /home/jonathan/Workspace/nti/app/webapp
25 verbose Linux 5.10.23-200.fc33.x86_64
26 verbose argv "/home/jonathan/.nvm/versions/node/v15.12.0/bin/node" "/home/jonathan/.nvm/versions/node/v15.12.0/bin/npm" "publish" "--tag" "alpha"
27 verbose node v15.12.0
28 verbose npm v7.6.3
29 error code ERR_INVALID_ARG_TYPE
30 error The "path" argument must be of type string. Received undefined
31 verbose exit 1"><pre class="notranslate"><code class="notranslate">0 verbose cli [
0 verbose cli '/home/jonathan/.nvm/versions/node/v15.12.0/bin/node',
0 verbose cli '/home/jonathan/.nvm/versions/node/v15.12.0/bin/npm',
0 verbose cli 'publish',
0 verbose cli '--tag',
0 verbose cli 'alpha'
0 verbose cli ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:/home/jonathan/.nvm/versions/node/v15.12.0/lib/node_modules/npm/npmrc Completed in 1ms
5 timing config:load:builtin Completed in 1ms
6 timing config:load:cli Completed in 1ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/home/jonathan/Workspace/nti/app/webapp/.npmrc Completed in 2ms
9 timing config:load:project Completed in 2ms
10 timing config:load:file:/home/jonathan/.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:/home/jonathan/.nvm/versions/node/v15.12.0/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 0ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 8ms
19 verbose npm-session 58bbfc3072044dcf
20 timing npm:load Completed in 12ms
21 verbose publish [ '.' ]
22 timing command:publish Completed in 19ms
23 verbose stack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
23 verbose stack at new NodeError (node:internal/errors:329:5)
23 verbose stack at validateString (node:internal/validators:129:11)
23 verbose stack at join (node:path:1081:7)
23 verbose stack at flatten (/home/jonathan/.nvm/versions/node/v15.12.0/lib/node_modules/npm/lib/utils/flat-options.js:50:10)
23 verbose stack at Publish.publishConfigToOpts (/home/jonathan/.nvm/versions/node/v15.12.0/lib/node_modules/npm/lib/publish.js:140:12)
23 verbose stack at Publish.publish (/home/jonathan/.nvm/versions/node/v15.12.0/lib/node_modules/npm/lib/publish.js:58:32)
24 verbose cwd /home/jonathan/Workspace/nti/app/webapp
25 verbose Linux 5.10.23-200.fc33.x86_64
26 verbose argv "/home/jonathan/.nvm/versions/node/v15.12.0/bin/node" "/home/jonathan/.nvm/versions/node/v15.12.0/bin/npm" "publish" "--tag" "alpha"
27 verbose node v15.12.0
28 verbose npm v7.6.3
29 error code ERR_INVALID_ARG_TYPE
30 error The "path" argument must be of type string. Received undefined
31 verbose exit 1
</code></pre></div>
<h3 dir="auto">Environment:</h3>
<ul dir="auto">
<li>OS: Fedora 33</li>
<li>Node: 15.12.0</li>
<li>npm: 7.6.3</li>
</ul> | <h3 dir="auto">Current Behavior:</h3>
<p dir="auto">When running <code class="notranslate">npm publish</code> the following error appears:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /home/xx/.npm/_logs/2021-03-06T09_10_43_193Z-debug.log"><pre class="notranslate"><code class="notranslate">npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string. Received undefined
npm ERR! A complete log of this run can be found in:
npm ERR! /home/xx/.npm/_logs/2021-03-06T09_10_43_193Z-debug.log
</code></pre></div>
<p dir="auto">The debug trace shows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="23 verbose stack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
23 verbose stack at validateString (internal/validators.js:124:11)
23 verbose stack at join (path.js:1039:7)
23 verbose stack at flatten (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/utils/flat-options.js:50:10)
23 verbose stack at Publish.publishConfigToOpts (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/publish.js:140:12)
23 verbose stack at Publish.publish (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/publish.js:58:32)"><pre class="notranslate"><code class="notranslate">23 verbose stack TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
23 verbose stack at validateString (internal/validators.js:124:11)
23 verbose stack at join (path.js:1039:7)
23 verbose stack at flatten (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/utils/flat-options.js:50:10)
23 verbose stack at Publish.publishConfigToOpts (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/publish.js:140:12)
23 verbose stack at Publish.publish (/home/xx/.nvm/versions/node/v14.16.0/lib/node_modules/npm/lib/publish.js:58:32)
</code></pre></div>
<h3 dir="auto">Expected Behavior:</h3>
<p dir="auto">npm publish to continue working as it did in version 6</p>
<h3 dir="auto">Steps To Reproduce:</h3>
<ol dir="auto">
<li>In this environment...<br>
Ubuntu 20.04<br>
Node 14.16.0<br>
npm 7.6.1</li>
<li>With this config...<br>
The package is configured to be published to github as per: <a href="https://docs.github.com/en/packages/guides/configuring-npm-for-use-with-github-packages#publishing-a-package-using-publishconfig-in-the-packagejson-file">github instrutions</a></li>
</ol>
<p dir="auto">package.json includes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "publishConfig": {
"registry": "https://npm.pkg.github.com"
},"><pre class="notranslate"><code class="notranslate"> "publishConfig": {
"registry": "https://npm.pkg.github.com"
},
</code></pre></div>
<ol start="3" dir="auto">
<li>Run <code class="notranslate">npm publish</code></li>
<li>See error:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string. Received undefined`"><pre class="notranslate"><code class="notranslate">npm ERR! code ERR_INVALID_ARG_TYPE
npm ERR! The "path" argument must be of type string. Received undefined`
</code></pre></div>
<h3 dir="auto">Environment:</h3>
<p dir="auto">Ubuntu 20.04<br>
Node 14.16.0<br>
npm 7.6.1</p>
<h3 dir="auto">Possible cause</h3>
<p dir="auto">The issue seems to be related to changes made to the <code class="notranslate">flatten()</code> method in <a href="https://github.com/npm/cli/blob/08673c34f0f131619ea8eb75dd325e755bf0a323/lib/utils/flat-options.js#L50">utils/flat-options.js</a><br>
This is being called with the <code class="notranslate">publishConfig</code> which only contains a <code class="notranslate">registry</code> property.<br>
However flatten (line 50), tries to use <code class="notranslate">join()</code> to create a path from the non-existent<code class="notranslate">'cache</code> property, hence the error (I believe).<br>
Looking at the changes, it seems that v6 used to read the npm config for the <code class="notranslate">cache</code> value.</p>
<h3 dir="auto">Workaround</h3>
<p dir="auto">My temporary workaround for this is to add a <strong>cache</strong> property to the publishConfig section, using the <a href="https://docs.npmjs.com/cli/v7/using-npm/config#cache" rel="nofollow">default cache value</a>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "publishConfig": {
"cache": "~/.npm",
"registry": "https://npm.pkg.github.com"
},"><pre class="notranslate"><code class="notranslate"> "publishConfig": {
"cache": "~/.npm",
"registry": "https://npm.pkg.github.com"
},
</code></pre></div>
<p dir="auto">As others have noted, this workaround has the side-effect of creating a <code class="notranslate">~/.npm</code> directory in the root of the project. My solution to this was then simply to add <code class="notranslate">~/.npm</code> to <code class="notranslate">.gitgnore</code></p>
<p dir="auto">I guess that you could name this cache directory whatever you like. I used the default value simply to make publish work again. Note that my suggestion is purely a workaround and doesn't resolve the actual issue. Although I could see in the v7 code where the change has been made that is causing this issue, unfortunately I was unable to understand why that change was made.</p> | 1 |
<p dir="auto">In the opencv installation process on Ubuntu 16.04, Error occurs after "make" command is typed in. The report is in the following:</p>
<p dir="auto">/home/kangyun/Software/opencv/opencv_contrib-master/modules/xfeatures2d/test/test_features2d.cpp:51:10: fatal error: features2d/test/test_detectors_regression.impl.hpp: No such file or directory<br>
<strong>#include "features2d/test/test_detectors_regression.impl.hpp"<br>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>
compilation terminated.</strong><br>
modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/build.make:75: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_features2d.cpp.o' failed<br>
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_features2d.cpp.o] Error 1<br>
CMakeFiles/Makefile2:5806: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all' failed<br>
make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all] Error 2<br>
Makefile:162: recipe for target 'all' failed<br>
make: *** [all] Error 2</p>
<p dir="auto">Would you please give me a hand? Thanks very much!</p> | <p dir="auto">make -j8 error</p>
<p dir="auto">Scanning dependencies of target opencv_test_ximgproc<br>
/home/zkl/zklcode/code/pycv/opencv_contrib/modules/xfeatures2d/test/test_rotation_and_scale_invariance.cpp:7:82: fatal error: features2d/test/test_detectors_invariance.impl.hpp: No such file or directory<br>
compilation terminated.<br>
Scanning dependencies of target opencv_perf_xfeatures2d<br>
modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/build.make:110: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_rotation_and_scale_invariance.cpp.o' failed<br>
make[2]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/test/test_rotation_and_scale_invariance.cpp.o] Error 1<br>
make[2]: *** Waiting for unfinished jobs....</p>
<p dir="auto">Scanning dependencies of target opencv_test_aruco<br>
[ 86%] Building CXX object modules/aruco/CMakeFiles/opencv_test_aruco.dir/test/test_misc.cpp.o<br>
CMakeFiles/Makefile2:14780: recipe for target 'modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all' failed<br>
make[1]: *** [modules/xfeatures2d/CMakeFiles/opencv_test_xfeatures2d.dir/all] Error 2<br>
make[1]: *** Waiting for unfinished jobs....</p> | 1 |
<h3 dir="auto">Description</h3>
<p dir="auto">I'm running a Scrapy crawler from PyCharm's Python Console:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5827775/91909783-378c4800-ec84-11ea-83fc-849e6acb383b.png"><img src="https://user-images.githubusercontent.com/5827775/91909783-378c4800-ec84-11ea-83fc-849e6acb383b.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/5827775/91909802-43780a00-ec84-11ea-9155-cc636e1180e6.png"><img src="https://user-images.githubusercontent.com/5827775/91909802-43780a00-ec84-11ea-9155-cc636e1180e6.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">In my code (below), I export the scraped content to CSV files through <code class="notranslate">CsvItemExporter</code>. When run from PyCharm's Python Console (using both configurations above), the scraper runs fine, but doesn't write to the CSV files; they are 0 bytes long after the crawler runs. However, when I run scrapy from the command line (<code class="notranslate">scrapy crawl disasters</code>) or from PyCharm's debugger, suddenly it writes to the CSV files as intended.</p>
<p dir="auto">I tried this using <code class="notranslate">XmlItemExporter</code> as well. Same results.</p>
<p dir="auto">How can I run this using PyCharm's Python Console?</p>
<p dir="auto">Here is my code:</p>
<p dir="auto"><code class="notranslate">spiders/disasters.py</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from datetime import datetime as dt
from scrapy.linkextractors import LinkExtractor
from scrapy.spiders import CrawlSpider, Rule
from asnscraper.items import DisasterRaw, AirportRaw
import re
RE_LISTING = r'.*/dblist\.php\?(Year)=(1920)$'
RE_RECORD = r'.*/record\.php\?id=((\d{8})-(\d+))$'
RE_AIRPORT = r'.*/airport\.php\?id=(\w+)$'
class DisasterSpider(CrawlSpider):
name = 'disasters'
allowed_domains = ['aviation-safety.net']
start_urls = ['https://aviation-safety.net/database/']
rules = [
Rule(LinkExtractor(allow=RE_LISTING), callback='parse_list', follow=True),
Rule(LinkExtractor(allow=RE_RECORD), callback='parse_record', follow=True),
Rule(LinkExtractor(allow=RE_AIRPORT), callback='parse_airport', follow=False)
]
@staticmethod
def parse_list(response):
m = re.match(RE_LISTING, response.url)
print(f"Database listing WHERE '{m[1]}' = '{m[2]}'")
@staticmethod
def parse_airport(response):
id = re.match(RE_AIRPORT, response.url)
airportraw = AirportRaw()
airportfields = response.xpath("//a[@name='general']/div[@class='infobox']//table[1]//tr")
airportname = response.xpath("//a[@name='general']/div[@class='infobox']/span/text()")
airportraw['id'] = id[1]
airportraw['name'] = airportname
airportraw['allfields'] = airportfields
print(f"Airport listing WHERE 'id' = '{airportraw['id']}'")
return airportraw
@staticmethod
def parse_record(response):
id = re.match(RE_RECORD, response.url)
disasterraw = DisasterRaw()
disasterfields = response.xpath("//div[@class='innertube']//table[1]//tr")
disasterraw['id'] = id[1]
disasterraw['date'] = dt.strptime(id[2], '%Y%m%d')
disasterraw['allfields'] = disasterfields
print(f"Acident listing WHERE 'id' = '{disasterraw['id']}'")
return disasterraw"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">datetime</span> <span class="pl-k">as</span> <span class="pl-s1">dt</span>
<span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">linkextractors</span> <span class="pl-k">import</span> <span class="pl-v">LinkExtractor</span>
<span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">spiders</span> <span class="pl-k">import</span> <span class="pl-v">CrawlSpider</span>, <span class="pl-v">Rule</span>
<span class="pl-k">from</span> <span class="pl-s1">asnscraper</span>.<span class="pl-s1">items</span> <span class="pl-k">import</span> <span class="pl-v">DisasterRaw</span>, <span class="pl-v">AirportRaw</span>
<span class="pl-k">import</span> <span class="pl-s1">re</span>
<span class="pl-v">RE_LISTING</span> <span class="pl-c1">=</span> <span class="pl-s">r'.*/dblist\.php\?(Year)=(1920)$'</span>
<span class="pl-v">RE_RECORD</span> <span class="pl-c1">=</span> <span class="pl-s">r'.*/record\.php\?id=((\d{8})-(\d+))$'</span>
<span class="pl-v">RE_AIRPORT</span> <span class="pl-c1">=</span> <span class="pl-s">r'.*/airport\.php\?id=(\w+)$'</span>
<span class="pl-k">class</span> <span class="pl-v">DisasterSpider</span>(<span class="pl-v">CrawlSpider</span>):
<span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s">'disasters'</span>
<span class="pl-s1">allowed_domains</span> <span class="pl-c1">=</span> [<span class="pl-s">'aviation-safety.net'</span>]
<span class="pl-s1">start_urls</span> <span class="pl-c1">=</span> [<span class="pl-s">'https://aviation-safety.net/database/'</span>]
<span class="pl-s1">rules</span> <span class="pl-c1">=</span> [
<span class="pl-v">Rule</span>(<span class="pl-v">LinkExtractor</span>(<span class="pl-s1">allow</span><span class="pl-c1">=</span><span class="pl-v">RE_LISTING</span>), <span class="pl-s1">callback</span><span class="pl-c1">=</span><span class="pl-s">'parse_list'</span>, <span class="pl-s1">follow</span><span class="pl-c1">=</span><span class="pl-c1">True</span>),
<span class="pl-v">Rule</span>(<span class="pl-v">LinkExtractor</span>(<span class="pl-s1">allow</span><span class="pl-c1">=</span><span class="pl-v">RE_RECORD</span>), <span class="pl-s1">callback</span><span class="pl-c1">=</span><span class="pl-s">'parse_record'</span>, <span class="pl-s1">follow</span><span class="pl-c1">=</span><span class="pl-c1">True</span>),
<span class="pl-v">Rule</span>(<span class="pl-v">LinkExtractor</span>(<span class="pl-s1">allow</span><span class="pl-c1">=</span><span class="pl-v">RE_AIRPORT</span>), <span class="pl-s1">callback</span><span class="pl-c1">=</span><span class="pl-s">'parse_airport'</span>, <span class="pl-s1">follow</span><span class="pl-c1">=</span><span class="pl-c1">False</span>)
]
<span class="pl-en">@<span class="pl-s1">staticmethod</span></span>
<span class="pl-k">def</span> <span class="pl-en">parse_list</span>(<span class="pl-s1">response</span>):
<span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">match</span>(<span class="pl-v">RE_LISTING</span>, <span class="pl-s1">response</span>.<span class="pl-s1">url</span>)
<span class="pl-en">print</span>(<span class="pl-s">f"Database listing WHERE '<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">m</span>[<span class="pl-c1">1</span>]<span class="pl-kos">}</span></span>' = '<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">m</span>[<span class="pl-c1">2</span>]<span class="pl-kos">}</span></span>'"</span>)
<span class="pl-en">@<span class="pl-s1">staticmethod</span></span>
<span class="pl-k">def</span> <span class="pl-en">parse_airport</span>(<span class="pl-s1">response</span>):
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">match</span>(<span class="pl-v">RE_AIRPORT</span>, <span class="pl-s1">response</span>.<span class="pl-s1">url</span>)
<span class="pl-s1">airportraw</span> <span class="pl-c1">=</span> <span class="pl-v">AirportRaw</span>()
<span class="pl-s1">airportfields</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span>.<span class="pl-en">xpath</span>(<span class="pl-s">"//a[@name='general']/div[@class='infobox']//table[1]//tr"</span>)
<span class="pl-s1">airportname</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span>.<span class="pl-en">xpath</span>(<span class="pl-s">"//a[@name='general']/div[@class='infobox']/span/text()"</span>)
<span class="pl-s1">airportraw</span>[<span class="pl-s">'id'</span>] <span class="pl-c1">=</span> <span class="pl-s1">id</span>[<span class="pl-c1">1</span>]
<span class="pl-s1">airportraw</span>[<span class="pl-s">'name'</span>] <span class="pl-c1">=</span> <span class="pl-s1">airportname</span>
<span class="pl-s1">airportraw</span>[<span class="pl-s">'allfields'</span>] <span class="pl-c1">=</span> <span class="pl-s1">airportfields</span>
<span class="pl-en">print</span>(<span class="pl-s">f"Airport listing WHERE 'id' = '<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">airportraw</span>[<span class="pl-s">'id'</span>]<span class="pl-kos">}</span></span>'"</span>)
<span class="pl-k">return</span> <span class="pl-s1">airportraw</span>
<span class="pl-en">@<span class="pl-s1">staticmethod</span></span>
<span class="pl-k">def</span> <span class="pl-en">parse_record</span>(<span class="pl-s1">response</span>):
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">match</span>(<span class="pl-v">RE_RECORD</span>, <span class="pl-s1">response</span>.<span class="pl-s1">url</span>)
<span class="pl-s1">disasterraw</span> <span class="pl-c1">=</span> <span class="pl-v">DisasterRaw</span>()
<span class="pl-s1">disasterfields</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span>.<span class="pl-en">xpath</span>(<span class="pl-s">"//div[@class='innertube']//table[1]//tr"</span>)
<span class="pl-s1">disasterraw</span>[<span class="pl-s">'id'</span>] <span class="pl-c1">=</span> <span class="pl-s1">id</span>[<span class="pl-c1">1</span>]
<span class="pl-s1">disasterraw</span>[<span class="pl-s">'date'</span>] <span class="pl-c1">=</span> <span class="pl-s1">dt</span>.<span class="pl-en">strptime</span>(<span class="pl-s1">id</span>[<span class="pl-c1">2</span>], <span class="pl-s">'%Y%m%d'</span>)
<span class="pl-s1">disasterraw</span>[<span class="pl-s">'allfields'</span>] <span class="pl-c1">=</span> <span class="pl-s1">disasterfields</span>
<span class="pl-en">print</span>(<span class="pl-s">f"Acident listing WHERE 'id' = '<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">disasterraw</span>[<span class="pl-s">'id'</span>]<span class="pl-kos">}</span></span>'"</span>)
<span class="pl-k">return</span> <span class="pl-s1">disasterraw</span></pre></div>
<p dir="auto"><code class="notranslate">items.py</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import scrapy
class DisasterRaw(scrapy.Item):
id = scrapy.Field()
allfields = scrapy.Field()
date = scrapy.Field()
ap_from = scrapy.Field()
ap_to = scrapy.Field()
class Disaster(scrapy.Item):
id = scrapy.Field()
datetime = scrapy.Field()
type = scrapy.Field()
operator = scrapy.Field()
aircraft = scrapy.Field()
crew_deaths = scrapy.Field()
crew_total = scrapy.Field()
passenger_deaths = scrapy.Field()
passenger_total = scrapy.Field()
ground_deaths = scrapy.Field()
souls_deaths = scrapy.Field()
souls_total = scrapy.Field()
damage = scrapy.Field()
fate = scrapy.Field()
location = scrapy.Field()
flightphase = scrapy.Field()
nature = scrapy.Field()
ap_from = scrapy.Field()
ap_to = scrapy.Field()
flightnumber = scrapy.Field()
narrative = scrapy.Field()
class AirportRaw(scrapy.Item):
id = scrapy.Field()
name = scrapy.Field()
allfields = scrapy.Field()
class Airport(scrapy.Item):
id = scrapy.Field()
name = scrapy.Field()
country = scrapy.Field()
iata = scrapy.Field()
icao = scrapy.Field()
elevation = scrapy.Field()
elevation_unit = scrapy.Field()
dateopened = scrapy.Field()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">scrapy</span>
<span class="pl-k">class</span> <span class="pl-v">DisasterRaw</span>(<span class="pl-s1">scrapy</span>.<span class="pl-v">Item</span>):
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">allfields</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">date</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">ap_from</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">ap_to</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-k">class</span> <span class="pl-v">Disaster</span>(<span class="pl-s1">scrapy</span>.<span class="pl-v">Item</span>):
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">datetime</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">type</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">operator</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">aircraft</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">crew_deaths</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">crew_total</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">passenger_deaths</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">passenger_total</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">ground_deaths</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">souls_deaths</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">souls_total</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">damage</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">fate</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">location</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">flightphase</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">nature</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">ap_from</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">ap_to</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">flightnumber</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">narrative</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-k">class</span> <span class="pl-v">AirportRaw</span>(<span class="pl-s1">scrapy</span>.<span class="pl-v">Item</span>):
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">allfields</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-k">class</span> <span class="pl-v">Airport</span>(<span class="pl-s1">scrapy</span>.<span class="pl-v">Item</span>):
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">country</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">iata</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">icao</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">elevation</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">elevation_unit</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()
<span class="pl-s1">dateopened</span> <span class="pl-c1">=</span> <span class="pl-s1">scrapy</span>.<span class="pl-v">Field</span>()</pre></div>
<p dir="auto"><code class="notranslate">pipelines.py</code></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import os.path
from datetime import timedelta as td
from scrapy.exporters import CsvItemExporter
from scrapy.exceptions import DropItem
from asnscraper.items import Disaster, DisasterRaw, Airport, AirportRaw
import re
DATADIR = r'..\data'
class ExportPipeline:
dbs = [Airport, Disaster]
exporters = {}
@staticmethod
def dbname(db):
return db.__name__.lower()
@staticmethod
def file_path(file, folder = DATADIR):
return os.path.abspath(os.path.join(folder, file))
def open_spider(self, spider):
for db in self.dbs:
db_name = self.dbname(db)
print(f"Exporting {db_name}s to {db_name}s.csv")
e = CsvItemExporter(open(self.file_path(f"{db_name}s.csv"), 'wb'))
self.exporters[db_name] = e
self.exporters[db_name].start_exporting()
return spider
def close_spider(self, spider):
for k, e in self.exporters.items():
e.finish_exporting()
return spider
def process_item(self, item, spider):
for db in self.dbs:
if isinstance(item, db):
db_name = self.dbname(db)
self.exporters[db_name].export_item(item)
return item
class AirportPipeline:
def process_item(self, raw, spider):
if not isinstance(raw, AirportRaw):
return raw
# df = raw['allfields']
airport = Airport()
airport['id'] = raw['id']
airport['name'] = raw['name'].extract()[0].strip()
return airport
class DisasterPipeline:
def process_item(self, raw, spider):
if not isinstance(raw, DisasterRaw):
return raw
df = raw['allfields']
disaster = Disaster()
disaster['id'] = raw['id']
timestr = extract_field(field='Time', df=df)
try:
hours, minutes = re.match(r'(\d\d):(\d\d)', timestr).groups()
except (AttributeError, TypeError):
hours, minutes = (0, 0)
finally:
deltat = td(hours=(int(hours)), minutes=(int(minutes)))
total_dt = raw['date'] + deltat
disaster['datetime'] = total_dt
disaster['crew_deaths'], disaster['crew_total'] = fatalities('Crew', df=df)
disaster['passenger_deaths'], disaster['passenger_total'] = \
fatalities('Passengers', df=df)
disaster['souls_deaths'], disaster['souls_total'] = fatalities('Total', df=df)
disaster['ground_deaths'] = fatalities_ground(df=df)
disaster['damage'] = extract_field(field='Aircraft damage', df=df)
disaster['fate'] = extract_field(field='Aircraft fate', df=df)
disaster['aircraft'] = extract_field(field='Registration', df=df)
disaster['location'] = extract_field(field='Location', df=df)
disaster['flightphase'] = extract_field(field='Phase', df=df)
disaster['nature'] = extract_field(field='Nature', df=df)
disaster['ap_from'] = extract_field(field='Departure airport', df=df)
disaster['ap_to'] = extract_field(field='Destination airport', df=df)
disaster['flightnumber'] = extract_field(field='Flightnumber', df=df)
return disaster
def extract_field(field, df):
query = f'td[@class="caption" and text()="{field}:"]/following-sibling::td//text()'
query2 = f'td[@class="caption"]//*[text()="{field}:"]/' \
f'ancestor::td/following-sibling::td//text()'
ret = df.xpath(query).extract() or df.xpath(query2).extract()
if isinstance(ret, list):
if len(ret) == 0:
return
ret = [str(r) for r in ret]
return ''.join(ret).strip()
if isinstance(ret, str):
return ret.strip()
return ret
def fatalities(field, df):
fstr = extract_field(field=field, df=df)
if fstr is None:
return
fatal = re.match(r'.*[Ff]atalities:\s*(\d*)\s*/\s*[Oo]ccupants:\s*(\d*).*', fstr)
f_deaths = int(fatal[1]) if fatal[1] != '' else None
f_total = int(fatal[2]) if fatal[2] != '' else None
return (
f_deaths, f_total)
def fatalities_ground(df):
fstr = extract_field(field='Ground casualties', df=df)
if fstr is None:
return
fatal = re.match(r'.*[Ff]atalities:\s*(\d*)\s*.*', fstr)
if fatal is None:
return
f_deaths = int(fatal[1]) if fatal[1] != '' else None
return f_deaths"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>
<span class="pl-k">from</span> <span class="pl-s1">datetime</span> <span class="pl-k">import</span> <span class="pl-s1">timedelta</span> <span class="pl-k">as</span> <span class="pl-s1">td</span>
<span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">exporters</span> <span class="pl-k">import</span> <span class="pl-v">CsvItemExporter</span>
<span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">exceptions</span> <span class="pl-k">import</span> <span class="pl-v">DropItem</span>
<span class="pl-k">from</span> <span class="pl-s1">asnscraper</span>.<span class="pl-s1">items</span> <span class="pl-k">import</span> <span class="pl-v">Disaster</span>, <span class="pl-v">DisasterRaw</span>, <span class="pl-v">Airport</span>, <span class="pl-v">AirportRaw</span>
<span class="pl-k">import</span> <span class="pl-s1">re</span>
<span class="pl-v">DATADIR</span> <span class="pl-c1">=</span> <span class="pl-s">r'..\data'</span>
<span class="pl-k">class</span> <span class="pl-v">ExportPipeline</span>:
<span class="pl-s1">dbs</span> <span class="pl-c1">=</span> [<span class="pl-v">Airport</span>, <span class="pl-v">Disaster</span>]
<span class="pl-s1">exporters</span> <span class="pl-c1">=</span> {}
<span class="pl-en">@<span class="pl-s1">staticmethod</span></span>
<span class="pl-k">def</span> <span class="pl-en">dbname</span>(<span class="pl-s1">db</span>):
<span class="pl-k">return</span> <span class="pl-s1">db</span>.<span class="pl-s1">__name__</span>.<span class="pl-en">lower</span>()
<span class="pl-en">@<span class="pl-s1">staticmethod</span></span>
<span class="pl-k">def</span> <span class="pl-en">file_path</span>(<span class="pl-s1">file</span>, <span class="pl-s1">folder</span> <span class="pl-c1">=</span> <span class="pl-v">DATADIR</span>):
<span class="pl-k">return</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">abspath</span>(<span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s1">folder</span>, <span class="pl-s1">file</span>))
<span class="pl-k">def</span> <span class="pl-en">open_spider</span>(<span class="pl-s1">self</span>, <span class="pl-s1">spider</span>):
<span class="pl-k">for</span> <span class="pl-s1">db</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">dbs</span>:
<span class="pl-s1">db_name</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">dbname</span>(<span class="pl-s1">db</span>)
<span class="pl-en">print</span>(<span class="pl-s">f"Exporting <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">db_name</span><span class="pl-kos">}</span></span>s to <span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">db_name</span><span class="pl-kos">}</span></span>s.csv"</span>)
<span class="pl-s1">e</span> <span class="pl-c1">=</span> <span class="pl-v">CsvItemExporter</span>(<span class="pl-en">open</span>(<span class="pl-s1">self</span>.<span class="pl-en">file_path</span>(<span class="pl-s">f"<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">db_name</span><span class="pl-kos">}</span></span>s.csv"</span>), <span class="pl-s">'wb'</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">exporters</span>[<span class="pl-s1">db_name</span>] <span class="pl-c1">=</span> <span class="pl-s1">e</span>
<span class="pl-s1">self</span>.<span class="pl-s1">exporters</span>[<span class="pl-s1">db_name</span>].<span class="pl-en">start_exporting</span>()
<span class="pl-k">return</span> <span class="pl-s1">spider</span>
<span class="pl-k">def</span> <span class="pl-en">close_spider</span>(<span class="pl-s1">self</span>, <span class="pl-s1">spider</span>):
<span class="pl-k">for</span> <span class="pl-s1">k</span>, <span class="pl-s1">e</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">exporters</span>.<span class="pl-en">items</span>():
<span class="pl-s1">e</span>.<span class="pl-en">finish_exporting</span>()
<span class="pl-k">return</span> <span class="pl-s1">spider</span>
<span class="pl-k">def</span> <span class="pl-en">process_item</span>(<span class="pl-s1">self</span>, <span class="pl-s1">item</span>, <span class="pl-s1">spider</span>):
<span class="pl-k">for</span> <span class="pl-s1">db</span> <span class="pl-c1">in</span> <span class="pl-s1">self</span>.<span class="pl-s1">dbs</span>:
<span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">item</span>, <span class="pl-s1">db</span>):
<span class="pl-s1">db_name</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">dbname</span>(<span class="pl-s1">db</span>)
<span class="pl-s1">self</span>.<span class="pl-s1">exporters</span>[<span class="pl-s1">db_name</span>].<span class="pl-en">export_item</span>(<span class="pl-s1">item</span>)
<span class="pl-k">return</span> <span class="pl-s1">item</span>
<span class="pl-k">class</span> <span class="pl-v">AirportPipeline</span>:
<span class="pl-k">def</span> <span class="pl-en">process_item</span>(<span class="pl-s1">self</span>, <span class="pl-s1">raw</span>, <span class="pl-s1">spider</span>):
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">raw</span>, <span class="pl-v">AirportRaw</span>):
<span class="pl-k">return</span> <span class="pl-s1">raw</span>
<span class="pl-c"># df = raw['allfields']</span>
<span class="pl-s1">airport</span> <span class="pl-c1">=</span> <span class="pl-v">Airport</span>()
<span class="pl-s1">airport</span>[<span class="pl-s">'id'</span>] <span class="pl-c1">=</span> <span class="pl-s1">raw</span>[<span class="pl-s">'id'</span>]
<span class="pl-s1">airport</span>[<span class="pl-s">'name'</span>] <span class="pl-c1">=</span> <span class="pl-s1">raw</span>[<span class="pl-s">'name'</span>].<span class="pl-en">extract</span>()[<span class="pl-c1">0</span>].<span class="pl-en">strip</span>()
<span class="pl-k">return</span> <span class="pl-s1">airport</span>
<span class="pl-k">class</span> <span class="pl-v">DisasterPipeline</span>:
<span class="pl-k">def</span> <span class="pl-en">process_item</span>(<span class="pl-s1">self</span>, <span class="pl-s1">raw</span>, <span class="pl-s1">spider</span>):
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">raw</span>, <span class="pl-v">DisasterRaw</span>):
<span class="pl-k">return</span> <span class="pl-s1">raw</span>
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">raw</span>[<span class="pl-s">'allfields'</span>]
<span class="pl-s1">disaster</span> <span class="pl-c1">=</span> <span class="pl-v">Disaster</span>()
<span class="pl-s1">disaster</span>[<span class="pl-s">'id'</span>] <span class="pl-c1">=</span> <span class="pl-s1">raw</span>[<span class="pl-s">'id'</span>]
<span class="pl-s1">timestr</span> <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Time'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-k">try</span>:
<span class="pl-s1">hours</span>, <span class="pl-s1">minutes</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">match</span>(<span class="pl-s">r'(\d\d):(\d\d)'</span>, <span class="pl-s1">timestr</span>).<span class="pl-en">groups</span>()
<span class="pl-k">except</span> (<span class="pl-v">AttributeError</span>, <span class="pl-v">TypeError</span>):
<span class="pl-s1">hours</span>, <span class="pl-s1">minutes</span> <span class="pl-c1">=</span> (<span class="pl-c1">0</span>, <span class="pl-c1">0</span>)
<span class="pl-k">finally</span>:
<span class="pl-s1">deltat</span> <span class="pl-c1">=</span> <span class="pl-en">td</span>(<span class="pl-s1">hours</span><span class="pl-c1">=</span>(<span class="pl-en">int</span>(<span class="pl-s1">hours</span>)), <span class="pl-s1">minutes</span><span class="pl-c1">=</span>(<span class="pl-en">int</span>(<span class="pl-s1">minutes</span>)))
<span class="pl-s1">total_dt</span> <span class="pl-c1">=</span> <span class="pl-s1">raw</span>[<span class="pl-s">'date'</span>] <span class="pl-c1">+</span> <span class="pl-s1">deltat</span>
<span class="pl-s1">disaster</span>[<span class="pl-s">'datetime'</span>] <span class="pl-c1">=</span> <span class="pl-s1">total_dt</span>
<span class="pl-s1">disaster</span>[<span class="pl-s">'crew_deaths'</span>], <span class="pl-s1">disaster</span>[<span class="pl-s">'crew_total'</span>] <span class="pl-c1">=</span> <span class="pl-en">fatalities</span>(<span class="pl-s">'Crew'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'passenger_deaths'</span>], <span class="pl-s1">disaster</span>[<span class="pl-s">'passenger_total'</span>] <span class="pl-c1">=</span> \
<span class="pl-en">fatalities</span>(<span class="pl-s">'Passengers'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'souls_deaths'</span>], <span class="pl-s1">disaster</span>[<span class="pl-s">'souls_total'</span>] <span class="pl-c1">=</span> <span class="pl-en">fatalities</span>(<span class="pl-s">'Total'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'ground_deaths'</span>] <span class="pl-c1">=</span> <span class="pl-en">fatalities_ground</span>(<span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'damage'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Aircraft damage'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'fate'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Aircraft fate'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'aircraft'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Registration'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'location'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Location'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'flightphase'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Phase'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'nature'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Nature'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'ap_from'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Departure airport'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'ap_to'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Destination airport'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-s1">disaster</span>[<span class="pl-s">'flightnumber'</span>] <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Flightnumber'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-k">return</span> <span class="pl-s1">disaster</span>
<span class="pl-k">def</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span>, <span class="pl-s1">df</span>):
<span class="pl-s1">query</span> <span class="pl-c1">=</span> <span class="pl-s">f'td[@class="caption" and text()="<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">field</span><span class="pl-kos">}</span></span>:"]/following-sibling::td//text()'</span>
<span class="pl-s1">query2</span> <span class="pl-c1">=</span> <span class="pl-s">f'td[@class="caption"]//*[text()="<span class="pl-s1"><span class="pl-kos">{</span><span class="pl-s1">field</span><span class="pl-kos">}</span></span>:"]/'</span> \
<span class="pl-s">f'ancestor::td/following-sibling::td//text()'</span>
<span class="pl-s1">ret</span> <span class="pl-c1">=</span> <span class="pl-s1">df</span>.<span class="pl-en">xpath</span>(<span class="pl-s1">query</span>).<span class="pl-en">extract</span>() <span class="pl-c1">or</span> <span class="pl-s1">df</span>.<span class="pl-en">xpath</span>(<span class="pl-s1">query2</span>).<span class="pl-en">extract</span>()
<span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">ret</span>, <span class="pl-s1">list</span>):
<span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">ret</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span>:
<span class="pl-k">return</span>
<span class="pl-s1">ret</span> <span class="pl-c1">=</span> [<span class="pl-en">str</span>(<span class="pl-s1">r</span>) <span class="pl-k">for</span> <span class="pl-s1">r</span> <span class="pl-c1">in</span> <span class="pl-s1">ret</span>]
<span class="pl-k">return</span> <span class="pl-s">''</span>.<span class="pl-en">join</span>(<span class="pl-s1">ret</span>).<span class="pl-en">strip</span>()
<span class="pl-k">if</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">ret</span>, <span class="pl-s1">str</span>):
<span class="pl-k">return</span> <span class="pl-s1">ret</span>.<span class="pl-en">strip</span>()
<span class="pl-k">return</span> <span class="pl-s1">ret</span>
<span class="pl-k">def</span> <span class="pl-en">fatalities</span>(<span class="pl-s1">field</span>, <span class="pl-s1">df</span>):
<span class="pl-s1">fstr</span> <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s1">field</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-k">if</span> <span class="pl-s1">fstr</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>:
<span class="pl-k">return</span>
<span class="pl-s1">fatal</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">match</span>(<span class="pl-s">r'.*[Ff]atalities:\s*(\d*)\s*/\s*[Oo]ccupants:\s*(\d*).*'</span>, <span class="pl-s1">fstr</span>)
<span class="pl-s1">f_deaths</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-s1">fatal</span>[<span class="pl-c1">1</span>]) <span class="pl-k">if</span> <span class="pl-s1">fatal</span>[<span class="pl-c1">1</span>] <span class="pl-c1">!=</span> <span class="pl-s">''</span> <span class="pl-k">else</span> <span class="pl-c1">None</span>
<span class="pl-s1">f_total</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-s1">fatal</span>[<span class="pl-c1">2</span>]) <span class="pl-k">if</span> <span class="pl-s1">fatal</span>[<span class="pl-c1">2</span>] <span class="pl-c1">!=</span> <span class="pl-s">''</span> <span class="pl-k">else</span> <span class="pl-c1">None</span>
<span class="pl-k">return</span> (
<span class="pl-s1">f_deaths</span>, <span class="pl-s1">f_total</span>)
<span class="pl-k">def</span> <span class="pl-en">fatalities_ground</span>(<span class="pl-s1">df</span>):
<span class="pl-s1">fstr</span> <span class="pl-c1">=</span> <span class="pl-en">extract_field</span>(<span class="pl-s1">field</span><span class="pl-c1">=</span><span class="pl-s">'Ground casualties'</span>, <span class="pl-s1">df</span><span class="pl-c1">=</span><span class="pl-s1">df</span>)
<span class="pl-k">if</span> <span class="pl-s1">fstr</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>:
<span class="pl-k">return</span>
<span class="pl-s1">fatal</span> <span class="pl-c1">=</span> <span class="pl-s1">re</span>.<span class="pl-en">match</span>(<span class="pl-s">r'.*[Ff]atalities:\s*(\d*)\s*.*'</span>, <span class="pl-s1">fstr</span>)
<span class="pl-k">if</span> <span class="pl-s1">fatal</span> <span class="pl-c1">is</span> <span class="pl-c1">None</span>:
<span class="pl-k">return</span>
<span class="pl-s1">f_deaths</span> <span class="pl-c1">=</span> <span class="pl-en">int</span>(<span class="pl-s1">fatal</span>[<span class="pl-c1">1</span>]) <span class="pl-k">if</span> <span class="pl-s1">fatal</span>[<span class="pl-c1">1</span>] <span class="pl-c1">!=</span> <span class="pl-s">''</span> <span class="pl-k">else</span> <span class="pl-c1">None</span>
<span class="pl-k">return</span> <span class="pl-s1">f_deaths</span></pre></div>
<h3 dir="auto">Steps to Reproduce</h3>
<ol dir="auto">
<li>Start a blank Scrapy project and copy the code above to the relevant files. Other files are default;</li>
<li>Configure PyCharm to run it in the Python Console, as indicated in my screenshots;</li>
<li>Run the crawler;</li>
<li>Open the generated csv files. They are empty.</li>
<li>Run the crawler through PyCharm's Debugger;</li>
<li>Open the generated csv files again. They are not empty.</li>
<li>Run the crawler through the command line.</li>
<li>Open the generated csv files. They are the same as in step 6.</li>
</ol>
<p dir="auto"><strong>Expected behavior:</strong> Everytime I open the generated csv files, they should be exactly the same regardless of how I run it.</p>
<p dir="auto"><strong>Actual behavior:</strong> They are not the same. When running the above crawler through PyCharm's Python Console, they are empty. Otherwise, they are not empty.</p>
<p dir="auto"><strong>Reproduces how often:</strong> Always happens</p>
<h3 dir="auto">Versions</h3>
<p dir="auto">Python version: <code class="notranslate">Python 3.8.5 (default, Aug 5 2020, 09:44:06) [MSC v.1916 64 bit (AMD64)] on win32</code></p>
<p dir="auto">Anaconda version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> conda info
active environment : asn
active env location : C:\ProgramData\Anaconda3\envs\asn
shell level : 2
user config file : C:\Users\*\.condarc
populated config files :
conda version : 4.8.4
conda-build version : 3.18.11
python version : 3.7.6.final.0
virtual packages : __cuda=9.1
base environment : C:\ProgramData\Anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\Anaconda3\pkgs
C:\Users\*\.conda\pkgs
C:\Users\*\AppData\Local\conda\conda\pkgs
envs directories : C:\ProgramData\Anaconda3\envs
C:\Users\*\.conda\envs
C:\Users\*\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.8.4 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False"><pre class="notranslate"><code class="notranslate">> conda info
active environment : asn
active env location : C:\ProgramData\Anaconda3\envs\asn
shell level : 2
user config file : C:\Users\*\.condarc
populated config files :
conda version : 4.8.4
conda-build version : 3.18.11
python version : 3.7.6.final.0
virtual packages : __cuda=9.1
base environment : C:\ProgramData\Anaconda3 (writable)
channel URLs : https://repo.anaconda.com/pkgs/main/win-64
https://repo.anaconda.com/pkgs/main/noarch
https://repo.anaconda.com/pkgs/r/win-64
https://repo.anaconda.com/pkgs/r/noarch
https://repo.anaconda.com/pkgs/msys2/win-64
https://repo.anaconda.com/pkgs/msys2/noarch
package cache : C:\ProgramData\Anaconda3\pkgs
C:\Users\*\.conda\pkgs
C:\Users\*\AppData\Local\conda\conda\pkgs
envs directories : C:\ProgramData\Anaconda3\envs
C:\Users\*\.conda\envs
C:\Users\*\AppData\Local\conda\conda\envs
platform : win-64
user-agent : conda/4.8.4 requests/2.22.0 CPython/3.7.6 Windows/10 Windows/10.0.18362
administrator : False
netrc file : None
offline mode : False
</code></pre></div>
<p dir="auto">I don't know why conda says the Python version is 3.7.6. It is in fact 3.8.5, as indicated above.</p>
<p dir="auto">Scrapy version</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> scrapy version --verbose
Scrapy : 1.6.0
lxml : 4.5.2.0
libxml2 : 2.9.10
cssselect : 1.1.0
parsel : 1.5.2
w3lib : 1.21.0
Twisted : 20.3.0
Python : 3.8.5 (default, Aug 5 2020, 09:44:06) [MSC v.1916 64 bit (AMD64)]
pyOpenSSL : 19.1.0 (OpenSSL 1.1.1g 21 Apr 2020)
cryptography : 2.9.2
Platform : Windows-10-10.0.18362-SP0"><pre class="notranslate"><code class="notranslate">> scrapy version --verbose
Scrapy : 1.6.0
lxml : 4.5.2.0
libxml2 : 2.9.10
cssselect : 1.1.0
parsel : 1.5.2
w3lib : 1.21.0
Twisted : 20.3.0
Python : 3.8.5 (default, Aug 5 2020, 09:44:06) [MSC v.1916 64 bit (AMD64)]
pyOpenSSL : 19.1.0 (OpenSSL 1.1.1g 21 Apr 2020)
cryptography : 2.9.2
Platform : Windows-10-10.0.18362-SP0
</code></pre></div>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Posted to <a href="https://stackoverflow.com/questions/63696103/scrapy-doesnt-properly-export-when-run-through-pycharms-python-console" rel="nofollow">Stack Overflow</a> on 2020-09-02, no answers so far.</p> | <p dir="auto">Proxy <code class="notranslate">CONNECT</code> support is required for https urls to work.</p>
<p dir="auto">When proxy support was added to Scrapy, urllib still didn't supported <code class="notranslate">CONNECT</code>, but that has been fixed now:</p>
<p dir="auto"><a href="http://bugs.python.org/issue1424152" rel="nofollow">http://bugs.python.org/issue1424152</a></p>
<p dir="auto">Now we need to add support to Scrapy (which doesn't use urllib at all).</p>
<p dir="auto">This link contains useful tips on how to add <code class="notranslate">CONNECT</code> support with Twisted:</p>
<p dir="auto"><a href="http://twistedmatrix.com/pipermail/twisted-web/2008-August/003878.html" rel="nofollow">http://twistedmatrix.com/pipermail/twisted-web/2008-August/003878.html</a></p>
<p dir="auto">see <a href="http://dev.scrapy.org/ticket/159" rel="nofollow">http://dev.scrapy.org/ticket/159</a> for more info</p> | 0 |
<p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.182.0<br>
<strong>System</strong>: Mac OS X 10.10<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: ENXIO, no such device or address '/Users/weldemariam/Projects/experiments/dockerbox/code/airwatch-redesign/app/templates'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/pane.js:782
Error: ENXIO, no such device or address '/Users/weldemariam/Projects/experiments/dockerbox/code/airwatch-redesign/app/templates'
at Error (native)
at Object.fs.mkdirSync (fs.js:752:18)
at Function.sync (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/fs-plus/node_modules/mkdirp/index.js:55:12)
at Object.fsPlus.writeFileSync (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:242:14)
at File.module.exports.File.writeFileSync (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:239:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:309:21)
at File.module.exports.File.write (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:298:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
at TextBuffer.module.exports.TextBuffer.save (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
at TextEditor.module.exports.TextEditor.save (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/text-editor.js:620:26)
at Pane.module.exports.Pane.saveItem (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/pane.js:542:18)
at Pane.module.exports.Pane.saveActiveItem (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/pane.js:525:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/workspace.js:677:35)
at atom-workspace.atom.commands.add.core:save (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/workspace-element.js:295:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/window-event-handler.js:176:20)
"><pre class="notranslate"><code class="notranslate">At /Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/pane.js:782
Error: ENXIO, no such device or address '/Users/weldemariam/Projects/experiments/dockerbox/code/airwatch-redesign/app/templates'
at Error (native)
at Object.fs.mkdirSync (fs.js:752:18)
at Function.sync (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/fs-plus/node_modules/mkdirp/index.js:55:12)
at Object.fsPlus.writeFileSync (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:242:14)
at File.module.exports.File.writeFileSync (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:239:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:309:21)
at File.module.exports.File.write (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:298:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
at TextBuffer.module.exports.TextBuffer.save (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
at TextEditor.module.exports.TextEditor.save (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/text-editor.js:620:26)
at Pane.module.exports.Pane.saveItem (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/pane.js:542:18)
at Pane.module.exports.Pane.saveActiveItem (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/pane.js:525:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/workspace.js:677:35)
at atom-workspace.atom.commands.add.core:save (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/workspace-element.js:295:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Users/weldemariam/Downloads/Atom.app/Contents/Resources/app/src/window-event-handler.js:176:20)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -1:29.7 find-and-replace:show (atom-text-editor.editor.is-focused)
4x -1:23.3 core:confirm (atom-text-editor.editor.mini)
-0:58.8 core:move-right (atom-text-editor.editor.mini)
-0:58.4 core:move-left (atom-text-editor.editor.mini)
3x -0:54.1 core:backspace (atom-text-editor.editor.is-focused)
-0:46.2 core:confirm (atom-text-editor.editor.mini)
3x -0:42.3 core:backspace (atom-text-editor.editor.is-focused)
3x -0:23.0 core:save (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -1:29.7 find-and-replace:show (atom-text-editor.editor.is-focused)
4x -1:23.3 core:confirm (atom-text-editor.editor.mini)
-0:58.8 core:move-right (atom-text-editor.editor.mini)
-0:58.4 core:move-left (atom-text-editor.editor.mini)
3x -0:54.1 core:backspace (atom-text-editor.editor.is-focused)
-0:46.2 core:confirm (atom-text-editor.editor.mini)
3x -0:42.3 core:backspace (atom-text-editor.editor.is-focused)
3x -0:23.0 core:save (atom-text-editor.editor)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"disabledPackages": [
"grunt-runner",
"merge-conflicts",
"minimap",
"preview",
"travis-ci-status",
"vim-mode"
],
"themes": [
"seti-ui",
"atom-dark-syntax"
]
},
"editor": {
"invisibles": {},
"zoomFontWhenCtrlScrolling": true,
"autoIndentOnPaste": false,
"showIndentGuide": true
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"disabledPackages"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>grunt-runner<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>merge-conflicts<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-s"><span class="pl-pds">"</span>preview<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>travis-ci-status<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>vim-mode<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>seti-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>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">"zoomFontWhenCtrlScrolling"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"autoIndentOnPaste"</span>: <span class="pl-c1">false</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
atom-runner, v2.2.0
autocomplete-plus, v1.1.0
color, v0.5.0
color-picker, v1.4.4
language-jade, v0.3.0
linter, v0.10.1
project-manager, v1.15.0
seti-ui, v0.6.3
webbox-color, v0.5.4
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
atom<span class="pl-k">-</span>runner, v2.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>plus, v1.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
color, v0.<span class="pl-ii">5</span>.<span class="pl-ii">0</span>
color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">4</span>.<span class="pl-ii">4</span>
language<span class="pl-k">-</span>jade, v0.<span class="pl-ii">3</span>.<span class="pl-ii">0</span>
linter, v0.<span class="pl-ii">10</span>.<span class="pl-ii">1</span>
project<span class="pl-k">-</span>manager, v1.<span class="pl-ii">15</span>.<span class="pl-ii">0</span>
seti<span class="pl-k">-</span>ui, v0.<span class="pl-ii">6</span>.<span class="pl-ii">3</span>
webbox<span class="pl-k">-</span>color, v0.<span class="pl-ii">5</span>.<span class="pl-ii">4</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | <p dir="auto">[Enter steps to reproduce below:]</p>
<ol dir="auto">
<li>...</li>
<li>...</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.179.0<br>
<strong>System</strong>: Mac OS X 10.10.1<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: ENXIO, no such device or address '/Users/tobe/mnt/sprix/monkey/goalstart.git/goalstart/gs_frontend_webview/classes/controller/web/invite/list.php'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/app/src/pane.js:782
Error: ENXIO, no such device or address '/Users/tobe/mnt/sprix/monkey/goalstart.git/goalstart/gs_frontend_webview/classes/controller/web/invite/list.php'
at Error (native)
at Object.fs.openSync (fs.js:503:18)
at Object.module.(anonymous function) [as openSync] (/Applications/Atom.app/Contents/Resources/atom/common/lib/asar.js:422:20)
at Object.fs.writeFileSync (fs.js:1116:15)
at Object.fsPlus.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:243:17)
at File.module.exports.File.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:234:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:304:21)
at File.module.exports.File.write (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:293:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:620:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:542:18)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:525:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:679:35)
at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:295:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:172:20)
"><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/app/src/pane.js:782
Error: ENXIO, no such device or address '/Users/tobe/mnt/sprix/monkey/goalstart.git/goalstart/gs_frontend_webview/classes/controller/web/invite/list.php'
at Error (native)
at Object.fs.openSync (fs.js:503:18)
at Object.module.(anonymous function) [as openSync] (/Applications/Atom.app/Contents/Resources/atom/common/lib/asar.js:422:20)
at Object.fs.writeFileSync (fs.js:1116:15)
at Object.fsPlus.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/fs-plus/lib/fs-plus.js:243:17)
at File.module.exports.File.writeFileSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:234:19)
at File.module.exports.File.writeFileWithPrivilegeEscalationSync (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:304:21)
at File.module.exports.File.write (/Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/lib/file.js:293:12)
at TextBuffer.module.exports.TextBuffer.saveAs (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:970:17)
at TextBuffer.module.exports.TextBuffer.save (/Applications/Atom.app/Contents/Resources/app/node_modules/text-buffer/lib/text-buffer.js:958:19)
at TextEditor.module.exports.TextEditor.save (/Applications/Atom.app/Contents/Resources/app/src/text-editor.js:620:26)
at Pane.module.exports.Pane.saveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:542:18)
at Pane.module.exports.Pane.saveActiveItem (/Applications/Atom.app/Contents/Resources/app/src/pane.js:525:19)
at Workspace.module.exports.Workspace.saveActivePaneItem (/Applications/Atom.app/Contents/Resources/app/src/workspace.js:679:35)
at atom-workspace.atom.commands.add.core:save (/Applications/Atom.app/Contents/Resources/app/src/workspace-element.js:295:30)
at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:558:16)
at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:396:22)
at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:172:20)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -1:50.8 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
4x -1:50.5 core:move-left (atom-text-editor.editor.is-focused)
3x -1:49.4 core:backspace (atom-text-editor.editor.is-focused)
2x -1:47.9 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
5x -1:47.5 core:move-up (atom-text-editor.editor.is-focused)
9x -1:46.2 core:select-down (atom-text-editor.editor.is-focused)
-1:44.7 core:select-up (atom-text-editor.editor.is-focused)
-1:43.7 core:copy (atom-text-editor.editor.is-focused)
-1:43.3 core:move-down (atom-text-editor.editor.is-focused)
-1:42.4 core:paste (atom-text-editor.editor.is-focused)
5x -1:42.0 core:move-up (atom-text-editor.editor.is-focused)
5x -0:12.5 core:move-down (atom-text-editor.editor)
-0:10.7 editor:move-to-end-of-screen-line (atom-text-editor.editor)
-0:10.3 core:move-up (atom-text-editor.editor)
2x -0:09.7 editor:newline (atom-text-editor.editor)
-0:00.7 core:save (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -1:50.8 editor:move-to-end-of-screen-line (atom-text-editor.editor.is-focused)
4x -1:50.5 core:move-left (atom-text-editor.editor.is-focused)
3x -1:49.4 core:backspace (atom-text-editor.editor.is-focused)
2x -1:47.9 editor:move-to-first-character-of-line (atom-text-editor.editor.is-focused)
5x -1:47.5 core:move-up (atom-text-editor.editor.is-focused)
9x -1:46.2 core:select-down (atom-text-editor.editor.is-focused)
-1:44.7 core:select-up (atom-text-editor.editor.is-focused)
-1:43.7 core:copy (atom-text-editor.editor.is-focused)
-1:43.3 core:move-down (atom-text-editor.editor.is-focused)
-1:42.4 core:paste (atom-text-editor.editor.is-focused)
5x -1:42.0 core:move-up (atom-text-editor.editor.is-focused)
5x -0:12.5 core:move-down (atom-text-editor.editor)
-0:10.7 editor:move-to-end-of-screen-line (atom-text-editor.editor)
-0:10.3 core:move-up (atom-text-editor.editor)
2x -0:09.7 editor:newline (atom-text-editor.editor)
-0:00.7 core:save (atom-text-editor.editor)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"themes": [
"atom-dark-ui",
"atom-dark-syntax"
]
},
"editor": {
"invisibles": {},
"showInvisibles": true,
"tabLength": 4,
"preferredLineLength": 9999
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-syntax<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"showInvisibles"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"tabLength"</span>: <span class="pl-c1">4</span>,
<span class="pl-ent">"preferredLineLength"</span>: <span class="pl-c1">9999</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
No installed packages
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
<span class="pl-en">No</span> <span class="pl-en">installed</span> packages
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | 1 |
<ul dir="auto">
<li>Electron version: 1.4.15 - 1.6.3</li>
<li>Operating system: Windows</li>
</ul>
<p dir="auto">In our app if the users are maximizing the app which is a frameless window, few pixels around the borders go out of screen, if i inspect the width of the window it says 1930 on a 1920 resolution, same for height.</p> | <ul dir="auto">
<li>Electron version: 1.4.15</li>
<li>Operating system: Windows 10</li>
</ul>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Height is oversized by exactly 8px consistently (taskbar is set to small icons).</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://raw.githubusercontent.com/adi518/electron-frameless-maximize-test/master/issue.jpg"><img src="https://raw.githubusercontent.com/adi518/electron-frameless-maximize-test/master/issue.jpg" alt="Alt" style="max-width: 100%;"></a></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><a href="https://github.com/adi518/electron-frameless-maximize-test">https://github.com/adi518/electron-frameless-maximize-test</a></p> | 1 |
<p dir="auto">Is it possible to use <code class="notranslate">typeof</code> type query operator to get function's return type?</p> | <p dir="auto">It would be helpful if the <code class="notranslate">typeof</code> keyword were changed to support more complex expressions, such as function calls.</p>
<h4 dir="auto">Example</h4>
<p dir="auto">Given the following AngularJS service definition:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module myApp {
function myApiFactory($http: HttpSvc) {
return {
getSetting: (key: string) => $http.get(etc),
};
}
angular.service("myApi", myApiFactory);
}"><pre class="notranslate"><span class="pl-smi">module</span> <span class="pl-s1">myApp</span> <span class="pl-kos">{</span>
<span class="pl-k">function</span> <span class="pl-en">myApiFactory</span><span class="pl-kos">(</span><span class="pl-s1">$http</span>: <span class="pl-v">HttpSvc</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-en">getSetting</span>: <span class="pl-kos">(</span><span class="pl-s1">key</span>: <span class="pl-s1">string</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">$http</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">etc</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-en">service</span><span class="pl-kos">(</span><span class="pl-s">"myApi"</span><span class="pl-kos">,</span> <span class="pl-s1">myApiFactory</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">It would be good if the following statement were possible:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export type MyApi = typeof myApiFactory();"><pre class="notranslate"><span class="pl-s1">export</span> <span class="pl-s1">type</span> <span class="pl-v">MyApi</span> <span class="pl-c1">=</span> <span class="pl-k">typeof</span> <span class="pl-en">myApiFactory</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h4 dir="auto">Explanation</h4>
<p dir="auto">Since the function is a factory rather than the actual service, this type alias would other components to have a strongly-typed reference to the service. Though this example relates to AngularJS' service factory and dependency injection, this particular change would not be solely for AngularJS support.</p>
<h4 dir="auto">Existing solutions</h4>
<p dir="auto">One option to resolve this issue is to explicitly define an interface for the service. However, this solution would require repeating the signature for all of the service's methods.</p>
<p dir="auto">A workaround exists that relies on JavaScript's scoping rules to satisfy TypeScript's <code class="notranslate">typeof</code> keyword. However, it significantly reduces readability and clarity. An example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="if (false)
var obj = myApiFactory(null);
export type MyApi = typeof obj;"><pre class="notranslate"><span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">false</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-en">myApiFactory</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">export</span> <span class="pl-s1">type</span> <span class="pl-v">MyApi</span> <span class="pl-c1">=</span> <span class="pl-k">typeof</span> <span class="pl-s1">obj</span><span class="pl-kos">;</span></pre></div> | 1 |
<p dir="auto">When will an official build of TensorFlow for the latest release be available for use with OpenCL-enabled graphics cards? Should I fork a version and then hope to commit? Is this something the core team is interested in because I have a NVIDIA-enabled iMac that is >3 years old and I cannot accelerate my computation for different projects. What is possible within the next year?</p> | <p dir="auto">I understand TensorFlow only supports CUDA. What would need to be done to add in OpenCL support?</p> | 1 |
<p dir="auto">As per <a href="https://groups.google.com/forum/#!topic/golang-nuts/XNJ_vfai9Io" rel="nofollow">golang-nuts</a>:</p>
<p dir="auto">I am trying to get vendoring working with submodules which is supposed to be working according to <a href="https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo/edit" rel="nofollow">s/go15vender</a>. The building part works fine but the "go get" part doesn't.</p>
<p dir="auto">To reproduce I created a test <a href="https://github.com/StephanDollberg/govendorsubmodulestest">repo</a> by doing the following:</p>
<p dir="auto">Created a test package and added a submodule via:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" git submodule add https://github.com/dgrijalva/jwt-go vendor/github.com/dgrijalva/jwt-go"><pre class="notranslate"><code class="notranslate"> git submodule add https://github.com/dgrijalva/jwt-go vendor/github.com/dgrijalva/jwt-go
</code></pre></div>
<p dir="auto">Committed everything.</p>
<p dir="auto">Now, if I do:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GO15VENDOREXPERIMENT=1 go get github.com/StephanDollberg/govendorsubmodulestest"><pre class="notranslate"><code class="notranslate">GO15VENDOREXPERIMENT=1 go get github.com/StephanDollberg/govendorsubmodulestest
</code></pre></div>
<p dir="auto">I get the error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# cd .; git --git-dir=/$GOPATH/src/github.com/StephanDollberg/govendorsubmodulestest/.git submodule update --init --recursive
No submodule mapping found in .gitmodules for path 'vendor/github.com/dgrijalva/jwt-go'
package github.com/StephanDollberg/govendorsubmodulestest: exit status 1"><pre class="notranslate"><code class="notranslate"># cd .; git --git-dir=/$GOPATH/src/github.com/StephanDollberg/govendorsubmodulestest/.git submodule update --init --recursive
No submodule mapping found in .gitmodules for path 'vendor/github.com/dgrijalva/jwt-go'
package github.com/StephanDollberg/govendorsubmodulestest: exit status 1
</code></pre></div>
<p dir="auto">The interesting thing is that if I do a go get -u after that it checks out the submodule correctly. Looking at the error and the source of the go command I think it has to do with --git-dir not working together with the submodule command.</p>
<p dir="auto">I tested this on Windows, Mac OSX and Linux (all Intel 64bit) with go 1.5.1 and several git versions (2.3, 2.4, 2.5).</p> | <p dir="auto">The <a href="https://github.com/golang/go/blob/b9dbb030d5e7d2733e877972568368dc806b7304/src/cmd/go/vcs.go#L125"><code class="notranslate">createCmd</code></a> for the submodules fails. I have clarified <a href="http://thread.gmane.org/gmane.comp.version-control.git/277630/focus=277825" rel="nofollow">upstream</a> if this is expected to fail. The result is that it is expected to fail as it is currently in the code. The correct <code class="notranslate">createCmd</code> therefore would be:</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="createCmd: []string{"clone {repo} {dir}", "-C={dir} submodule update --init --recursive"}"><pre class="notranslate">createCmd: []<span class="pl-smi">string</span>{<span class="pl-s">"clone {repo} {dir}"</span>, <span class="pl-s">"-C={dir} submodule update --init --recursive"</span>}</pre></div> | 1 |
<p dir="auto">Hello,</p>
<p dir="auto">I'm running atom on Linux and I figured out that multi-combination shortcuts issued within editor does not work anymore. Exemple: split: ctrl-k left works in atom but not if my caret is in the editor…</p> | <p dir="auto">I have this on Ubuntu 14.04.</p>
<p dir="auto">When I use the following default keybindings <code class="notranslate">'.workspace .editor': 'ctrl-k ctrl-u': 'editor:upper-case'</code> and <code class="notranslate">'.workspace .editor': 'ctrl-k ctrl-l': 'editor:lower-case'</code>, the second ctrl gets registered as a first key press. I have this with all bindings that have multiple ctrl's.</p>
<p dir="auto">This is a recording of Keybinding resolver with <code class="notranslate">atom --safe</code> taken from <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/atom/atom/commit/ebbea64b3de1c41336b386d76a7f0dad70a7af88/hovercard" href="https://github.com/atom/atom/commit/ebbea64b3de1c41336b386d76a7f0dad70a7af88"><tt>ebbea64</tt></a>.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4266355/3941644/b6f8320c-2539-11e4-91bc-4b603507f0b8.gif"><img src="https://cloud.githubusercontent.com/assets/4266355/3941644/b6f8320c-2539-11e4-91bc-4b603507f0b8.gif" alt="ebbea64b3de1c41336b386d76a7f0dad70a7af88" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">This is a recording of Keybinding resolver with <code class="notranslate">atom --safe</code> taken from <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/atom/atom/commit/b3c241757801cf7a90d9e119f42e7a8ac498db10/hovercard" href="https://github.com/atom/atom/commit/b3c241757801cf7a90d9e119f42e7a8ac498db10"><tt>b3c2417</tt></a>. (v0.120.0)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4266355/3941646/cd092880-2539-11e4-95e1-54f7e82a12d3.gif"><img src="https://cloud.githubusercontent.com/assets/4266355/3941646/cd092880-2539-11e4-95e1-54f7e82a12d3.gif" alt="b3c241757801cf7a90d9e119f42e7a8ac498db10" data-animated-image="" style="max-width: 100%;"></a><br>
Here the keybindings work correct.</p> | 1 |
<p dir="auto"><strong>Context:</strong></p>
<ul dir="auto">
<li>Playwright Version:
<ul dir="auto">
<li>NuGet: 1.17.3 (installed in the project)</li>
<li>microsoft.playwright.cli: 1.2.2 (from <code class="notranslate">dotnet tool list -g</code>)</li>
<li>Installed on machine: 1.17.1 (<code class="notranslate">playwright -V</code>)</li>
</ul>
</li>
<li>Operating System: Windows</li>
<li>.NET version: .NET 6</li>
<li>Browser: All</li>
</ul>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">When <code class="notranslate">PWDEBUG</code> is set to 0, Playwright Inspector appears when tests are ran [incorrect behaviour, I believe].</p>
<p dir="auto">When set to an empty string (PowerShell: <code class="notranslate">$env:PWDEBUG=''</code>, then Inspector is not running [correct behaviour].</p>
<p dir="auto">Solution:</p>
<ul dir="auto">
<li>Disable running Inspector when <code class="notranslate">PWDEBUG</code> environment variable is set to 0.</li>
<li>Update <a href="https://playwright.dev/dotnet/docs/inspector" rel="nofollow">documentation</a>.</li>
</ul> | <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/microsoft/playwright/blob/c510819407d91975340bee1249502c51c6a3bde9/packages/playwright-core/src/utils/utils.ts#L324">playwright/packages/playwright-core/src/utils/utils.ts</a>
</p>
<p class="mb-0 color-fg-muted">
Line 324
in
<a data-pjax="true" class="commit-tease-sha" href="/microsoft/playwright/commit/c510819407d91975340bee1249502c51c6a3bde9">c510819</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="L324" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="324"></td>
<td id="LC324" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">const</span> <span class="pl-s1">debugEnv</span> <span class="pl-c1">=</span> <span class="pl-en">getFromENV</span><span class="pl-kos">(</span><span class="pl-s">'PWDEBUG'</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s">''</span><span class="pl-kos">;</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto"><a href="https://playwright.dev/docs/next/debug#run-in-debug-mode" rel="nofollow">the docs</a> say setting <code class="notranslate">PWDEBUG</code> to <code class="notranslate">1</code> enables the playwright inspector, so one would assume setting it to <code class="notranslate">0</code> disables it</p> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.0.1</li>
<li>Operating System / Platform => Windows 10 64bit</li>
<li>Compiler => Visual C++ 14.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Hi, this is my first bug report,<br>
I have tried to use this example code:<br>
<a href="https://docs.opencv.org/3.4.3/db/da4/samples_2dnn_2text_detection_8cpp-example.html" rel="nofollow">https://docs.opencv.org/3.4.3/db/da4/samples_2dnn_2text_detection_8cpp-example.html</a></p>
<p dir="auto">It doesn't work well on my computer when trying to load images,<br>
I tried replacing</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" if (parser.has("input"))
cap.open(parser.get<String>("input"));
else
cap.open(0);
...
...
...
cap >> frame;"><pre class="notranslate"><code class="notranslate"> if (parser.has("input"))
cap.open(parser.get<String>("input"));
else
cap.open(0);
...
...
...
cap >> frame;
</code></pre></div>
<p dir="auto">with a simpler code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" frame = imread(parser.get<String>("input"), cv::IMREAD_COLOR);"><pre class="notranslate"><code class="notranslate"> frame = imread(parser.get<String>("input"), cv::IMREAD_COLOR);
</code></pre></div>
<p dir="auto">and it worked. Before that the command cap >> frame did not load the image.</p>
<h5 dir="auto">Steps to reproduce</h5>
<p dir="auto">Change these lines :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cap >> frame;
if (frame.empty())
{
waitKey();
break;
}"><pre class="notranslate"><code class="notranslate"> cap >> frame;
if (frame.empty())
{
waitKey();
break;
}
</code></pre></div>
<p dir="auto">to this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="frame = imread(parser.get<String>("input"), cv::IMREAD_COLOR);"><pre class="notranslate"><code class="notranslate">frame = imread(parser.get<String>("input"), cv::IMREAD_COLOR);
</code></pre></div> | <p dir="auto">Transferred from <a href="http://code.opencv.org/issues/3752" rel="nofollow">http://code.opencv.org/issues/3752</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Vasili Gulevich on 2014-06-14 06:37
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: java bindings
|| Tracker: Bug
|| Difficulty:
|| PR:
|| Platform: Any / Any"><pre class="notranslate"><code class="notranslate">|| Vasili Gulevich on 2014-06-14 06:37
|| Priority: Normal
|| Affected: 2.4.9 (latest release)
|| Category: java bindings
|| Tracker: Bug
|| Difficulty:
|| PR:
|| Platform: Any / Any
</code></pre></div>
<h2 dir="auto">BOW*Trainers are missing in Java API</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Following functionality is missing in Java API:
* BOWTrainer
* BOWKMeansTrainer
"It is possible to port in Python, but Java automatic binding generation won't work":http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python
Related questions:
http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/"><pre class="notranslate"><code class="notranslate">Following functionality is missing in Java API:
* BOWTrainer
* BOWKMeansTrainer
"It is possible to port in Python, but Java automatic binding generation won't work":http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python
Related questions:
http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">Poyan Nabati on 2015-03-09 12:30</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Vasili Gulevich wrote:
> Following functionality is missing in Java API:
>
> * BOWTrainer
> * BOWKMeansTrainer
>
> "It is possible to port in Python, but Java automatic binding generation won't work":http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python
>
> Related questions:
> http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
> http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
> http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/
Any update on this?"><pre class="notranslate"><code class="notranslate">Vasili Gulevich wrote:
> Following functionality is missing in Java API:
>
> * BOWTrainer
> * BOWKMeansTrainer
>
> "It is possible to port in Python, but Java automatic binding generation won't work":http://answers.opencv.org/question/34700/bowkmeanstrainer-in-python
>
> Related questions:
> http://answers.opencv.org/question/24444/developping-a-java-bag-of-words-implemetation/
> http://answers.opencv.org/question/10961/bowtrainer-in-java-api/
> http://answers.opencv.org/question/17537/train-kmeans-in-java-api-for-bow/
Any update on this?
</code></pre></div> | 0 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">I am using both PyTorch 1.5 (stable) and nightly build (1.6.0.dev20200611).<br>
Sometimes I need to run code in v1.5 and use files saved by <code class="notranslate">torch.save</code> from the nightly build.<br>
However, PyTorch 1.5 fails to <code class="notranslate">torch.load</code> such files.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ul dir="auto">
<li>PyTorch nightly</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
a = torch.randn(1)
torch.save(a, 'a.pt')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">randn</span>(<span class="pl-c1">1</span>)
<span class="pl-s1">torch</span>.<span class="pl-en">save</span>(<span class="pl-s1">a</span>, <span class="pl-s">'a.pt'</span>)</pre></div>
<ul dir="auto">
<li>PyTorch 1.5</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
torch.load('a.pt')"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-s1">torch</span>.<span class="pl-en">load</span>(<span class="pl-s">'a.pt'</span>)</pre></div>
<p dir="auto">Then it shows the following error message</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/home/seungjun/local/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/serialization.py", line 586, in load<br>
with _open_zipfile_reader(f) as opened_zipfile:<br>
File "/home/seungjun/local/anaconda3/envs/pytorch/lib/python3.7/site-packages/torch/serialization.py", line 246, in <strong>init</strong><br>
super(_open_zipfile_reader, self).<strong>init</strong>(torch.<em>C.PyTorchFileReader(name_or_buffer))<br>
RuntimeError: version</em> <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /opt/conda/conda-bld/pytorch_1587428266983/work/caffe2/serialize/inline_container.cc:132, please report a bug to PyTorch. Attempted to read a PyTorch file with version 4, but the maximum supported version for reading is 3. Your PyTorch installation may be too old.</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">I expect PyTorch 1.5 to load files without error.<br>
Current behavior could be due to the update in PyTorchFileReader but I assume 1.5 and 1.6 should be compatible as their version number is close to each other.</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">Loading:</p>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): 1.5.0</li>
<li>OS (e.g., Linux): Ubuntu 18.04.4 LTS</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): conda</li>
<li>Build command you used (if compiling from source):<br>
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch</li>
<li>Python version: 3.7</li>
<li>CUDA/cuDNN version: 10.2.89, 7.6.5</li>
</ul>
<p dir="auto">Saving:</p>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): 1.6.0.dev20200611 for saving</li>
<li>OS (e.g., Linux): Ubuntu 18.04.4 LTS</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): conda</li>
<li>Build command you used (if compiling from source):<br>
conda install pytorch torchvision cudatoolkit=10.2 -c pytorch-nightly</li>
<li>Python version: 3.8</li>
<li>CUDA/cuDNN version: 10.2.89, 7.6.5</li>
</ul>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a></p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">This issus is same as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="643650470" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/40425" data-hovercard-type="issue" data-hovercard-url="/pytorch/pytorch/issues/40425/hovercard" href="https://github.com/pytorch/pytorch/issues/40425">#40425</a>, but 40425 can not slove my question, so i reopen it again ,and add some NOTE.</p>
<p dir="auto">I am using cusolverDn in c++ and import it to python with pybind11.<br>
After use cusolverDnCreate() and cusolverDnDestroy() with torch,Segment Fault appear when program destruction.</p>
<p dir="auto"><strong>NOTE:</strong></p>
<h3 dir="auto"><strong>1: When the demo run with Torch1.2,it run success, the SegFault disappear, does it mean Torch 1.5 has some bug?</strong></h3>
<h3 dir="auto"><strong>2: This SegFault only appear with "thread_local", Does it provide some information for this bug?</strong></h3>
<h3 dir="auto"><strong>3: Please see test.py below, if we "import torch" after "import example", SegFault disappear.</strong></h3>
<h3 dir="auto"><strong>4: Torch have not link libcusolver.so, so we just link it once.</strong></h3>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> say that upgarde cuda may fix this.But i can not upgrade in production environment。</p>
<p dir="auto">cc please <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ezyang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ezyang">@ezyang</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gchanan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gchanan">@gchanan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yf225/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yf225">@yf225</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/glaringlee/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/glaringlee">@glaringlee</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngimel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngimel">@ngimel</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mcarilli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mcarilli">@mcarilli</a></p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<p dir="auto">1.paste the c++ code, name bind_cudevice.cc<br>
2.compile bind_cudevice.cc with my g++ compile code<br>
3.paste my python code named test.py<br>
4. just run test.py and see</p>
<p dir="auto">bind_cudevice.cc</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include <iostream>
#include <cublas_v2.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <cusolverDn.h>
#include <cusolverSp.h>
#include <cusolverRf.h>
#include <pybind11/pybind11.h>
class CuDevice {
public:
CuDevice() {
initialized_ = true;
cudaSetDevice(0);
cusolverDnCreate(&cusolverdn_handle_);
cusolverDnSetStream(cusolverdn_handle_, cudaStreamPerThread);
}
~CuDevice() {
std::cout << "in ~CuDevice" << std::endl;
if (cusolverdn_handle_) {
std::cout << "in ~CuDevice and cusolverdn_handle_" << std::endl;
cusolverDnDestroy(cusolverdn_handle_);
std::cout << "Destory success" << std::endl;
}
}
private:
bool initialized_;
cusolverDnHandle_t cusolverdn_handle_;
};
int init_cudevice(){
thread_local CuDevice a = CuDevice();
std::cout << "hello world" << std::endl;
return 0;
}
PYBIND11_MODULE(example, m) {
m.def("init_cudevide",
&init_cudevice,
"select gpu id");
}"><pre class="notranslate"><code class="notranslate">#include <iostream>
#include <cublas_v2.h>
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <cusolverDn.h>
#include <cusolverSp.h>
#include <cusolverRf.h>
#include <pybind11/pybind11.h>
class CuDevice {
public:
CuDevice() {
initialized_ = true;
cudaSetDevice(0);
cusolverDnCreate(&cusolverdn_handle_);
cusolverDnSetStream(cusolverdn_handle_, cudaStreamPerThread);
}
~CuDevice() {
std::cout << "in ~CuDevice" << std::endl;
if (cusolverdn_handle_) {
std::cout << "in ~CuDevice and cusolverdn_handle_" << std::endl;
cusolverDnDestroy(cusolverdn_handle_);
std::cout << "Destory success" << std::endl;
}
}
private:
bool initialized_;
cusolverDnHandle_t cusolverdn_handle_;
};
int init_cudevice(){
thread_local CuDevice a = CuDevice();
std::cout << "hello world" << std::endl;
return 0;
}
PYBIND11_MODULE(example, m) {
m.def("init_cudevide",
&init_cudevice,
"select gpu id");
}
</code></pre></div>
<p dir="auto">g++ compile code</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
g++ -O3 -Wall -shared -std=c++11 -fPIC -I/usr/include/python3.6m -I./third-party/pybind11-2.2.4/include -I/usr/local/cuda/include -Wl,-rpath=/usr/local/cuda/lib64 -L/usr/local/cuda/lib64 -lcudart -lcusolver `python3 -m pybind11 --includes` binding_cudevice.cc -o example`python3-config --extension-suffix`
"><pre class="notranslate"><code class="notranslate">
g++ -O3 -Wall -shared -std=c++11 -fPIC -I/usr/include/python3.6m -I./third-party/pybind11-2.2.4/include -I/usr/local/cuda/include -Wl,-rpath=/usr/local/cuda/lib64 -L/usr/local/cuda/lib64 -lcudart -lcusolver `python3 -m pybind11 --includes` binding_cudevice.cc -o example`python3-config --extension-suffix`
</code></pre></div>
<p dir="auto">test.py</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch
import example
example.init_cudevide()"><pre class="notranslate"><code class="notranslate">import torch
import example
example.init_cudevide()
</code></pre></div>
<h2 dir="auto">Core Dump Info</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(gdb) bt
#0 0x00007f78b6a391de in ?? () from /usr/local/cuda/lib64/libcusolver.so.10.0
#1 0x00007f78b6a5b4ca in ?? () from /usr/local/cuda/lib64/libcusolver.so.10.0
#2 0x00007f78b5db6e49 in ?? () from /usr/local/cuda/lib64/libcusolver.so.10.0
#3 0x00007f78b5b854c1 in cusolverDnDestroy () from /usr/local/cuda/lib64/libcusolver.so.10.0
#4 0x00007f78be143952 in kaldi::CuDevice::~CuDevice (this=0x2f18a38, __in_chrg=<optimized out>) at cu-device.cc:683
#5 0x00007f79880d7ad1 in (anonymous namespace)::run (p=<optimized out>) at /home/nwani/m3/conda-bld/compilers_linux-64_1560109574129/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/libstdc++-v3/libsupc++/atexit_thread.cc:75
#6 0x00007f79b752cc99 in __run_exit_handlers () from /usr/lib64/libc.so.6
#7 0x00007f79b752cce7 in exit () from /usr/lib64/libc.so.6
#8 0x00007f79b751550c in __libc_start_main () from /usr/lib64/libc.so.6
#9 0x0000000000400c20 in _start ()"><pre class="notranslate"><code class="notranslate">(gdb) bt
#0 0x00007f78b6a391de in ?? () from /usr/local/cuda/lib64/libcusolver.so.10.0
#1 0x00007f78b6a5b4ca in ?? () from /usr/local/cuda/lib64/libcusolver.so.10.0
#2 0x00007f78b5db6e49 in ?? () from /usr/local/cuda/lib64/libcusolver.so.10.0
#3 0x00007f78b5b854c1 in cusolverDnDestroy () from /usr/local/cuda/lib64/libcusolver.so.10.0
#4 0x00007f78be143952 in kaldi::CuDevice::~CuDevice (this=0x2f18a38, __in_chrg=<optimized out>) at cu-device.cc:683
#5 0x00007f79880d7ad1 in (anonymous namespace)::run (p=<optimized out>) at /home/nwani/m3/conda-bld/compilers_linux-64_1560109574129/work/.build/x86_64-conda_cos6-linux-gnu/src/gcc/libstdc++-v3/libsupc++/atexit_thread.cc:75
#6 0x00007f79b752cc99 in __run_exit_handlers () from /usr/lib64/libc.so.6
#7 0x00007f79b752cce7 in exit () from /usr/lib64/libc.so.6
#8 0x00007f79b751550c in __libc_start_main () from /usr/lib64/libc.so.6
#9 0x0000000000400c20 in _start ()
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">No error happen</p>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.5):1.5</li>
<li>OS (e.g., Linux):Centos7</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source):source</li>
<li>Build command you used (if compiling from source):</li>
<li>Python version:3.6.8</li>
<li>CUDA/cuDNN version:10.0</li>
<li>GPU models and configuration:K40</li>
<li>Any other relevant information:</li>
</ul>
<h2 dir="auto">Additional context</h2>
<p dir="auto">cuSolver is base cublas and cusparse, reference about cuSolver:<br>
<a href="https://docs.nvidia.com/cuda/archive/10.0/cusolver/index.html#cuSolverDNhandle" rel="nofollow">https://docs.nvidia.com/cuda/archive/10.0/cusolver/index.html#cuSolverDNhandle</a></p> | 0 |
<p dir="auto">For English only, other languages we will close it directly.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<p dir="auto">Before submit a new issue, please check existed issue first, to make sure your issue is not a duplicated one.</p>
<h3 dir="auto">Which version of Sharding-Sphere do you using?</h3>
<p dir="auto">3.0.0.M3</p>
<h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">RoundRobinMasterSlaveLoadBalance always be OK</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">after roundrobin Integer.MAX_VALUE times, will throw an ArrayIndexOutOfBoundsException.</p>
<h3 dir="auto">Reason analyze</h3>
<p dir="auto">the AtomicInteger's getAndIncrement() may produce an negative numbers.</p>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc</h3>
<h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3> | <p dir="auto">version:lastest</p>
<p dir="auto">config:<br>
server.yaml:<br>
rule:<br>
- !TRANSACTION<br>
defaultType: XA<br>
providerType: Atomikos<br>
I have two logical databases, sharding_db and sharding_db2;<br>
sharding_db => actual databases ds_0, ds_1<br>
sharding_db2 => actual databases ds_0, ds_1<br>
sharding_sames as sharding_db2</p>
<p dir="auto">connection2:<br>
mysql> use sharding_db;<br>
Database changed<br>
mysql> begin;<br>
Query OK, 0 rows affected (0.01 sec)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" mysql> Insert into tbl_db_migrate_record(id, msg3, msg, record) values (146, '146', 'test', '[1,2,3]'),(139, '139', 'test', '[1,2,3]');
**### ???? ERROR 1997 (C1997): Runtime exception: [null]????**"><pre class="notranslate"><code class="notranslate"> mysql> Insert into tbl_db_migrate_record(id, msg3, msg, record) values (146, '146', 'test', '[1,2,3]'),(139, '139', 'test', '[1,2,3]');
**### ???? ERROR 1997 (C1997): Runtime exception: [null]????**
</code></pre></div>
<p dir="auto">connection1:<br>
mysql> use sharding_db2; Reading table information for completion of table and column names<br>
Database changed<br>
mysql> begin; Query OK, 0 rows affected (0.06 sec)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" mysql> Insert into tbl_db_migrate_record(id, msg3, msg, record) values (146, '146', 'test', '[1,2,3]'),(139, '139', 'test', '[1,2,3]');
ERROR 1062 (23000): Duplicate entry '146' for key 'PRIMARY'
mysql> rollback;
Query OK, 0 rows affected (0.21 sec)"><pre class="notranslate"><code class="notranslate"> mysql> Insert into tbl_db_migrate_record(id, msg3, msg, record) values (146, '146', 'test', '[1,2,3]'),(139, '139', 'test', '[1,2,3]');
ERROR 1062 (23000): Duplicate entry '146' for key 'PRIMARY'
mysql> rollback;
Query OK, 0 rows affected (0.21 sec)
</code></pre></div>
<p dir="auto">Connect1 execute first</p>
<p dir="auto">[ERROR] 2022-05-09 17:29:42.689 [Connection-2-ThreadExecutor] o.a.s.p.f.c.CommandExecutorTask - Exception occur:<br>
java.lang.NullPointerException: null<br>
at org.apache.shardingsphere.transaction.xa.XAShardingSphereTransactionManager.getConnection(XAShardingSphereTransactionManager.java:80)<br>
at org.apache.shardingsphere.proxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.createConnection(JDBCBackendDataSource.java:114)<br>
at org.apache.shardingsphere.proxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.getConnections(JDBCBackendDataSource.java:81)<br>
at org.apache.shardingsphere.proxy.backend.communication.jdbc.datasource.JDBCBackendDataSource.getConnections(JDBCBackendDataSource.java:55)<br>
at org.apache.shardingsphere.proxy.backend.communication.jdbc.connection.JDBCBackendConnection.createNewConnections(JDBCBackendConnection.java:101)<br>
at org.apache.shardingsphere.proxy.backend.communication.jdbc.connection.JDBCBackendConnection.getConnections(JDBCBackendConnection.java:91)<br>
at org.apache.shardingsphere.infra.executor.sql.prepare.driver.DriverExecutionPrepareEngine.group(DriverExecutionPrepareEngine.java:88)<br>
at org.apache.shardingsphere.infra.executor.sql.prepare.AbstractExecutionPrepareEngine.prepare(AbstractExecutionPrepareEngine.java:68)<br>
at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.useDriverToExecute(ProxySQLExecutor.java:158)<br>
at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:125)<br>
at org.apache.shardingsphere.proxy.backend.communication.ProxySQLExecutor.execute(ProxySQLExecutor.java:119)<br>
at org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:144)<br>
at org.apache.shardingsphere.proxy.backend.communication.jdbc.JDBCDatabaseCommunicationEngine.execute(JDBCDatabaseCommunicationEngine.java:74)<br>
at org.apache.shardingsphere.proxy.backend.text.data.impl.SchemaAssignedDatabaseBackendHandler.execute(SchemaAssignedDatabaseBackendHandler.java:56)<br>
at org.apache.shardingsphere.proxy.frontend.mysql.command.query.text.query.MySQLComQueryPacketExecutor.execute(MySQLComQueryPacketExecutor.java:97)<br>
at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.executeCommand(CommandExecutorTask.java:107)<br>
at org.apache.shardingsphere.proxy.frontend.command.CommandExecutorTask.run(CommandExecutorTask.java:77)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br>
at java.lang.Thread.run(Thread.java:748)</p> | 0 |
<h5 dir="auto">Description of the problem</h5>
<p dir="auto">ThreeJS editor does not have enough tools to animate or apply effects to the 3D models. Hence, I guess, this might come as a new feature request, to increase the tools/options inside the editor such that almost everything can be performed using the editor's GUI alone.</p>
<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> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">There are several features of <code class="notranslate">THREE</code> that aren't accessible from the Editor. When I say accessible, I mean combination of:</p>
<ul dir="auto">
<li>properties are not visible for editing</li>
<li>objects not being able to be created</li>
<li>objects not being able to be imported or exported.</li>
</ul>
<p dir="auto">Ideally, the Editor should be capable of creating and editing most objects and features that the API contains. This issue is really more to keep track of what the Editor can and can't do currently. I'm listing features that I think the Editor would be capable of handling.</p>
<h4 dir="auto">Cameras</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PerspectiveCamera</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">OrthographicCamera</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <del><code class="notranslate">ArrayCamera</code></del></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <del><code class="notranslate">CubeCamera</code></del></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <del><code class="notranslate">StereoCamera</code></del></li>
</ul>
<h4 dir="auto">Core</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">BufferAttribute</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">BufferGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">Layers</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">InstancedBufferAttribute</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">InstancedBufferGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">InstancedInterleavedBuffer</code> * (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="424621725" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/16050" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/16050/hovercard" href="https://github.com/mrdoob/three.js/pull/16050">#16050</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">InterleavedBufferAttribute</code></li>
</ul>
<h4 dir="auto">Geometry</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">BoxGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">CircleGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">ConeGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">CylinderGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">DodecahedronGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">EdgesGeometry</code> *</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">ExtrudeGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">IcosahedronGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">LatheGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">OctahedronGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PlaneGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">RingGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">ShapeGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">SphereGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">TetrahedronGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">TorusGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">TorusKnotGemetry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">TubeGeometry</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">WireframeGeometry</code> **</li>
</ul>
<h4 dir="auto">Lights</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">AmbientLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">DirectionalLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">HemisphereLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PointLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">RectAreaLight</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="433035472" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/16251" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/16251/hovercard" href="https://github.com/mrdoob/three.js/pull/16251">#16251</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">SpotLight</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">LightProbe</code></li>
</ul>
<h4 dir="auto">Materials</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">LineBasicMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">LineDashedMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshBasicMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshDepthMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshLambertMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshMatcapMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshNormalMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshPhongMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshPhysicalMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshStandardMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">MeshToonMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">PointsMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">RawShaderMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">ShaderMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">ShadowMaterial</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">SpriteMaterial</code></li>
</ul>
<h4 dir="auto">Objects</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Group</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">LOD</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">Line</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">LineLoop</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">LineSegments</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Mesh</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">InstancedMesh</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Points</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">SkinnedMesh</code></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">Sprite</code></li>
</ul>
<h4 dir="auto">Textures</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">Texture</code> (properties not editable <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314973256" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13882" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/13882/hovercard" href="https://github.com/mrdoob/three.js/issues/13882">#13882</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="405980591" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/15695" data-hovercard-type="pull_request" data-hovercard-url="/mrdoob/three.js/pull/15695/hovercard" href="https://github.com/mrdoob/three.js/pull/15695">#15695</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">CubeTexture</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="314913050" data-permission-text="Title is private" data-url="https://github.com/mrdoob/three.js/issues/13880" data-hovercard-type="issue" data-hovercard-url="/mrdoob/three.js/issues/13880/hovercard" href="https://github.com/mrdoob/three.js/issues/13880">#13880</a>)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> <code class="notranslate">VideoTexture</code></li>
</ul>
<h4 dir="auto">Misc</h4>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Animations</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Audio</li>
</ul>
<p dir="auto">* = Serializable, but not deserializable<br>
** = Serializable, but not as the original geometry (i.e. <code class="notranslate">WireframeGeometry</code> is serialized as <code class="notranslate">BufferGeometry</code>)</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=""> r103</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> | 1 |
<p dir="auto">since the early versions on atom this version's start up time is very much i know all these features take some time to load but this is quite too much , which is not good for text editor .<br>
please fix this start up time issue.<br>
thanks in advance</p> | <p dir="auto">Hi, i have used Textmate for a loong long time. But also as a big fan of new things, i decided to try Atom for curiosity purposes.</p>
<p dir="auto">It turns out that i found Atom a great platform for day-by-day development, and im using it Atom now. But theres one thing annoying me:</p>
<p dir="auto">I usually open Atom using the Shell command "atom [filename]", and compared to "mate [filename]" (the same command Textmate use for open files using Shell), Atom is incredible slow (i feel i have to wait twice of the time, like 1s~2s).<br>
I know this performance also is related to machine specs, processors, memory and etc. But its the exactly same task executed for different tools.</p>
<p dir="auto">I can record a video showing that behavior if you like.<br>
Also, if this is a un-prioritize known issue, i can submit a pull request if theres noone working on it. I just need to know where to start looking.</p>
<p dir="auto">][`s</p> | 1 |
<p dir="auto">Here is the error:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread 'rustc' panicked at 'Unexpected type returned from struct_tail: (for<'r,'r,'r> core::ops::FnMut(&'r widgets::tree_model::TreeModel, &'r widgets::tree_iter::TreeIter, &'r widgets::tree_iter::TreeIter, *mut libc::types::common::c95::c_void), *mut libc::types::common::c95::c_void) for ty=(for<'r,'r,'r> core::ops::FnMut(&'r widgets::tree_model::TreeModel, &'r widgets::tree_iter::TreeIter, &'r widgets::tree_iter::TreeIter, *mut libc::types::common::c95::c_void), *mut libc::types::common::c95::c_void)', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:354
stack backtrace:
1: 0x7f3e757c5733 - sys::backtrace::write::h8f69c25b82e602958cs
2: 0x7f3e757cd669 - panicking::on_panic::hfa966c25addcbd02XXw
3: 0x7f3e7578dcfa - rt::unwind::begin_unwind_inner::h75eec641d76d2f34HDw
4: 0x7f3e7578ea97 - rt::unwind::begin_unwind_fmt::hc239ae9d69c6846fNCw
5: 0x7f3e7453ce81 - trans::type_of::in_memory_type_of::h3ecebb4824b43e04W4L
6: 0x7f3e74606194 - trans::type_of::type_of_rust_fn::h607dc640440350a7FSL
7: 0x7f3e745497bb - trans::declare::declare_rust_fn::h4800aa8c001370c2QaA
8: 0x7f3e7456d757 - trans::base::register_fn::h9adaa07e7fa9572ajFi
9: 0x7f3e7456888c - trans::base::get_item_val::heee81e685884b3511Ri
10: 0x7f3e74564d86 - trans::base::trans_item::hf26865b4e5e5e2a9Kti
11: 0x7f3e745656f8 - trans::base::trans_item::hf26865b4e5e5e2a9Kti
12: 0x7f3e745656f8 - trans::base::trans_item::hf26865b4e5e5e2a9Kti
13: 0x7f3e74572b02 - trans::base::trans_crate::h174636cd97c01262Wij
14: 0x7f3e75d22cb4 - driver::phase_4_translate_to_llvm::h1e3de5efb53bc87ezOa
15: 0x7f3e75cfe396 - driver::compile_input::hda494d426ffc5b8bQba
16: 0x7f3e75db3cc1 - run_compiler::hd539ddde81e1e162n6b
17: 0x7f3e75db1512 - boxed::F.FnBox<A>::call_box::h2241471336346299975
18: 0x7f3e75db0d19 - rt::unwind::try::try_fn::h1392995902660742682
19: 0x7f3e758464e8 - rust_try_inner
20: 0x7f3e758464d5 - rust_try
21: 0x7f3e757b8ee7 - rt::unwind::try::inner_try::hfac58a0de8636543Azw
22: 0x7f3e75db0f39 - boxed::F.FnBox<A>::call_box::h9914386528590371672
23: 0x7f3e757cc321 - sys::thread::Thread::new::thread_start::h5dbb55e110740b5cMJv
24: 0x7f3e6f7b3181 - start_thread
25: 0x7f3e7540d47c - __clone
26: 0x0 - <unknown>
Could not compile `gtk`."><pre class="notranslate">error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
thread <span class="pl-s"><span class="pl-pds">'</span>rustc<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>Unexpected type returned from struct_tail: (for<<span class="pl-pds">'</span></span>r,<span class="pl-s"><span class="pl-pds">'</span>r,<span class="pl-pds">'</span></span>r<span class="pl-k">></span> core::ops::FnMut(<span class="pl-k">&</span><span class="pl-s"><span class="pl-pds">'</span>r widgets::tree_model::TreeModel, &<span class="pl-pds">'</span></span>r widgets::tree_iter::TreeIter, <span class="pl-k">&</span><span class="pl-s"><span class="pl-pds">'</span>r widgets::tree_iter::TreeIter, *mut libc::types::common::c95::c_void), *mut libc::types::common::c95::c_void) for ty=(for<<span class="pl-pds">'</span></span>r,<span class="pl-s"><span class="pl-pds">'</span>r,<span class="pl-pds">'</span></span>r<span class="pl-k">></span> core::ops::FnMut(<span class="pl-k">&</span><span class="pl-s"><span class="pl-pds">'</span>r widgets::tree_model::TreeModel, &<span class="pl-pds">'</span></span>r widgets::tree_iter::TreeIter, <span class="pl-k">&</span><span class="pl-s"><span class="pl-pds">'</span>r widgets::tree_iter::TreeIter, *mut libc::types::common::c95::c_void), *mut libc::types::common::c95::c_void)<span class="pl-pds">'</span></span>, /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:354
stack backtrace:
1: 0x7f3e757c5733 - sys::backtrace::write::h8f69c25b82e602958cs
2: 0x7f3e757cd669 - panicking::on_panic::hfa966c25addcbd02XXw
3: 0x7f3e7578dcfa - rt::unwind::begin_unwind_inner::h75eec641d76d2f34HDw
4: 0x7f3e7578ea97 - rt::unwind::begin_unwind_fmt::hc239ae9d69c6846fNCw
5: 0x7f3e7453ce81 - trans::type_of::in_memory_type_of::h3ecebb4824b43e04W4L
6: 0x7f3e74606194 - trans::type_of::type_of_rust_fn::h607dc640440350a7FSL
7: 0x7f3e745497bb - trans::declare::declare_rust_fn::h4800aa8c001370c2QaA
8: 0x7f3e7456d757 - trans::base::register_fn::h9adaa07e7fa9572ajFi
9: 0x7f3e7456888c - trans::base::get_item_val::heee81e685884b3511Ri
10: 0x7f3e74564d86 - trans::base::trans_item::hf26865b4e5e5e2a9Kti
11: 0x7f3e745656f8 - trans::base::trans_item::hf26865b4e5e5e2a9Kti
12: 0x7f3e745656f8 - trans::base::trans_item::hf26865b4e5e5e2a9Kti
13: 0x7f3e74572b02 - trans::base::trans_crate::h174636cd97c01262Wij
14: 0x7f3e75d22cb4 - driver::phase_4_translate_to_llvm::h1e3de5efb53bc87ezOa
15: 0x7f3e75cfe396 - driver::compile_input::hda494d426ffc5b8bQba
16: 0x7f3e75db3cc1 - run_compiler::hd539ddde81e1e162n6b
17: 0x7f3e75db1512 - boxed::F.FnBox<span class="pl-k"><</span>A<span class="pl-k">></span>::call_box::h2241471336346299975
18: 0x7f3e75db0d19 - rt::unwind::try::try_fn::h1392995902660742682
19: 0x7f3e758464e8 - rust_try_inner
20: 0x7f3e758464d5 - rust_try
21: 0x7f3e757b8ee7 - rt::unwind::try::inner_try::hfac58a0de8636543Azw
22: 0x7f3e75db0f39 - boxed::F.FnBox<span class="pl-k"><</span>A<span class="pl-k">></span>::call_box::h9914386528590371672
23: 0x7f3e757cc321 - sys::thread::Thread::new::thread_start::h5dbb55e110740b5cMJv
24: 0x7f3e6f7b3181 - start_thread
25: 0x7f3e7540d47c - __clone
26: 0x0 - <span class="pl-k"><</span>unknown<span class="pl-k">></span>
Could not compile <span class="pl-s"><span class="pl-pds">`</span>gtk<span class="pl-pds">`</span></span>.</pre></div>
<p dir="auto">Here is the <a href="https://github.com/GuillaumeGomez/gtk/blob/master/src/traits/tree_sortable.rs">file</a> and <a href="https://github.com/GuillaumeGomez/gtk/blob/master/src/traits/tree_sortable.rs#L13">here</a> is the code.</p> | <p dir="auto"><code class="notranslate">rustc</code> is not checking that all types that are put into a sized-context are in fact sized.</p>
<p dir="auto">Consider for example:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub enum BsonValue {
A([u8]),
B([BsonValue]),
}
pub fn set_value(_v:&BsonValue)
{
}
fn main()
{
}"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">enum</span> <span class="pl-smi">BsonValue</span> <span class="pl-kos">{</span>
<span class="pl-v">A</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-v">B</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-smi">BsonValue</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">pub</span> <span class="pl-k">fn</span> <span class="pl-en">set_value</span><span class="pl-kos">(</span><span class="pl-s1">_v</span><span class="pl-kos">:</span><span class="pl-c1">&</span><span class="pl-smi">BsonValue</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">This yields an ICE:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'Unexpected type returned from struct_tail: BsonValue for ty=BsonValue', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:366"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'Unexpected type returned from struct_tail: BsonValue for ty=BsonValue', /home/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-linux/build/src/librustc_trans/trans/type_of.rs:366
</code></pre></div>
<h2 dir="auto">Original bug report follows</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="erics-air-2:Elmo eric$ rustc --version
rustc 1.0.0-beta.3 (5241bf9c3 2015-04-25) (built 2015-04-25)"><pre class="notranslate"><code class="notranslate">erics-air-2:Elmo eric$ rustc --version
rustc 1.0.0-beta.3 (5241bf9c3 2015-04-25) (built 2015-04-25)
</code></pre></div>
<p dir="auto">I'm on MacOS X Mavericks.</p>
<p dir="auto">Here's the source file that causes the problem (I'm a rust newbie):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum BsonValue {
BDouble(f64),
BString(String),
BInt64(i64),
BInt32(i32),
BUndefined,
BObjectID([u8]),
BNull,
BRegex(String,String),
BJSCode(String),
BJSCodeWithScope(String),
BBinary(u8,[u8]),
BMinKey,
BMaxKey,
BDateTime(i64),
BTimeStamp(i64),
BBoolean(bool),
BArray([BsonValue]),
BDocument([(String,BsonValue)]),
}
fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
{
}
fn main()
{
}"><pre class="notranslate"><code class="notranslate">enum BsonValue {
BDouble(f64),
BString(String),
BInt64(i64),
BInt32(i32),
BUndefined,
BObjectID([u8]),
BNull,
BRegex(String,String),
BJSCode(String),
BJSCodeWithScope(String),
BBinary(u8,[u8]),
BMinKey,
BMaxKey,
BDateTime(i64),
BTimeStamp(i64),
BBoolean(bool),
BArray([BsonValue]),
BDocument([(String,BsonValue)]),
}
fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
{
}
fn main()
{
}
</code></pre></div>
<p dir="auto">And here's the output of the compiler:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="erics-air-2:Elmo eric$ RUST_BACKTRACE=1 rustc b.rs
b.rs:2:1: 21:2 warning: enum is never used: `BsonValue`, #[warn(dead_code)] on by default
b.rs:2 enum BsonValue {
b.rs:3 BDouble(f64),
b.rs:4 BString(String),
b.rs:5 BInt64(i64),
b.rs:6 BInt32(i32),
b.rs:7 BUndefined,
...
b.rs:23:1: 25:2 warning: function is never used: `setValueForKey`, #[warn(dead_code)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
b.rs:24 {
b.rs:25 }
b.rs:23:20: 23:23 warning: unused variable: `doc`, #[warn(unused_variables)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
^~~
b.rs:23:36: 23:37 warning: unused variable: `k`, #[warn(unused_variables)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
^
b.rs:23:46: 23:47 warning: unused variable: `v`, #[warn(unused_variables)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
^
b.rs:23:1: 25:2 warning: function `setValueForKey` should have a snake case name such as `set_value_for_key`, #[warn(non_snake_case)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
b.rs:24 {
b.rs:25 }
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Unexpected type returned from struct_tail: BsonValue for ty=BsonValue', /Users/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-mac/build/src/librustc_trans/trans/type_of.rs:366
stack backtrace:
1: 0x1085cc33f - sys::backtrace::write::h0f2fc53eb11eb814gWr
2: 0x1085d4942 - panicking::on_panic::hd617a4042e8486fciUv
3: 0x108591375 - rt::unwind::begin_unwind_inner::hd84dfec22ac3667d1Bv
4: 0x108592206 - rt::unwind::begin_unwind_fmt::h5bb6fa95bd57b24bFAv
5: 0x10566046f - trans::type_of::in_memory_type_of::hb4e9c324c5b50f3epkL
6: 0x105732682 - trans::type_of::type_of_rust_fn::h693a4c7fdf6ff62b87K
7: 0x10566e00c - trans::declare::declare_rust_fn::hb0911ef870c7fe86SJz
8: 0x10569462f - trans::base::register_fn::ha9cdc6c185aa084bVmi
9: 0x10568f2d1 - trans::base::get_item_val::hfda21a63917f43e1Dzi
10: 0x10568b3c7 - trans::base::trans_item::h2033cab24c2319dbFbi
11: 0x10569a220 - trans::base::trans_crate::h3375b1d0f4de8d89F0i
12: 0x10511ed4e - driver::phase_4_translate_to_llvm::hc94112f0d91aac3chOa
13: 0x1050f72a4 - driver::compile_input::h4747d8bb1c595fdfQba
14: 0x1051be8f3 - run_compiler::hc8c95c5858347fdbz4b
15: 0x1051bc41a - boxed::F.FnBox<A>::call_box::h7872786064439979928
16: 0x1051bb8b7 - rt::unwind::try::try_fn::h10239991317224243769
17: 0x1086557c8 - rust_try_inner
18: 0x1086557b5 - rust_try
19: 0x1051bbb90 - boxed::F.FnBox<A>::call_box::h4543691575426869824
20: 0x1085d348d - sys::thread::create::thread_start::h499b3be451a7bbb8AZu
21: 0x7fff8aca1898 - _pthread_body
22: 0x7fff8aca1729 - _pthread_start"><pre class="notranslate"><code class="notranslate">erics-air-2:Elmo eric$ RUST_BACKTRACE=1 rustc b.rs
b.rs:2:1: 21:2 warning: enum is never used: `BsonValue`, #[warn(dead_code)] on by default
b.rs:2 enum BsonValue {
b.rs:3 BDouble(f64),
b.rs:4 BString(String),
b.rs:5 BInt64(i64),
b.rs:6 BInt32(i32),
b.rs:7 BUndefined,
...
b.rs:23:1: 25:2 warning: function is never used: `setValueForKey`, #[warn(dead_code)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
b.rs:24 {
b.rs:25 }
b.rs:23:20: 23:23 warning: unused variable: `doc`, #[warn(unused_variables)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
^~~
b.rs:23:36: 23:37 warning: unused variable: `k`, #[warn(unused_variables)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
^
b.rs:23:46: 23:47 warning: unused variable: `v`, #[warn(unused_variables)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
^
b.rs:23:1: 25:2 warning: function `setValueForKey` should have a snake case name such as `set_value_for_key`, #[warn(non_snake_case)] on by default
b.rs:23 fn setValueForKey (doc:&BsonValue, k:String, v:&BsonValue)
b.rs:24 {
b.rs:25 }
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Unexpected type returned from struct_tail: BsonValue for ty=BsonValue', /Users/rustbuild/src/rust-buildbot/slave/beta-dist-rustc-mac/build/src/librustc_trans/trans/type_of.rs:366
stack backtrace:
1: 0x1085cc33f - sys::backtrace::write::h0f2fc53eb11eb814gWr
2: 0x1085d4942 - panicking::on_panic::hd617a4042e8486fciUv
3: 0x108591375 - rt::unwind::begin_unwind_inner::hd84dfec22ac3667d1Bv
4: 0x108592206 - rt::unwind::begin_unwind_fmt::h5bb6fa95bd57b24bFAv
5: 0x10566046f - trans::type_of::in_memory_type_of::hb4e9c324c5b50f3epkL
6: 0x105732682 - trans::type_of::type_of_rust_fn::h693a4c7fdf6ff62b87K
7: 0x10566e00c - trans::declare::declare_rust_fn::hb0911ef870c7fe86SJz
8: 0x10569462f - trans::base::register_fn::ha9cdc6c185aa084bVmi
9: 0x10568f2d1 - trans::base::get_item_val::hfda21a63917f43e1Dzi
10: 0x10568b3c7 - trans::base::trans_item::h2033cab24c2319dbFbi
11: 0x10569a220 - trans::base::trans_crate::h3375b1d0f4de8d89F0i
12: 0x10511ed4e - driver::phase_4_translate_to_llvm::hc94112f0d91aac3chOa
13: 0x1050f72a4 - driver::compile_input::h4747d8bb1c595fdfQba
14: 0x1051be8f3 - run_compiler::hc8c95c5858347fdbz4b
15: 0x1051bc41a - boxed::F.FnBox<A>::call_box::h7872786064439979928
16: 0x1051bb8b7 - rt::unwind::try::try_fn::h10239991317224243769
17: 0x1086557c8 - rust_try_inner
18: 0x1086557b5 - rust_try
19: 0x1051bbb90 - boxed::F.FnBox<A>::call_box::h4543691575426869824
20: 0x1085d348d - sys::thread::create::thread_start::h499b3be451a7bbb8AZu
21: 0x7fff8aca1898 - _pthread_body
22: 0x7fff8aca1729 - _pthread_start
</code></pre></div> | 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.34.2]</li>
<li>Operating System: [All]</li>
<li>Browser: [Chromium,Firefox,Webkit]</li>
<li>Other info:[Not working with Chromium & Webkit, Working with Firefox]</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul dir="auto">
<li></li>
</ul>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test.only("verify Klaviyo integration Modified", async ({ page }) => {
let help:string = "";
await page.route(
"https://a.klaviyo.com/api/track",
async (route, request) => {
const networkRequests:string = request.postData()!;
help = networkRequests;
await route.continue();
});
await page.goto(
"https://rohitgupta.wingified.com/klaviyo1.html?id=" + accountId,{
waitUntil:'networkidle'
}
);
console.log(help); //network request details
const klaviyoCookies = await page.context().cookies();
expect(JSON.stringify(klaviyoCookies)).toContain("_vis_opt_exp_35_combi");
expect(help.includes('"Exp_name":"KLAVIYO - DO NOT DELETE"')).toBeTruthy();
expect(help.includes('"Var_name"')).toBeTruthy();
});"><pre class="notranslate"><span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">only</span><span class="pl-kos">(</span><span class="pl-s">"verify Klaviyo integration Modified"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">help</span>:<span class="pl-smi">string</span> <span class="pl-c1">=</span> <span class="pl-s">""</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">route</span><span class="pl-kos">(</span>
<span class="pl-s">"https://a.klaviyo.com/api/track"</span><span class="pl-kos">,</span>
<span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">route</span><span class="pl-kos">,</span> <span class="pl-s1">request</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">networkRequests</span>:<span class="pl-smi">string</span> <span class="pl-c1">=</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">postData</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-c1">!</span><span class="pl-kos">;</span>
<span class="pl-s1">help</span> <span class="pl-c1">=</span> <span class="pl-s1">networkRequests</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">route</span><span class="pl-kos">.</span><span class="pl-en">continue</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span>
<span class="pl-s">"https://rohitgupta.wingified.com/klaviyo1.html?id="</span> <span class="pl-c1">+</span> <span class="pl-s1">accountId</span><span class="pl-kos">,</span><span class="pl-kos">{</span>
<span class="pl-c1">waitUntil</span>:<span class="pl-s">'networkidle'</span>
<span class="pl-kos">}</span>
<span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">help</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//network request details</span>
<span class="pl-k">const</span> <span class="pl-s1">klaviyoCookies</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">context</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">cookies</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-smi">JSON</span><span class="pl-kos">.</span><span class="pl-en">stringify</span><span class="pl-kos">(</span><span class="pl-s1">klaviyoCookies</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toContain</span><span class="pl-kos">(</span><span class="pl-s">"_vis_opt_exp_35_combi"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">help</span><span class="pl-kos">.</span><span class="pl-en">includes</span><span class="pl-kos">(</span><span class="pl-s">'"Exp_name":"KLAVIYO - DO NOT DELETE"'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeTruthy</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">help</span><span class="pl-kos">.</span><span class="pl-en">includes</span><span class="pl-kos">(</span><span class="pl-s">'"Var_name"'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeTruthy</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import baseConfig from "vwo-playwright-seed/lib/config/base.conf";
const config = baseConfig.config;
config["use"]["baseURL"] = process.env.BASE_URL || "https://app.vwo.com/";
config["projects"] = [
{
name: "Chrome",
use: {
browserName: "chromium",
},
},
{
name: "Firefox",
use: {
browserName: "firefox",
},
},
];
export default config;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">baseConfig</span> <span class="pl-k">from</span> <span class="pl-s">"vwo-playwright-seed/lib/config/base.conf"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">config</span> <span class="pl-c1">=</span> <span class="pl-s1">baseConfig</span><span class="pl-kos">.</span><span class="pl-c1">config</span><span class="pl-kos">;</span>
<span class="pl-s1">config</span><span class="pl-kos">[</span><span class="pl-s">"use"</span><span class="pl-kos">]</span><span class="pl-kos">[</span><span class="pl-s">"baseURL"</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">BASE_URL</span> <span class="pl-c1">||</span> <span class="pl-s">"https://app.vwo.com/"</span><span class="pl-kos">;</span>
<span class="pl-s1">config</span><span class="pl-kos">[</span><span class="pl-s">"projects"</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">name</span>: <span class="pl-s">"Chrome"</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span>
<span class="pl-c1">browserName</span>: <span class="pl-s">"chromium"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">"Firefox"</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span>
<span class="pl-c1">browserName</span>: <span class="pl-s">"firefox"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">config</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>[Run the test]</li>
<li>[npx playwright test specs/Integration.Spec.ts --project=Chrome]</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-----------------------------18815464218261179702781698581
Content-Disposition: form-data; name="data"
{"event":"VWO","token":"TSR5n6","properties":{"Exp_name":"KLAVIYO - DO NOT DELETE","Var_name":"Variation-1","$use_ip":true,"$is_session_activity":true},"customer_properties":{"$exchange_id":"UKGnAHMG7opQKheXx_c9e6AApF9oEeD8PQQ_Yt1qyOJXWthcyBDClUET7ANQ3krL.TSR5n6","$referrer":{"ts":1685039184,"value":"","first_page":"https://rohitgupta.wingified.com/klaviyo1.html?id=541364"},"$last_referrer":{"ts":1685039184,"value":"","first_page":"https://rohitgupta.wingified.com/klaviyo1.html?id=541364"}}}
-----------------------------18815464218261179702781698581--
-----------------------------18815464218261179702781698581
Content-Disposition: form-data; name="data"
{"event":"VWO","token":"TSR5n6","properties":{"Exp_name":"KLAVIYO - DO NOT DELETE","Var_name":"Variation-1","$use_ip":true,"$is_session_activity":true},"customer_properties":{"$exchange_id":"UKGnAHMG7opQKheXx_c9e6AApF9oEeD8PQQ_Yt1qyOJXWthcyBDClUET7ANQ3krL.TSR5n6","$referrer":{"ts":1685039184,"value":"","first_page":"https://rohitgupta.wingified.com/klaviyo1.html?id=541364"},"$last_referrer":{"ts":1685039184,"value":"","first_page":"https://rohitgupta.wingified.com/klaviyo1.html?id=541364"}}}
-----------------------------18815464218261179702781698581--"><pre class="notranslate"><code class="notranslate">-----------------------------18815464218261179702781698581
Content-Disposition: form-data; name="data"
{"event":"VWO","token":"TSR5n6","properties":{"Exp_name":"KLAVIYO - DO NOT DELETE","Var_name":"Variation-1","$use_ip":true,"$is_session_activity":true},"customer_properties":{"$exchange_id":"UKGnAHMG7opQKheXx_c9e6AApF9oEeD8PQQ_Yt1qyOJXWthcyBDClUET7ANQ3krL.TSR5n6","$referrer":{"ts":1685039184,"value":"","first_page":"https://rohitgupta.wingified.com/klaviyo1.html?id=541364"},"$last_referrer":{"ts":1685039184,"value":"","first_page":"https://rohitgupta.wingified.com/klaviyo1.html?id=541364"}}}
-----------------------------18815464218261179702781698581--
-----------------------------18815464218261179702781698581
Content-Disposition: form-data; name="data"
{"event":"VWO","token":"TSR5n6","properties":{"Exp_name":"KLAVIYO - DO NOT DELETE","Var_name":"Variation-1","$use_ip":true,"$is_session_activity":true},"customer_properties":{"$exchange_id":"UKGnAHMG7opQKheXx_c9e6AApF9oEeD8PQQ_Yt1qyOJXWthcyBDClUET7ANQ3krL.TSR5n6","$referrer":{"ts":1685039184,"value":"","first_page":"https://rohitgupta.wingified.com/klaviyo1.html?id=541364"},"$last_referrer":{"ts":1685039184,"value":"","first_page":"https://rohitgupta.wingified.com/klaviyo1.html?id=541364"}}}
-----------------------------18815464218261179702781698581--
</code></pre></div>
<p dir="auto">[Describe expected behavior]<br>
<strong>This should be expected behaviour & all assertion should get passed</strong><br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/44397045/241004450-dffaa737-cc7f-487e-9739-a78c6ff4c9aa.png"><img src="https://user-images.githubusercontent.com/44397045/241004450-dffaa737-cc7f-487e-9739-a78c6ff4c9aa.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/44397045/241003403-32a25549-2216-4f68-b3fb-86b40c4d37b3.png"><img src="https://user-images.githubusercontent.com/44397045/241003403-32a25549-2216-4f68-b3fb-86b40c4d37b3.png" alt="image" style="max-width: 100%;"></a><br>
<strong>This expected result is with firefox browser.</strong></p>
<p dir="auto"><strong>Actual</strong><br>
Even request is not getting intercept in chrome browser same issue with the webkit.<br>
[Describe actual behavior]<br>
Assertions are getting failed as they are not intercepted with the route method with chromium.<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/44397045/241004156-a1b12ddc-ff02-4d19-a4d2-d245baa539b0.png"><img src="https://user-images.githubusercontent.com/44397045/241004156-a1b12ddc-ff02-4d19-a4d2-d245baa539b0.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/44397045/241004582-640b9afd-926b-4701-a7e4-5fbea4310bfc.png"><img src="https://user-images.githubusercontent.com/44397045/241004582-640b9afd-926b-4701-a7e4-5fbea4310bfc.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto"><strong>Context:</strong></p>
<h2 dir="auto">System:</h2>
<ul dir="auto">
<li>OS: Windows 10 10.0.19043</li>
</ul>
<h2 dir="auto">Binaries:</h2>
<ul dir="auto">
<li>Node: 12.13.1 - C:\Program Files\nodejs\node.EXE</li>
<li>Yarn: 1.19.1 - ~\AppData\Roaming\npm\yarn.CMD</li>
<li>npm: 6.14.2 - C:\Program Files\nodejs\npm.CMD</li>
</ul>
<h2 dir="auto">Languages:</h2>
<ul dir="auto">
<li>Bash: 4.4.20 - C:\WINDOWS\system32\bash.EXE</li>
</ul>
<h2 dir="auto">npmPackages:</h2>
<ul dir="auto">
<li>playwright: ^1.10.0 => 1.10.0 / tip-of-tree</li>
</ul>
<p dir="auto"><strong>Code Snippet</strong></p>
<p dir="auto">Help us help you! Put down a short code snippet that illustrates your bug and<br>
that we can run and debug locally. For example:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const playwright = require('.');
(async () => {
const browser = await playwright.webkit.launch();
const page = await browser.newPage();
await page.goto('http://example.com');
const requestPromise = page.waitForRequest(() => true);
const [request] = await Promise.all([
page.waitForRequest("**/*"),
page.evaluate(() => {
var file = new File(['file-contents'], 'filename.txt');
fetch('/data', {
method: 'POST',
headers: {
'content-type': 'application/octet-stream'
},
body: file
});
})
])
console.info('request.method()', request.method());
console.info('request.url()', request.url());
console.info('request.headers()', request.headers());
console.info('request.postData()', request.postData());
})();"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">playwright</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'.'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">browser</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">playwright</span><span class="pl-kos">.</span><span class="pl-c1">webkit</span><span class="pl-kos">.</span><span class="pl-en">launch</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">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">browser</span><span class="pl-kos">.</span><span class="pl-en">newPage</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'http://example.com'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">requestPromise</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForRequest</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">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">request</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-kos">[</span>
<span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForRequest</span><span class="pl-kos">(</span><span class="pl-s">"**/*"</span><span class="pl-kos">)</span><span class="pl-kos">,</span>
<span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">evaluate</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">file</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">File</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'file-contents'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-s">'filename.txt'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">fetch</span><span class="pl-kos">(</span><span class="pl-s">'/data'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">method</span>: <span class="pl-s">'POST'</span><span class="pl-kos">,</span>
<span class="pl-c1">headers</span>: <span class="pl-kos">{</span>
<span class="pl-s">'content-type'</span>: <span class="pl-s">'application/octet-stream'</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">body</span>: <span class="pl-s1">file</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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">'request.method()'</span><span class="pl-kos">,</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">method</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">'request.url()'</span><span class="pl-kos">,</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">url</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">'request.headers()'</span><span class="pl-kos">,</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">headers</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">info</span><span class="pl-kos">(</span><span class="pl-s">'request.postData()'</span><span class="pl-kos">,</span> <span class="pl-s1">request</span><span class="pl-kos">.</span><span class="pl-en">postData</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Describe the bug</strong></p>
<p dir="auto">the <code class="notranslate">request.postData()</code> contains <code class="notranslate">null</code> in Chromium and WebKit. In Firefox it's filled.</p> | 1 |
<p dir="auto">React version:</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li></li>
<li></li>
</ol>
<p dir="auto">Link to code example:</p>
<h2 dir="auto">The current behavior</h2>
<h2 dir="auto">The expected behavior</h2> | <p dir="auto">React version: 16.11.0<br>
Firefox: 73.0.1<br>
OS: MacOS 10.15.3<br>
Project: <a href="https://argu.co" rel="nofollow">argu.co</a></p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>Open <a href="https://argu.co" rel="nofollow">argu.co</a> in Firefox 73.01 on a Mac with Devtools installed</li>
<li>Open devtools (cmd + opt + i), no react devtools shown</li>
</ol>
<p dir="auto">Other react pages work fine in Firefox, and argu.co works fine in Chrome, too!</p> | 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x ] bug report => 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><br>
Multiple <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> decorators re not handled properly. Only last one is used.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
All decorators must be used</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Create a component and set multiple HostBindings to single field, like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Input()
@HostBinding("style.width.px")
@HostBinding("style.height.px")
@HostBinding("style.min-width.px")
@HostBinding("style.min-height.px")
public size: number = 30;"><pre class="notranslate"><code class="notranslate">@Input()
@HostBinding("style.width.px")
@HostBinding("style.height.px")
@HostBinding("style.min-width.px")
@HostBinding("style.min-height.px")
public size: number = 30;
</code></pre></div>
<p dir="auto">Only last decorator is used when app is compiled, both in JIT and AoT.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Does not work as expected.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Ubuntu 16.04</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 2.0.X<br>
2.3.0</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> [all]</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> [TypeScript 2.0.10]</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = 4.2.6</p>
</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report
[ ] 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">When defining a <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> on an attribute directive referring to an <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/input/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/input">@input</a> property of the host component, it does not update the host property after changing the value.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto"><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> should probably apply to all properties of the host, including <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/input/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/input">@input</a> properties.</p>
<p dir="auto"><strong>Reproduction of the problem</strong></p>
<p dir="auto">Plunker: <a href="https://embed.plnkr.co/kQEKbT/" rel="nofollow">https://embed.plnkr.co/kQEKbT/</a><br>
Stackoverflow question and answer with solution using a template reference variable: <a href="http://stackoverflow.com/questions/38771403/how-to-use-hostbinding-with-input-properties-in-angular-2" rel="nofollow">http://stackoverflow.com/questions/38771403/how-to-use-hostbinding-with-input-properties-in-angular-2</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">In the example above: the attribute directive should feed the input property of the component.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">See Plunker above. This could be useful when you want to create a directive that feeds the input of a component.</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</li>
<li><strong>Browser:</strong> Chrome 51 (likely applies to all)</li>
<li><strong>Language:</strong> TypeScript 1.8.10 (likely applies to all)</li>
</ul> | 1 |
<p dir="auto">I am using Julia 1.6.0-rc1. As stated at <a href="https://docs.julialang.org/en/v1/manual/embedding/" rel="nofollow">https://docs.julialang.org/en/v1/manual/embedding/</a>, I made the necessary settings in Visual Studio 2019, but when I compile the code, I get the error 'jl_atomic_load_relaxed: identifier not found.'</p>
<p dir="auto">Code:</p>
<div class="highlight highlight-source-c notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#include <uv.h>
#include <Windows.h>
#include <julia.h>
int main(int argc, char* argv[])
{
jl_init();
jl_eval_string("print(sqrt(2.0))");
jl_atexit_hook(0);
return 0;
}"><pre class="notranslate"><span class="pl-k">#include</span> <span class="pl-s"><uv.h></span>
<span class="pl-k">#include</span> <span class="pl-s"><Windows.h></span>
<span class="pl-k">#include</span> <span class="pl-s"><julia.h></span>
<span class="pl-smi">int</span> <span class="pl-en">main</span>(<span class="pl-smi">int</span> <span class="pl-s1">argc</span>, <span class="pl-smi">char</span><span class="pl-c1">*</span> <span class="pl-s1">argv</span>[])
{
<span class="pl-en">jl_init</span>();
<span class="pl-en">jl_eval_string</span>(<span class="pl-s">"print(sqrt(2.0))"</span>);
<span class="pl-en">jl_atexit_hook</span>(<span class="pl-c1">0</span>);
<span class="pl-k">return</span> <span class="pl-c1">0</span>;
}</pre></div>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'jl_atomic_load_relaxed': identifier not found julia.h 880
'jl_atomic_load_relaxed': identifier not found julia.h 924
'jl_atomic_load_relaxed': identifier not found locks.h 24
'jl_atomic_load_relaxed': identifier not found locks.h 40"><pre class="notranslate"><code class="notranslate">'jl_atomic_load_relaxed': identifier not found julia.h 880
'jl_atomic_load_relaxed': identifier not found julia.h 924
'jl_atomic_load_relaxed': identifier not found locks.h 24
'jl_atomic_load_relaxed': identifier not found locks.h 40
</code></pre></div> | <p dir="auto">I get a host of compile errors (about 30) by trying to compile the simple "Embedding Julia in C++" <a href="https://docs.julialang.org/en/v1/manual/embedding/" rel="nofollow">https://docs.julialang.org/en/v1/manual/embedding/</a>.</p>
<p dir="auto">Here are the first 5:</p>
<p dir="auto">1>C:\Users\VitalRoberto\AppData\Local\Programs\Julia-1.7.0-beta4\include\julia\julia_threads.h(321,5): error C2065: ‘__ATOMIC_SEQ_CST’: undeclared identifier<br>
1>C:\Users\VitalRoberto\AppData\Local\Programs\Julia-1.7.0-beta4\include\julia\julia_threads.h(321,5): error C3861: ‘__atomic_signal_fence’: identifier not found<br>
1>C:\Users\VitalRoberto\AppData\Local\Programs\Julia-1.7.0-beta4\include\julia\julia_threads.h(321,5): error C2065: ‘__ATOMIC_RELEASE’: undeclared identifier<br>
1>C:\Users\VitalRoberto\AppData\Local\Programs\Julia-1.7.0-beta4\include\julia\julia_threads.h(321,5): error C3861: ‘__atomic_store_n’: identifier not found<br>
1>C:\Users\VitalRoberto\AppData\Local\Programs\Julia-1.7.0-beta4\include\julia\julia_threads.h(325,9): error C2065: ‘__ATOMIC_SEQ_CST’: undeclared identifier</p>
<p dir="auto">in 1.7, atomics.h doesn’t have good definitions for MSVC.<br>
I copied the atomics.h from Julia 1.6.5 and got it to work (also had to define jl_atomic_cmpswap). Seems like someone overlooked this platform.</p> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">The <code class="notranslate">ImageGrid</code> class seems to not behave correctly since the upgrade to matplotlib <code class="notranslate">3.0.0</code> when the <code class="notranslate">inline</code> backend is used in a Jupyter notebook: the resulting subplots fail to arrange in a grid and are placed on top of eachother. The correct behaviour is reproduced if using the <code class="notranslate">notebook</code> or <code class="notranslate">ipympl</code> backends. Thanks!</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
from mpl_toolkits.axes_grid1 import ImageGrid
import numpy as np
im = np.arange(100)
im.shape = 10, 10
fig = plt.figure(1, (4., 4.))
grid = ImageGrid(fig, 111,
nrows_ncols=(2, 2),
axes_pad=0.1,
)
for i in range(4):
grid[i].imshow(im)
grid[i].set_title('test {0}{0}'.format(i))
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">axes_grid1</span> <span class="pl-k">import</span> <span class="pl-v">ImageGrid</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">im</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">100</span>)
<span class="pl-s1">im</span>.<span class="pl-s1">shape</span> <span class="pl-c1">=</span> <span class="pl-c1">10</span>, <span class="pl-c1">10</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-c1">1</span>, (<span class="pl-c1">4.</span>, <span class="pl-c1">4.</span>))
<span class="pl-s1">grid</span> <span class="pl-c1">=</span> <span class="pl-v">ImageGrid</span>(<span class="pl-s1">fig</span>, <span class="pl-c1">111</span>,
<span class="pl-s1">nrows_ncols</span><span class="pl-c1">=</span>(<span class="pl-c1">2</span>, <span class="pl-c1">2</span>),
<span class="pl-s1">axes_pad</span><span class="pl-c1">=</span><span class="pl-c1">0.1</span>,
)
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">4</span>):
<span class="pl-s1">grid</span>[<span class="pl-s1">i</span>].<span class="pl-en">imshow</span>(<span class="pl-s1">im</span>)
<span class="pl-s1">grid</span>[<span class="pl-s1">i</span>].<span class="pl-en">set_title</span>(<span class="pl-s">'test {0}{0}'</span>.<span class="pl-en">format</span>(<span class="pl-s1">i</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://user-images.githubusercontent.com/15064659/46354323-9d1dc700-c65e-11e8-9cf1-c8fdc40e9acf.png"><img src="https://user-images.githubusercontent.com/15064659/46354323-9d1dc700-c65e-11e8-9cf1-c8fdc40e9acf.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15064659/46354286-88d9ca00-c65e-11e8-991f-7dfe32c4a529.png"><img src="https://user-images.githubusercontent.com/15064659/46354286-88d9ca00-c65e-11e8-991f-7dfe32c4a529.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Debian 9</li>
<li>Matplotlib version: 3.0.0</li>
<li>Matplotlib backend: <code class="notranslate">inline</code></li>
<li>Python version: 3.5.3</li>
<li>Jupyter version (if applicable): 4.4.0</li>
<li>Other libraries:</li>
</ul> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When setting bbox_inches='tight' in savefig function, the colorbar is plotted in the wrong way.</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
import numpy as np
from mpl_toolkits.basemap import Basemap
outfile = r'E:\wrong.tif'
# read in data on lat/lon grid.
hgt = np.loadtxt(r'E:\tmp\basemap\500hgtdata.gz')
lons = np.loadtxt(r'E:\tmp\basemap\500hgtlons.gz')
lats = np.loadtxt(r'E:\tmp\basemap\500hgtlats.gz')
lons, lats = np.meshgrid(lons, lats)
mnh = Basemap(lon_0=-105, boundinglat=20.,
resolution='c', area_thresh=10000., projection='nplaea')
xnh, ynh = mnh(lons, lats)
CS = mnh.contour(xnh, ynh, hgt, 15, linewidths=0.5, colors='k')
CS = mnh.contourf(xnh, ynh, hgt, 15, cmap=plt.cm.Spectral)
mnh.drawcoastlines(linewidth=0.5)
delat = 30.
circles = np.arange(0., 90., delat).tolist() + \
np.arange(-delat, -90, -delat).tolist()
mnh.drawparallels(circles, labels=[1, 0, 0, 0])
delon = 45.
meridians = np.arange(0, 360, delon)
mnh.drawmeridians(meridians, labels=[1, 0, 0, 1])
plt.title('NH 500 hPa Height (cm.Spectral)')
# colorbar on bottom.
mnh.colorbar(pad='5%')
plt.savefig(outfile, dpi=300, bbox_inches='tight') # wrong
# plt.savefig(outfile, dpi=300) # right
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">basemap</span> <span class="pl-k">import</span> <span class="pl-v">Basemap</span>
<span class="pl-s1">outfile</span> <span class="pl-c1">=</span> <span class="pl-s">r'E:\wrong.tif'</span>
<span class="pl-c"># read in data on lat/lon grid.</span>
<span class="pl-s1">hgt</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">loadtxt</span>(<span class="pl-s">r'E:\tmp\basemap\500hgtdata.gz'</span>)
<span class="pl-s1">lons</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">loadtxt</span>(<span class="pl-s">r'E:\tmp\basemap\500hgtlons.gz'</span>)
<span class="pl-s1">lats</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">loadtxt</span>(<span class="pl-s">r'E:\tmp\basemap\500hgtlats.gz'</span>)
<span class="pl-s1">lons</span>, <span class="pl-s1">lats</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">lons</span>, <span class="pl-s1">lats</span>)
<span class="pl-s1">mnh</span> <span class="pl-c1">=</span> <span class="pl-v">Basemap</span>(<span class="pl-s1">lon_0</span><span class="pl-c1">=</span><span class="pl-c1">-</span><span class="pl-c1">105</span>, <span class="pl-s1">boundinglat</span><span class="pl-c1">=</span><span class="pl-c1">20.</span>,
<span class="pl-s1">resolution</span><span class="pl-c1">=</span><span class="pl-s">'c'</span>, <span class="pl-s1">area_thresh</span><span class="pl-c1">=</span><span class="pl-c1">10000.</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'nplaea'</span>)
<span class="pl-s1">xnh</span>, <span class="pl-s1">ynh</span> <span class="pl-c1">=</span> <span class="pl-en">mnh</span>(<span class="pl-s1">lons</span>, <span class="pl-s1">lats</span>)
<span class="pl-v">CS</span> <span class="pl-c1">=</span> <span class="pl-s1">mnh</span>.<span class="pl-en">contour</span>(<span class="pl-s1">xnh</span>, <span class="pl-s1">ynh</span>, <span class="pl-s1">hgt</span>, <span class="pl-c1">15</span>, <span class="pl-s1">linewidths</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>, <span class="pl-s1">colors</span><span class="pl-c1">=</span><span class="pl-s">'k'</span>)
<span class="pl-v">CS</span> <span class="pl-c1">=</span> <span class="pl-s1">mnh</span>.<span class="pl-en">contourf</span>(<span class="pl-s1">xnh</span>, <span class="pl-s1">ynh</span>, <span class="pl-s1">hgt</span>, <span class="pl-c1">15</span>, <span class="pl-s1">cmap</span><span class="pl-c1">=</span><span class="pl-s1">plt</span>.<span class="pl-s1">cm</span>.<span class="pl-v">Spectral</span>)
<span class="pl-s1">mnh</span>.<span class="pl-en">drawcoastlines</span>(<span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>)
<span class="pl-s1">delat</span> <span class="pl-c1">=</span> <span class="pl-c1">30.</span>
<span class="pl-s1">circles</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0.</span>, <span class="pl-c1">90.</span>, <span class="pl-s1">delat</span>).<span class="pl-en">tolist</span>() <span class="pl-c1">+</span> \
<span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">-</span><span class="pl-s1">delat</span>, <span class="pl-c1">-</span><span class="pl-c1">90</span>, <span class="pl-c1">-</span><span class="pl-s1">delat</span>).<span class="pl-en">tolist</span>()
<span class="pl-s1">mnh</span>.<span class="pl-en">drawparallels</span>(<span class="pl-s1">circles</span>, <span class="pl-s1">labels</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>])
<span class="pl-s1">delon</span> <span class="pl-c1">=</span> <span class="pl-c1">45.</span>
<span class="pl-s1">meridians</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>, <span class="pl-c1">360</span>, <span class="pl-s1">delon</span>)
<span class="pl-s1">mnh</span>.<span class="pl-en">drawmeridians</span>(<span class="pl-s1">meridians</span>, <span class="pl-s1">labels</span><span class="pl-c1">=</span>[<span class="pl-c1">1</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>, <span class="pl-c1">1</span>])
<span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">'NH 500 hPa Height (cm.Spectral)'</span>)
<span class="pl-c"># colorbar on bottom.</span>
<span class="pl-s1">mnh</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">pad</span><span class="pl-c1">=</span><span class="pl-s">'5%'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s1">outfile</span>, <span class="pl-s1">dpi</span><span class="pl-c1">=</span><span class="pl-c1">300</span>, <span class="pl-s1">bbox_inches</span><span class="pl-c1">=</span><span class="pl-s">'tight'</span>) <span class="pl-c"># wrong</span>
<span class="pl-c"># plt.savefig(outfile, dpi=300) # right</span>
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">The wrong one:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6754276/46267605-74b3a100-c568-11e8-8f52-72a38318b7ee.png"><img src="https://user-images.githubusercontent.com/6754276/46267605-74b3a100-c568-11e8-8f52-72a38318b7ee.png" alt="default" style="max-width: 100%;"></a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here
# None
#"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here
# None
#
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">The correct figure:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6754276/46267594-68c7df00-c568-11e8-9d65-8a379ba1540e.png"><img src="https://user-images.githubusercontent.com/6754276/46267594-68c7df00-c568-11e8-9d65-8a379ba1540e.png" alt="default" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 10 x64</li>
<li>Matplotlib version: 3.0.0</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): module://backend_interagg</li>
<li>Python version: 3.6.6</li>
<li>Jupyter version (if applicable): None</li>
<li>basemap version: 1.2.0</li>
<li>PyCharm version: 2018.2.4</li>
</ul>
<p dir="auto">I install matplotlib and basemap from <a href="https://www.lfd.uci.edu/~gohlke/pythonlibs" rel="nofollow">https://www.lfd.uci.edu/~gohlke/pythonlibs</a>.</p> | 1 |
<p dir="auto">the following code worked within symfony 2.8 (patch action), after updating to symfony 3.2 i always get into the if statement, even if there are no errors. calling the validator myself, would tell everything is fine.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$form = $this->createForm(UserType::USER_UPDATE, $user);
$form->submit($request->request->all(), false);
if (false === $form->isValid()) {
....
}"><pre lang="{.php}" class="notranslate"><code class="notranslate">$form = $this->createForm(UserType::USER_UPDATE, $user);
$form->submit($request->request->all(), false);
if (false === $form->isValid()) {
....
}
</code></pre></div>
<p dir="auto">Do i missed a change, that does not throw an exception, but ends in this strange behavior?</p>
<p dir="auto">I already refactored the createForm to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$form = $this->createForm(UserUpdateType::class, $user);"><pre lang="{.php}" class="notranslate"><code class="notranslate">$form = $this->createForm(UserUpdateType::class, $user);
</code></pre></div> | <p dir="auto">Bundle B overrides bundle A with</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public function getParent() {
return 'ABundle';
}"><pre class="notranslate"><code class="notranslate">public function getParent() {
return 'ABundle';
}
</code></pre></div>
<p dir="auto">Twig templates exist in<br>
ABundle/Resources/view/Controller/view.html.twig<br>
BBundle/Resources/view/Controller/view.html.twig</p>
<p dir="auto">No controllers are overridden, only a twig layout.<br>
When adding a test in the overridden bundle such as:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public function testSomething()
{
$client = static::createClient();
$crawler = $client->request('GET', '/somepath');
var_dump($crawler->text());
}"><pre class="notranslate"><code class="notranslate">public function testSomething()
{
$client = static::createClient();
$crawler = $client->request('GET', '/somepath');
var_dump($crawler->text());
}
</code></pre></div>
<p dir="auto">The test actually picks up the wrong twig template. It picks up the template from A and not from B making impossible to test the view.html.twig properly.<br>
The site in dev mode gives me the correct template.</p> | 0 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="bug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f41b.png">🐛</g-emoji> Bug</h2>
<p dir="auto">LSTM cell with bias produces "expected scalar type Half but found Float" error when called within an autocast context.</p>
<h2 dir="auto">To Reproduce</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import torch
import torch.nn as nn
from torch.cuda.amp import *
dev = 'cuda'
net = nn.LSTMCell(3, 3, bias=True).to(dev)
x = torch.randn(2, 3).to(dev)
with autocast():
h, c = net(x.half())"><pre class="notranslate"><code class="notranslate">import torch
import torch.nn as nn
from torch.cuda.amp import *
dev = 'cuda'
net = nn.LSTMCell(3, 3, bias=True).to(dev)
x = torch.randn(2, 3).to(dev)
with autocast():
h, c = net(x.half())
</code></pre></div>
<p dir="auto">Error produced:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="RuntimeError Traceback (most recent call last)
<ipython-input-16-1d68da89e14f> in <module>
4
5 with autocast():
----> 6 h, c = net(x.half())
~/miniconda3/lib/python3.7/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
720 result = self._slow_forward(*input, **kwargs)
721 else:
--> 722 result = self.forward(*input, **kwargs)
723 for hook in itertools.chain(
724 _global_forward_hooks.values(),
~/miniconda3/lib/python3.7/site-packages/torch/nn/modules/rnn.py in forward(self, input, hx)
967 input, hx,
968 self.weight_ih, self.weight_hh,
--> 969 self.bias_ih, self.bias_hh,
970 )
971
RuntimeError: expected scalar type Half but found Float"><pre class="notranslate"><code class="notranslate">RuntimeError Traceback (most recent call last)
<ipython-input-16-1d68da89e14f> in <module>
4
5 with autocast():
----> 6 h, c = net(x.half())
~/miniconda3/lib/python3.7/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
720 result = self._slow_forward(*input, **kwargs)
721 else:
--> 722 result = self.forward(*input, **kwargs)
723 for hook in itertools.chain(
724 _global_forward_hooks.values(),
~/miniconda3/lib/python3.7/site-packages/torch/nn/modules/rnn.py in forward(self, input, hx)
967 input, hx,
968 self.weight_ih, self.weight_hh,
--> 969 self.bias_ih, self.bias_hh,
970 )
971
RuntimeError: expected scalar type Half but found Float
</code></pre></div>
<p dir="auto">Note that there is no problem while setting <code class="notranslate">bias=False</code>.</p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">No error.</p>
<h2 dir="auto">Environment</h2>
<ul dir="auto">
<li>PyTorch Version (e.g., 1.0): 1.6.0</li>
<li>OS (e.g., Linux): Ubuntu 18.04</li>
<li>How you installed PyTorch (<code class="notranslate">conda</code>, <code class="notranslate">pip</code>, source): conda</li>
<li>Build command you used (if compiling from source):</li>
<li>Python version: 3.7.6</li>
<li>CUDA/cuDNN version: 10.2</li>
<li>GPU models and configuration: GTX 1060</li>
</ul> | <p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="670241707" data-permission-text="Title is private" data-url="https://github.com/pytorch/pytorch/issues/42385" data-hovercard-type="pull_request" data-hovercard-url="/pytorch/pytorch/pull/42385/hovercard" href="https://github.com/pytorch/pytorch/pull/42385">#42385</a> fixes cudnn RNNs with <code class="notranslate">torch.cuda.amp.autocast</code> but it appears the cell-based RNN API is also broken:<br>
<a href="https://discuss.pytorch.org/t/runtimeerror-expected-scalar-type-half-but-found-float/91628" rel="nofollow">https://discuss.pytorch.org/t/runtimeerror-expected-scalar-type-half-but-found-float/91628</a></p>
<p dir="auto">I thought cell-based RNNs were implemented in terms of autograd-exposed primitive ops (gemms, etc) already covered by autocast, but LSTMCell and GRUCell have <a href="https://github.com/pytorch/pytorch/blob/db52cd7322ccf3f2121f1a6e592ddb436968aa50/tools/autograd/derivatives.yaml#L1756-L1761">dedicated autograd functions</a>. I should add FP16 cast wrappers for these. I may need to add wrappers at a higher level instead, ie wrap the Python-exposed <code class="notranslate">at::lstm_cell</code> and <code class="notranslate">at::gru_cell</code>, depending where in the call chain input type checking occurs.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mcarilli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mcarilli">@mcarilli</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ppwwyyxx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ppwwyyxx">@ppwwyyxx</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ngimel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ngimel">@ngimel</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zou3519/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zou3519">@zou3519</a></p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: macOs Sierra</li>
<li>Java version: JDK 1.8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Extend the dubbo filter in 2.5.x version, and identify on whether it's RpcInvocation as below.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import com.alibaba.dubbo.rpc.RpcInvocation;
public class SomeFilter implements Filter {
@Override
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
if (invocation instanceof RpcInvocation) {
((RpcInvocation) invocation).setInvoker(invoker);
}
return invoker.invoke(invocation);
}
}"><pre class="notranslate"><code class="notranslate">import com.alibaba.dubbo.rpc.RpcInvocation;
public class SomeFilter implements Filter {
@Override
public Result invoke(Invoker<?> invoker, Invocation invocation) throws RpcException {
if (invocation instanceof RpcInvocation) {
((RpcInvocation) invocation).setInvoker(invoker);
}
return invoker.invoke(invocation);
}
}
</code></pre></div>
<ol start="2" dir="auto">
<li>when upgrade it's to 2.7.3, it throws NotFoundClass exception as 2.7.3 removed the com.alibaba.dubbo.rpc.RpcInvocation</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">2.7.3 should backward compatible, should not throw exception.</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">2.7.3 cannot backward compatible with 2.5.x or 2.6.x.</p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.6-SNAPSHOT</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto"><a href="https://github.com/apache/dubbo/blob/master/dubbo-registry/dubbo-registry-etcd3/src/main/java/org/apache/dubbo/registry/etcd/EtcdServiceDiscovery.java#L64">https://github.com/apache/dubbo/blob/master/dubbo-registry/dubbo-registry-etcd3/src/main/java/org/apache/dubbo/registry/etcd/EtcdServiceDiscovery.java#L64</a></p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="private final ConcurrentMap<URL, ConcurrentMap<NotifyListener, ChildListener>> etcdListeners = new ConcurrentHashMap<>();"><pre class="notranslate"><span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">ConcurrentMap</span><<span class="pl-smi">URL</span>, <span class="pl-smi">ConcurrentMap</span><<span class="pl-smi">NotifyListener</span>, <span class="pl-smi">ChildListener</span>>> <span class="pl-s1">etcdListeners</span> = <span class="pl-k">new</span> <span class="pl-smi">ConcurrentHashMap</span><>();</pre></div>
<p dir="auto">Need check this line</p> | 0 |
<p dir="auto"><a href="https://storage.googleapis.com/kubernetes-jenkins/logs/kubernetes-e2e-gke/8128/" rel="nofollow">https://storage.googleapis.com/kubernetes-jenkins/logs/kubernetes-e2e-gke/8128/</a></p>
<p dir="auto">Multiple broken tests:</p>
<p dir="auto">Failed: [k8s.io] Services should be able to up and down services {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/service.go:278
Expected error:
<*errors.StatusError | 0xc820ac2380>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get services service1)",
Reason: "Forbidden",
Details: {
Name: "service1",
Group: "",
Kind: "services",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-services-l8pz3/services/service1\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get services service1)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/service.go:278
Expected error:
<*errors.StatusError | 0xc820ac2380>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get services service1)",
Reason: "Forbidden",
Details: {
Name: "service1",
Group: "",
Kind: "services",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-services-l8pz3/services/service1\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get services service1)
not to have occurred
</code></pre></div>
<p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156404688" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26128" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26128/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26128">#26128</a></p>
<p dir="auto">Failed: [k8s.io] Kubernetes Dashboard should check that the kubernetes-dashboard instance is alive {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820c60c00>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubernetes-dashboard-1jquj/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820c60c00>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubernetes-dashboard-1jquj/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156576752" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26191" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26191/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26191">#26191</a></p>
<p dir="auto">Failed: [k8s.io] Pods should invoke init containers on a RestartAlways pod {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820cf6c80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-pods-eqzj1/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820cf6c80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-pods-eqzj1/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] ResourceQuota should create a ResourceQuota and ensure its status is promptly calculated. {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:123
May 30 21:59:29.917: Couldn't delete ns "e2e-tests-resourcequota-5uuju": the server does not allow access to the requested resource (delete namespaces e2e-tests-resourcequota-5uuju)"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:123
May 30 21:59:29.917: Couldn't delete ns "e2e-tests-resourcequota-5uuju": the server does not allow access to the requested resource (delete namespaces e2e-tests-resourcequota-5uuju)
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Kubectl label should update the label on a resource [Conformance] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820544700>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubectl-26k49/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820544700>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubectl-26k49/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] EmptyDir wrapper volumes should becomes running {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/empty_dir_wrapper.go:179
May 30 22:00:12.827: unable to delete secret emptydir-wrapper-test-3b3fab64-26ec-11e6-8519-0242ac11000b: the server does not allow access to the requested resource (delete secrets emptydir-wrapper-test-3b3fab64-26ec-11e6-8519-0242ac11000b)"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/empty_dir_wrapper.go:179
May 30 22:00:12.827: unable to delete secret emptydir-wrapper-test-3b3fab64-26ec-11e6-8519-0242ac11000b: the server does not allow access to the requested resource (delete secrets emptydir-wrapper-test-3b3fab64-26ec-11e6-8519-0242ac11000b)
</code></pre></div>
<p dir="auto">Failed: [k8s.io] ServiceAccounts should ensure a single API token exists {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/service_accounts.go:153
Expected error:
<*errors.StatusError | 0xc820a23d80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (put serviceAccounts default)",
Reason: "Forbidden",
Details: {
Name: "default",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-svcaccounts-iggv0/serviceaccounts/default\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (put serviceAccounts default)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/service_accounts.go:153
Expected error:
<*errors.StatusError | 0xc820a23d80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (put serviceAccounts default)",
Reason: "Forbidden",
Details: {
Name: "default",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-svcaccounts-iggv0/serviceaccounts/default\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (put serviceAccounts default)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Deployment RollingUpdateDeployment should scale up and down in the right order {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820c9aa80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-deployment-lcd5u/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820c9aa80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-deployment-lcd5u/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Kubectl rolling-update should support rolling-update to same image [Conformance] {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/kubectl.go:931
Expected error:
<*errors.errorString | 0xc8202b1790>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.155.153.5 --kubeconfig=/workspace/.kube/config rolling-update e2e-test-nginx-rc --update-period=1s --image=gcr.io/google_containers/nginx:1.7.9 --image-pull-policy=IfNotPresent --namespace=e2e-tests-kubectl-sm17p] [] <nil> Created e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4\nScaling up e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 from 0 to 1, scaling down e2e-test-nginx-rc from 1 to 0 (keep 1 pods available, don't exceed 2 pods)\nScaling e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 up to 1\nScaling e2e-test-nginx-rc down to 0\nUpdate succeeded. Deleting old controller: e2e-test-nginx-rc\n Error from server: the server does not allow access to the requested resource (delete replicationControllers e2e-test-nginx-rc)\n [] <nil> 0xc820789660 exit status 1 <nil> true [0xc82094ec80 0xc82094ec98 0xc82094ecb0] [0xc82094ec80 0xc82094ec98 0xc82094ecb0] [0xc82094ec90 0xc82094eca8] [0x9e4f10 0x9e4f10] 0xc820b1b2c0}:\nCommand stdout:\nCreated e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4\nScaling up e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 from 0 to 1, scaling down e2e-test-nginx-rc from 1 to 0 (keep 1 pods available, don't exceed 2 pods)\nScaling e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 up to 1\nScaling e2e-test-nginx-rc down to 0\nUpdate succeeded. Deleting old controller: e2e-test-nginx-rc\n\nstderr:\nError from server: the server does not allow access to the requested resource (delete replicationControllers e2e-test-nginx-rc)\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.155.153.5 --kubeconfig=/workspace/.kube/config rolling-update e2e-test-nginx-rc --update-period=1s --image=gcr.io/google_containers/nginx:1.7.9 --image-pull-policy=IfNotPresent --namespace=e2e-tests-kubectl-sm17p] [] <nil> Created e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4
Scaling up e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 from 0 to 1, scaling down e2e-test-nginx-rc from 1 to 0 (keep 1 pods available, don't exceed 2 pods)
Scaling e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 up to 1
Scaling e2e-test-nginx-rc down to 0
Update succeeded. Deleting old controller: e2e-test-nginx-rc
Error from server: the server does not allow access to the requested resource (delete replicationControllers e2e-test-nginx-rc)
[] <nil> 0xc820789660 exit status 1 <nil> true [0xc82094ec80 0xc82094ec98 0xc82094ecb0] [0xc82094ec80 0xc82094ec98 0xc82094ecb0] [0xc82094ec90 0xc82094eca8] [0x9e4f10 0x9e4f10] 0xc820b1b2c0}:
Command stdout:
Created e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4
Scaling up e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 from 0 to 1, scaling down e2e-test-nginx-rc from 1 to 0 (keep 1 pods available, don't exceed 2 pods)
Scaling e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 up to 1
Scaling e2e-test-nginx-rc down to 0
Update succeeded. Deleting old controller: e2e-test-nginx-rc
stderr:
Error from server: the server does not allow access to the requested resource (delete replicationControllers e2e-test-nginx-rc)
error:
exit status 1
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:931
Expected error:
<*errors.errorString | 0xc8202b1790>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.155.153.5 --kubeconfig=/workspace/.kube/config rolling-update e2e-test-nginx-rc --update-period=1s --image=gcr.io/google_containers/nginx:1.7.9 --image-pull-policy=IfNotPresent --namespace=e2e-tests-kubectl-sm17p] [] <nil> Created e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4\nScaling up e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 from 0 to 1, scaling down e2e-test-nginx-rc from 1 to 0 (keep 1 pods available, don't exceed 2 pods)\nScaling e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 up to 1\nScaling e2e-test-nginx-rc down to 0\nUpdate succeeded. Deleting old controller: e2e-test-nginx-rc\n Error from server: the server does not allow access to the requested resource (delete replicationControllers e2e-test-nginx-rc)\n [] <nil> 0xc820789660 exit status 1 <nil> true [0xc82094ec80 0xc82094ec98 0xc82094ecb0] [0xc82094ec80 0xc82094ec98 0xc82094ecb0] [0xc82094ec90 0xc82094eca8] [0x9e4f10 0x9e4f10] 0xc820b1b2c0}:\nCommand stdout:\nCreated e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4\nScaling up e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 from 0 to 1, scaling down e2e-test-nginx-rc from 1 to 0 (keep 1 pods available, don't exceed 2 pods)\nScaling e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 up to 1\nScaling e2e-test-nginx-rc down to 0\nUpdate succeeded. Deleting old controller: e2e-test-nginx-rc\n\nstderr:\nError from server: the server does not allow access to the requested resource (delete replicationControllers e2e-test-nginx-rc)\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.155.153.5 --kubeconfig=/workspace/.kube/config rolling-update e2e-test-nginx-rc --update-period=1s --image=gcr.io/google_containers/nginx:1.7.9 --image-pull-policy=IfNotPresent --namespace=e2e-tests-kubectl-sm17p] [] <nil> Created e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4
Scaling up e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 from 0 to 1, scaling down e2e-test-nginx-rc from 1 to 0 (keep 1 pods available, don't exceed 2 pods)
Scaling e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 up to 1
Scaling e2e-test-nginx-rc down to 0
Update succeeded. Deleting old controller: e2e-test-nginx-rc
Error from server: the server does not allow access to the requested resource (delete replicationControllers e2e-test-nginx-rc)
[] <nil> 0xc820789660 exit status 1 <nil> true [0xc82094ec80 0xc82094ec98 0xc82094ecb0] [0xc82094ec80 0xc82094ec98 0xc82094ecb0] [0xc82094ec90 0xc82094eca8] [0x9e4f10 0x9e4f10] 0xc820b1b2c0}:
Command stdout:
Created e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4
Scaling up e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 from 0 to 1, scaling down e2e-test-nginx-rc from 1 to 0 (keep 1 pods available, don't exceed 2 pods)
Scaling e2e-test-nginx-rc-dcb996e27755d3f584088354756126d4 up to 1
Scaling e2e-test-nginx-rc down to 0
Update succeeded. Deleting old controller: e2e-test-nginx-rc
stderr:
Error from server: the server does not allow access to the requested resource (delete replicationControllers e2e-test-nginx-rc)
error:
exit status 1
not to have occurred
</code></pre></div>
<p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156422249" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26138" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26138/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26138">#26138</a></p>
<p dir="auto">Failed: [k8s.io] ResourceQuota should create a ResourceQuota and capture the life of a nodePort service. {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/resource_quota.go:170
Expected error:
<*errors.StatusError | 0xc820b67280>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (post resourceQuotas)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "resourceQuotas",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-resourcequota-fegyh/resourcequotas\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (post resourceQuotas)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/resource_quota.go:170
Expected error:
<*errors.StatusError | 0xc820b67280>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (post resourceQuotas)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "resourceQuotas",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-resourcequota-fegyh/resourcequotas\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (post resourceQuotas)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] [HPA] Horizontal pod autoscaling (scale resource: CPU) [k8s.io] ReplicationController light Should scale from 1 pod to 2 pods {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/horizontal_pod_autoscaling.go:89
Expected error:
<*errors.errorString | 0xc8208e86b0>: {
s: "error while stopping RC: rc-light: error getting replication controllers: error getting replication controllers: the server does not allow access to the requested resource (get replicationControllers)",
}
error while stopping RC: rc-light: error getting replication controllers: error getting replication controllers: the server does not allow access to the requested resource (get replicationControllers)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/horizontal_pod_autoscaling.go:89
Expected error:
<*errors.errorString | 0xc8208e86b0>: {
s: "error while stopping RC: rc-light: error getting replication controllers: error getting replication controllers: the server does not allow access to the requested resource (get replicationControllers)",
}
error while stopping RC: rc-light: error getting replication controllers: error getting replication controllers: the server does not allow access to the requested resource (get replicationControllers)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: ThirdParty resources Simple Third Party creating/deleting thirdparty objects works [Conformance] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820d04a80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-thirdparty-lwrey/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820d04a80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-thirdparty-lwrey/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] ResourceQuota should create a ResourceQuota and capture the life of a replication controller. {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/resource_quota.go:446
Expected error:
<*errors.StatusError | 0xc820721b00>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get resourceQuotas test-quota)",
Reason: "Forbidden",
Details: {
Name: "test-quota",
Group: "",
Kind: "resourceQuotas",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-resourcequota-k902n/resourcequotas/test-quota\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get resourceQuotas test-quota)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/resource_quota.go:446
Expected error:
<*errors.StatusError | 0xc820721b00>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get resourceQuotas test-quota)",
Reason: "Forbidden",
Details: {
Name: "test-quota",
Group: "",
Kind: "resourceQuotas",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-resourcequota-k902n/resourcequotas/test-quota\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get resourceQuotas test-quota)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Monitoring should verify monitoring pods and all cluster nodes are available on influxdb using heapster. {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820ca8200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-monitoring-cwb43/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820ca8200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-monitoring-cwb43/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Kubectl run rc should create an rc from an image [Conformance] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc82108c200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubectl-jnzee/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc82108c200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubectl-jnzee/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] LimitRange should create a LimitRange with defaults and ensure pod has those defaults applied. {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/limit_range.go:102
Expected error:
<*errors.StatusError | 0xc820d4a100>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (post limitRanges)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "limitRanges",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-limitrange-oqlsl/limitranges\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (post limitRanges)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/limit_range.go:102
Expected error:
<*errors.StatusError | 0xc820d4a100>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (post limitRanges)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "limitRanges",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-limitrange-oqlsl/limitranges\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (post limitRanges)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] hostPath should support r/w {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820710a80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-hostpath-7a3pj/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820710a80>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-hostpath-7a3pj/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] ResourceQuota should create a ResourceQuota and capture the life of a service. {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820e52200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-resourcequota-7p8c7/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820e52200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-resourcequota-7p8c7/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Services should serve a basic endpoint from pods [Conformance] {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/service.go:142
Expected error:
<*errors.StatusError | 0xc8209e6d00>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (delete pods pod1)",
Reason: "Forbidden",
Details: {
Name: "pod1",
Group: "",
Kind: "pods",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-services-g1atj/pods/pod1\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (delete pods pod1)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/service.go:142
Expected error:
<*errors.StatusError | 0xc8209e6d00>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (delete pods pod1)",
Reason: "Forbidden",
Details: {
Name: "pod1",
Group: "",
Kind: "pods",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/namespaces/e2e-tests-services-g1atj/pods/pod1\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (delete pods pod1)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Deployment deployment should delete old replica sets {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820e4c800>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-deployment-0554g/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820e4c800>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-deployment-0554g/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] ConfigMap should be consumable from pods in volume as non-root [Conformance] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820ca8200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-configmap-bee9d/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820ca8200>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-configmap-bee9d/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Probing container with readiness probe that fails should never be ready and never restart [Conformance] {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/container_probe.go:111
May 30 22:00:49.185: expecting wait timeout error but got: the server has asked for the client to provide credentials (get pods test-webserver-439b498d-26ec-11e6-8eae-0242ac11000b)"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/container_probe.go:111
May 30 22:00:49.185: expecting wait timeout error but got: the server has asked for the client to provide credentials (get pods test-webserver-439b498d-26ec-11e6-8eae-0242ac11000b)
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Pods should be submitted and removed [Conformance] {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/pods.go:407
kubelet never observed the termination notice
Expected error:
<*errors.errorString | 0xc8200b9060>: {
s: "timed out waiting for the condition",
}
timed out waiting for the condition
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/pods.go:407
kubelet never observed the termination notice
Expected error:
<*errors.errorString | 0xc8200b9060>: {
s: "timed out waiting for the condition",
}
timed out waiting for the condition
not to have occurred
</code></pre></div>
<p dir="auto">Issues about this test specifically: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156627871" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26224" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26224/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26224">#26224</a></p>
<p dir="auto">Failed: [k8s.io] Deployment RecreateDeployment should delete old pods and create new ones {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820bd6c00>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-deployment-y5mod/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820bd6c00>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-deployment-y5mod/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] ConfigMap updates should be reflected in volume [Conformance] {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/configmap.go:153
May 30 22:00:17.478: unable to delete configMap configmap-test-upd-1fcb7090-26ec-11e6-85ad-0242ac11000b: the server does not allow access to the requested resource (delete configmaps configmap-test-upd-1fcb7090-26ec-11e6-85ad-0242ac11000b)"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/configmap.go:153
May 30 22:00:17.478: unable to delete configMap configmap-test-upd-1fcb7090-26ec-11e6-85ad-0242ac11000b: the server does not allow access to the requested resource (delete configmaps configmap-test-upd-1fcb7090-26ec-11e6-85ad-0242ac11000b)
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Simple pod should support exec {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820ac0280>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubectl-yydla/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820ac0280>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubectl-yydla/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Kubectl client [k8s.io] Simple pod should support port-forward {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820c3a480>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubectl-dvbap/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc820c3a480>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-kubectl-dvbap/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Deployment deployment should create new pods {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:123
May 30 21:59:10.308: Couldn't delete ns "e2e-tests-deployment-5dt68": the server does not allow access to the requested resource (delete namespaces e2e-tests-deployment-5dt68)"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:123
May 30 21:59:10.308: Couldn't delete ns "e2e-tests-deployment-5dt68": the server does not allow access to the requested resource (delete namespaces e2e-tests-deployment-5dt68)
</code></pre></div>
<p dir="auto">Failed: [k8s.io] Deployment deployment should support rollback {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/deployment.go:76
Expected error:
<errors.aggregate | len:2, cap:2>: [
{
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get replicasets.extensions test-rollback-deployment-2791939565)",
Reason: "Forbidden",
Details: {
Name: "test-rollback-deployment-2791939565",
Group: "extensions",
Kind: "replicasets",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/apis/extensions/v1beta1/namespaces/e2e-tests-deployment-zg552/replicasets/test-rollback-deployment-2791939565\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
},
{
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get replicasets.extensions test-rollback-deployment-707960274)",
Reason: "Forbidden",
Details: {
Name: "test-rollback-deployment-707960274",
Group: "extensions",
Kind: "replicasets",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/apis/extensions/v1beta1/namespaces/e2e-tests-deployment-zg552/replicasets/test-rollback-deployment-707960274\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
},
]
[the server does not allow access to the requested resource (get replicasets.extensions test-rollback-deployment-2791939565), the server does not allow access to the requested resource (get replicasets.extensions test-rollback-deployment-707960274)]
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/deployment.go:76
Expected error:
<errors.aggregate | len:2, cap:2>: [
{
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get replicasets.extensions test-rollback-deployment-2791939565)",
Reason: "Forbidden",
Details: {
Name: "test-rollback-deployment-2791939565",
Group: "extensions",
Kind: "replicasets",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/apis/extensions/v1beta1/namespaces/e2e-tests-deployment-zg552/replicasets/test-rollback-deployment-2791939565\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
},
{
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get replicasets.extensions test-rollback-deployment-707960274)",
Reason: "Forbidden",
Details: {
Name: "test-rollback-deployment-707960274",
Group: "extensions",
Kind: "replicasets",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/apis/extensions/v1beta1/namespaces/e2e-tests-deployment-zg552/replicasets/test-rollback-deployment-707960274\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
},
]
[the server does not allow access to the requested resource (get replicasets.extensions test-rollback-deployment-2791939565), the server does not allow access to the requested resource (get replicasets.extensions test-rollback-deployment-707960274)]
not to have occurred
</code></pre></div>
<p dir="auto">Failed: [k8s.io] ReplicationController should serve a basic image on each replica with a public image [Conformance] {Kubernetes e2e suite}</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc8204c8080>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-replication-controller-i1wmt/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred"><pre class="notranslate"><code class="notranslate">/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/framework/framework.go:122
Expected error:
<*errors.StatusError | 0xc8204c8080>: {
ErrStatus: {
TypeMeta: {Kind: "", APIVersion: ""},
ListMeta: {SelfLink: "", ResourceVersion: ""},
Status: "Failure",
Message: "the server does not allow access to the requested resource (get serviceAccounts)",
Reason: "Forbidden",
Details: {
Name: "",
Group: "",
Kind: "serviceAccounts",
Causes: [
{
Type: "UnexpectedServerResponse",
Message: "Forbidden: \"/api/v1/watch/namespaces/e2e-tests-replication-controller-i1wmt/serviceaccounts?fieldSelector=metadata.name%3Ddefault\"",
Field: "",
},
],
RetryAfterSeconds: 0,
},
Code: 403,
},
}
the server does not allow access to the requested resource (get serviceAccounts)
not to have occurred
</code></pre></div> | <p dir="auto">Inside portforwardtester container in portforwardtester.go line 52</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" listener, err := net.Listen("tcp", fmt.Sprintf("localhost:%s", bindPort))"><pre class="notranslate"> <span class="pl-s1">listener</span>, <span class="pl-s1">err</span> <span class="pl-c1">:=</span> <span class="pl-s1">net</span>.<span class="pl-en">Listen</span>(<span class="pl-s">"tcp"</span>, <span class="pl-s1">fmt</span>.<span class="pl-en">Sprintf</span>(<span class="pl-s">"localhost:%s"</span>, <span class="pl-s1">bindPort</span>))</pre></div>
<p dir="auto">It causes app to only listen on the local interface, its not the problem with namespace based runtimes cause we can use nsenter.<br>
With hypervisor based runtimes we need app to be available on external address, so line mentioned above should look like:</p>
<div class="highlight highlight-source-go notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" listener, err := net.Listen("tcp", fmt.Sprintf("0.0.0.0:%s", bindPort))"><pre class="notranslate"> <span class="pl-s1">listener</span>, <span class="pl-s1">err</span> <span class="pl-c1">:=</span> <span class="pl-s1">net</span>.<span class="pl-en">Listen</span>(<span class="pl-s">"tcp"</span>, <span class="pl-s1">fmt</span>.<span class="pl-en">Sprintf</span>(<span class="pl-s">"0.0.0.0:%s"</span>, <span class="pl-s1">bindPort</span>))</pre></div>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ncdc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ncdc">@ncdc</a> PTAL cause i don't know who is owner of this container<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/feiskyer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/feiskyer">@feiskyer</a> could you check if this is a problem for hyper too ?</p> | 0 |
<h2 dir="auto">[SIP-37] Proposal to implement CSS-in-JS using Emotion <g-emoji class="g-emoji" alias="woman_singer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f469-1f3a4.png">👩🎤</g-emoji></h2>
<h3 dir="auto">Motivation</h3>
<p dir="auto">Superset has been built with React components utilizing a few layers of styling. Most components are build using React-Bootstrap (v0.31), which is in turn built on Bootstrap 3. Bootstrap 3 is built using LESS, and is themed/overridden in Superset with Bootswatch and a Bootswatch theme called Cosmo, also built with LESS. At this point, efforts have been made to consolidate styling with LESS variables, and cleaning up use of LESS styles throughout the codebase, but some key problems remain:</p>
<ol dir="auto">
<li>Upgrading to newer versions of Bootstrap and/or React-Bootstrap are non-trivial, as they require migration to SASS from LESS.</li>
<li>Current Cosmo/Bootswatch themes, and indeed many of the custom styles elsewhere, will not be compatible with upgraded Bootstrap/React-Bootstrap</li>
<li><strong>Most importantly,</strong> the development experience in customizing and styling components is difficult. Changing existing styles can have unexpected fallout in unintended views/components. It's also difficult to track down all the existing styles affecting any given component, which may be scattered in a number of different LESS files.</li>
</ol>
<p dir="auto">Migrating to CSS-in-JS accomplishes a few goals:</p>
<ul dir="auto">
<li>Organizes code's separation of concerns by component, rather than by language</li>
<li>Allows simpler and cleaner implementation of an <a href="https://atomicdesign.bradfrost.com/chapter-2/" rel="nofollow">atomic design system</a></li>
<li>Allows variants triggered by props (e.g. <code class="notranslate"><Button primary></code> or <code class="notranslate"><Card small></code>)</li>
<li>Simplifying, segmenting, or removing LESS usage over time, simplifying the codebase (particularly in deprecating Bootswatch/Cosmo)</li>
<li>More robust theming capabilities</li>
<li>Component library agnostic</li>
<li>Snapshot serializers for CSS testing</li>
<li>Typescript support</li>
<li>Provides an easier path to restyle React-Bootstrap, and/or upgrade it!</li>
</ul>
<h3 dir="auto">Proposed Change</h3>
<p dir="auto">In short, the plan is to implement components using <a href="https://emotion.sh/docs/introduction" rel="nofollow">Emotion</a>. This can be done immediately for new components with no fallout to the existing codebase, but can also be extended to wrap or rewrite existing components in the interest of modernizing old code and libraries.</p>
<p dir="auto">Further implementation details below.</p>
<h3 dir="auto">New or Changed Public Interfaces</h3>
<p dir="auto">N/A</p>
<h3 dir="auto">New dependencies</h3>
<p dir="auto"><a href="https://github.com/emotion-js/emotion">Emotion</a> and various submodules - MIT License<br>
<code class="notranslate">babel-plugin-emotion</code> - MIT License<br>
<code class="notranslate">emotion-ts-plugin</code> - MIT License<br>
<code class="notranslate">jest-emotion</code> - MIT License</p>
<h3 dir="auto">Migration Plan and Compatibility</h3>
<p dir="auto">The plan to move toward Emotion-styled components would take the following path:</p>
<ol dir="auto">
<li>Coping/migrating LESS variables (colors, font sizes, etc) to JS based <code class="notranslate">theme</code> file, and provide it to all components in the React component tree via Emotions <code class="notranslate">ThemeProvider</code> HOC. This will lead to duplication of these variables, but this is temporary.</li>
<li>Create all styles for NEW components using Emotion, either with their <a href="https://emotion.sh/docs/css-prop" rel="nofollow">CSS prop</a> using "object styles", the <a href="https://emotion.sh/docs/@emotion/styled" rel="nofollow">styled</a> pattern using "tagged template literals", or the <a href="https://emotion.sh/docs/emotion-theming#usetheme" rel="nofollow">useTheme</a> hook.</li>
</ol>
<p dir="auto">To extend this idea toward deprecating Bootswatch/Cosmo, and eventually upgrading React-Bootstrap, the following approach may be used:</p>
<ol dir="auto">
<li>Migrating <code class="notranslate">React-Bootstrap</code> based components into similarly named wrapper components, and applying custom styles and theme variables as needed to shape the atomic component toward the target design(s). Here's a sketch of how a wrapped React-Bootstrap button might look, with some arbitrary custom styles illustrating prop and theme usage.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/** @jsx jsx */
import styled from '@emotion/styled';
import { withTheme } from 'emotion-theming';
import {
Button as React_Bootstrap_Button,
// @ts-ignore
} from 'react-bootstrap';
const Button = styled(React_Bootstrap_Button)`
font-family: ${(props) => props.theme.font-family};
border-radius: ${(props) => props.theme.borderRadius};
background-color: ${props => props.primary ? props.theme.colors.primary : props.theme.colors.secondary};
a {
padding: 0;
opacity: 0.8;
&:active {
opacity: 1;
border: 2px solid ${(props) => props.theme.colors.secondary.light2};
}
}
`;
export default withTheme(Button);"><pre class="notranslate"><code class="notranslate">/** @jsx jsx */
import styled from '@emotion/styled';
import { withTheme } from 'emotion-theming';
import {
Button as React_Bootstrap_Button,
// @ts-ignore
} from 'react-bootstrap';
const Button = styled(React_Bootstrap_Button)`
font-family: ${(props) => props.theme.font-family};
border-radius: ${(props) => props.theme.borderRadius};
background-color: ${props => props.primary ? props.theme.colors.primary : props.theme.colors.secondary};
a {
padding: 0;
opacity: 0.8;
&:active {
opacity: 1;
border: 2px solid ${(props) => props.theme.colors.secondary.light2};
}
}
`;
export default withTheme(Button);
</code></pre></div>
<ol start="2" dir="auto">
<li>Wherever possible, migrate LESS styles from Cosmo/Bootswatch/custom styles, and put it into atomic components.</li>
<li>When LESS code has been sufficiently migrated into Emotion components, delete Cosmo theme and Bootswatch files (hooray!)</li>
<li>When all React-Bootstrap imports/usages have migrated to Superset-owned Emotion-styled components, it should be possible to upgrade React-Bootstrap and make relatively minor/straightforward changes to correct any unexpected style changes.</li>
</ol>
<p dir="auto">In the event of an emergency involving support or implementation of Emotion, it should be fairly straightforward to migrate to <a href="https://styled-components.com/" rel="nofollow">Styled-Components</a> as an optional ejection path. They follow the same patterns.</p>
<h3 dir="auto">Rejected Alternatives</h3>
<ul dir="auto">
<li><strong>Styled Components</strong> - The leading package, and the leading competition to Emotion. Downsides are that it is larger, less performant (they're addressing this), and that it doesn't (yet) support sourcemaps. The scale of this community is the largest, so it may be warranted to swtich to this in the future, which at this point is relatively trivial.</li>
<li><strong>JSS</strong> - Popular, but that seems to be in large part due to its use in Material UI. It doesn't seem to provide selling points that outweigh the features, ease of use, and emerging patterns provided by Emotion (and Emotion-like) libraries</li>
<li><strong>Glamorous</strong> - Follows similar patterns to Emotion/Styled-Components. The founder has officially recommended that users switch to Emotion (over Styled-Components) and has provided a codemod to do so.</li>
<li><strong>Aphrodite, Radium, Styletron</strong> - These (and others) provide plenty of feature overlap in their CSS-in-JS approaches, but seem lacking in OSS adoption and community support.</li>
</ul> | <p dir="auto">I am not able to add different formula type annotation layer that the initial. That's because when I choose dropdown option in modal then modal disappears.</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">Should not disappear.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">Disappears.</p>
<h4 dir="auto">Screenshots</h4>
<details open="" class="details-reset border rounded-2">
<summary class="px-3 py-2">
<svg aria-hidden="true" height="16" viewBox="0 0 16 16" version="1.1" width="16" data-view-component="true" class="octicon octicon-device-camera-video">
<path d="M16 3.75v8.5a.75.75 0 0 1-1.136.643L11 10.575v.675A1.75 1.75 0 0 1 9.25 13h-7.5A1.75 1.75 0 0 1 0 11.25v-6.5C0 3.784.784 3 1.75 3h7.5c.966 0 1.75.784 1.75 1.75v.675l3.864-2.318A.75.75 0 0 1 16 3.75Zm-6.5 1a.25.25 0 0 0-.25-.25h-7.5a.25.25 0 0 0-.25.25v6.5c0 .138.112.25.25.25h7.5a.25.25 0 0 0 .25-.25v-6.5ZM11 8.825l3.5 2.1v-5.85l-3.5 2.1Z"></path>
</svg>
<span aria-label="Video description disappear.mov" class="m-1">disappear.mov</span>
<span class="dropdown-caret"></span>
</summary>
<video src="https://user-images.githubusercontent.com/25153919/104373762-251ef680-5521-11eb-8a3a-f6880aaec106.mov" data-canonical-src="https://user-images.githubusercontent.com/25153919/104373762-251ef680-5521-11eb-8a3a-f6880aaec106.mov" controls="controls" muted="muted" class="d-block rounded-bottom-2 border-top width-fit" style="max-height:640px; min-height: 200px">
</video>
</details>
<h4 dir="auto">How to reproduce the bug</h4>
<p dir="auto">Go to charts<br>
open random_time_series<br>
add annotation layer<br>
change formula / annotation layer type</p>
<h3 dir="auto">Environment</h3>
<p dir="auto">docker<br>
SHA <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/apache/superset/commit/5f93a14f5dd422e6f9ed468390b128776f278b03/hovercard" href="https://github.com/apache/superset/commit/5f93a14f5dd422e6f9ed468390b128776f278b03"><tt>5f93a14</tt></a></p>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure to follow these steps before submitting your issue - thank you!</p>
<ul dir="auto">
<li>[ x] I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li>[ x] I have reproduced the issue with at least the latest released version of superset.</li>
<li>[ x] I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>
<h3 dir="auto">Additional context</h3> | 0 |
<p dir="auto">We need a way to export macros from modules and import them in other modules.</p>
<p dir="auto">Currently we either prepend a string of macro definitions to every file, such as with <code class="notranslate">debug!</code>, <code class="notranslate">error!</code>, etc., or we just copy and paste the macros we need. This second approach leads to code duplication and lots of subtly different implementations.</p>
<p dir="auto">As a temporary workaround, we could probably use <code class="notranslate">include!</code>.</p> | <p dir="auto">Compiler version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 0.13.0-nightly (399ff259e 2014-11-20 00:27:07 +0000)
binary: rustc
commit-hash: 399ff259e18c1061aa4ea60856fcecb486d36624
commit-date: 2014-11-20 00:27:07 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-nightly"><pre class="notranslate"><code class="notranslate">rustc 0.13.0-nightly (399ff259e 2014-11-20 00:27:07 +0000)
binary: rustc
commit-hash: 399ff259e18c1061aa4ea60856fcecb486d36624
commit-date: 2014-11-20 00:27:07 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-nightly
</code></pre></div>
<p dir="auto">Error with backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<std macros>:3:24: 10:11 error: type `NullWriter` cannot be dereferenced
<std macros>:3 let dst = &mut *$dst;
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
<std macros>:5 })
<std macros>:6 )
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'index out of bounds: the len is 6 but the index is 6', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/lib.rs:1
stack backtrace:
1: 0x7f4d33ad19c0 - rt::backtrace::imp::write::h7fe8534f465d0e09y9s
2: 0x7f4d33ad4b60 - failure::on_fail::h3fe2ecde6aab0bb8rwt
3: 0x7f4d34277c80 - unwind::begin_unwind_inner::he6bc2073d4eb582enbd
4: 0x7f4d34277900 - unwind::begin_unwind_fmt::h305b4b28825355b2y8c
5: 0x7f4d342778c0 - rust_begin_unwind
6: 0x7f4d342bda70 - panicking::panic_fmt::h9d03fcf6b4c3f8e10Nl
7: 0x7f4d342c2e60 - panicking::panic_bounds_check::h5c6357fea6530f04yMl
8: 0x7f4d31946130 - codemap::FileMap::get_line::h8bd7cfe56e6cfd5e1aF
9: 0x7f4d319749b0 - diagnostic::emit::h2322127ddc0c36debCG
10: 0x7f4d319713d0 - diagnostic::EmitterWriter.Emitter::emit::hb9a4d5c26c04e1df0xG
11: 0x7f4d3196fc50 - diagnostic::Handler::emit::ha390aea82acc4940kfG
12: 0x7f4d31942910 - diagnostic::SpanHandler::span_err::h83b27707d23c7bfej3F
13: 0x7f4d32d40720 - middle::typeck::infer::InferCtxt<'a, 'tcx>::type_error_message_str_with_expected::h72941615d6be270289E
14: 0x7f4d32c4c840 - middle::typeck::infer::InferCtxt<'a, 'tcx>::type_error_message::h3e78576a7aeba36csfF
15: 0x7f4d32c55f70 - middle::typeck::check::check_expr_with_unifier::h23742768f253d831DLl
16: 0x7f4d32c55f70 - middle::typeck::check::check_expr_with_unifier::h23742768f253d831DLl
17: 0x7f4d32ccac40 - middle::typeck::check::check_decl_local::h24893462a5fe4409xSn
18: 0x7f4d32ccae00 - middle::typeck::check::check_stmt::h1ca15bfe8a7d5a87xUn
19: 0x7f4d32c04d90 - middle::typeck::check::check_block_with_expected::heebc1a2b04a42760MYn
20: 0x7f4d32c55f70 - middle::typeck::check::check_expr_with_unifier::h23742768f253d831DLl
21: 0x7f4d32ccae00 - middle::typeck::check::check_stmt::h1ca15bfe8a7d5a87xUn
22: 0x7f4d32c04d90 - middle::typeck::check::check_block_with_expected::heebc1a2b04a42760MYn
23: 0x7f4d32c00810 - middle::typeck::check::check_fn::hd39b1b6b62f22c3fici
24: 0x7f4d32c00530 - middle::typeck::check::check_bare_fn::h779ff7b2db70ca5bn1h
25: 0x7f4d32bfc310 - middle::typeck::check::check_item::hde22067b8b575546vli
26: 0x7f4d32c001c0 - middle::typeck::check::check_item_types::h7118271db2ab8ea8x0h
27: 0x7f4d32fece10 - util::common::time::h4997555828079517418
28: 0x7f4d32fec020 - middle::typeck::check_crate::h0949dffd97487b5ejVL
29: 0x7f4d3477ba10 - driver::driver::phase_3_run_analysis_passes::h7f3610cf195b4c3abfS
30: 0x7f4d34770830 - driver::driver::compile_input::h13734d451479d6e7VVR
31: 0x7f4d347f57b0 - driver::run_compiler::h0a1cb9376c105f68pUT
32: 0x7f4d347f56a0 - driver::run::closure.59745
33: 0x7f4d34601ee0 - task::TaskBuilder<S>::try_future::closure.39051
34: 0x7f4d34601cd0 - task::TaskBuilder<S>::spawn_internal::closure.39022
35: 0x7f4d34b15b90 - task::NativeSpawner.Spawner::spawn::closure.2472
36: 0x7f4d342d04c0 - rust_try_inner
37: 0x7f4d342d04b0 - rust_try
38: 0x7f4d342755e0 - unwind::try::h7c27f4e149aed3f2IZc
39: 0x7f4d34275470 - task::Task::run::h75863ac7ddab20c0y5b
40: 0x7f4d34b158d0 - task::NativeSpawner.Spawner::spawn::closure.2398
41: 0x7f4d34276c90 - thread::thread_start::h7822af80b22f729bEqc
42: 0x7f4d2eb5b250 - start_thread
43: 0x7f4d33f4d3b9 - clone
44: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate"><std macros>:3:24: 10:11 error: type `NullWriter` cannot be dereferenced
<std macros>:3 let dst = &mut *$dst;
<std macros>:4 format_args!(|args| { dst.write_fmt(args) }, $($arg)*)
<std macros>:5 })
<std macros>:6 )
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'index out of bounds: the len is 6 but the index is 6', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/lib.rs:1
stack backtrace:
1: 0x7f4d33ad19c0 - rt::backtrace::imp::write::h7fe8534f465d0e09y9s
2: 0x7f4d33ad4b60 - failure::on_fail::h3fe2ecde6aab0bb8rwt
3: 0x7f4d34277c80 - unwind::begin_unwind_inner::he6bc2073d4eb582enbd
4: 0x7f4d34277900 - unwind::begin_unwind_fmt::h305b4b28825355b2y8c
5: 0x7f4d342778c0 - rust_begin_unwind
6: 0x7f4d342bda70 - panicking::panic_fmt::h9d03fcf6b4c3f8e10Nl
7: 0x7f4d342c2e60 - panicking::panic_bounds_check::h5c6357fea6530f04yMl
8: 0x7f4d31946130 - codemap::FileMap::get_line::h8bd7cfe56e6cfd5e1aF
9: 0x7f4d319749b0 - diagnostic::emit::h2322127ddc0c36debCG
10: 0x7f4d319713d0 - diagnostic::EmitterWriter.Emitter::emit::hb9a4d5c26c04e1df0xG
11: 0x7f4d3196fc50 - diagnostic::Handler::emit::ha390aea82acc4940kfG
12: 0x7f4d31942910 - diagnostic::SpanHandler::span_err::h83b27707d23c7bfej3F
13: 0x7f4d32d40720 - middle::typeck::infer::InferCtxt<'a, 'tcx>::type_error_message_str_with_expected::h72941615d6be270289E
14: 0x7f4d32c4c840 - middle::typeck::infer::InferCtxt<'a, 'tcx>::type_error_message::h3e78576a7aeba36csfF
15: 0x7f4d32c55f70 - middle::typeck::check::check_expr_with_unifier::h23742768f253d831DLl
16: 0x7f4d32c55f70 - middle::typeck::check::check_expr_with_unifier::h23742768f253d831DLl
17: 0x7f4d32ccac40 - middle::typeck::check::check_decl_local::h24893462a5fe4409xSn
18: 0x7f4d32ccae00 - middle::typeck::check::check_stmt::h1ca15bfe8a7d5a87xUn
19: 0x7f4d32c04d90 - middle::typeck::check::check_block_with_expected::heebc1a2b04a42760MYn
20: 0x7f4d32c55f70 - middle::typeck::check::check_expr_with_unifier::h23742768f253d831DLl
21: 0x7f4d32ccae00 - middle::typeck::check::check_stmt::h1ca15bfe8a7d5a87xUn
22: 0x7f4d32c04d90 - middle::typeck::check::check_block_with_expected::heebc1a2b04a42760MYn
23: 0x7f4d32c00810 - middle::typeck::check::check_fn::hd39b1b6b62f22c3fici
24: 0x7f4d32c00530 - middle::typeck::check::check_bare_fn::h779ff7b2db70ca5bn1h
25: 0x7f4d32bfc310 - middle::typeck::check::check_item::hde22067b8b575546vli
26: 0x7f4d32c001c0 - middle::typeck::check::check_item_types::h7118271db2ab8ea8x0h
27: 0x7f4d32fece10 - util::common::time::h4997555828079517418
28: 0x7f4d32fec020 - middle::typeck::check_crate::h0949dffd97487b5ejVL
29: 0x7f4d3477ba10 - driver::driver::phase_3_run_analysis_passes::h7f3610cf195b4c3abfS
30: 0x7f4d34770830 - driver::driver::compile_input::h13734d451479d6e7VVR
31: 0x7f4d347f57b0 - driver::run_compiler::h0a1cb9376c105f68pUT
32: 0x7f4d347f56a0 - driver::run::closure.59745
33: 0x7f4d34601ee0 - task::TaskBuilder<S>::try_future::closure.39051
34: 0x7f4d34601cd0 - task::TaskBuilder<S>::spawn_internal::closure.39022
35: 0x7f4d34b15b90 - task::NativeSpawner.Spawner::spawn::closure.2472
36: 0x7f4d342d04c0 - rust_try_inner
37: 0x7f4d342d04b0 - rust_try
38: 0x7f4d342755e0 - unwind::try::h7c27f4e149aed3f2IZc
39: 0x7f4d34275470 - task::Task::run::h75863ac7ddab20c0y5b
40: 0x7f4d34b158d0 - task::NativeSpawner.Spawner::spawn::closure.2398
41: 0x7f4d34276c90 - thread::thread_start::h7822af80b22f729bEqc
42: 0x7f4d2eb5b250 - start_thread
43: 0x7f4d33f4d3b9 - clone
44: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">Offending code:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::fmt;
struct NullWriter;
impl fmt::FormatWriter for NullWriter {
fn write(&mut self, bytes: &[u8]) -> fmt::Result {
Ok(())
}
}
fn main() {
let mut n = NullWriter;
write!(n, "1, 2, {}", 3);
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>fmt<span class="pl-kos">;</span>
<span class="pl-k">struct</span> <span class="pl-smi">NullWriter</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> fmt<span class="pl-kos">::</span><span class="pl-smi">FormatWriter</span> <span class="pl-k">for</span> <span class="pl-smi">NullWriter</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">write</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">bytes</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-kos">[</span><span class="pl-smi">u8</span><span class="pl-kos">]</span><span class="pl-kos">)</span> -> fmt<span class="pl-kos">::</span><span class="pl-smi">Result</span> <span class="pl-kos">{</span>
<span class="pl-v">Ok</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-k">mut</span> n = <span class="pl-v">NullWriter</span><span class="pl-kos">;</span>
<span class="pl-en">write</span><span class="pl-en">!</span><span class="pl-kos">(</span>n, <span class="pl-s">"1, 2, {}"</span>, <span class="pl-c1">3</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">If it's of any help, this also happens when using libcore directly (my original use-case) with <code class="notranslate">#![no_std]</code>.</p> | 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => 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">If you navigate to a route with multiple search parameters with the same key, they will be merged to one with only the last appearing parameters value. i.e.<br>
<code class="notranslate">host.com/test?p=test&p=best </code><br>
would result in<br>
<code class="notranslate">host.com/test?p=best</code><br>
once Angular has loaded.</p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">Navigating to<br>
<code class="notranslate">host.com/test?p=test&p=best</code><br>
should result in<br>
<code class="notranslate">host.com/test?p=test&p=best</code><br>
once Angular has loaded.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto">Steps to reproduce: Implement routing, navigate to a route with more than one search parameter with the same key.<br>
Here's a <a href="http://plnkr.co/edit/CmrBf43z3m9lsRq8fPoT" rel="nofollow">plnkr</a> of the issue. Open it full screen and click on the thing that says click me.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">The rest point I'm using for filtering/facetting adds multiple search parameter keys of the same type if I select more than one filter/facet. With the current behaviour I can only select one filter per type as it will merge everything with the same key together. Feels unnecessary to merge?</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<p dir="auto">OSX El Capitan 10.11.6. Locally with Brackets / Webpack / NG Live Development Server. Also reproduced in plunkr.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.X (I tested it with Angular 2.2.3 locally and was able to reproduce. Looked through fixes for 2.3.0 and I don't think a fix has been implemented.)</li>
</ul>
<ul dir="auto">
<li><strong>Browser:</strong> I can reproduce this in Chrome 54, FF 48, Safari 10.0.1.</li>
</ul>
<ul dir="auto">
<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="[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">The code contained in <code class="notranslate">modules/@angular/facade/src</code> is duplicated in the following published modules:</p>
<ul dir="auto">
<li><code class="notranslate">@angular/common</code></li>
<li><code class="notranslate">@angular/compiler</code></li>
<li><code class="notranslate">@angular/core</code></li>
<li><code class="notranslate">@angular/forms</code></li>
<li><code class="notranslate">@angular/http</code></li>
<li><code class="notranslate">@angular/platform-browser</code></li>
<li><code class="notranslate">@angular/platform-browser-dynamic</code></li>
</ul>
<p dir="auto">This causes application builds to be larger than they need to be.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">That <code class="notranslate">facade</code> would be contained within either <code class="notranslate">@angular/common</code>, <code class="notranslate">@angular/core</code>, or published as <code class="notranslate">@angular/facade</code> and the modules above would use <code class="notranslate">facade</code> from an external module rather than an internal copy of the code.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">Smaller application builds.</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</li>
<li><strong>Browser:</strong> n/a</li>
<li><strong>Language:</strong> TypeScript X.X | ES6/7 | ES5</li>
</ul> | 0 |
<p dir="auto">I've copied the code in question from logging.jl here:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="_log_record_ids = Set{Symbol}()
# Generate a unique, stable, short, human readable identifier for a logging
# statement. The idea here is to have a key against which log records can be
# filtered and otherwise manipulated. The key should uniquely identify the
# source location in the originating module, but should be stable across
# versions of the originating module, provided the log generating statement
# itself doesn't change.
function log_record_id(_module, level, message_ex)
modname = _module === nothing ? "" : join(fullname(_module), "_")
# Use (1<<31) to fit well within an (arbitriraly chosen) eight hex digits,
# as we increment h to resolve any collisions.
h = hash(string(modname, level, message_ex)) % (1<<31)
while true
id = Symbol(modname, '_', string(h, base = 16, pad = 8))
# _log_record_ids is a registry of log record ids for use during
# compilation, to ensure uniqueness of ids. Note that this state will
# only persist during module compilation so it will be empty when a
# precompiled module is loaded.
if !(id in _log_record_ids)
push!(_log_record_ids, id)
return id
end
h += 1
end
end"><pre class="notranslate">_log_record_ids <span class="pl-k">=</span> <span class="pl-c1">Set</span><span class="pl-c1">{Symbol}</span>()
<span class="pl-c"><span class="pl-c">#</span> Generate a unique, stable, short, human readable identifier for a logging</span>
<span class="pl-c"><span class="pl-c">#</span> statement. The idea here is to have a key against which log records can be</span>
<span class="pl-c"><span class="pl-c">#</span> filtered and otherwise manipulated. The key should uniquely identify the</span>
<span class="pl-c"><span class="pl-c">#</span> source location in the originating module, but should be stable across</span>
<span class="pl-c"><span class="pl-c">#</span> versions of the originating module, provided the log generating statement</span>
<span class="pl-c"><span class="pl-c">#</span> itself doesn't change.</span>
<span class="pl-k">function</span> <span class="pl-en">log_record_id</span>(_module, level, message_ex)
modname <span class="pl-k">=</span> _module <span class="pl-k">===</span> <span class="pl-c1">nothing</span> <span class="pl-k">?</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span> <span class="pl-k">:</span> <span class="pl-c1">join</span>(<span class="pl-c1">fullname</span>(_module), <span class="pl-s"><span class="pl-pds">"</span>_<span class="pl-pds">"</span></span>)
<span class="pl-c"><span class="pl-c">#</span> Use (1<<31) to fit well within an (arbitriraly chosen) eight hex digits,</span>
<span class="pl-c"><span class="pl-c">#</span> as we increment h to resolve any collisions.</span>
h <span class="pl-k">=</span> <span class="pl-c1">hash</span>(<span class="pl-c1">string</span>(modname, level, message_ex)) <span class="pl-k">%</span> (<span class="pl-c1">1</span><span class="pl-k"><<</span><span class="pl-c1">31</span>)
<span class="pl-k">while</span> <span class="pl-c1">true</span>
id <span class="pl-k">=</span> <span class="pl-c1">Symbol</span>(modname, <span class="pl-s"><span class="pl-pds">'</span>_<span class="pl-pds">'</span></span>, <span class="pl-c1">string</span>(h, base <span class="pl-k">=</span> <span class="pl-c1">16</span>, pad <span class="pl-k">=</span> <span class="pl-c1">8</span>))
<span class="pl-c"><span class="pl-c">#</span> _log_record_ids is a registry of log record ids for use during</span>
<span class="pl-c"><span class="pl-c">#</span> compilation, to ensure uniqueness of ids. Note that this state will</span>
<span class="pl-c"><span class="pl-c">#</span> only persist during module compilation so it will be empty when a</span>
<span class="pl-c"><span class="pl-c">#</span> precompiled module is loaded.</span>
<span class="pl-k">if</span> <span class="pl-k">!</span>(id <span class="pl-k">in</span> _log_record_ids)
<span class="pl-c1">push!</span>(_log_record_ids, id)
<span class="pl-k">return</span> id
<span class="pl-k">end</span>
h <span class="pl-k">+=</span> <span class="pl-c1">1</span>
<span class="pl-k">end</span>
<span class="pl-k">end</span></pre></div>
<p dir="auto">Note that it will loop the number of times the log has previously been logged. This makes benchmarking logging very difficult, as this function takes up almost the entire runtime.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> function xparse4(str)
@debug "xparse"
Base.parse(Int, str)
end
julia> @benchmark @suppress xparse4("0")
BenchmarkTools.Trial:
memory estimate: 1.20 MiB
allocs estimate: 22514
--------------
minimum time: 2.856 ms (0.00% GC)
median time: 3.752 ms (0.00% GC)
mean time: 3.979 ms (4.19% GC)
maximum time: 51.694 ms (92.27% GC)
--------------
samples: 1255
evals/sample: 1"><pre class="notranslate"><code class="notranslate">julia> function xparse4(str)
@debug "xparse"
Base.parse(Int, str)
end
julia> @benchmark @suppress xparse4("0")
BenchmarkTools.Trial:
memory estimate: 1.20 MiB
allocs estimate: 22514
--------------
minimum time: 2.856 ms (0.00% GC)
median time: 3.752 ms (0.00% GC)
mean time: 3.979 ms (4.19% GC)
maximum time: 51.694 ms (92.27% GC)
--------------
samples: 1255
evals/sample: 1
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> results = @benchmark Base.CoreLogging.log_record_id(@__MODULE__, :Debug, :("xparse"))
BenchmarkTools.Trial:
memory estimate: 1.04 MiB
allocs estimate: 24700
--------------
minimum time: 2.852 ms (0.00% GC)
median time: 4.141 ms (0.00% GC)
mean time: 4.366 ms (2.64% GC)
maximum time: 46.329 ms (90.08% GC)
--------------
samples: 1143
evals/sample: 1"><pre class="notranslate"><code class="notranslate">julia> results = @benchmark Base.CoreLogging.log_record_id(@__MODULE__, :Debug, :("xparse"))
BenchmarkTools.Trial:
memory estimate: 1.04 MiB
allocs estimate: 24700
--------------
minimum time: 2.852 ms (0.00% GC)
median time: 4.141 ms (0.00% GC)
mean time: 4.366 ms (2.64% GC)
maximum time: 46.329 ms (90.08% GC)
--------------
samples: 1143
evals/sample: 1
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> lineplot(StatsBase.trim(results.times; count=10))
┌────────────────────────────────────────┐
8000000 │⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡼⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠞⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠴⠚⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠴⠚⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⣀⡤⠴⠒⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⢀⡤⠖⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
3000000 │⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
└────────────────────────────────────────┘
0 2000"><pre class="notranslate"><code class="notranslate">julia> lineplot(StatsBase.trim(results.times; count=10))
┌────────────────────────────────────────┐
8000000 │⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡆⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣸⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡇⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⡼⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⢀⡞⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠞⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⣠⠴⠚⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⠀⠀⠀⠀⠀⣀⡤⠴⠚⠉⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⠀⠀⠀⠀⣀⡤⠴⠒⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
│⢀⡤⠖⠋⠁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
3000000 │⠋⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀│
└────────────────────────────────────────┘
0 2000
</code></pre></div>
<p dir="auto">Do we even need this function? Could we just have logs not have ids unless they're explicitly provided? Where are these ids being used?</p> | <p dir="auto">As discussed on discourse <a href="https://discourse.julialang.org/t/custom-updating-binary-operator/29301" rel="nofollow">https://discourse.julialang.org/t/custom-updating-binary-operator/29301</a></p>
<p dir="auto">Would there be interest in adding support for other updating binary operators?</p>
<p dir="auto">For example, it would be nice to be able to write <code class="notranslate">a ∪= b</code></p>
<p dir="auto">Aside from set union and intersection, are there any other candidates?</p> | 0 |
<p dir="auto">Testing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156233363" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/6654" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/6654/hovercard" href="https://github.com/microsoft/vscode/issues/6654">#6654</a></p>
<p dir="auto">The escape key surfaces to the workbench, closing the terminal. This is bad in situations where commands really need the escape key, such as vim.</p> | <p dir="auto">Integrated terminal master issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117735786" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/143" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/143/hovercard" href="https://github.com/microsoft/vscode/issues/143">#143</a></p>
<p dir="auto">Open question: Currently pressing <kbd>esc</kbd> will hide the terminal, this can be a problem for some terminal programs, for example <code class="notranslate">vim</code>. Perhaps this should be configurable?</p> | 1 |
<p dir="auto">How to mix table and expandable panel.</p>
<p dir="auto">I am trying to use expandable panels inside the row of the table body to expand to show more information but always get an error stating:</p>
<p dir="auto">Warning: validateDOMNesting(...): <div> cannot appear as a child of <tbody>.</p>
<p dir="auto">I understand this is is a html thing and there might not be a workaround but does anybody have any advice on how I can do this?</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto"><a href="https://codesandbox.io/s/2478k3pqmp" rel="nofollow">This</a> is a a code sandbox detailing what I am trying to do</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.beta.26</td>
</tr>
<tr>
<td>React</td>
<td>16.2.0</td>
</tr>
<tr>
<td>browser</td>
<td>chrome latest</td>
</tr>
</tbody>
</table>
<p dir="auto">Thanks</p> | <p dir="auto">After installing latest React package 0.14.0, trying install the latest material-ui (as of this post 0.12.3), the material-ui package install fails.</p>
<p dir="auto"><code class="notranslate">npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!</code><br>
<code class="notranslate">npm ERR! peerinvalid Peer [email protected] wants react@~0.13</code><br>
<code class="notranslate">npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0-0 || ~0.13.x || ~0.12.x</code></p> | 0 |
<p dir="auto">When building an application compiled using babel, lots of developer use the <code class="notranslate">runtime</code> transformer but still requires the polyfills for ES6+ definitions. The application's package is generally similar to:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"dependencies": {
"babel-runtime": "^5.0.0"
},
"devDependencies": {
"babel": "^5.0.0"
},
"scripts": {
"build": "babel -d lib src"
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"dependencies"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"babel-runtime"</span>: <span class="pl-s">"^5.0.0"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"devDependencies"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"babel"</span>: <span class="pl-s">"^5.0.0"</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">"build"</span>: <span class="pl-s">"babel -d lib src"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Unfortunately the polyfills are located at <code class="notranslate">babel/runtime</code> which requires the developer to specify <code class="notranslate">babel</code> as dependencies (not a dev one) if he want to use it. Adding the polyfills to <code class="notranslate">babel-runtime</code> would solve this issue.</p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
Error while compile:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ babel index.js
Error: We don't know what to do with this node type. We were previously a Statement but we can't fit in here?
at NodePath.insertBefore (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\path\modification.js:55:11)
at PluginPass.Class (C:\workspace\babel-bug-report\node_modules\@babel\plugin-proposal-class-properties\lib\index.js:257:14)
at newFn (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\visitors.js:237:21)
at NodePath._call (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\path\context.js:65:20)
at NodePath.call (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\path\context.js:40:17)
at NodePath.visit (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\path\context.js:100:12)
at TraversalContext.visitQueue (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\context.js:142:16)
at TraversalContext.visitSingle (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\context.js:102:19)
at TraversalContext.visit (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\context.js:182:19)
at Function.traverse.node (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\index.js:106:17)"><pre class="notranslate"><code class="notranslate">$ babel index.js
Error: We don't know what to do with this node type. We were previously a Statement but we can't fit in here?
at NodePath.insertBefore (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\path\modification.js:55:11)
at PluginPass.Class (C:\workspace\babel-bug-report\node_modules\@babel\plugin-proposal-class-properties\lib\index.js:257:14)
at newFn (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\visitors.js:237:21)
at NodePath._call (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\path\context.js:65:20)
at NodePath.call (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\path\context.js:40:17)
at NodePath.visit (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\path\context.js:100:12)
at TraversalContext.visitQueue (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\context.js:142:16)
at TraversalContext.visitSingle (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\context.js:102:19)
at TraversalContext.visit (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\context.js:182:19)
at Function.traverse.node (C:\workspace\babel-bug-report\node_modules\@babel\traverse\lib\index.js:106:17)
</code></pre></div>
<p dir="auto"><strong>Input Code</strong><br>
Repo: <a href="https://github.com/tihonove/babel-bug-report">https://github.com/tihonove/babel-bug-report</a></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export class Foo {
static bar = {};
constructor(b) {}
foo = b => b;
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">static</span> <span class="pl-c1">bar</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">b</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-s1">b</span> <span class="pl-c1">=></span> <span class="pl-s1">b</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<p dir="auto">.babelrc:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": [
"@babel/es2015"
],
"plugins": [
"@babel/proposal-class-properties"
]
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"@babel/es2015"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"plugins"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"@babel/proposal-class-properties"</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">command:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn babel index.js"><pre class="notranslate"><code class="notranslate">yarn babel index.js
</code></pre></div>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): v7.0.0-beta.47</li>
<li>Node/npm version: v8.6.0/5.3.0</li>
<li>OS: Windows 10</li>
<li>Monorepo: yes</li>
<li>How you are using Babel: cli or loader</li>
</ul> | 0 |
<h5 dir="auto">System information</h5>
<ul dir="auto">
<li>OpenCV => 4.5.5</li>
<li>Operating System / Platform => Windows 64 Bit lstc</li>
<li>opencv dll Compiler => MSVC 2017</li>
<li>Devlop IDE Compiler : Qt 6.2.4 MSVC 2019 64Bit</li>
<li>Note: Binary files (dll) obtained using the exe installation package downloaded from the official website</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Use the <code class="notranslate">cv::VideoCapture::get()</code> function with a parameter value of <code class="notranslate">cv::CAP_PROP_POS_MSEC</code> to get the time of the current video frame.<br>
The time value obtained on some frames at the end of the video is always 0, and these frames further ahead are normal time values.<br>
I've tried some videos and it's always like this, my local videos are very easy to reproduce this issue.</p> | <ul dir="auto">
<li>OpenCV => 4.1.1</li>
<li>Operating System / Platform = OpenWrt</li>
<li>Compiler => GCC9 + uClibc-ng</li>
</ul>
<p dir="auto">uClibc-ng does not export several C++11 functions into the std namespace. As a result, I currently use this patch:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/modules/gapi/include/opencv2/gapi/core.hpp b/modules/gapi/include/opencv2/gapi/core.hpp
index a38d747..f01c0bd 100644
--- a/modules/gapi/include/opencv2/gapi/core.hpp
+++ b/modules/gapi/include/opencv2/gapi/core.hpp
@@ -392,8 +392,8 @@ namespace core {
{
GAPI_Assert(fx != 0. && fy != 0.);
return in.withSize
- (Size(static_cast<int>(std::round(in.size.width * fx)),
- static_cast<int>(std::round(in.size.height * fy))));
+ (Size(static_cast<int>(round(in.size.width * fx)),
+ static_cast<int>(round(in.size.height * fy))));
}
}
};
diff --git a/modules/gapi/include/opencv2/gapi/own/saturate.hpp b/modules/gapi/include/opencv2/gapi/own/saturate.hpp
index 207dcde..d716643 100644
--- a/modules/gapi/include/opencv2/gapi/own/saturate.hpp
+++ b/modules/gapi/include/opencv2/gapi/own/saturate.hpp
@@ -81,8 +81,8 @@ static inline DST saturate(SRC x, R round)
// explicit suffix 'd' for double type
inline double ceild(double x) { return std::ceil(x); }
inline double floord(double x) { return std::floor(x); }
-inline double roundd(double x) { return std::round(x); }
-inline double rintd(double x) { return std::rint(x); }
+inline double roundd(double x) { return round(x); }
+inline double rintd(double x) { return rint(x); }
} //namespace own
} //namespace gapi
diff --git a/modules/gapi/src/backends/fluid/gfluidcore.cpp b/modules/gapi/src/backends/fluid/gfluidcore.cpp
index 49d6d2e..e1821b8 100644
--- a/modules/gapi/src/backends/fluid/gfluidcore.cpp
+++ b/modules/gapi/src/backends/fluid/gfluidcore.cpp
@@ -389,7 +389,7 @@ static void run_arithm_s1(uchar out[], const float in[], int width, const float
cv::util::suppress_unused_warning(v_op);
for (; w < width; w++)
{
- out[w] = saturate<uchar>(s_op(in[w], scalar[0]), std::roundf);
+ out[w] = saturate<uchar>(s_op(in[w], scalar[0]), roundf);
}
}
@@ -1954,7 +1954,7 @@ GAPI_FLUID_KERNEL(GFluidCartToPolar, cv::gapi::core::GCartToPolar, false)
{
float x = in1[l];
float y = in2[l];
- float magnitude = std::hypot(y, x);
+ float magnitude = hypot(y, x);
float angle_rad = std::atan2(y, x);
float angle = angleInDegrees?
angle_rad * static_cast<float>(180 / CV_PI):"><pre class="notranslate"><code class="notranslate">diff --git a/modules/gapi/include/opencv2/gapi/core.hpp b/modules/gapi/include/opencv2/gapi/core.hpp
index a38d747..f01c0bd 100644
--- a/modules/gapi/include/opencv2/gapi/core.hpp
+++ b/modules/gapi/include/opencv2/gapi/core.hpp
@@ -392,8 +392,8 @@ namespace core {
{
GAPI_Assert(fx != 0. && fy != 0.);
return in.withSize
- (Size(static_cast<int>(std::round(in.size.width * fx)),
- static_cast<int>(std::round(in.size.height * fy))));
+ (Size(static_cast<int>(round(in.size.width * fx)),
+ static_cast<int>(round(in.size.height * fy))));
}
}
};
diff --git a/modules/gapi/include/opencv2/gapi/own/saturate.hpp b/modules/gapi/include/opencv2/gapi/own/saturate.hpp
index 207dcde..d716643 100644
--- a/modules/gapi/include/opencv2/gapi/own/saturate.hpp
+++ b/modules/gapi/include/opencv2/gapi/own/saturate.hpp
@@ -81,8 +81,8 @@ static inline DST saturate(SRC x, R round)
// explicit suffix 'd' for double type
inline double ceild(double x) { return std::ceil(x); }
inline double floord(double x) { return std::floor(x); }
-inline double roundd(double x) { return std::round(x); }
-inline double rintd(double x) { return std::rint(x); }
+inline double roundd(double x) { return round(x); }
+inline double rintd(double x) { return rint(x); }
} //namespace own
} //namespace gapi
diff --git a/modules/gapi/src/backends/fluid/gfluidcore.cpp b/modules/gapi/src/backends/fluid/gfluidcore.cpp
index 49d6d2e..e1821b8 100644
--- a/modules/gapi/src/backends/fluid/gfluidcore.cpp
+++ b/modules/gapi/src/backends/fluid/gfluidcore.cpp
@@ -389,7 +389,7 @@ static void run_arithm_s1(uchar out[], const float in[], int width, const float
cv::util::suppress_unused_warning(v_op);
for (; w < width; w++)
{
- out[w] = saturate<uchar>(s_op(in[w], scalar[0]), std::roundf);
+ out[w] = saturate<uchar>(s_op(in[w], scalar[0]), roundf);
}
}
@@ -1954,7 +1954,7 @@ GAPI_FLUID_KERNEL(GFluidCartToPolar, cv::gapi::core::GCartToPolar, false)
{
float x = in1[l];
float y = in2[l];
- float magnitude = std::hypot(y, x);
+ float magnitude = hypot(y, x);
float angle_rad = std::atan2(y, x);
float angle = angleInDegrees?
angle_rad * static_cast<float>(180 / CV_PI):
</code></pre></div> | 0 |
<p dir="auto">OS: windows7 & 10<br>
electron version: V7+</p>
<p dir="auto">dialog.showMessageBox options noLink not work</p> | <p dir="auto">dialog.showMessageBoxSync(getCurrentWindow(), {<br>
type: "question",<br>
title: "test title",<br>
message: "test message",<br>
buttons: ["OK", "Cancel"],<br>
defaultId: 0,<br>
cancelId: 1,<br>
noLink: true<br>
})</p> | 1 |
<p dir="auto">Other editors provide a shortcut to duplicate the current selection, or if nothing is selected duplicate the whole line (actually the actions of <code class="notranslate">copyLinesDownAction</code> and <code class="notranslate">copyLinesUpAction</code>).</p> | <p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/guillermooo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/guillermooo">@guillermooo</a> on November 8, 2015 12:55</em></p>
<p dir="auto">From the docs, it seems that extensions need to include the key bindings in the manifest proper. For extensions that will contribute a lot of key bindings, it may be more convenient to include <em>files</em> of key binding definitions.</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="...
"contributes": {
"keybindings": [{
"command": "extension.sayHello",
"key": "ctrl+f1",
"mac": "cmd+f1",
"when": "editorTextFocus"
},
{ "include": "motions.json" },
{ "include": "actions.json" }
]
}
..."><pre class="notranslate"><span class="pl-ii">...</span>
<span class="pl-ent">"contributes"</span>: {
<span class="pl-ent">"keybindings"</span>: [{
<span class="pl-ent">"command"</span>: <span class="pl-s"><span class="pl-pds">"</span>extension.sayHello<span class="pl-pds">"</span></span>,
<span class="pl-ent">"key"</span>: <span class="pl-s"><span class="pl-pds">"</span>ctrl+f1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"mac"</span>: <span class="pl-s"><span class="pl-pds">"</span>cmd+f1<span class="pl-pds">"</span></span>,
<span class="pl-ent">"when"</span>: <span class="pl-s"><span class="pl-pds">"</span>editorTextFocus<span class="pl-pds">"</span></span>
},
{ <span class="pl-ent">"include"</span>: <span class="pl-s"><span class="pl-pds">"</span>motions.json<span class="pl-pds">"</span></span> },
{ <span class="pl-ent">"include"</span>: <span class="pl-s"><span class="pl-pds">"</span>actions.json<span class="pl-pds">"</span></span> }
]
}
<span class="pl-ii">...</span></pre></div>
<p dir="auto"><em>Copied from original issue: Microsoft/vscode-extensionbuilders#82</em></p> | 0 |
<p dir="auto">Using the method described at <a href="http://docs.celeryproject.org/en/latest/userguide/workers.html#pool-restart-command" rel="nofollow">http://docs.celeryproject.org/en/latest/userguide/workers.html#pool-restart-command</a> only restart 1 process in the worker's process pool but not all. The other processes <em>may</em> restart only after the worker received other tasks. How can I make sure all the processes of the worker are restarted?</p>
<p dir="auto">For example, using tasks defined in this gist <a href="https://gist.github.com/lebinh/165f7edb95daa08bee54">https://gist.github.com/lebinh/165f7edb95daa08bee54</a> and start a worker with concurrency 2: <code class="notranslate">celery -A tasks worker -l info -c 2</code>. After sending <code class="notranslate">pool_restart</code> command with <code class="notranslate">tasks.app.control.broadcast('pool_restart')</code> I got this log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2014-06-05 18:53:43,310: WARNING/Worker-1] worker process shutdown
[2014-06-05 18:53:44,350: WARNING/Worker-3] worker process init
^C
worker: Hitting Ctrl+C again will terminate all running tasks!
worker: Warm shutdown (MainProcess)
[2014-06-05 18:54:05,368: WARNING/Worker-2] worker process shutdown
[2014-06-05 18:54:05,368: WARNING/Worker-3] worker process shutdown"><pre class="notranslate"><code class="notranslate">[2014-06-05 18:53:43,310: WARNING/Worker-1] worker process shutdown
[2014-06-05 18:53:44,350: WARNING/Worker-3] worker process init
^C
worker: Hitting Ctrl+C again will terminate all running tasks!
worker: Warm shutdown (MainProcess)
[2014-06-05 18:54:05,368: WARNING/Worker-2] worker process shutdown
[2014-06-05 18:54:05,368: WARNING/Worker-3] worker process shutdown
</code></pre></div>
<p dir="auto">The worker process 1 is restarted but worker process 2 is still there until I terminate the worker.</p>
<p dir="auto">I'm using the latest version of Celery, 3.1.11 (Cipater), on Ubuntu 14.04 running on EC2.</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 verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li><a href="https://groups.google.com/g/celery-users/c/3Z07zPfUZQ0/m/VpOCC2PGDQAJ" rel="nofollow">https://groups.google.com/g/celery-users/c/3Z07zPfUZQ0/m/VpOCC2PGDQAJ</a></li>
<li>(semi-related but different) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="838516728" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/6690" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/6690/hovercard" href="https://github.com/celery/celery/issues/6690">#6690</a></li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 5.1.1</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
(celery_movies) C:\Users\markb\PycharmProjects\celery_movies>celery -A celery_movies report
</p><p dir="auto">software -> celery:5.1.1 (sun-harmonics) kombu:5.1.0 py:3.7.2<br>
billiard:3.6.4.0 py-amqp:5.0.6<br>
platform -> system:Windows arch:32bit, WindowsPE<br>
kernel version:10 imp:CPython<br>
loader -> celery.loaders.app.AppLoader<br>
settings -> transport:amqp results:file:///C:/Users/markb/tmp</p>
<p dir="auto">Exchange: <class 'kombu.entity.Exchange'><br>
Queue: <class 'kombu.entity.Queue'><br>
imports: ['celery_movies.tasks']<br>
task_acks_late: True<br>
task_default_exchange: 'my_exchange'<br>
task_queues: [<unbound Queue movies -> <unbound Exchange my_exchange(direct)> -> movies>]<br>
task_routes: {<br>
'movies.<em>': {'queue': 'movies'}, 'news.</em>': {'queue': 'news'}}<br>
deprecated_settings: None<br>
broker_url: 'amqp://guest:********<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/localhost/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/localhost">@localhost</a>:5672//'<br>
result_backend: 'file:///C:/Users/markb/tmp'</p>
<p dir="auto">(celery_news) C:\Users\markb\PycharmProjects\celery_news>celery -A celery_news report</p>
<p dir="auto">software -> celery:5.1.1 (sun-harmonics) kombu:5.1.0 py:3.7.2<br>
billiard:3.6.4.0 py-amqp:5.0.6<br>
platform -> system:Windows arch:32bit, WindowsPE<br>
kernel version:10 imp:CPython<br>
loader -> celery.loaders.app.AppLoader<br>
settings -> transport:amqp results:file:///C:/Users/markb/tmp</p>
<p dir="auto">Exchange: <class 'kombu.entity.Exchange'><br>
Queue: <class 'kombu.entity.Queue'><br>
imports: ['celery_news.tasks']<br>
task_acks_late: True<br>
task_default_exchange: 'my_exchange'<br>
task_queues: [<unbound Queue news -> <unbound Exchange my_exchange(direct)> -> news>,<br>
<unbound Queue celery -> <unbound Exchange my_exchange(direct)> -> celery>]<br>
task_routes: {<br>
'movies.<em>': {'queue': 'movies'}, 'news.</em>': {'queue': 'news'}}<br>
deprecated_settings: None<br>
broker_url: 'amqp://guest:********<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/localhost/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/localhost">@localhost</a>:5672//'<br>
result_backend: 'file:///C:/Users/markb/tmp'</p>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
amqp==5.0.6
billiard==3.6.4.0
cached-property==1.5.2
celery==5.1.1
click==7.1.2
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
importlib-metadata==4.6.1
kombu==5.1.0
prompt-toolkit==3.0.19
pytz==2021.1
six==1.16.0
typing-extensions==3.10.0.0
vine==5.0.0
wcwidth==0.2.5
zipp==3.5.0
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
Worker <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23610" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/1" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/1/hovercard" href="https://github.com/celery/celery/issues/1">#1</a>
celery.py (launched via: celery -A celery_movies worker -l info --pool=solo)
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery.app import Celery
from celery_movies import celeryconfig
broker_url = 'amqp://'
celery_app = Celery('movies')
celery_app.config_from_object(celeryconfig)
celery_app.conf.update(broker_url=broker_url,
result_backend="file:///C:/Users/markb/tmp")"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">app</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">from</span> <span class="pl-s1">celery_movies</span> <span class="pl-k">import</span> <span class="pl-s1">celeryconfig</span>
<span class="pl-s1">broker_url</span> <span class="pl-c1">=</span> <span class="pl-s">'amqp://'</span>
<span class="pl-s1">celery_app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'movies'</span>)
<span class="pl-s1">celery_app</span>.<span class="pl-en">config_from_object</span>(<span class="pl-s1">celeryconfig</span>)
<span class="pl-s1">celery_app</span>.<span class="pl-s1">conf</span>.<span class="pl-en">update</span>(<span class="pl-s1">broker_url</span><span class="pl-c1">=</span><span class="pl-s1">broker_url</span>,
<span class="pl-s1">result_backend</span><span class="pl-c1">=</span><span class="pl-s">"file:///C:/Users/markb/tmp"</span>)</pre></div>
<p dir="auto">celeryconfig.py</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from kombu.common import Queue, Exchange
imports = ['celery_movies.tasks']
task_acks_late = True
task_default_exchange = "my_exchange"
task_queues = [Queue('movies', exchange=Exchange(name=task_default_exchange), routing_key='movies')
]
task_routes = {
'movies.*': {'queue': 'movies'},
'news.*': {'queue': 'news'}
}"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">kombu</span>.<span class="pl-s1">common</span> <span class="pl-k">import</span> <span class="pl-v">Queue</span>, <span class="pl-v">Exchange</span>
<span class="pl-s1">imports</span> <span class="pl-c1">=</span> [<span class="pl-s">'celery_movies.tasks'</span>]
<span class="pl-s1">task_acks_late</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-s1">task_default_exchange</span> <span class="pl-c1">=</span> <span class="pl-s">"my_exchange"</span>
<span class="pl-s1">task_queues</span> <span class="pl-c1">=</span> [<span class="pl-v">Queue</span>(<span class="pl-s">'movies'</span>, <span class="pl-s1">exchange</span><span class="pl-c1">=</span><span class="pl-v">Exchange</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">task_default_exchange</span>), <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'movies'</span>)
]
<span class="pl-s1">task_routes</span> <span class="pl-c1">=</span> {
<span class="pl-s">'movies.*'</span>: {<span class="pl-s">'queue'</span>: <span class="pl-s">'movies'</span>},
<span class="pl-s">'news.*'</span>: {<span class="pl-s">'queue'</span>: <span class="pl-s">'news'</span>}
}</pre></div>
<p dir="auto">tasks.py</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery_movies.celery import celery_app
@celery_app.task(name='movies.task.publish_movie', bind=True)
def publish_movie(self, *args, **kwargs):
print("publishing movie")"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery_movies</span>.<span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-s1">celery_app</span>
<span class="pl-en">@<span class="pl-s1">celery_app</span>.<span class="pl-en">task</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'movies.task.publish_movie'</span>, <span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">publish_movie</span>(<span class="pl-s1">self</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>):
<span class="pl-en">print</span>(<span class="pl-s">"publishing movie"</span>)</pre></div>
<p dir="auto">Worker <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="23611" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/2" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/2/hovercard" href="https://github.com/celery/celery/issues/2">#2</a><br>
celery.py (launched via: celery -A celery_news worker -l info --pool=solo)</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery.app import Celery
from celery_news import celeryconfig
broker_url = 'amqp://'
celery_app = Celery('news')
celery_app.config_from_object(celeryconfig)
celery_app.conf.update(broker_url=broker_url,
result_backend="file:///C:/Users/markb/tmp")"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">app</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">from</span> <span class="pl-s1">celery_news</span> <span class="pl-k">import</span> <span class="pl-s1">celeryconfig</span>
<span class="pl-s1">broker_url</span> <span class="pl-c1">=</span> <span class="pl-s">'amqp://'</span>
<span class="pl-s1">celery_app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'news'</span>)
<span class="pl-s1">celery_app</span>.<span class="pl-en">config_from_object</span>(<span class="pl-s1">celeryconfig</span>)
<span class="pl-s1">celery_app</span>.<span class="pl-s1">conf</span>.<span class="pl-en">update</span>(<span class="pl-s1">broker_url</span><span class="pl-c1">=</span><span class="pl-s1">broker_url</span>,
<span class="pl-s1">result_backend</span><span class="pl-c1">=</span><span class="pl-s">"file:///C:/Users/markb/tmp"</span>)</pre></div>
<p dir="auto">celeryconfig.py</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from kombu.common import Queue, Exchange
imports = ['celery_news.tasks']
task_acks_late = True
task_default_exchange = "my_exchange"
task_queues = [Queue('news', exchange=Exchange(name=task_default_exchange), routing_key='news'),
Queue('celery', exchange=Exchange(name=task_default_exchange), routing_key='celery')]
task_routes = {
'movies.*': {'queue': 'movies'},
'news.*': {'queue': 'news'}
}"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">kombu</span>.<span class="pl-s1">common</span> <span class="pl-k">import</span> <span class="pl-v">Queue</span>, <span class="pl-v">Exchange</span>
<span class="pl-s1">imports</span> <span class="pl-c1">=</span> [<span class="pl-s">'celery_news.tasks'</span>]
<span class="pl-s1">task_acks_late</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-s1">task_default_exchange</span> <span class="pl-c1">=</span> <span class="pl-s">"my_exchange"</span>
<span class="pl-s1">task_queues</span> <span class="pl-c1">=</span> [<span class="pl-v">Queue</span>(<span class="pl-s">'news'</span>, <span class="pl-s1">exchange</span><span class="pl-c1">=</span><span class="pl-v">Exchange</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">task_default_exchange</span>), <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'news'</span>),
<span class="pl-v">Queue</span>(<span class="pl-s">'celery'</span>, <span class="pl-s1">exchange</span><span class="pl-c1">=</span><span class="pl-v">Exchange</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s1">task_default_exchange</span>), <span class="pl-s1">routing_key</span><span class="pl-c1">=</span><span class="pl-s">'celery'</span>)]
<span class="pl-s1">task_routes</span> <span class="pl-c1">=</span> {
<span class="pl-s">'movies.*'</span>: {<span class="pl-s">'queue'</span>: <span class="pl-s">'movies'</span>},
<span class="pl-s">'news.*'</span>: {<span class="pl-s">'queue'</span>: <span class="pl-s">'news'</span>}
}</pre></div>
<p dir="auto">tasks.py</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery_news.celery import celery_app
@celery_app.task(name='news.task.publish_news', bind=True)
def publish_news(self, *args, **kwargs):
print("publishing news")"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery_news</span>.<span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-s1">celery_app</span>
<span class="pl-en">@<span class="pl-s1">celery_app</span>.<span class="pl-en">task</span>(<span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'news.task.publish_news'</span>, <span class="pl-s1">bind</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">publish_news</span>(<span class="pl-s1">self</span>, <span class="pl-c1">*</span><span class="pl-s1">args</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>):
<span class="pl-en">print</span>(<span class="pl-s">"publishing news"</span>)</pre></div>
<p dir="auto">trigger_flow.py</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery import group, chain
import uuid
from celery.app import Celery
from celery_movies import celeryconfig
broker_url = 'amqp://'
celery_app = Celery('movies')
celery_app.config_from_object(celeryconfig)
celery_app.conf.update(broker_url=broker_url,
result_backend="file:///C:/Users/markb/tmp")
movie_task = celery_app.signature('movies.task.publish_movie', task_id=str(uuid.uuid4()), immutable=True)
news_task = celery_app.signature('news.task.publish_news', task_id=str(uuid.uuid4()), immutable=True)
my_chord = chain(movie_task,
group(movie_task.set(task_id=str(uuid.uuid4())), movie_task.set(task_id=str(uuid.uuid4()))),
news_task)
my_chord.apply_async()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span> <span class="pl-k">import</span> <span class="pl-s1">group</span>, <span class="pl-s1">chain</span>
<span class="pl-k">import</span> <span class="pl-s1">uuid</span>
<span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">app</span> <span class="pl-k">import</span> <span class="pl-v">Celery</span>
<span class="pl-k">from</span> <span class="pl-s1">celery_movies</span> <span class="pl-k">import</span> <span class="pl-s1">celeryconfig</span>
<span class="pl-s1">broker_url</span> <span class="pl-c1">=</span> <span class="pl-s">'amqp://'</span>
<span class="pl-s1">celery_app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'movies'</span>)
<span class="pl-s1">celery_app</span>.<span class="pl-en">config_from_object</span>(<span class="pl-s1">celeryconfig</span>)
<span class="pl-s1">celery_app</span>.<span class="pl-s1">conf</span>.<span class="pl-en">update</span>(<span class="pl-s1">broker_url</span><span class="pl-c1">=</span><span class="pl-s1">broker_url</span>,
<span class="pl-s1">result_backend</span><span class="pl-c1">=</span><span class="pl-s">"file:///C:/Users/markb/tmp"</span>)
<span class="pl-s1">movie_task</span> <span class="pl-c1">=</span> <span class="pl-s1">celery_app</span>.<span class="pl-en">signature</span>(<span class="pl-s">'movies.task.publish_movie'</span>, <span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-en">str</span>(<span class="pl-s1">uuid</span>.<span class="pl-en">uuid4</span>()), <span class="pl-s1">immutable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">news_task</span> <span class="pl-c1">=</span> <span class="pl-s1">celery_app</span>.<span class="pl-en">signature</span>(<span class="pl-s">'news.task.publish_news'</span>, <span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-en">str</span>(<span class="pl-s1">uuid</span>.<span class="pl-en">uuid4</span>()), <span class="pl-s1">immutable</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">my_chord</span> <span class="pl-c1">=</span> <span class="pl-en">chain</span>(<span class="pl-s1">movie_task</span>,
<span class="pl-en">group</span>(<span class="pl-s1">movie_task</span>.<span class="pl-en">set</span>(<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-en">str</span>(<span class="pl-s1">uuid</span>.<span class="pl-en">uuid4</span>())), <span class="pl-s1">movie_task</span>.<span class="pl-en">set</span>(<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-en">str</span>(<span class="pl-s1">uuid</span>.<span class="pl-en">uuid4</span>()))),
<span class="pl-s1">news_task</span>)
<span class="pl-s1">my_chord</span>.<span class="pl-en">apply_async</span>()</pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">I expect my first task to be handled by the Movies worker, then the chord to start executing the two grouped movie tasks via the Movies worker, and then finally the News worker should pick up and execute the news task</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">First task is handled by the Movies worker, but when the Movies worker tries to move on to the Chord (Group + Chain was upgraded to Chord), system chunks on attempting to submit the chord_unlock task.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-07-07 20:01:48,298: WARNING/MainProcess] C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\trace.py:659: RuntimeWarning: Exception raised outside body: Task of kind 'news.task.publish_news' never registered, please make sure it's imported.:
Traceback (most recent call last):
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\cached_property.py", line 70, in __get__
return obj_dict[name]
KeyError: 'type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\trace.py", line 515, in trace_task
priority=task_priority
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 1416, in apply_async
return self.run(tasks, body, args, task_id=task_id, **merged_options)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 1488, in run
max_retries=max_retries,
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\backends\base.py", line 657, in apply_chord
self.fallback_chord_unlock(header_result, body, **kwargs)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\backends\base.py", line 642, in fallback_chord_unlock
queue = body.options.get('queue', getattr(body.type, 'queue', None))
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\kombu\utils\objects.py", line 29, in __get__
return super().__get__(instance, owner)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\cached_property.py", line 74, in __get__
return obj_dict.setdefault(name, self.func(obj))
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 498, in type
return self._type or self.app.tasks[self['task']]
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\registry.py", line 18, in __missing__
raise self.NotRegistered(key)
celery.exceptions.NotRegistered: 'news.task.publish_news'
exc, exc_info.traceback)))
[2021-07-07 20:01:48,300: ERROR/MainProcess] Task movies.task.publish_movie[f734ecc4-d174-41c3-b0dd-96544b9815a3] raised unexpected: Task of kind 'news.task.publish_news' never registered, please make sure it's imported.
Traceback (most recent call last):
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\cached_property.py", line 70, in __get__
return obj_dict[name]
KeyError: 'type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\trace.py", line 515, in trace_task
priority=task_priority
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 1416, in apply_async
return self.run(tasks, body, args, task_id=task_id, **merged_options)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 1488, in run
max_retries=max_retries,
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\backends\base.py", line 657, in apply_chord
self.fallback_chord_unlock(header_result, body, **kwargs)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\backends\base.py", line 642, in fallback_chord_unlock
queue = body.options.get('queue', getattr(body.type, 'queue', None))
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\kombu\utils\objects.py", line 29, in __get__
return super().__get__(instance, owner)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\cached_property.py", line 74, in __get__
return obj_dict.setdefault(name, self.func(obj))
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 498, in type
return self._type or self.app.tasks[self['task']]
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\registry.py", line 18, in __missing__
raise self.NotRegistered(key)
celery.exceptions.NotRegistered: 'news.task.publish_news'"><pre class="notranslate"><code class="notranslate">[2021-07-07 20:01:48,298: WARNING/MainProcess] C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\trace.py:659: RuntimeWarning: Exception raised outside body: Task of kind 'news.task.publish_news' never registered, please make sure it's imported.:
Traceback (most recent call last):
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\cached_property.py", line 70, in __get__
return obj_dict[name]
KeyError: 'type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\trace.py", line 515, in trace_task
priority=task_priority
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 1416, in apply_async
return self.run(tasks, body, args, task_id=task_id, **merged_options)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 1488, in run
max_retries=max_retries,
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\backends\base.py", line 657, in apply_chord
self.fallback_chord_unlock(header_result, body, **kwargs)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\backends\base.py", line 642, in fallback_chord_unlock
queue = body.options.get('queue', getattr(body.type, 'queue', None))
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\kombu\utils\objects.py", line 29, in __get__
return super().__get__(instance, owner)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\cached_property.py", line 74, in __get__
return obj_dict.setdefault(name, self.func(obj))
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 498, in type
return self._type or self.app.tasks[self['task']]
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\registry.py", line 18, in __missing__
raise self.NotRegistered(key)
celery.exceptions.NotRegistered: 'news.task.publish_news'
exc, exc_info.traceback)))
[2021-07-07 20:01:48,300: ERROR/MainProcess] Task movies.task.publish_movie[f734ecc4-d174-41c3-b0dd-96544b9815a3] raised unexpected: Task of kind 'news.task.publish_news' never registered, please make sure it's imported.
Traceback (most recent call last):
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\cached_property.py", line 70, in __get__
return obj_dict[name]
KeyError: 'type'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\trace.py", line 515, in trace_task
priority=task_priority
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 1416, in apply_async
return self.run(tasks, body, args, task_id=task_id, **merged_options)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 1488, in run
max_retries=max_retries,
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\backends\base.py", line 657, in apply_chord
self.fallback_chord_unlock(header_result, body, **kwargs)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\backends\base.py", line 642, in fallback_chord_unlock
queue = body.options.get('queue', getattr(body.type, 'queue', None))
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\kombu\utils\objects.py", line 29, in __get__
return super().__get__(instance, owner)
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\cached_property.py", line 74, in __get__
return obj_dict.setdefault(name, self.func(obj))
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\canvas.py", line 498, in type
return self._type or self.app.tasks[self['task']]
File "C:\Users\markb\.virtualenvs\celery_movies\lib\site-packages\celery\app\registry.py", line 18, in __missing__
raise self.NotRegistered(key)
celery.exceptions.NotRegistered: 'news.task.publish_news'
</code></pre></div>
<p dir="auto">This is because the task signatures have no body.type attribute set so a KeyError ends up being thrown when executing the queue = line (and the priority = line)</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" def fallback_chord_unlock(self, header_result, body, countdown=1,
**kwargs):
kwargs['result'] = [r.as_tuple() for r in header_result]
queue = body.options.get('queue', getattr(body.type, 'queue', None))
priority = body.options.get('priority', getattr(body.type, 'priority', 0))
self.app.tasks['celery.chord_unlock'].apply_async(
(header_result.id, body,), kwargs,
countdown=countdown,
queue=queue,
priority=priority,
)"><pre class="notranslate"> <span class="pl-k">def</span> <span class="pl-en">fallback_chord_unlock</span>(<span class="pl-s1">self</span>, <span class="pl-s1">header_result</span>, <span class="pl-s1">body</span>, <span class="pl-s1">countdown</span><span class="pl-c1">=</span><span class="pl-c1">1</span>,
<span class="pl-c1">**</span><span class="pl-s1">kwargs</span>):
<span class="pl-s1">kwargs</span>[<span class="pl-s">'result'</span>] <span class="pl-c1">=</span> [<span class="pl-s1">r</span>.<span class="pl-en">as_tuple</span>() <span class="pl-k">for</span> <span class="pl-s1">r</span> <span class="pl-c1">in</span> <span class="pl-s1">header_result</span>]
<span class="pl-s1">queue</span> <span class="pl-c1">=</span> <span class="pl-s1">body</span>.<span class="pl-s1">options</span>.<span class="pl-en">get</span>(<span class="pl-s">'queue'</span>, <span class="pl-en">getattr</span>(<span class="pl-s1">body</span>.<span class="pl-s1">type</span>, <span class="pl-s">'queue'</span>, <span class="pl-c1">None</span>))
<span class="pl-s1">priority</span> <span class="pl-c1">=</span> <span class="pl-s1">body</span>.<span class="pl-s1">options</span>.<span class="pl-en">get</span>(<span class="pl-s">'priority'</span>, <span class="pl-en">getattr</span>(<span class="pl-s1">body</span>.<span class="pl-s1">type</span>, <span class="pl-s">'priority'</span>, <span class="pl-c1">0</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">app</span>.<span class="pl-s1">tasks</span>[<span class="pl-s">'celery.chord_unlock'</span>].<span class="pl-en">apply_async</span>(
(<span class="pl-s1">header_result</span>.<span class="pl-s1">id</span>, <span class="pl-s1">body</span>,), <span class="pl-s1">kwargs</span>,
<span class="pl-s1">countdown</span><span class="pl-c1">=</span><span class="pl-s1">countdown</span>,
<span class="pl-s1">queue</span><span class="pl-c1">=</span><span class="pl-s1">queue</span>,
<span class="pl-s1">priority</span><span class="pl-c1">=</span><span class="pl-s1">priority</span>,
)</pre></div>
<p dir="auto">I believe a solution could be the following, but i'm not confident this doesnt impact something else in Celery</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" def fallback_chord_unlock(self, header_result, body, countdown=1,
**kwargs):
kwargs['result'] = [r.as_tuple() for r in header_result]
body_type = body.get('type', None)
queue = body.options.get('queue', getattr(body_type, 'queue', None))
priority = body.options.get('priority', getattr(body_type, 'priority', 0))
self.app.tasks['celery.chord_unlock'].apply_async(
(header_result.id, body,), kwargs,
countdown=countdown,
queue=queue,
priority=priority,
)"><pre class="notranslate"> <span class="pl-k">def</span> <span class="pl-en">fallback_chord_unlock</span>(<span class="pl-s1">self</span>, <span class="pl-s1">header_result</span>, <span class="pl-s1">body</span>, <span class="pl-s1">countdown</span><span class="pl-c1">=</span><span class="pl-c1">1</span>,
<span class="pl-c1">**</span><span class="pl-s1">kwargs</span>):
<span class="pl-s1">kwargs</span>[<span class="pl-s">'result'</span>] <span class="pl-c1">=</span> [<span class="pl-s1">r</span>.<span class="pl-en">as_tuple</span>() <span class="pl-k">for</span> <span class="pl-s1">r</span> <span class="pl-c1">in</span> <span class="pl-s1">header_result</span>]
<span class="pl-s1">body_type</span> <span class="pl-c1">=</span> <span class="pl-s1">body</span>.<span class="pl-en">get</span>(<span class="pl-s">'type'</span>, <span class="pl-c1">None</span>)
<span class="pl-s1">queue</span> <span class="pl-c1">=</span> <span class="pl-s1">body</span>.<span class="pl-s1">options</span>.<span class="pl-en">get</span>(<span class="pl-s">'queue'</span>, <span class="pl-en">getattr</span>(<span class="pl-s1">body_type</span>, <span class="pl-s">'queue'</span>, <span class="pl-c1">None</span>))
<span class="pl-s1">priority</span> <span class="pl-c1">=</span> <span class="pl-s1">body</span>.<span class="pl-s1">options</span>.<span class="pl-en">get</span>(<span class="pl-s">'priority'</span>, <span class="pl-en">getattr</span>(<span class="pl-s1">body_type</span>, <span class="pl-s">'priority'</span>, <span class="pl-c1">0</span>))
<span class="pl-s1">self</span>.<span class="pl-s1">app</span>.<span class="pl-s1">tasks</span>[<span class="pl-s">'celery.chord_unlock'</span>].<span class="pl-en">apply_async</span>(
(<span class="pl-s1">header_result</span>.<span class="pl-s1">id</span>, <span class="pl-s1">body</span>,), <span class="pl-s1">kwargs</span>,
<span class="pl-s1">countdown</span><span class="pl-c1">=</span><span class="pl-s1">countdown</span>,
<span class="pl-s1">queue</span><span class="pl-c1">=</span><span class="pl-s1">queue</span>,
<span class="pl-s1">priority</span><span class="pl-c1">=</span><span class="pl-s1">priority</span>,
)</pre></div> | 0 |
<p dir="auto">Include an option to toggle between whether the search bar retains the last search input or clears when it is brought up consecutively.</p> | <h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide a description of the new feature</h2>
<p dir="auto">I am not sure if it is already possible and I just cannot find it or if it is not possible yet, but I would really like the option to be able to lock the search bar of the PowerToysRun function. So that will open always on the location on the desktop. Now, when I drag the bar down for example and close it, it will have jumped back the next time I open it.</p> | 0 |
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):WINDOWS 7 64</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: r1.11</li>
<li>Python version: 3.7</li>
<li>Installed using virtualenv? pip? conda?: PIP</li>
<li>Bazel version (if compiling from source): 0.18.0</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: not using</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto">I cant build tensorflow because happens some error about@png_archive</p>
<p dir="auto"><code class="notranslate">C:\Users\00\tensorflow>bazel build --config=opt //tensorflow/tools/pip_package: uild_pip_package WARNING: Processed legacy workspace file c:\users\00\tensorflow/tools/bazel.rc. This file will not be processed in the next release of Bazel. Please read https //github.com/bazelbuild/bazel/issues/6319 for further information, including ho to upgrade. WARNING: Option 'experimental_shortened_obj_file_path' is deprecated Loading: Loading: 0 packages loaded INFO: Build options have changed, discarding analysis cache. Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) ERROR: C:/users/00/tensorflow/tensorflow/core/platform/default/build_config/BUI D:188:1: no such package '@png_archive//': Traceback (most recent call last): File "C:/users/00/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/00/tensorflow/third_party/repo.bzl", line 73, in _apply_ atch _execute_and_check_ret_code(ctx, cmd) File "C:/users/00/tensorflow/third_party/repo.bzl", line 52, in _execut _and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'E:\MSYS2\usr\bin\bash.exe -l -c patch -p1 -d C:/users/00/_bazel_00/xjibpket/external/png_archive -i C:/users/00/tenso flow/third_party/png_fix_rpi.patch': Stdout: Stderr: /usr/bin/bash: patch: comando não encontrado and referenced by '//tensorflow/core/platform/default/build_config:png' Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) ERROR: C:/users/00/tensorflow/tensorflow/core/platform/default/build_config/BUI D:188:1: no such package '@png_archive//': Traceback (most recent call last): File "C:/users/00/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/00/tensorflow/third_party/repo.bzl", line 73, in _apply_ atch _execute_and_check_ret_code(ctx, cmd) File "C:/users/00/tensorflow/third_party/repo.bzl", line 52, in _execut _and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'E:\MSYS2\usr\bin\bash.exe -l -c patch -p1 -d C:/users/00/_bazel_00/xjibpket/external/png_archive -i C:/users/00/tenso flow/third_party/png_fix_rpi.patch': Stdout: Stderr: /usr/bin/bash: patch: comando não encontrado and referenced by '//tensorflow/core/platform/default/build_config:png' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' fa led; build aborted: Analysis failed Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) ERROR: C:/users/00/tensorflow/tensorflow/core/platform/default/build_config/BUI D:188:1: no such package '@png_archive//': Traceback (most recent call last): File "C:/users/00/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/00/tensorflow/third_party/repo.bzl", line 73, in _apply_ atch _execute_and_check_ret_code(ctx, cmd) File "C:/users/00/tensorflow/third_party/repo.bzl", line 52, in _execut _and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'E:\MSYS2\usr\bin\bash.exe -l -c patch -p1 -d C:/users/00/_bazel_00/xjibpket/external/png_archive -i C:/users/00/tenso flow/third_party/png_fix_rpi.patch': Stdout: Stderr: /usr/bin/bash: patch: comando não encontrado and referenced by '//tensorflow/core/platform/default/build_config:png' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' fa led; build aborted: Analysis failed INFO: Elapsed time: 9,864s Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) ERROR: C:/users/00/tensorflow/tensorflow/core/platform/default/build_config/BUI D:188:1: no such package '@png_archive//': Traceback (most recent call last): File "C:/users/00/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/00/tensorflow/third_party/repo.bzl", line 73, in _apply_ atch _execute_and_check_ret_code(ctx, cmd) File "C:/users/00/tensorflow/third_party/repo.bzl", line 52, in _execut _and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'E:\MSYS2\usr\bin\bash.exe -l -c patch -p1 -d C:/users/00/_bazel_00/xjibpket/external/png_archive -i C:/users/00/tenso flow/third_party/png_fix_rpi.patch': Stdout: Stderr: /usr/bin/bash: patch: comando não encontrado and referenced by '//tensorflow/core/platform/default/build_config:png' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' fa led; build aborted: Analysis failed INFO: Elapsed time: 9,864s INFO: 0 processes. Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) ERROR: C:/users/00/tensorflow/tensorflow/core/platform/default/build_config/BUI D:188:1: no such package '@png_archive//': Traceback (most recent call last): File "C:/users/00/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/00/tensorflow/third_party/repo.bzl", line 73, in _apply_ atch _execute_and_check_ret_code(ctx, cmd) File "C:/users/00/tensorflow/third_party/repo.bzl", line 52, in _execut _and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'E:\MSYS2\usr\bin\bash.exe -l -c patch -p1 -d C:/users/00/_bazel_00/xjibpket/external/png_archive -i C:/users/00/tenso flow/third_party/png_fix_rpi.patch': Stdout: Stderr: /usr/bin/bash: patch: command not found and referenced by '//tensorflow/core/platform/default/build_config:png' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' fa led; build aborted: Analysis failed INFO: Elapsed time: 9,864s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) ERROR: C:/users/00/tensorflow/tensorflow/core/platform/default/build_config/BUI D:188:1: no such package '@png_archive//': Traceback (most recent call last): File "C:/users/00/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/00/tensorflow/third_party/repo.bzl", line 73, in _apply_ atch _execute_and_check_ret_code(ctx, cmd) File "C:/users/00/tensorflow/third_party/repo.bzl", line 52, in _execut _and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'E:\MSYS2\usr\bin\bash.exe -l -c patch -p1 -d C:/users/00/_bazel_00/xjibpket/external/png_archive -i C:/users/00/tenso flow/third_party/png_fix_rpi.patch': Stdout: Stderr: /usr/bin/bash: patch: command not found and referenced by '//tensorflow/core/platform/default/build_config:png' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' fa led; build aborted: Analysis failed INFO: Elapsed time: 9,864s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) ERROR: C:/users/00/tensorflow/tensorflow/core/platform/default/build_config/BUI D:188:1: no such package '@png_archive//': Traceback (most recent call last): File "C:/users/00/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/00/tensorflow/third_party/repo.bzl", line 73, in _apply_ atch _execute_and_check_ret_code(ctx, cmd) File "C:/users/00/tensorflow/third_party/repo.bzl", line 52, in _execut _and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'E:\MSYS2\usr\bin\bash.exe -l -c patch -p1 -d C:/users/00/_bazel_00/xjibpket/external/png_archive -i C:/users/00/tenso flow/third_party/png_fix_rpi.patch': Stdout: Stderr: /usr/bin/bash: patch: command not found and referenced by '//tensorflow/core/platform/default/build_config:png' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' fa led; build aborted: Analysis failed INFO: Elapsed time: 9,864s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) Analyzing: target //tensorflow/tools/pip_package:build_pip_package (0 packages oaded) ERROR: C:/users/00/tensorflow/tensorflow/core/platform/default/build_config/BUI D:188:1: no such package '@png_archive//': Traceback (most recent call last): File "C:/users/00/tensorflow/third_party/repo.bzl", line 106 _apply_patch(ctx, ctx.attr.patch_file) File "C:/users/00/tensorflow/third_party/repo.bzl", line 73, in _apply_ atch _execute_and_check_ret_code(ctx, cmd) File "C:/users/00/tensorflow/third_party/repo.bzl", line 52, in _execut _and_check_ret_code fail("Non-zero return code({1}) when ...)) Non-zero return code(127) when executing 'E:\MSYS2\usr\bin\bash.exe -l -c patch -p1 -d C:/users/00/_bazel_00/xjibpket/external/png_archive -i C:/users/00/tenso flow/third_party/png_fix_rpi.patch': Stdout: Stderr: /usr/bin/bash: patch: command not found and referenced by '//tensorflow/core/platform/default/build_config:png' ERROR: Analysis of target '//tensorflow/tools/pip_package:build_pip_package' fa led; build aborted: Analysis failed INFO: Elapsed time: 9,864s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) </code></p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li>
<p dir="auto"><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: Yes</p>
</li>
<li>
<p dir="auto"><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Linux Ubuntu 16.04.5 LTS</p>
</li>
<li>
<p dir="auto"><strong>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy)</strong>: N/A</p>
</li>
<li>
<p dir="auto"><strong>TensorFlow installed from (source or binary)</strong>: binary</p>
</li>
<li>
<p dir="auto"><strong>TensorFlow version (use command below)</strong>: v1.10.1-0-g4dcfddc5d1 1.10.1</p>
</li>
<li>
<p dir="auto"><strong>Python version</strong>: 3.6.0</p>
</li>
<li>
<p dir="auto"><strong>Bazel version (if compiling from source)</strong>: N/A</p>
</li>
<li>
<p dir="auto"><strong>CUDA/cuDNN version</strong>:<br>
CUDA Version 9.0.176<br>
cudnn: 7.1.4</p>
</li>
<li>
<p dir="auto"><strong>GPU model and memory</strong>:<br>
NVIDIA GeForce GTX 1080 Ti<br>
11GB</p>
</li>
<li>
<p dir="auto"><strong>Exact command to reproduce</strong>:<br>
<code class="notranslate">python test.py</code></p>
</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto"><strong>Description</strong><br>
If 2 instances of <code class="notranslate">tensorflow.contrib.cudnn_rnn.CudnnLSTM</code> are built via <code class="notranslate">build()</code> method they can not be saved together in a checkpoint.</p>
<p dir="auto"><strong>Bug borders</strong><br>
If instances are built implicitly in <code class="notranslate">__call__()</code>, no exceptions are thrown. Next code executes OK.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import os
import tensorflow as tf
from tensorflow.contrib.cudnn_rnn import CudnnLSTM as CudnnLSTM
inp = tf.zeros([10, 32, 100])
lstm1 = CudnnLSTM(1, 128)
lstm2 = CudnnLSTM(2, 256)
lstm1(inp)
lstm2(inp)
saver = tf.train.Saver()
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
save_path = os.path.join('test_cudnn_lstm_save', '1')
if not os.path.exists(save_path):
os.makedirs(os.path.join(save_path))
saver.save(sess, save_path)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">cudnn_rnn</span> <span class="pl-k">import</span> <span class="pl-v">CudnnLSTM</span> <span class="pl-k">as</span> <span class="pl-v">CudnnLSTM</span>
<span class="pl-s1">inp</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">zeros</span>([<span class="pl-c1">10</span>, <span class="pl-c1">32</span>, <span class="pl-c1">100</span>])
<span class="pl-s1">lstm1</span> <span class="pl-c1">=</span> <span class="pl-v">CudnnLSTM</span>(<span class="pl-c1">1</span>, <span class="pl-c1">128</span>)
<span class="pl-s1">lstm2</span> <span class="pl-c1">=</span> <span class="pl-v">CudnnLSTM</span>(<span class="pl-c1">2</span>, <span class="pl-c1">256</span>)
<span class="pl-en">lstm1</span>(<span class="pl-s1">inp</span>)
<span class="pl-en">lstm2</span>(<span class="pl-s1">inp</span>)
<span class="pl-s1">saver</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">Saver</span>()
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>:
<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>())
<span class="pl-s1">save_path</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s">'test_cudnn_lstm_save'</span>, <span class="pl-s">'1'</span>)
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">exists</span>(<span class="pl-s1">save_path</span>):
<span class="pl-s1">os</span>.<span class="pl-en">makedirs</span>(<span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s1">save_path</span>))
<span class="pl-s1">saver</span>.<span class="pl-en">save</span>(<span class="pl-s1">sess</span>, <span class="pl-s1">save_path</span>)</pre></div>
<p dir="auto">Also if only 1 instance is built using <code class="notranslate">build()</code> or if only 1 instance is passed to saver in <code class="notranslate">var_list</code> (see exсerpt below), save op is executed without exceptions.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="saver = tf.train.Saver([lstm1.saveable])"><pre class="notranslate"><span class="pl-s1">saver</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">Saver</span>([<span class="pl-s1">lstm1</span>.<span class="pl-s1">saveable</span>])</pre></div>
<p dir="auto"><strong>Relevance</strong><br>
I ran into this problem when tried to train my net on several GPUs. Shared CudnnLSTM params are built on CPU, while computations are made on GPUs.</p>
<p dir="auto">Thank you in advance for any help!</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Code to reproduce the bug</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import os
import tensorflow as tf
from tensorflow.contrib.cudnn_rnn import CudnnLSTM as CudnnLSTM
inp = tf.zeros([10, 32, 100])
lstm1 = CudnnLSTM(1, 128)
lstm2 = CudnnLSTM(2, 256)
lstm1.build(inp.shape)
lstm2.build(inp.shape)
saver = tf.train.Saver()
with tf.Session() as sess:
sess.run(tf.global_variables_initializer())
save_path = os.path.join('test_cudnn_lstm_save', '1')
if not os.path.exists(save_path):
os.makedirs(os.path.join(save_path))
saver.save(sess, save_path)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">os</span>
<span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-k">from</span> <span class="pl-s1">tensorflow</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">cudnn_rnn</span> <span class="pl-k">import</span> <span class="pl-v">CudnnLSTM</span> <span class="pl-k">as</span> <span class="pl-v">CudnnLSTM</span>
<span class="pl-s1">inp</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">zeros</span>([<span class="pl-c1">10</span>, <span class="pl-c1">32</span>, <span class="pl-c1">100</span>])
<span class="pl-s1">lstm1</span> <span class="pl-c1">=</span> <span class="pl-v">CudnnLSTM</span>(<span class="pl-c1">1</span>, <span class="pl-c1">128</span>)
<span class="pl-s1">lstm2</span> <span class="pl-c1">=</span> <span class="pl-v">CudnnLSTM</span>(<span class="pl-c1">2</span>, <span class="pl-c1">256</span>)
<span class="pl-s1">lstm1</span>.<span class="pl-en">build</span>(<span class="pl-s1">inp</span>.<span class="pl-s1">shape</span>)
<span class="pl-s1">lstm2</span>.<span class="pl-en">build</span>(<span class="pl-s1">inp</span>.<span class="pl-s1">shape</span>)
<span class="pl-s1">saver</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-s1">train</span>.<span class="pl-v">Saver</span>()
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">sess</span>:
<span class="pl-s1">sess</span>.<span class="pl-en">run</span>(<span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>())
<span class="pl-s1">save_path</span> <span class="pl-c1">=</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s">'test_cudnn_lstm_save'</span>, <span class="pl-s">'1'</span>)
<span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">exists</span>(<span class="pl-s1">save_path</span>):
<span class="pl-s1">os</span>.<span class="pl-en">makedirs</span>(<span class="pl-s1">os</span>.<span class="pl-s1">path</span>.<span class="pl-en">join</span>(<span class="pl-s1">save_path</span>))
<span class="pl-s1">saver</span>.<span class="pl-en">save</span>(<span class="pl-s1">sess</span>, <span class="pl-s1">save_path</span>)</pre></div>
<p dir="auto">Here is a traceback</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2018-10-04 12:59:46.556727: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-10-04 12:59:46.635329: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-10-04 12:59:46.635669: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1405] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.582
pciBusID: 0000:01:00.0
totalMemory: 10.92GiB freeMemory: 10.01GiB
2018-10-04 12:59:46.635682: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1484] Adding visible gpu devices: 0
2018-10-04 12:59:46.841898: I tensorflow/core/common_runtime/gpu/gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-10-04 12:59:46.841930: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0
2018-10-04 12:59:46.841937: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 0: N
2018-10-04 12:59:46.842099: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9673 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:01:00.0, compute capability: 6.1)
2018-10-04 12:59:47.465382: W tensorflow/core/framework/op_kernel.cc:1275] OP_REQUIRES failed at save_restore_v2_ops.cc:134 : Invalid argument: Adding duplicate key: rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
Traceback (most recent call last):
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1278, in _do_call
return fn(*args)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1263, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1350, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Adding duplicate key: rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
[[Node: save/SaveV2 = SaveV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/SaveV2/tensor_names, save/SaveV2/shape_and_slices, cudnn_lstm/opaque_kernel/_1, transpose/_3, concat_5/_5, cudnn_lstm_1/opaque_kernel/_7, transpose_1/_9, transpose_2/_11, concat_11/_13, concat_17/_15)]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 17, in <module>
saver.save(sess, save_path)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1620, in save
{self.saver_def.filename_tensor_name: checkpoint_file})
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 877, in run
run_metadata_ptr)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1100, in _run
feed_dict_tensor, options, run_metadata)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1272, in _do_run
run_metadata)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1291, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Adding duplicate key: rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
[[Node: save/SaveV2 = SaveV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/SaveV2/tensor_names, save/SaveV2/shape_and_slices, cudnn_lstm/opaque_kernel/_1, transpose/_3, concat_5/_5, cudnn_lstm_1/opaque_kernel/_7, transpose_1/_9, transpose_2/_11, concat_11/_13, concat_17/_15)]]
Caused by op 'save/SaveV2', defined at:
File "test.py", line 11, in <module>
saver = tf.train.Saver()
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1281, in __init__
self.build()
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1293, in build
self._build(self._filename, build_save=True, build_restore=True)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1330, in _build
build_save=build_save, build_restore=build_restore)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 775, in _build_internal
save_tensor = self._AddSaveOps(filename_tensor, saveables)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 275, in _AddSaveOps
save = self.save_op(filename_tensor, saveables)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 193, in save_op
tensors)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/ops/gen_io_ops.py", line 1687, in save_v2
shape_and_slices=shape_and_slices, tensors=tensors, name=name)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 454, in new_func
return func(*args, **kwargs)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3155, in create_op
op_def=op_def)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1717, in __init__
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): Adding duplicate key: rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
[[Node: save/SaveV2 = SaveV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/SaveV2/tensor_names, save/SaveV2/shape_and_slices, cudnn_lstm/opaque_kernel/_1, transpose/_3, concat_5/_5, cudnn_lstm_1/opaque_kernel/_7, transpose_1/_9, transpose_2/_11, concat_11/_13, concat_17/_15)]]"><pre class="notranslate"><code class="notranslate">2018-10-04 12:59:46.556727: I tensorflow/core/platform/cpu_feature_guard.cc:141] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
2018-10-04 12:59:46.635329: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:897] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-10-04 12:59:46.635669: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1405] Found device 0 with properties:
name: GeForce GTX 1080 Ti major: 6 minor: 1 memoryClockRate(GHz): 1.582
pciBusID: 0000:01:00.0
totalMemory: 10.92GiB freeMemory: 10.01GiB
2018-10-04 12:59:46.635682: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1484] Adding visible gpu devices: 0
2018-10-04 12:59:46.841898: I tensorflow/core/common_runtime/gpu/gpu_device.cc:965] Device interconnect StreamExecutor with strength 1 edge matrix:
2018-10-04 12:59:46.841930: I tensorflow/core/common_runtime/gpu/gpu_device.cc:971] 0
2018-10-04 12:59:46.841937: I tensorflow/core/common_runtime/gpu/gpu_device.cc:984] 0: N
2018-10-04 12:59:46.842099: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1097] Created TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 9673 MB memory) -> physical GPU (device: 0, name: GeForce GTX 1080 Ti, pci bus id: 0000:01:00.0, compute capability: 6.1)
2018-10-04 12:59:47.465382: W tensorflow/core/framework/op_kernel.cc:1275] OP_REQUIRES failed at save_restore_v2_ops.cc:134 : Invalid argument: Adding duplicate key: rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
Traceback (most recent call last):
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1278, in _do_call
return fn(*args)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1263, in _run_fn
options, feed_dict, fetch_list, target_list, run_metadata)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1350, in _call_tf_sessionrun
run_metadata)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Adding duplicate key: rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
[[Node: save/SaveV2 = SaveV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/SaveV2/tensor_names, save/SaveV2/shape_and_slices, cudnn_lstm/opaque_kernel/_1, transpose/_3, concat_5/_5, cudnn_lstm_1/opaque_kernel/_7, transpose_1/_9, transpose_2/_11, concat_11/_13, concat_17/_15)]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "test.py", line 17, in <module>
saver.save(sess, save_path)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1620, in save
{self.saver_def.filename_tensor_name: checkpoint_file})
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 877, in run
run_metadata_ptr)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1100, in _run
feed_dict_tensor, options, run_metadata)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1272, in _do_run
run_metadata)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1291, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Adding duplicate key: rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
[[Node: save/SaveV2 = SaveV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/SaveV2/tensor_names, save/SaveV2/shape_and_slices, cudnn_lstm/opaque_kernel/_1, transpose/_3, concat_5/_5, cudnn_lstm_1/opaque_kernel/_7, transpose_1/_9, transpose_2/_11, concat_11/_13, concat_17/_15)]]
Caused by op 'save/SaveV2', defined at:
File "test.py", line 11, in <module>
saver = tf.train.Saver()
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1281, in __init__
self.build()
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1293, in build
self._build(self._filename, build_save=True, build_restore=True)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 1330, in _build
build_save=build_save, build_restore=build_restore)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 775, in _build_internal
save_tensor = self._AddSaveOps(filename_tensor, saveables)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 275, in _AddSaveOps
save = self.save_op(filename_tensor, saveables)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/training/saver.py", line 193, in save_op
tensors)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/ops/gen_io_ops.py", line 1687, in save_v2
shape_and_slices=shape_and_slices, tensors=tensors, name=name)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 787, in _apply_op_helper
op_def=op_def)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/util/deprecation.py", line 454, in new_func
return func(*args, **kwargs)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 3155, in create_op
op_def=op_def)
File "/home/anton/dpenv/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1717, in __init__
self._traceback = tf_stack.extract_stack()
InvalidArgumentError (see above for traceback): Adding duplicate key: rnn/multi_rnn_cell/cell_0/cudnn_compatible_lstm_cell/kernel
[[Node: save/SaveV2 = SaveV2[dtypes=[DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT, DT_FLOAT], _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_save/Const_0_0, save/SaveV2/tensor_names, save/SaveV2/shape_and_slices, cudnn_lstm/opaque_kernel/_1, transpose/_3, concat_5/_5, cudnn_lstm_1/opaque_kernel/_7, transpose_1/_9, transpose_2/_11, concat_11/_13, concat_17/_15)]]
</code></pre></div> | 0 |
<p dir="auto"><a href="https://www.google.com/design/spec/patterns/selection.html#selection-text-selection" rel="nofollow">The spec</a> calls for a menu in the "cut/copy/paste" toolbar with additional options for search/share/translate. It's unclear to me whether these 3 extra options are fixed, or whether the application can decide which options to provide.</p>
<p dir="auto">In any case, we have no support for the <code class="notranslate">more</code> menu. We'll need to add it, along with the transition animation.</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13853/37281911-8c8ce9ce-262d-11e8-8330-ccc9e6547b0c.png"><img src="https://user-images.githubusercontent.com/13853/37281911-8c8ce9ce-262d-11e8-8330-ccc9e6547b0c.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">The command we use in CI</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="msbuild PowerToys.sln /p:Configuration=Release /p:Platform=x64"><pre class="notranslate"><code class="notranslate">msbuild PowerToys.sln /p:Configuration=Release /p:Platform=x64
</code></pre></div>
<p dir="auto">duplicates some resources used by PT Run and ColorPicker, saving them in <code class="notranslate">x64\Release\</code> instead of just saving them in <code class="notranslate">x64\Release\modules\%module_name%\</code></p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">I run an ultra-wide monitor and have previously used another utility to allow me to create custom Aero Snap-like functionality. That utility has what I can best describe as overlapping zones, such that I'd have the ability to do what FancyZones would describe as 2 columns (each 50% wide) as well as a 3 column Priority view (25%, 50%, 25%) simultaneously. The separation between where I drug and the size of the zone allowed this functionality to exist. To accomplish this in FancyZones I'm finding myself regularly switching my layout between 2 and 3 columns which I found tedious. I attempted to create a custom layout, but with the overlapping zones there was no way to land in the zones that were behind another.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Consider separation of the drag target and the zone definition to allow for zones to be defined as overlapping one another so that more complex layouts can be created.</p> | 0 |
<p dir="auto">Dropdown menu is not completely visible on mobile. I tried adding z-index but it still doesn't.<br>
Here is the JSFiddle: <a href="http://jsfiddle.net/HdgtL/3/" rel="nofollow">http://jsfiddle.net/HdgtL/3/</a></p> | <p dir="auto">If i put a dropdown inside a table cell, and i put the table in a div.table-responsive, and I put everything inside a panel, the dropdown of the last row is invisible due to y-overflow: hidden; at low resolutions</p>
<p dir="auto">If I manually set the y-overflow to scroll, the problem is resolved in Chrome (desktop), but my Android browser, even though showing a vertical scroll bar upon opening the dropdown, doesn't want to scroll down to show the options.</p> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
PowerToys version: v0.19.0
PowerToy module for which you are reporting the bug (if applicable): installer"><pre class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
PowerToys version: v0.19.0
PowerToy module for which you are reporting the bug (if applicable): installer
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">This has occurred on both v0.18.2 and v0.19.0<br>
When installing the program, it pauses about 2/3 through the validation phase near completion, then pops up a request to close one or more applications before it can complete. On 18.2 it requested closure of Outlook, Teams and Nitro Pro. On 19.0 it requested closure of Teams. I had to go to Task Manager/Details and close all Teams processes, because closing the application in the Taskbar did not suffice to clear the open/running processes in my runtime environment.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Expect program to install without requiring manual closure of other, open apps.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">installer pauses and waits on me with a Retry button for requested apps to be closed.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/67659703/86176382-766a1a00-baea-11ea-9845-362d83120ec7.jpg"><img src="https://user-images.githubusercontent.com/67659703/86176382-766a1a00-baea-11ea-9845-362d83120ec7.jpg" alt="pt19-closeteams" style="max-width: 100%;"></a></p>
<h1 dir="auto">Screenshots</h1> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.19041.264
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug: auto update"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.19041.264
PowerToys version: v0.18.1
PowerToy module for which you are reporting the bug: auto update
</code></pre></div>
<p dir="auto">The update program requires to disable the Microsoft Store, Microsoft Text Input Application, Mail which are run at background. I can manually kill the process for Microsoft Store and Mail but Microsoft Text Input Application. However, I can just ignore this to continue. Just unsure does this effect anything.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10762296/82691374-aa603e80-9c12-11ea-8461-a1dbe9a3f539.png"><img src="https://user-images.githubusercontent.com/10762296/82691374-aa603e80-9c12-11ea-8461-a1dbe9a3f539.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">Currently, we are able to upload individual file using <code class="notranslate">setInputFiles</code>method . Similarly, we are looking for a method to upload a folder like <code class="notranslate">setInputFolder</code>. This will be useful for many projects.<br>
Please let me know if further information is required.</p> | <p dir="auto">The following test fails in Chromium:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" const response = await page.goto(server.EMPTY_PAGE);
expect(response.ok()).toBe(true);
expect(response.request().headers()['referer']).toBe(server.EMPTY_PAGE);"><pre class="notranslate"> <span class="pl-k">const</span> <span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-c1">EMPTY_PAGE</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-en">ok</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">toBe</span><span class="pl-kos">(</span><span class="pl-c1">true</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-en">request</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">headers</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">[</span><span class="pl-s">'referer'</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-c1">EMPTY_PAGE</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The headers look like this:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
{
"name": "Upgrade-Insecure-Requests",
"value": "1"
},
{
"name": "User-Agent",
"value": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/96.0.4645.0 Safari/537.36"
},
{
"name": "referer",
"value": "http://localhost:8907/empty.html"
},
{
"name": "Referer",
"value": "http://localhost:8907/empty.html"
}
]"><pre class="notranslate">[
{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Upgrade-Insecure-Requests<span class="pl-pds">"</span></span>,
<span class="pl-ent">"value"</span>: <span class="pl-s"><span class="pl-pds">"</span>1<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>User-Agent<span class="pl-pds">"</span></span>,
<span class="pl-ent">"value"</span>: <span class="pl-s"><span class="pl-pds">"</span>Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/96.0.4645.0 Safari/537.36<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>referer<span class="pl-pds">"</span></span>,
<span class="pl-ent">"value"</span>: <span class="pl-s"><span class="pl-pds">"</span>http://localhost:8907/empty.html<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Referer<span class="pl-pds">"</span></span>,
<span class="pl-ent">"value"</span>: <span class="pl-s"><span class="pl-pds">"</span>http://localhost:8907/empty.html<span class="pl-pds">"</span></span>
}
]</pre></div> | 0 |
<p dir="auto">I don't know if its a known issue but <code class="notranslate">*if</code> and <code class="notranslate">switch</code> are not working in dart2js (work on Dartium as expected), Chrome console throws an Invalid argument(s) error.</p>
<p dir="auto">example app:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:angular2/angular2.dart';
// These imports will go away soon:
import 'package:angular2/src/reflection/reflection.dart' show reflector;
import 'package:angular2/src/reflection/reflection_capabilities.dart'
show ReflectionCapabilities;
void main() {
// Temporarily needed.
reflector.reflectionCapabilities = new ReflectionCapabilities();
bootstrap(App);
}
@Component(selector: 'app')
@View(template: '<p *if="show">test</p>', directives: const [If])
class App {
bool show = true;
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:angular2/angular2.dart'</span>;
<span class="pl-c">// These imports will go away soon:</span>
<span class="pl-k">import</span> <span class="pl-s">'package:angular2/src/reflection/reflection.dart'</span> <span class="pl-k">show</span> reflector;
<span class="pl-k">import</span> <span class="pl-s">'package:angular2/src/reflection/reflection_capabilities.dart'</span>
<span class="pl-k">show</span> ReflectionCapabilities;
<span class="pl-k">void</span> <span class="pl-en">main</span>() {
<span class="pl-c">// Temporarily needed.</span>
reflector.reflectionCapabilities <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-c1">ReflectionCapabilities</span>();
<span class="pl-en">bootstrap</span>(<span class="pl-c1">App</span>);
}
<span class="pl-k">@Component</span>(selector<span class="pl-k">:</span> <span class="pl-s">'app'</span>)
<span class="pl-k">@View</span>(template<span class="pl-k">:</span> <span class="pl-s">'<p *if="show">test</p>'</span>, directives<span class="pl-k">:</span> <span class="pl-k">const</span> [<span class="pl-c1">If</span>])
<span class="pl-k">class</span> <span class="pl-c1">App</span> {
<span class="pl-c1">bool</span> show <span class="pl-k">=</span> <span class="pl-c1">true</span>;
}</pre></div>
<p dir="auto">Produces the following error:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Uncaught Uncaught Error: Invalid argument(s): "if" is not a valid (qualified) symbol name
Stack Trace:
Invalid argument(s): "if" is not a valid (qualified) symbol name
at dart.wrapException (http://localhost:63342/ng2_bug_if/web/main.dart.js:3963:15)
at dart.Symbol.static.Symbol_validatePublicSymbol (http://localhost:63342/ng2_bug_if/web/main.dart.js:23817:17)
at ReflectionCapabilities.dart.ReflectionCapabilities.setter$1 (http://localhost:63342/ng2_bug_if/web/main.dart.js:87285:73)
at Reflector.dart.Reflector.setter$1 (http://localhost:63342/ng2_bug_if/web/main.dart.js:17795:44)
at dart.setterFactory (http://localhost:63342/ng2_bug_if/web/main.dart.js:20821:71)
at ElementBinderBuilder.dart.ElementBinderBuilder.bindProperty$2 (http://localhost:63342/ng2_bug_if/web/main.dart.js:21158:53)
at ViewSplitter.dart.ViewSplitter._parseTemplateBindings$2 (http://localhost:63342/ng2_bug_if/web/main.dart.js:19214:44)
at ViewSplitter.dart.ViewSplitter.process$3 (http://localhost:63342/ng2_bug_if/web/main.dart.js:19181:16)
at CompileControl.dart.CompileControl.internalProcess$4 (http://localhost:63342/ng2_bug_if/web/main.dart.js:18026:14)
at CompilePipeline.<anonymous> (http://localhost:63342/ng2_bug_if/web/main.dart.js:18186:60)"><pre class="notranslate">Uncaught <span class="pl-v">Uncaught</span> <span class="pl-v">Error</span>: <span class="pl-v">Invalid</span> <span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s1">s</span><span class="pl-kos">)</span>: <span class="pl-s">"if"</span> <span class="pl-s1">is</span> <span class="pl-s1">not</span> <span class="pl-s1">a</span> <span class="pl-en">valid</span> <span class="pl-kos">(</span><span class="pl-s1">qualified</span><span class="pl-kos">)</span> <span class="pl-s1">symbol</span> <span class="pl-s1">name</span>
Stack <span class="pl-v">Trace</span>:
<span class="pl-v">Invalid</span> <span class="pl-en">argument</span><span class="pl-kos">(</span><span class="pl-s1">s</span><span class="pl-kos">)</span>: <span class="pl-s">"if"</span> <span class="pl-s1">is</span> <span class="pl-s1">not</span> <span class="pl-s1">a</span> <span class="pl-en">valid</span> <span class="pl-kos">(</span><span class="pl-s1">qualified</span><span class="pl-kos">)</span> <span class="pl-s1">symbol</span> <span class="pl-s1">name</span>
<span class="pl-s1">at</span> <span class="pl-s1">dart</span><span class="pl-kos">.</span><span class="pl-c1">wrapException</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:3963:15)</span>
<span class="pl-s1">at</span> <span class="pl-s1">dart</span><span class="pl-kos">.</span><span class="pl-c1">Symbol</span><span class="pl-kos">.</span><span class="pl-c1">static</span><span class="pl-kos">.</span><span class="pl-c1">Symbol_validatePublicSymbol</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:23817:17)</span>
<span class="pl-s1">at</span> <span class="pl-v">ReflectionCapabilities</span><span class="pl-kos">.</span><span class="pl-c1">dart</span><span class="pl-kos">.</span><span class="pl-c1">ReflectionCapabilities</span><span class="pl-kos">.</span><span class="pl-c1">setter$1</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:87285:73)</span>
<span class="pl-s1">at</span> <span class="pl-v">Reflector</span><span class="pl-kos">.</span><span class="pl-c1">dart</span><span class="pl-kos">.</span><span class="pl-c1">Reflector</span><span class="pl-kos">.</span><span class="pl-c1">setter$1</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:17795:44)</span>
<span class="pl-s1">at</span> <span class="pl-s1">dart</span><span class="pl-kos">.</span><span class="pl-c1">setterFactory</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:20821:71)</span>
<span class="pl-s1">at</span> <span class="pl-v">ElementBinderBuilder</span><span class="pl-kos">.</span><span class="pl-c1">dart</span><span class="pl-kos">.</span><span class="pl-c1">ElementBinderBuilder</span><span class="pl-kos">.</span><span class="pl-c1">bindProperty$2</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:21158:53)</span>
<span class="pl-s1">at</span> <span class="pl-v">ViewSplitter</span><span class="pl-kos">.</span><span class="pl-c1">dart</span><span class="pl-kos">.</span><span class="pl-c1">ViewSplitter</span><span class="pl-kos">.</span><span class="pl-c1">_parseTemplateBindings$2</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:19214:44)</span>
<span class="pl-s1">at</span> <span class="pl-v">ViewSplitter</span><span class="pl-kos">.</span><span class="pl-c1">dart</span><span class="pl-kos">.</span><span class="pl-c1">ViewSplitter</span><span class="pl-kos">.</span><span class="pl-c1">process$3</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:19181:16)</span>
<span class="pl-s1">at</span> <span class="pl-v">CompileControl</span><span class="pl-kos">.</span><span class="pl-c1">dart</span><span class="pl-kos">.</span><span class="pl-c1">CompileControl</span><span class="pl-kos">.</span><span class="pl-c1">internalProcess$4</span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:18026:14)</span>
<span class="pl-s1">at</span> <span class="pl-v">CompilePipeline</span><span class="pl-kos">.</span><span class="pl-c1"><</span><span class="pl-s1">anonymous</span><span class="pl-c1">></span> <span class="pl-kos">(</span><span class="pl-s1">http</span>:<span class="pl-c">//localhost:63342/ng2_bug_if/web/main.dart.js:18186:60)</span></pre></div>
<p dir="auto">Tested on alpha 20</p> | <p dir="auto">This came up originally in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="67193459" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/1267" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/1267/hovercard" href="https://github.com/angular/angular/pull/1267">#1267</a> where the <code class="notranslate">Compiler</code> was requesting a setter for <code class="notranslate">if</code> from the template defined on App in <a href="https://github.com/angular/angular/blob/master/modules/benchmarks/src/naive_infinite_scroll/app.js#L94">this file</a>.</p>
<p dir="auto">Flagging <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yjbanov/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yjbanov">@yjbanov</a> here since he has more context than I do.</p> | 1 |
<p dir="auto">Run once pods are not well accounted for by the current quota system, because run-always pods can absorb the quota and prevent jobs from running (builds, scheduled tasks). We discussed today a "pods per unit time" measure with "max run once pods" that allow for users to run short jobs in parallel or over a longer time.</p>
<p dir="auto">Since run always pods are typically "run up to N pods that run 24 hours a day", it's natural to want to state "run up to 3 pods at most 6 hours a day". Whether that is 6 hours for one pod or 2 hours for each of 3, the end metric would be applied. This may be continually refilling (useful).</p> | <p dir="auto">This is, essentially, a deliberate duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170806253" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30495" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30495/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30495">#30495</a>, which was closed by the requester before the underlying issue was resolved. In short, current versions of Kubernetes (I'm using 1.3.7) fail when using <code class="notranslate">kube-up.sh</code> to create a cluster under AWS, but incorrectly report success. This leaves some AWS resources (VPCs, security groups, etc.) in place, but with no actual nodes.</p>
<p dir="auto">The relevant bit of output is as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="./cluster/../cluster/../cluster/aws/../../cluster/common.sh: line 528: KUBE_MANIFESTS_TAR_URL: unbound variable
Kubernetes binaries at /Users/jon/kubernetes/cluster/
You may want to add this directory to your PATH in $HOME/.profile
Installation successful!"><pre class="notranslate"><code class="notranslate">./cluster/../cluster/../cluster/aws/../../cluster/common.sh: line 528: KUBE_MANIFESTS_TAR_URL: unbound variable
Kubernetes binaries at /Users/jon/kubernetes/cluster/
You may want to add this directory to your PATH in $HOME/.profile
Installation successful!
</code></pre></div>
<p dir="auto">A viable workaround has been described in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="170806253" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/30495" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/30495/hovercard" href="https://github.com/kubernetes/kubernetes/issues/30495">#30495</a> (I believe this is why the original author closed the issue), but the issue itself has not actually been fixed. Please accept my apologies for the goofy paperwork shenanigans here, but I did want to make sure the issue didn't get lost.</p> | 0 |
<h2 dir="auto">Environment info</h2>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version:3.4.0</li>
<li>Platform:linux</li>
<li>Python version:3.6</li>
<li>PyTorch version (GPU?):1.6 cuda10</li>
<li>Tensorflow version (GPU?):</li>
<li>Using GPU in script?:</li>
<li>Using distributed or parallel set-up in script?:</li>
</ul>
<p dir="auto">When I try to train roberta-wwm from scratch for my dataset , I get this error when I follow transformers' run_mlm_wwm.py code</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="!python run_mlm_wwm.py --model_name_or_path hfl/chinese-roberta-wwm-ext --train_file ../../../../pretrain_data/pretrain_train.txt --validation_file ../../../../pretrain_data/pretrain_val.txt --train_ref_file ../../../../pretrain_data/ref_train.txt --validation_ref_file ../../../../pretrain_data/ref_val.txt --do_train --do_eval --output_dir ./output"><pre class="notranslate"><code class="notranslate">!python run_mlm_wwm.py --model_name_or_path hfl/chinese-roberta-wwm-ext --train_file ../../../../pretrain_data/pretrain_train.txt --validation_file ../../../../pretrain_data/pretrain_val.txt --train_ref_file ../../../../pretrain_data/ref_train.txt --validation_ref_file ../../../../pretrain_data/ref_val.txt --do_train --do_eval --output_dir ./output
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="All the weights of BertForMaskedLM were initialized from the model checkpoint at hfl/chinese-roberta-wwm-ext.
If your task is similar to the task the model of the checkpoint was trained on, you can already use BertForMaskedLM for predictions without further training.
Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.
Traceback (most recent call last):
File "run_mlm_wwm.py", line 333, in <module>
main()
File "run_mlm_wwm.py", line 274, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/usr/local/lib/python3.6/dist-packages/datasets/dataset_dict.py", line 300, in map
for k, dataset in self.items()
File "/usr/local/lib/python3.6/dist-packages/datasets/dataset_dict.py", line 300, in <dictcomp>
for k, dataset in self.items()
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 1256, in map
update_data=update_data,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 158, in wrapper
self._fingerprint, transform, kwargs_for_fingerprint
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 105, in update_fingerprint
hasher.update(transform_args[key])
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 57, in update
self.m.update(self.hash(value).encode("utf-8"))
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 53, in hash
return cls.hash_default(value)
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 46, in hash_default
return cls.hash_bytes(dumps(value))
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 367, in dumps
dump(obj, file)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 339, in dump
Pickler(file, recurse=True).dump(obj)
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/usr/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 1447, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/usr/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 1178, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/usr/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/usr/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/usr/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 1374, in save_type
obj.__bases__, _dict), obj=obj)
File "/usr/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/usr/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/usr/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/usr/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/usr/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/usr/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/usr/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
**_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union**"><pre class="notranslate"><code class="notranslate">All the weights of BertForMaskedLM were initialized from the model checkpoint at hfl/chinese-roberta-wwm-ext.
If your task is similar to the task the model of the checkpoint was trained on, you can already use BertForMaskedLM for predictions without further training.
Asking to truncate to max_length but no maximum length is provided and the model has no predefined maximum length. Default to no truncation.
Traceback (most recent call last):
File "run_mlm_wwm.py", line 333, in <module>
main()
File "run_mlm_wwm.py", line 274, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/usr/local/lib/python3.6/dist-packages/datasets/dataset_dict.py", line 300, in map
for k, dataset in self.items()
File "/usr/local/lib/python3.6/dist-packages/datasets/dataset_dict.py", line 300, in <dictcomp>
for k, dataset in self.items()
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 1256, in map
update_data=update_data,
File "/usr/local/lib/python3.6/dist-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 158, in wrapper
self._fingerprint, transform, kwargs_for_fingerprint
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 105, in update_fingerprint
hasher.update(transform_args[key])
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 57, in update
self.m.update(self.hash(value).encode("utf-8"))
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 53, in hash
return cls.hash_default(value)
File "/usr/local/lib/python3.6/dist-packages/datasets/fingerprint.py", line 46, in hash_default
return cls.hash_bytes(dumps(value))
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 367, in dumps
dump(obj, file)
File "/usr/local/lib/python3.6/dist-packages/datasets/utils/py_utils.py", line 339, in dump
Pickler(file, recurse=True).dump(obj)
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 454, in dump
StockPickler.dump(self, obj)
File "/usr/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 1447, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/usr/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 1178, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/usr/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/usr/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/usr/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 1374, in save_type
obj.__bases__, _dict), obj=obj)
File "/usr/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/usr/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/usr/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/usr/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/usr/local/lib/python3.6/dist-packages/dill/_dill.py", line 941, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/usr/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/usr/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/usr/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/usr/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
**_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union**
</code></pre></div>
<p dir="auto">please help me.</p> | <p dir="auto">While fine-tuning BERT with the new <a href="https://github.com/huggingface/transformers/blob/master/examples/language-modeling/run_mlm.py">script</a> I am facing the issue as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "run_mlm.py", line 310, in <module>
main()
File "run_mlm.py", line 259, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/dataset_dict.py", line 300, in map
for k, dataset in self.items()
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/dataset_dict.py", line 300, in <dictcomp>
for k, dataset in self.items()
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1256, in map
update_data=update_data,
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 158, in wrapper
self._fingerprint, transform, kwargs_for_fingerprint
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 105, in update_fingerprint
hasher.update(transform_args[key])
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 57, in update
self.m.update(self.hash(value).encode("utf-8"))
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 53, in hash
return cls.hash_default(value)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 46, in hash_default
return cls.hash_bytes(dumps(value))
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 367, in dumps
dump(obj, file)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 339, in dump
Pickler(file, recurse=True).dump(obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 446, in dump
StockPickler.dump(self, obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 1438, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 1170, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 1365, in save_type
obj.__bases__, _dict), obj=obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union
"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "run_mlm.py", line 310, in <module>
main()
File "run_mlm.py", line 259, in main
load_from_cache_file=not data_args.overwrite_cache,
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/dataset_dict.py", line 300, in map
for k, dataset in self.items()
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/dataset_dict.py", line 300, in <dictcomp>
for k, dataset in self.items()
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 1256, in map
update_data=update_data,
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/arrow_dataset.py", line 156, in wrapper
out: Union["Dataset", "DatasetDict"] = func(self, *args, **kwargs)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 158, in wrapper
self._fingerprint, transform, kwargs_for_fingerprint
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 105, in update_fingerprint
hasher.update(transform_args[key])
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 57, in update
self.m.update(self.hash(value).encode("utf-8"))
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 53, in hash
return cls.hash_default(value)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/fingerprint.py", line 46, in hash_default
return cls.hash_bytes(dumps(value))
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 367, in dumps
dump(obj, file)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/datasets/utils/py_utils.py", line 339, in dump
Pickler(file, recurse=True).dump(obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 446, in dump
StockPickler.dump(self, obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 409, in dump
self.save(obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 1438, in save_function
obj.__dict__, fkwdefaults), obj=obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 1170, in save_cell
pickler.save_reduce(_create_cell, (f,), obj=obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 736, in save_tuple
save(element)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 521, in save
self.save_reduce(obj=obj, *rv)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 605, in save_reduce
save(cls)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 1365, in save_type
obj.__bases__, _dict), obj=obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 610, in save_reduce
save(args)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 751, in save_tuple
save(element)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 476, in save
f(self, obj) # Call unbound method with explicit self
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/site-packages/dill/_dill.py", line 933, in save_module_dict
StockPickler.save_dict(pickler, obj)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 821, in save_dict
self._batch_setitems(obj.items())
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 847, in _batch_setitems
save(v)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 507, in save
self.save_global(obj, rv)
File "/home/ai-students/anaconda3/envs/env_nesara/lib/python3.6/pickle.py", line 927, in save_global
(obj, module_name, name))
_pickle.PicklingError: Can't pickle typing.Union[str, NoneType]: it's not the same object as typing.Union
</code></pre></div>
<p dir="auto">I am trying to run the same script with the already mentioned wikitext dataset. However, I am not able to run it successfully due to the above mentioned error.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a> Could you please help me resolve this error?</p> | 1 |
<h3 dir="auto">Describe the bug</h3>
<p dir="auto">I am passing data normalized using MinMaxScaler to DBSCAN's fit_predict. My data is very small (12 MB, around 180,000 rows and 9 columns). However while running this, the memory usage quickly climbs up and the kernel gets killed (I presume by OOM killer). I even tried it on a server with 256 GB RAM and it fails fairly quickly.</p>
<p dir="auto">Here is my repro code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd
X_ml = pd.read_csv('Xml.csv')
from sklearn.cluster import DBSCAN
dbscan = DBSCAN(eps=0.28, min_samples=9)
dbscan_pred = dbscan.fit_predict(X_ml)"><pre class="notranslate"><code class="notranslate">import pandas as pd
X_ml = pd.read_csv('Xml.csv')
from sklearn.cluster import DBSCAN
dbscan = DBSCAN(eps=0.28, min_samples=9)
dbscan_pred = dbscan.fit_predict(X_ml)
</code></pre></div>
<p dir="auto">and <a href="https://github.com/sameermahajan/MLWorkshop/blob/master/Xml.csv">here</a> is my Xml.csv data file.</p>
<p dir="auto">Any ideas how to get it working?</p>
<h3 dir="auto">Steps/Code to Reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd
X_ml = pd.read_csv('Xml.csv')
from sklearn.cluster import DBSCAN
dbscan = DBSCAN(eps=0.28, min_samples=9)
dbscan_pred = dbscan.fit_predict(X_ml)"><pre class="notranslate"><code class="notranslate">import pandas as pd
X_ml = pd.read_csv('Xml.csv')
from sklearn.cluster import DBSCAN
dbscan = DBSCAN(eps=0.28, min_samples=9)
dbscan_pred = dbscan.fit_predict(X_ml)
</code></pre></div>
<p dir="auto">and <a href="https://github.com/sameermahajan/MLWorkshop/blob/master/Xml.csv">here</a> is my Xml.csv data file.</p>
<h3 dir="auto">Expected Results</h3>
<p dir="auto">DBSCAN should complete.</p>
<h3 dir="auto">Actual Results</h3>
<p dir="auto">It runs out of memory getting killed.</p>
<h3 dir="auto">Versions</h3>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="System:
python: 3.9.9 (main, Nov 21 2021, 03:23:42) [Clang 13.0.0 (clang-1300.0.29.3)]
executable: /usr/local/opt/[email protected]/bin/python3.9
machine: macOS-12.2.1-x86_64-i386-64bit
Python dependencies:
pip: 21.3.1
setuptools: 59.0.1
sklearn: 1.0.2
numpy: 1.22.0
scipy: 1.7.3
Cython: None
pandas: 1.3.5
matplotlib: 3.5.1
joblib: 1.1.0
threadpoolctl: 3.1.0
Built with OpenMP: True"><pre class="notranslate">System:
python: 3.9.9 (main, Nov 21 2021, 03:23:42) [Clang 13.0.0 (clang-1300.0.29.3)]
executable: /usr/local/opt/[email protected]/bin/python3.9
machine: macOS-12.2.1-x86_64-i386-64bit
Python dependencies:
pip: 21.3.1
setuptools: 59.0.1
sklearn: 1.0.2
numpy: 1.22.0
scipy: 1.7.3
Cython: None
pandas: 1.3.5
matplotlib: 3.5.1
joblib: 1.1.0
threadpoolctl: 3.1.0
Built with OpenMP: True</pre></div> | <p dir="auto">Scikit learn has two nearly identical ways of performing spectral clustering:</p>
<ul dir="auto">
<li>a <a href="http://scikit-learn.org/stable/modules/generated/sklearn.cluster.SpectralClustering.html" rel="nofollow"><code class="notranslate">SpectralClustering</code></a> class</li>
<li>a <a href="http://scikit-learn.org/stable/modules/generated/sklearn.cluster.spectral_clustering.html" rel="nofollow"><code class="notranslate">spectral_clustering</code></a> method</li>
</ul>
<p dir="auto">The slightly divergent docs and function call signatures are confusing, I think. Both of these live in the same file (clustering/spectral.py), and with mostly identical docstrings, having both doubles the documentation burden.</p>
<p dir="auto">Is there a compelling reason to keep these both around? <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jnothman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jnothman">@jnothman</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/GaelVaroquaux/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/GaelVaroquaux">@GaelVaroquaux</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/briancheung/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/briancheung">@briancheung</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/weilinear/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/weilinear">@weilinear</a></p> | 0 |
<p dir="auto">The following code causes an ICE using the latest nightly.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" #![feature(associated_consts)]
pub trait Test {
const LENGTH: usize;
fn method(array: [i32; Self::LENGTH]) { }
}
fn main() { }"><pre class="notranslate"><code class="notranslate"> #![feature(associated_consts)]
pub trait Test {
const LENGTH: usize;
fn method(array: [i32; Self::LENGTH]) { }
}
fn main() { }
</code></pre></div>
<p dir="auto">Running with RUST_BACKTRACE=1 gives</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefSelfTy(Some(DefId { krate: 0, node: 4 }Test), None), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:81
stack backtrace:
1: 0x7fcb00fecdde - sys::backtrace::write::h69183b7c98049b30wqs
2: 0x7fcb00ff4a44 - panicking::on_panic::h2c3150d5b218c447i8w
3: 0x7fcb00fb77ee - rt::unwind::begin_unwind_inner::hf9bdd075490425c8WNw
4: 0x7fcb00fb851c - rt::unwind::begin_unwind_fmt::h6a9238aa2a13c0892Mw
5: 0x7fcaff01d717 - middle::const_eval::eval_const_expr_with_substs::h14003455026798805522
6: 0x7fcafefca59b - middle::const_eval::eval_const_expr_partial::hfb624d4880a32ba3IGk
7: 0x7fcb007d5cf2 - astconv::ast_ty_to_ty::heeb2edb80837d1162Qv
8: 0x7fcb008317ee - vec::Vec<T>.FromIterator<T>::from_iter::h3785597557409810636
9: 0x7fcb00830d56 - astconv::ty_of_method_or_bare_fn::h7fc2677ba2149d77I6v
10: 0x7fcb00849e9b - collect::convert_method::h2213f9f8b79b70d9Fsx
11: 0x7fcb00838e74 - collect::convert_item::hbcf9d38ceb0aafd0cIx
12: 0x7fcb00833917 - collect::collect_item_types::hacdb13c97b5df6d8zPw
13: 0x7fcb00880a59 - check_crate::h0321f1e753acbcf9WWC
14: 0x7fcb01555cd9 - driver::phase_3_run_analysis_passes::closure.15875
15: 0x7fcb0155461b - middle::ty::ctxt<'tcx>::create_and_enter::h9079099211582893073
16: 0x7fcb0154f5c1 - driver::phase_3_run_analysis_passes::h12132907910932298086
17: 0x7fcb0152e83c - driver::compile_input::h3a475b0b9259362fTba
18: 0x7fcb01614bd3 - run_compiler::h2cc1d87c2af5b2f0A7b
19: 0x7fcb016125ae - boxed::F.FnBox<A>::call_box::h6791803627395147597
20: 0x7fcb01611df9 - rt::unwind::try::try_fn::h10416075533806878094
21: 0x7fcb0106f738 - rust_try_inner
22: 0x7fcb0106f725 - rust_try
23: 0x7fcb00fe00f7 - rt::unwind::try::inner_try::h6181b0bb7448f551PJw
24: 0x7fcb0161200b - boxed::F.FnBox<A>::call_box::h6862050082343839214
25: 0x7fcb00ff36a1 - sys::thread::Thread::new::thread_start::hadfe7238e1724c34CTv
26: 0x7fcafac580a3 - start_thread
27: 0x7fcb00c3e04c - clone
28: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefSelfTy(Some(DefId { krate: 0, node: 4 }Test), None), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:81
stack backtrace:
1: 0x7fcb00fecdde - sys::backtrace::write::h69183b7c98049b30wqs
2: 0x7fcb00ff4a44 - panicking::on_panic::h2c3150d5b218c447i8w
3: 0x7fcb00fb77ee - rt::unwind::begin_unwind_inner::hf9bdd075490425c8WNw
4: 0x7fcb00fb851c - rt::unwind::begin_unwind_fmt::h6a9238aa2a13c0892Mw
5: 0x7fcaff01d717 - middle::const_eval::eval_const_expr_with_substs::h14003455026798805522
6: 0x7fcafefca59b - middle::const_eval::eval_const_expr_partial::hfb624d4880a32ba3IGk
7: 0x7fcb007d5cf2 - astconv::ast_ty_to_ty::heeb2edb80837d1162Qv
8: 0x7fcb008317ee - vec::Vec<T>.FromIterator<T>::from_iter::h3785597557409810636
9: 0x7fcb00830d56 - astconv::ty_of_method_or_bare_fn::h7fc2677ba2149d77I6v
10: 0x7fcb00849e9b - collect::convert_method::h2213f9f8b79b70d9Fsx
11: 0x7fcb00838e74 - collect::convert_item::hbcf9d38ceb0aafd0cIx
12: 0x7fcb00833917 - collect::collect_item_types::hacdb13c97b5df6d8zPw
13: 0x7fcb00880a59 - check_crate::h0321f1e753acbcf9WWC
14: 0x7fcb01555cd9 - driver::phase_3_run_analysis_passes::closure.15875
15: 0x7fcb0155461b - middle::ty::ctxt<'tcx>::create_and_enter::h9079099211582893073
16: 0x7fcb0154f5c1 - driver::phase_3_run_analysis_passes::h12132907910932298086
17: 0x7fcb0152e83c - driver::compile_input::h3a475b0b9259362fTba
18: 0x7fcb01614bd3 - run_compiler::h2cc1d87c2af5b2f0A7b
19: 0x7fcb016125ae - boxed::F.FnBox<A>::call_box::h6791803627395147597
20: 0x7fcb01611df9 - rt::unwind::try::try_fn::h10416075533806878094
21: 0x7fcb0106f738 - rust_try_inner
22: 0x7fcb0106f725 - rust_try
23: 0x7fcb00fe00f7 - rt::unwind::try::inner_try::h6181b0bb7448f551PJw
24: 0x7fcb0161200b - boxed::F.FnBox<A>::call_box::h6862050082343839214
25: 0x7fcb00ff36a1 - sys::thread::Thread::new::thread_start::hadfe7238e1724c34CTv
26: 0x7fcafac580a3 - start_thread
27: 0x7fcb00c3e04c - clone
28: 0x0 - <unknown>
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version --verbose
rustc 1.3.0-nightly (16f64c388 2015-07-09)
binary: rustc
commit-hash: 16f64c38803e820fc20a669987395e663ced1387
commit-date: 2015-07-09
host: x86_64-unknown-linux-gnu
release: 1.3.0-nightly"><pre class="notranslate"><code class="notranslate">$ rustc --version --verbose
rustc 1.3.0-nightly (16f64c388 2015-07-09)
binary: rustc
commit-hash: 16f64c38803e820fc20a669987395e663ced1387
commit-date: 2015-07-09
host: x86_64-unknown-linux-gnu
release: 1.3.0-nightly
</code></pre></div>
<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="71846185" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/24938" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/24938/hovercard" href="https://github.com/rust-lang/rust/issues/24938">#24938</a> (although that issue is now closed) or <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="89335604" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/26402" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/26402/hovercard" href="https://github.com/rust-lang/rust/issues/26402">#26402</a>.</p> | <p dir="auto">Unprioritized list of automation tasks.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> bundling mingw <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="26275591" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/11782" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/11782/hovercard" href="https://github.com/rust-lang/rust/issues/11782">#11782</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> fully test windows <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40088721" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16457" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16457/hovercard" href="https://github.com/rust-lang/rust/issues/16457">#16457</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> rev1 mingw-w64 64-bit toolchain <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43255934" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17394" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17394/hovercard" href="https://github.com/rust-lang/rust/issues/17394">#17394</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> rust/cargo install <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40088155" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16456" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16456/hovercard" href="https://github.com/rust-lang/rust/issues/16456">#16456</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> release channel <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40930389" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16677" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16677/hovercard" href="https://github.com/rust-lang/rust/issues/16677">#16677</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> out of sync nightlies <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34277030" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/14431" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/14431/hovercard" href="https://github.com/rust-lang/rust/issues/14431">#14431</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> feature staging <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40930570" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16678" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16678/hovercard" href="https://github.com/rust-lang/rust/issues/16678">#16678</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> valgrind <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30477318" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/13217" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/13217/hovercard" href="https://github.com/rust-lang/rust/issues/13217">#13217</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> testing 32 bit on distcheck <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43040011" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17344" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17344/hovercard" href="https://github.com/rust-lang/rust/issues/17344">#17344</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 32-bit cargo on CentOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> OSX auto builds are segfaulting (no issue)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> high-5 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40929529" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16674" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16674/hovercard" href="https://github.com/rust-lang/rust/issues/16674">#16674</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> merging win32/64 bots <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43069983" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17354" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17354/hovercard" href="https://github.com/rust-lang/rust/issues/17354">#17354</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cloudfare sync is weird <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40795095" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16649" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16649/hovercard" href="https://github.com/rust-lang/rust/issues/16649">#16649</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> msys2 win32 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43041958" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17347" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17347/hovercard" href="https://github.com/rust-lang/rust/issues/17347">#17347</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> lexer tests <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38352128" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/15880" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/15880/hovercard" href="https://github.com/rust-lang/rust/issues/15880">#15880</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> benchmark bot <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="28089147" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/12458" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/12458/hovercard" href="https://github.com/rust-lang/rust/issues/12458">#12458</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> lldb tests <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39115731" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16112" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16112/hovercard" href="https://github.com/rust-lang/rust/issues/16112">#16112</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> test more OS X <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="42740895" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17269" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17269/hovercard" href="https://github.com/rust-lang/rust/issues/17269">#17269</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> OSX is segfaulting with nightlies <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40222291" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16489" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16489/hovercard" href="https://github.com/rust-lang/rust/issues/16489">#16489</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> more android slaves <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="41315924" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/16795" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/16795/hovercard" href="https://github.com/rust-lang/rust/issues/16795">#16795</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> increase builds/slave <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43256573" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17395" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17395/hovercard" href="https://github.com/rust-lang/rust/issues/17395">#17395</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> doc/master -> doc/nightly <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43268749" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17398" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17398/hovercard" href="https://github.com/rust-lang/rust/issues/17398">#17398</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> license packaging <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="44597798" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/17690" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/17690/hovercard" href="https://github.com/rust-lang/rust/issues/17690">#17690</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> doc installation <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35752858" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/14916" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/14916/hovercard" href="https://github.com/rust-lang/rust/issues/14916">#14916</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> shutdown idle slaves <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="46192783" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/18151" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/18151/hovercard" href="https://github.com/rust-lang/rust/issues/18151">#18151</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> losing windows slaves <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="47987574" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/18703" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/18703/hovercard" href="https://github.com/rust-lang/rust/issues/18703">#18703</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> nightlies running at wrong time <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="48591575" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/18912" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/18912/hovercard" href="https://github.com/rust-lang/rust/issues/18912">#18912</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> stability upload fails incorrectly <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49269378" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19079" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19079/hovercard" href="https://github.com/rust-lang/rust/issues/19079">#19079</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> remove metrics infra <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49579789" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19145" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19145/hovercard" href="https://github.com/rust-lang/rust/issues/19145">#19145</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> doc tools on dist bots <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49758160" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19200" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19200/hovercard" href="https://github.com/rust-lang/rust/issues/19200">#19200</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> mac minis -> macstadium <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49959073" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19286" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19286/hovercard" href="https://github.com/rust-lang/rust/issues/19286">#19286</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> guidelines <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="50058062" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19315" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19315/hovercard" href="https://github.com/rust-lang/rust/issues/19315">#19315</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> rust-by-example <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="50619605" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19455" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19455/hovercard" href="https://github.com/rust-lang/rust/issues/19455">#19455</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> release signing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30645093" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/13252" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/13252/hovercard" href="https://github.com/rust-lang/rust/issues/13252">#13252</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> snap signing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30645294" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/13254" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/13254/hovercard" href="https://github.com/rust-lang/rust/issues/13254">#13254</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> upload rustup.sh <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="50892305" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19505" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19505/hovercard" href="https://github.com/rust-lang/rust/issues/19505">#19505</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> test 'make install' <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51570585" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19698" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19698/hovercard" href="https://github.com/rust-lang/rust/issues/19698">#19698</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> install an uninstall script <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53010792" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/20283" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/20283/hovercard" href="https://github.com/rust-lang/rust/issues/20283">#20283</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> fix dist security <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53503636" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/20629" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/20629/hovercard" href="https://github.com/rust-lang/rust/issues/20629">#20629</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> package dbg std <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53504910" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/20630" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/20630/hovercard" href="https://github.com/rust-lang/rust/issues/20630">#20630</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> directory listings <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="53929379" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/20838" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/20838/hovercard" href="https://github.com/rust-lang/rust/issues/20838">#20838</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> update rustup for beta <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54352769" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21149" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21149/hovercard" href="https://github.com/rust-lang/rust/issues/21149">#21149</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> install source <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51023000" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/19535" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/19535/hovercard" href="https://github.com/rust-lang/rust/issues/19535">#19535</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> get rid of cloudfront <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54596108" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21239" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21239/hovercard" href="https://github.com/rust-lang/rust/issues/21239">#21239</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cargo dist dir <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54596247" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21240" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21240/hovercard" href="https://github.com/rust-lang/rust/issues/21240">#21240</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> machine readable dist index <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54597728" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21241" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21241/hovercard" href="https://github.com/rust-lang/rust/issues/21241">#21241</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> channel metadata <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54598132" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21243" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21243/hovercard" href="https://github.com/rust-lang/rust/issues/21243">#21243</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> windows dist locking bug <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54926179" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21434" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21434/hovercard" href="https://github.com/rust-lang/rust/issues/21434">#21434</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> ec2 spot instances <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56421778" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21904" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21904/hovercard" href="https://github.com/rust-lang/rust/issues/21904">#21904</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> cargo compatibility bots <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56633279" data-permission-text="Title is private" data-url="https://github.com/rust-lang/cargo/issues/1276" data-hovercard-type="issue" data-hovercard-url="/rust-lang/cargo/issues/1276/hovercard" href="https://github.com/rust-lang/cargo/issues/1276">rust-lang/cargo#1276</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> rust package desyncing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56742176" data-permission-text="Title is private" data-url="https://github.com/rust-lang-deprecated/rust-buildbot/issues/7" data-hovercard-type="issue" data-hovercard-url="/rust-lang-deprecated/rust-buildbot/issues/7/hovercard" href="https://github.com/rust-lang-deprecated/rust-buildbot/issues/7">rust-lang-deprecated/rust-buildbot#7</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> cross-platform type system consistency for std <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57488284" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/22228" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/22228/hovercard" href="https://github.com/rust-lang/rust/issues/22228">#22228</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> slave per build <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57942855" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/22448" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/22448/hovercard" href="https://github.com/rust-lang/rust/issues/22448">#22448</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> fix build date <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58763932" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/22774" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/22774/hovercard" href="https://github.com/rust-lang/rust/issues/22774">#22774</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> permission denied on windows <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58458338" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/22628" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/22628/hovercard" href="https://github.com/rust-lang/rust/issues/22628">#22628</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> beta/stable integration automation <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="64636193" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/23756" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/23756/hovercard" href="https://github.com/rust-lang/rust/issues/23756">#23756</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> doc translation services <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="78699869" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/25660" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/25660/hovercard" href="https://github.com/rust-lang/rust/issues/25660">#25660</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> upload feature list <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="79652865" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/25724" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/25724/hovercard" href="https://github.com/rust-lang/rust/issues/25724">#25724</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a href="http://www.rust-lang.org" rel="nofollow">www.rust-lang.org</a> SSL <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="30393555" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/13180" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/13180/hovercard" href="https://github.com/rust-lang/rust/issues/13180">#13180</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> move from buildbot to taskcluster?</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> turn off ssh on play.rlo <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="81211144" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/25811" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/25811/hovercard" href="https://github.com/rust-lang/rust/issues/25811">#25811</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> signing key revcert <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="81232488" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/25814" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/25814/hovercard" href="https://github.com/rust-lang/rust/issues/25814">#25814</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> keybase.io <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="81233081" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/25815" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/25815/hovercard" href="https://github.com/rust-lang/rust/issues/25815">#25815</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> convert playpen sandbox <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="88520942" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust-playpen/issues/134" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust-playpen/issues/134/hovercard" href="https://github.com/rust-lang/rust-playpen/issues/134">rust-lang/rust-playpen#134</a></li>
</ul> | 0 |
<p dir="auto">Is this expected?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> x = [None]
>>> x[0] = x
>>> x
[[...]]
>>> import numpy as np
>>> np.array(x)
array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object)
>>> a = np.array(x)
>>> a.shape
(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
>>> np.__version__
'1.11.1'"><pre class="notranslate"><code class="notranslate">>>> x = [None]
>>> x[0] = x
>>> x
[[...]]
>>> import numpy as np
>>> np.array(x)
array([[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[...]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]], dtype=object)
>>> a = np.array(x)
>>> a.shape
(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1)
>>> np.__version__
'1.11.1'
</code></pre></div> | <p dir="auto">I grant that this one is quite abusive, but bugs that lead to this problem <em>can</em> happen:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ipython3 --pylab
Python 3.5.0 (default, Nov 20 2015, 16:20:41)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg
Python are go!
In [1]: L = []
In [2]: L.append(L)
In [3]: L.append(L)
In [4]: X = asarray(L)
^C^C^\Quit (core dumped)"><pre class="notranslate"><code class="notranslate">$ ipython3 --pylab
Python 3.5.0 (default, Nov 20 2015, 16:20:41)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg
Python are go!
In [1]: L = []
In [2]: L.append(L)
In [3]: L.append(L)
In [4]: X = asarray(L)
^C^C^\Quit (core dumped)
</code></pre></div>
<p dir="auto">Ergo, numpy gets into an infinite loop using 100% CPU and hangs. Interestingly, the following variant does not lead to the same problem:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ipython3 --pylab
Python 3.5.0 (default, Nov 20 2015, 16:20:41)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg
Python are go!
In [1]: L = []
In [2]: L.append([L,L])
In [3]: X = asarray(L)
In [4]: print(X.ndim)
32 # huh?
In [6]: print(X)
# lots of ASCII-art"><pre class="notranslate"><code class="notranslate">$ ipython3 --pylab
Python 3.5.0 (default, Nov 20 2015, 16:20:41)
Type "copyright", "credits" or "license" for more information.
IPython 4.0.0 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object', use 'object??' for extra details.
Using matplotlib backend: TkAgg
Python are go!
In [1]: L = []
In [2]: L.append([L,L])
In [3]: X = asarray(L)
In [4]: print(X.ndim)
32 # huh?
In [6]: print(X)
# lots of ASCII-art
</code></pre></div> | 1 |
<p dir="auto">Probably this is by design, but typing such as zone.js, es6-shim and so on are not referenced anymore. You can easily get around this by installing these typings yourself, but there seems to be some issues with a <code class="notranslate">BrowserNodeGlobal</code> that is missing and zone.js referencing a es6-promise which if installed will conflict with es6-shim.</p> | <p dir="auto"><strong>I'm submitting a</strong></p>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<blockquote>
<p dir="auto">Issue still appears after <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="214838667" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/15215" data-hovercard-type="pull_request" data-hovercard-url="/angular/angular/pull/15215/hovercard" href="https://github.com/angular/angular/pull/15215">#15215</a> being merged</p>
</blockquote>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">Metadata file when using <code class="notranslate">flatModuleOutFile</code> is empty on Windows</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{"__symbolic":"module","version":3,"metadata":{},"importAs":"@angular/material"}"><pre class="notranslate">{<span class="pl-ent">"__symbolic"</span>:<span class="pl-s"><span class="pl-pds">"</span>module<span class="pl-pds">"</span></span>,<span class="pl-ent">"version"</span>:<span class="pl-c1">3</span>,<span class="pl-ent">"metadata"</span>:{},<span class="pl-ent">"importAs"</span>:<span class="pl-s"><span class="pl-pds">"</span>@angular/material<span class="pl-pds">"</span></span>}</pre></div>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">Metadata file should contain <code class="notranslate">metadata</code> as for Linux and Mac OS.</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{"__symbolic":"module","version":3,"metadata":{"TestComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"test-component","template":"<span>Test</span>"}]}],"members":{}}},"importAs":"@angular/material"}"><pre class="notranslate">{<span class="pl-ent">"__symbolic"</span>:<span class="pl-s"><span class="pl-pds">"</span>module<span class="pl-pds">"</span></span>,<span class="pl-ent">"version"</span>:<span class="pl-c1">3</span>,<span class="pl-ent">"metadata"</span>:{<span class="pl-ent">"TestComponent"</span>:{<span class="pl-ent">"__symbolic"</span>:<span class="pl-s"><span class="pl-pds">"</span>class<span class="pl-pds">"</span></span>,<span class="pl-ent">"decorators"</span>:[{<span class="pl-ent">"__symbolic"</span>:<span class="pl-s"><span class="pl-pds">"</span>call<span class="pl-pds">"</span></span>,<span class="pl-ent">"expression"</span>:{<span class="pl-ent">"__symbolic"</span>:<span class="pl-s"><span class="pl-pds">"</span>reference<span class="pl-pds">"</span></span>,<span class="pl-ent">"module"</span>:<span class="pl-s"><span class="pl-pds">"</span>@angular/core<span class="pl-pds">"</span></span>,<span class="pl-ent">"name"</span>:<span class="pl-s"><span class="pl-pds">"</span>Component<span class="pl-pds">"</span></span>},<span class="pl-ent">"arguments"</span>:[{<span class="pl-ent">"selector"</span>:<span class="pl-s"><span class="pl-pds">"</span>test-component<span class="pl-pds">"</span></span>,<span class="pl-ent">"template"</span>:<span class="pl-s"><span class="pl-pds">"</span><span>Test</span><span class="pl-pds">"</span></span>}]}],<span class="pl-ent">"members"</span>:{}}},<span class="pl-ent">"importAs"</span>:<span class="pl-s"><span class="pl-pds">"</span>@angular/material<span class="pl-pds">"</span></span>}</pre></div>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p>
<p dir="auto"><a href="https://github.com/DevVersion/ng-compiler-cli-test">https://github.com/DevVersion/ng-compiler-cli-test</a></p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<p dir="auto">Using the latest version (Github builds). And since <code class="notranslate">@angular/tsc-wrapped</code> is not bound to the <code class="notranslate">0.0.0-PLACEHOLDER</code>, there is a script that injects the latest version of it.</p>
<p dir="auto"><strong>Node (for AoT issues):</strong> v6.10.0</p>
<p dir="auto">cc. <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jelbourn/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jelbourn">@jelbourn</a></p> | 0 |
<p dir="auto">frameless window maximize / unmaximize event may cause a error on windows.</p>
<p dir="auto">it unable to reproduce stable, maybe a GC problem?</p>
<p dir="auto">screenshot:</p>
<p dir="auto"><a href="https://ygobbs.com/t/%E7%AA%97%E5%8F%A3%E5%81%9A%E5%A4%A7%E5%8C%96%E5%90%8E%E5%86%8D%E6%AC%A1%E7%82%B9%E5%87%BB%E6%97%A0%E6%B3%95%E7%BC%A9%E5%B0%8F%E5%9B%9E%E5%8E%9F%E6%9D%A5%E5%B0%BA%E5%AF%B8/78751" rel="nofollow">https://ygobbs.com/t/%E7%AA%97%E5%8F%A3%E5%81%9A%E5%A4%A7%E5%8C%96%E5%90%8E%E5%86%8D%E6%AC%A1%E7%82%B9%E5%87%BB%E6%97%A0%E6%B3%95%E7%BC%A9%E5%B0%8F%E5%9B%9E%E5%8E%9F%E6%9D%A5%E5%B0%BA%E5%AF%B8/78751</a></p>
<p dir="auto">my code:<br>
<a href="https://github.com/mycard/mycard/blob/master/js/app.js#L5-L25">https://github.com/mycard/mycard/blob/master/js/app.js#L5-L25</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const current_window = remote.getCurrentWindow();
document.getElementById("minimize").onclick = ()=> {
current_window.minimize()
};
document.getElementById("maximize").onclick = ()=> {
current_window.maximize();
};
document.getElementById("restore").onclick = ()=> {
current_window.unmaximize();
};
document.getElementById("close").onclick = ()=> {
current_window.close();
};
current_window.on('maximize', ()=> {
document.body.className = process.platform + ' maximized'
});
current_window.on('unmaximize', ()=> {
document.body.className = process.platform
});"><pre class="notranslate"><code class="notranslate">const current_window = remote.getCurrentWindow();
document.getElementById("minimize").onclick = ()=> {
current_window.minimize()
};
document.getElementById("maximize").onclick = ()=> {
current_window.maximize();
};
document.getElementById("restore").onclick = ()=> {
current_window.unmaximize();
};
document.getElementById("close").onclick = ()=> {
current_window.close();
};
current_window.on('maximize', ()=> {
document.body.className = process.platform + ' maximized'
});
current_window.on('unmaximize', ()=> {
document.body.className = process.platform
});
</code></pre></div> | <p dir="auto">Hi,<br>
I am building a simple one page electron app with a simple HTML page with a menu using sample code shown here: [https://github.com/atom/electron/blob/master/docs/api/menu.md]</p>
<p dir="auto">But I am getting a javascript error on SECOND page reload on a simple electron app. Note that this error only comes if I reload the app once and then click View->Reload again.</p>
<p dir="auto">"Uncaught exception error: Attempting to call a functions in the renderer window that has been closed or released. Function provided here: undefined".</p>
<p dir="auto">I have even gone through this case but did not understand how to remove call back reference for my simple case. Here is the code I have in my simple HTML page:</p>
<p dir="auto"><a href="https://jsfiddle.net/fb2a3ho6/" rel="nofollow">https://jsfiddle.net/fb2a3ho6/</a></p>
<p dir="auto">I would like to know why on second refresh, when reference to the old window is lost, I am getting an error.</p>
<p dir="auto">Vivek</p> | 1 |
<h1 dir="auto">Environment</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1973/63391493-7d22ef00-c367-11e9-8347-822a08ea558b.png"><img src="https://user-images.githubusercontent.com/1973/63391493-7d22ef00-c367-11e9-8347-822a08ea558b.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Sorry for the screenshot and not text, but I can't copy</p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Connect to windows from a mac with Microsoft Remote Desktop and the "Use Mac Shortcuts for Cut, Copy, and Paste" option on.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Command-c copy, command-v paste. This does work in just powershell, but not in the new Terminal</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">It sends <code class="notranslate">^C</code> and <code class="notranslate">^V</code></p> | <h1 dir="auto">Description of the new feature</h1>
<p dir="auto">Allow tabs to be dragged to the left or right of the tab around them, like browser tabs.</p> | 0 |
<h2 dir="auto">Babelrc, v6.11.4</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "babel": {
"plugins": [
"transform-async-to-generator",
"transform-es2015-modules-commonjs",
"transform-export-extensions"
],
"presets": [
"es2016"
]
}"><pre class="notranslate"><code class="notranslate"> "babel": {
"plugins": [
"transform-async-to-generator",
"transform-es2015-modules-commonjs",
"transform-export-extensions"
],
"presets": [
"es2016"
]
}
</code></pre></div>
<h2 dir="auto">Error:</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SyntaxError: /Users/fundon/Dev/repos/trekjs/trek/dist/paths.js: 'super' outside of function or class (32:20)
30 |
31 | return _asyncToGenerator(function* () {
> 32 | const value = super.get(key) || key;
| ^
33 | let matched = value.matched;
34 | if (matched && matched.length) {
35 | return matched;
at Parser.pp.raise (/Users/fundon/Dev/repos/trekjs/trek/node_modules/babylon/lib/parser/location.js:22:13)
at Parser.pp.parseExprAtom (/Users/fundon/Dev/repos/trekjs/trek/node_modules/babylon/lib/parser/expression.js:393:14)"><pre class="notranslate"><code class="notranslate">SyntaxError: /Users/fundon/Dev/repos/trekjs/trek/dist/paths.js: 'super' outside of function or class (32:20)
30 |
31 | return _asyncToGenerator(function* () {
> 32 | const value = super.get(key) || key;
| ^
33 | let matched = value.matched;
34 | if (matched && matched.length) {
35 | return matched;
at Parser.pp.raise (/Users/fundon/Dev/repos/trekjs/trek/node_modules/babylon/lib/parser/location.js:22:13)
at Parser.pp.parseExprAtom (/Users/fundon/Dev/repos/trekjs/trek/node_modules/babylon/lib/parser/expression.js:393:14)
</code></pre></div>
<h2 dir="auto">Source code</h2>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import globby from 'globby'
export default class Paths extends Map {
constructor (root) {
super()
this.root = root
}
set (key, value) {
super.set(key, value || key)
return this
}
async get (key, absolute = false) {
const value = super.get(key) || key
let matched = value.matched
if (matched && matched.length) {
return matched
}
const pattern = value.glob || (value.single ? key : value)
const result = await globby(pattern, { realpath: absolute, cwd: this.root })
matched = value.matched = value.single ? result[0] : result
this.set(key, value)
return matched
}
async getAll (absolute = false) {
const result = Object.create(null)
for (const key of this.blueprint.keys()) {
result[key] = await this.get(key, absolute) // eslint-disable-line babel/no-await-in-loop
}
return result
}
async globby (pattern, options) {
return await globby(pattern, options)
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">globby</span> <span class="pl-k">from</span> <span class="pl-s">'globby'</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">class</span> <span class="pl-v">Paths</span> <span class="pl-k">extends</span> <span class="pl-v">Map</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span> <span class="pl-kos">(</span><span class="pl-s1">root</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">root</span> <span class="pl-c1">=</span> <span class="pl-s1">root</span>
<span class="pl-kos">}</span>
<span class="pl-en">set</span> <span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">value</span> <span class="pl-c1">||</span> <span class="pl-s1">key</span><span class="pl-kos">)</span>
<span class="pl-k">return</span> <span class="pl-smi">this</span>
<span class="pl-kos">}</span>
<span class="pl-k">async</span> <span class="pl-en">get</span> <span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">absolute</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s1">key</span>
<span class="pl-k">let</span> <span class="pl-s1">matched</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">matched</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">matched</span> <span class="pl-c1">&&</span> <span class="pl-s1">matched</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">matched</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-s1">pattern</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">glob</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">single</span> ? <span class="pl-s1">key</span> : <span class="pl-s1">value</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">globby</span><span class="pl-kos">(</span><span class="pl-s1">pattern</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">realpath</span>: <span class="pl-s1">absolute</span><span class="pl-kos">,</span> <span class="pl-c1">cwd</span>: <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">root</span> <span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-s1">matched</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">matched</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">single</span> ? <span class="pl-s1">result</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> : <span class="pl-s1">result</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span>
<span class="pl-k">return</span> <span class="pl-s1">matched</span>
<span class="pl-kos">}</span>
<span class="pl-k">async</span> <span class="pl-en">getAll</span> <span class="pl-kos">(</span><span class="pl-s1">absolute</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">)</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">key</span> <span class="pl-k">of</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">blueprint</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">result</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">absolute</span><span class="pl-kos">)</span> <span class="pl-c">// eslint-disable-line babel/no-await-in-loop</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-s1">result</span>
<span class="pl-kos">}</span>
<span class="pl-k">async</span> <span class="pl-en">globby</span> <span class="pl-kos">(</span><span class="pl-s1">pattern</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">await</span> <span class="pl-en">globby</span><span class="pl-kos">(</span><span class="pl-s1">pattern</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<h2 dir="auto">Transformed codes</h2>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _globby = require('globby');
var _globby2 = _interopRequireDefault(_globby);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { return step("next", value); }, function (err) { return step("throw", err); }); } } return step("next"); }); }; }
class Paths extends Map {
constructor(root) {
super();
this.root = root;
}
set(key, value) {
super.set(key, value || key);
return this;
}
get(key, absolute = false) {
var _this = this;
return _asyncToGenerator(function* () {
const value = super.get(key) || key;
let matched = value.matched;
if (matched && matched.length) {
return matched;
}
const pattern = value.glob || (value.single ? key : value);
const result = yield (0, _globby2.default)(pattern, { realpath: absolute, cwd: _this.root });
matched = value.matched = value.single ? result[0] : result;
_this.set(key, value);
return matched;
})();
}
getAll(absolute = false) {
var _this2 = this;
return _asyncToGenerator(function* () {
const result = Object.create(null);
for (const key of _this2.blueprint.keys()) {
result[key] = yield _this2.get(key, absolute); // eslint-disable-line babel/no-await-in-loop
}
return result;
})();
}
globby(pattern, options) {
return _asyncToGenerator(function* () {
return yield (0, _globby2.default)(pattern, options);
})();
}
}
exports.default = Paths;"><pre class="notranslate"><span class="pl-s">'use strict'</span><span class="pl-kos">;</span>
<span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">defineProperty</span><span class="pl-kos">(</span><span class="pl-s1">exports</span><span class="pl-kos">,</span> <span class="pl-s">"__esModule"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">value</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_globby</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'globby'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">_globby2</span> <span class="pl-c1">=</span> <span class="pl-en">_interopRequireDefault</span><span class="pl-kos">(</span><span class="pl-s1">_globby</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>
<span class="pl-k">function</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-s1">fn</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">gen</span> <span class="pl-c1">=</span> <span class="pl-s1">fn</span><span class="pl-kos">.</span><span class="pl-en">apply</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">,</span> <span class="pl-smi">arguments</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-v">Promise</span><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">resolve</span><span class="pl-kos">,</span> <span class="pl-s1">reject</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">function</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">arg</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">try</span> <span class="pl-kos">{</span> <span class="pl-k">var</span> <span class="pl-s1">info</span> <span class="pl-c1">=</span> <span class="pl-s1">gen</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">var</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">value</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">reject</span><span class="pl-kos">(</span><span class="pl-s1">error</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">info</span><span class="pl-kos">.</span><span class="pl-c1">done</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">resolve</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">else</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-en">resolve</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-k">function</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-k">return</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"next"</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"throw"</span><span class="pl-kos">,</span> <span class="pl-s1">err</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-k">return</span> <span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">"next"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-v">Paths</span> <span class="pl-k">extends</span> <span class="pl-v">Map</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">root</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">super</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">root</span> <span class="pl-c1">=</span> <span class="pl-s1">root</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">value</span> <span class="pl-c1">||</span> <span class="pl-s1">key</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">absolute</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">_this</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">value</span> <span class="pl-c1">=</span> <span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-s1">key</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">matched</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">matched</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">matched</span> <span class="pl-c1">&&</span> <span class="pl-s1">matched</span><span class="pl-kos">.</span><span class="pl-c1">length</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">matched</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">const</span> <span class="pl-s1">pattern</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">glob</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">single</span> ? <span class="pl-s1">key</span> : <span class="pl-s1">value</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-k">yield</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_globby2</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-s1">pattern</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">realpath</span>: <span class="pl-s1">absolute</span><span class="pl-kos">,</span> <span class="pl-c1">cwd</span>: <span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-c1">root</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">matched</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">matched</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-c1">single</span> ? <span class="pl-s1">result</span><span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">]</span> : <span class="pl-s1">result</span><span class="pl-kos">;</span>
<span class="pl-s1">_this</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">key</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-k">return</span> <span class="pl-s1">matched</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">getAll</span><span class="pl-kos">(</span><span class="pl-s1">absolute</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">_this2</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-v">Object</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">key</span> <span class="pl-k">of</span> <span class="pl-s1">_this2</span><span class="pl-kos">.</span><span class="pl-c1">blueprint</span><span class="pl-kos">.</span><span class="pl-en">keys</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">result</span><span class="pl-kos">[</span><span class="pl-s1">key</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-k">yield</span> <span class="pl-s1">_this2</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">key</span><span class="pl-kos">,</span> <span class="pl-s1">absolute</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// eslint-disable-line babel/no-await-in-loop</span>
<span class="pl-kos">}</span>
<span class="pl-k">return</span> <span class="pl-s1">result</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">globby</span><span class="pl-kos">(</span><span class="pl-s1">pattern</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-k">yield</span> <span class="pl-kos">(</span><span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-s1">_globby2</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-s1">pattern</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-s1">exports</span><span class="pl-kos">.</span><span class="pl-c1">default</span> <span class="pl-c1">=</span> <span class="pl-v">Paths</span><span class="pl-kos">;</span></pre></div> | <blockquote>
<p dir="auto">Issue originally made by Dmitriy Krasnikov (dmitriy.krasnikov)</p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.3.26</li>
<li><strong>Node version:</strong> 5.3</li>
<li><strong>npm version:</strong> 3.3.12</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
plugins:[
"transform-async-to-generator",
]
}"><pre class="notranslate"><code class="notranslate">{
plugins:[
"transform-async-to-generator",
]
}
</code></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="export class BaseClass {
async test(id){
console.log(id);
}
}
export class ChildClass extends BaseClass{
async test(id){
id=1;
super.test(id);
}
}
let cls = new ChildClass();
cls.test(5);"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">BaseClass</span> <span class="pl-kos">{</span>
<span class="pl-k">async</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">ChildClass</span> <span class="pl-k">extends</span> <span class="pl-v">BaseClass</span><span class="pl-kos">{</span>
<span class="pl-k">async</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-s1">id</span><span class="pl-c1">=</span><span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">cls</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">ChildClass</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">cls</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Outputs:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export class BaseClass {
test(id) {
return _asyncToGenerator(function* () {
console.log(id);
})();
}
}
export class ChildClass extends BaseClass {
test(id) {
return _asyncToGenerator(function* () {
id = 1;
super.test(id);
})();
}
}
let cls = new ChildClass();
cls.test(5);"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">BaseClass</span> <span class="pl-kos">{</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-v">ChildClass</span> <span class="pl-k">extends</span> <span class="pl-v">BaseClass</span> <span class="pl-kos">{</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-en">_asyncToGenerator</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-c1">*</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">id</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s1">id</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-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">let</span> <span class="pl-s1">cls</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">ChildClass</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">cls</span><span class="pl-kos">.</span><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | 1 |
<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): No -- using <a href="https://github.com/tensorflow/custom-op">https://github.com/tensorflow/custom-op</a> (But it breaks for addons too)</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu16.04</li>
<li>TensorFlow installed from (source or binary): Binary</li>
<li>TensorFlow version (use command below): tf-nightly & tf-nighty-2.0-preview</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong><br>
Currently when I build a custom op in the <code class="notranslate">tensorflow/tensorflow:custom-op-ubuntu16</code> docker image using the defined steps I get an install-able pip package <code class="notranslate">tensorflow_zero_out-0.0.1-cp27-cp27mu-linux_x86_64.whl</code></p>
<p dir="auto">This works fine, however if I repair that wheel to be manylinux2010 compliant, then <code class="notranslate">tf.load_op_library</code> will fail to find the custom-op.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python -c "import tensorflow as tf; print(dir(tf.load_op_library('manylinux/tensorflow_zero_out/python/ops/_zero_out_ops.so')))"
['LIB_HANDLE', 'OP_LIST', 'ZeroOut', '_IS_TENSORFLOW_PLUGIN',
'_InitOpDefLibrary', '__builtins__', '__doc__', '__name__', '__package__',
'_collections', '_common_shapes', '_context', '_core', '_dispatch', '_doc_controls',
'_dtypes', '_errors', '_execute', '_kwarg_only', '_op_def_lib', '_op_def_library',
'_op_def_pb2', '_op_def_registry', '_ops', '_pywrap_tensorflow', '_six',
'_tensor_shape', 'deprecated_endpoints', 'tf_export', 'zero_out',
'zero_out_eager_fallback']"><pre class="notranslate"><code class="notranslate">python -c "import tensorflow as tf; print(dir(tf.load_op_library('manylinux/tensorflow_zero_out/python/ops/_zero_out_ops.so')))"
['LIB_HANDLE', 'OP_LIST', 'ZeroOut', '_IS_TENSORFLOW_PLUGIN',
'_InitOpDefLibrary', '__builtins__', '__doc__', '__name__', '__package__',
'_collections', '_common_shapes', '_context', '_core', '_dispatch', '_doc_controls',
'_dtypes', '_errors', '_execute', '_kwarg_only', '_op_def_lib', '_op_def_library',
'_op_def_pb2', '_op_def_registry', '_ops', '_pywrap_tensorflow', '_six',
'_tensor_shape', 'deprecated_endpoints', 'tf_export', 'zero_out',
'zero_out_eager_fallback']
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="python -c "import tensorflow as tf;print(dir(tf.load_op_library('manylinux2010/tensorflow_zero_out/python/ops/_zero_out_ops.so')))"
['LIB_HANDLE', 'OP_LIST', '_IS_TENSORFLOW_PLUGIN',
'_InitOpDefLibrary', '__builtins__', '__doc__', '__name__', '__package__',
'_collections', '_common_shapes', '_context', '_core',
'_dispatch', '_doc_controls', '_dtypes', '_errors', '_execute', '_kwarg_only',
'_op_def_lib', '_op_def_library', '_op_def_pb2', '_op_def_registry', '_ops',
'_pywrap_tensorflow', '_six', '_tensor_shape', 'deprecated_endpoints', 'tf_export']"><pre class="notranslate"><code class="notranslate">python -c "import tensorflow as tf;print(dir(tf.load_op_library('manylinux2010/tensorflow_zero_out/python/ops/_zero_out_ops.so')))"
['LIB_HANDLE', 'OP_LIST', '_IS_TENSORFLOW_PLUGIN',
'_InitOpDefLibrary', '__builtins__', '__doc__', '__name__', '__package__',
'_collections', '_common_shapes', '_context', '_core',
'_dispatch', '_doc_controls', '_dtypes', '_errors', '_execute', '_kwarg_only',
'_op_def_lib', '_op_def_library', '_op_def_pb2', '_op_def_registry', '_ops',
'_pywrap_tensorflow', '_six', '_tensor_shape', 'deprecated_endpoints', 'tf_export']
</code></pre></div>
<p dir="auto">Notice <code class="notranslate">'zero_out'</code> & <code class="notranslate">'zero_out_eager_fallback'</code> are not found in the loaded library for manylinux2010</p>
<p dir="auto"><strong>Code to reproduce the issue</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/tensorflow/custom-op.git && cd custom-op
docker run -it --rm -v ${PWD}:/workspace -w /workspace tensorflow/tensorflow:custom-op-ubuntu16 /bin/bash
pip install tf-nightly
./configure.sh
bazel build build_pip_pkg
bazel-bin/build_pip_pkg artifacts
# Installed auditwheel is too old for manylinux2010
pip3 install --upgrade auditwheel
# Libtensorflow framework needs to be on LD path
export LD_LIBRARY_PATH="/usr/local/lib/python2.7/dist-packages/tensorflow_core"
# Repair logs look more or less okay
auditwheel -v repair --plat manylinux2010_x86_64 artifacts/tensorflow_zero_out-0.0.1-cp27-cp27mu-linux_x86_64.whl &> repair.txt"><pre class="notranslate"><code class="notranslate">git clone https://github.com/tensorflow/custom-op.git && cd custom-op
docker run -it --rm -v ${PWD}:/workspace -w /workspace tensorflow/tensorflow:custom-op-ubuntu16 /bin/bash
pip install tf-nightly
./configure.sh
bazel build build_pip_pkg
bazel-bin/build_pip_pkg artifacts
# Installed auditwheel is too old for manylinux2010
pip3 install --upgrade auditwheel
# Libtensorflow framework needs to be on LD path
export LD_LIBRARY_PATH="/usr/local/lib/python2.7/dist-packages/tensorflow_core"
# Repair logs look more or less okay
auditwheel -v repair --plat manylinux2010_x86_64 artifacts/tensorflow_zero_out-0.0.1-cp27-cp27mu-linux_x86_64.whl &> repair.txt
</code></pre></div>
<p dir="auto"><strong>Other info / logs</strong><br>
Here are the auditwheel repair logs:<br>
<a href="https://github.com/tensorflow/tensorflow/files/3521714/repair.txt">repair.txt</a></p>
<p dir="auto">Here are the readelf inspections of the so files:<br>
<a href="https://github.com/tensorflow/tensorflow/files/3521717/readelf.txt">readelf.txt</a><br>
<a href="https://github.com/tensorflow/tensorflow/files/3521718/readelf-manylinux2010.txt">readelf-manylinux2010.txt</a></p>
<p dir="auto">Here are the so files:<br>
<a href="https://github.com/tensorflow/tensorflow/files/3521726/so-files.zip">so-files.zip</a></p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/perfinion/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/perfinion">@perfinion</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gunan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gunan">@gunan</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/yifeif/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/yifeif">@yifeif</a></p>
<p dir="auto">--------------------------EDIT--------------------<br>
Here are the extracted whl directories which will work with the python <code class="notranslate">tf.load_op_library</code> commands from above. (Manylinux2010 repair makes it so the custom op depends on a newly copied libtensorflow_framework.so which is part of the new whl):<br>
<a href="https://github.com/tensorflow/tensorflow/files/3522649/custom-op-dirs.zip">custom-op-dirs.zip</a></p> | <p dir="auto">It seems if I have cpp custom op in a python function and I pass the python function to tf.data.Dataset.map it will crush.<br>
If I only call this python function outside, It will be ok.<br>
I've spend a whole afternoon to find the bug. I'm really mad about this bug.</p>
<p dir="auto">Have I written custom code (as opposed to using a stock example script provided in TensorFlow):yes<br>
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): linux ubuntu 18.04<br>
TensorFlow installed from (source or binary):binary<br>
TensorFlow version (use command below): 2.0b1<br>
Python version:3.6<br>
CUDA/cuDNN version:10/7.4<br>
GPU model and memory:7.5/24gb</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
import tensorflow as tf
import pdb
extr_module = tf.load_op_library('./build/libextr_module.so')
res = extr_module.test_bug() # ok
def aaa(filename):
res = extr_module.test_bug() # Segmentation fault (core dumped)
return tf.zeros([1], tf.float32)
dataset = tf.data.TextLineDataset(['aaa']).map(aaa)
"><pre class="notranslate"><code class="notranslate">
import tensorflow as tf
import pdb
extr_module = tf.load_op_library('./build/libextr_module.so')
res = extr_module.test_bug() # ok
def aaa(filename):
res = extr_module.test_bug() # Segmentation fault (core dumped)
return tf.zeros([1], tf.float32)
dataset = tf.data.TextLineDataset(['aaa']).map(aaa)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/util/work_sharder.h"
#include <iostream>
#include <cmath>
using namespace tensorflow;
REGISTER_OP("TestBug")
.Output("dummy: float")
.SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) {
c->set_output(0, c->MakeShape({1}));
return Status::OK();
});
class TestBugOp : public OpKernel
{
public:
explicit TestBugOp(OpKernelConstruction* context)
: OpKernel(context)
{
}
void Compute(OpKernelContext* context) override
{
Tensor* dummy = NULL;
OP_REQUIRES_OK(context, context->allocate_output(0, {1},
&dummy));
}
};
REGISTER_KERNEL_BUILDER(
Name("TestBug").Device(DEVICE_CPU),
TestBugOp
);"><pre class="notranslate"><code class="notranslate">#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/framework/tensor.h"
#include "tensorflow/core/framework/tensor_shape.h"
#include "tensorflow/core/framework/register_types.h"
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/util/work_sharder.h"
#include <iostream>
#include <cmath>
using namespace tensorflow;
REGISTER_OP("TestBug")
.Output("dummy: float")
.SetShapeFn([](::tensorflow::shape_inference::InferenceContext* c) {
c->set_output(0, c->MakeShape({1}));
return Status::OK();
});
class TestBugOp : public OpKernel
{
public:
explicit TestBugOp(OpKernelConstruction* context)
: OpKernel(context)
{
}
void Compute(OpKernelContext* context) override
{
Tensor* dummy = NULL;
OP_REQUIRES_OK(context, context->allocate_output(0, {1},
&dummy));
}
};
REGISTER_KERNEL_BUILDER(
Name("TestBug").Device(DEVICE_CPU),
TestBugOp
);
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(extr_module)
# compiler flags
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 ${OpenMP_CXX_FLAGS} -Wall -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -DGOOGLE_CUDA=1")
# TensorFlow dependencies
EXECUTE_PROCESS(COMMAND python3 -c "import os; os.environ['TF_CPP_MIN_LOG_LEVEL']='3'; import tensorflow as tf; print(tf.sysconfig.get_include(), end='', flush=True)" OUTPUT_VARIABLE TF_INC)
EXECUTE_PROCESS(COMMAND python3 -c "import os; os.environ['TF_CPP_MIN_LOG_LEVEL']='3'; import tensorflow as tf; print(tf.sysconfig.get_lib(), end='', flush=True)" OUTPUT_VARIABLE TF_LIB)
MESSAGE(STATUS "Found TF_INC: " ${TF_INC})
#MESSAGE(STATUS "Found TF_INC_EXTERNAL: " ${TF_INC}/external/nsync/public)
MESSAGE(STATUS "Found TF_LIB: " ${TF_LIB})
INCLUDE_DIRECTORIES(${TF_INC})
#INCLUDE_DIRECTORIES(${TF_INC}/external/nsync/public)
LINK_DIRECTORIES(${TF_LIB})
ADD_LIBRARY(extr_module SHARED
testbug.cc
)
TARGET_LINK_LIBRARIES(extr_module tensorflow_framework)"><pre class="notranslate"><code class="notranslate">
CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(extr_module)
# compiler flags
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O2 ${OpenMP_CXX_FLAGS} -Wall -fPIC -D_GLIBCXX_USE_CXX11_ABI=0 -DGOOGLE_CUDA=1")
# TensorFlow dependencies
EXECUTE_PROCESS(COMMAND python3 -c "import os; os.environ['TF_CPP_MIN_LOG_LEVEL']='3'; import tensorflow as tf; print(tf.sysconfig.get_include(), end='', flush=True)" OUTPUT_VARIABLE TF_INC)
EXECUTE_PROCESS(COMMAND python3 -c "import os; os.environ['TF_CPP_MIN_LOG_LEVEL']='3'; import tensorflow as tf; print(tf.sysconfig.get_lib(), end='', flush=True)" OUTPUT_VARIABLE TF_LIB)
MESSAGE(STATUS "Found TF_INC: " ${TF_INC})
#MESSAGE(STATUS "Found TF_INC_EXTERNAL: " ${TF_INC}/external/nsync/public)
MESSAGE(STATUS "Found TF_LIB: " ${TF_LIB})
INCLUDE_DIRECTORIES(${TF_INC})
#INCLUDE_DIRECTORIES(${TF_INC}/external/nsync/public)
LINK_DIRECTORIES(${TF_LIB})
ADD_LIBRARY(extr_module SHARED
testbug.cc
)
TARGET_LINK_LIBRARIES(extr_module tensorflow_framework)
</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>
<p dir="auto">This is a really minor issue. But I think it should be fixed to add that <a href="https://media.giphy.com/media/l4Jz3a8jO92crUlWM/giphy.gif" rel="nofollow">final touch</a> 😏 Just tell me if you want this to be corrected and I'll send a PR this weekend. Thanks for making this lib! ❤️</p>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto"><code class="notranslate"><Tab></code> button should not have border radius</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5027156/30478084-cda12e16-9a0f-11e7-9018-6afacb800dc1.png"><img src="https://user-images.githubusercontent.com/5027156/30478084-cda12e16-9a0f-11e7-9018-6afacb800dc1.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Only reproducible in chrome > 63 (canary atm)<br>
Use the example at <a href="https://material-ui-1dab0.firebaseapp.com/demos/tabs/#basic-tabs" rel="nofollow">https://material-ui-1dab0.firebaseapp.com/demos/tabs/#basic-tabs</a></p> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto"><code class="notranslate">npm run flow</code> should yield no errors with the latest <code class="notranslate">flow-bin</code> on master.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Lots of errors, primarily around HoCs and defaultProps. It looks like <code class="notranslate">react-flow-types</code> needs upgrading, but that's not the only source of issues.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="yarn install [email protected]
npm run flow"><pre class="notranslate"><code class="notranslate">yarn install [email protected]
npm run flow
</code></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">Prevents apps that utilize <code class="notranslate">material-ui</code> from upgrading to the latest <code class="notranslate">flow-bin</code></p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>v1.0.0-beta.17</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>N/A</td>
</tr>
</tbody>
</table> | 0 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df = pd.DataFrame.from_dict({'A': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'B': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'C': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'D': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'E': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'F': {(42, 'foo', 4): 0, (42, 'foo', 9): 0},
'G': {(42, 'foo', 4): 1, (42, 'foo', 9): 1}})
print(df.reindex(pd.RangeIndex(-1, 11), level=2, fill_value=0))"><pre class="notranslate"><span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>.<span class="pl-en">from_dict</span>({<span class="pl-s">'A'</span>: {(<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">4</span>): <span class="pl-c1">0</span>, (<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">9</span>): <span class="pl-c1">0</span>},
<span class="pl-s">'B'</span>: {(<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">4</span>): <span class="pl-c1">0</span>, (<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">9</span>): <span class="pl-c1">0</span>},
<span class="pl-s">'C'</span>: {(<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">4</span>): <span class="pl-c1">0</span>, (<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">9</span>): <span class="pl-c1">0</span>},
<span class="pl-s">'D'</span>: {(<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">4</span>): <span class="pl-c1">0</span>, (<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">9</span>): <span class="pl-c1">0</span>},
<span class="pl-s">'E'</span>: {(<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">4</span>): <span class="pl-c1">0</span>, (<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">9</span>): <span class="pl-c1">0</span>},
<span class="pl-s">'F'</span>: {(<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">4</span>): <span class="pl-c1">0</span>, (<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">9</span>): <span class="pl-c1">0</span>},
<span class="pl-s">'G'</span>: {(<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">4</span>): <span class="pl-c1">1</span>, (<span class="pl-c1">42</span>, <span class="pl-s">'foo'</span>, <span class="pl-c1">9</span>): <span class="pl-c1">1</span>}})
<span class="pl-en">print</span>(<span class="pl-s1">df</span>.<span class="pl-en">reindex</span>(<span class="pl-s1">pd</span>.<span class="pl-v">RangeIndex</span>(<span class="pl-c1">-</span><span class="pl-c1">1</span>, <span class="pl-c1">11</span>), <span class="pl-s1">level</span><span class="pl-c1">=</span><span class="pl-c1">2</span>, <span class="pl-s1">fill_value</span><span class="pl-c1">=</span><span class="pl-c1">0</span>))</pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" A B C D E F G
42 foo 4 0 0 0 0 0 0 1
9 0 0 0 0 0 0 1"><pre class="notranslate"><code class="notranslate"> A B C D E F G
42 foo 4 0 0 0 0 0 0 1
9 0 0 0 0 0 0 1
</code></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">I would expect that the resulting dataframe have 12 rows, with indices <code class="notranslate">(42, 'foo', i)</code> for <code class="notranslate">i</code> from <code class="notranslate">-1</code> to <code class="notranslate">10</code>.</p>
<p dir="auto">Apologies if I am just misunderstanding something. I haven't managed to find any information in the docs on the reason for the current behavior.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Linux
OS-release: 4.14.24-1-MANJARO
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.22.0
pytest: None
pip: 9.0.1
setuptools: 38.5.1
Cython: 0.27.3
numpy: 1.14.0
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2018.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.1.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None"><pre class="notranslate"><code class="notranslate">INSTALLED VERSIONS
------------------
commit: None
python: 3.6.4.final.0
python-bits: 64
OS: Linux
OS-release: 4.14.24-1-MANJARO
machine: x86_64
processor:
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
LOCALE: en_US.UTF-8
pandas: 0.22.0
pytest: None
pip: 9.0.1
setuptools: 38.5.1
Cython: 0.27.3
numpy: 1.14.0
scipy: 1.0.0
pyarrow: None
xarray: None
IPython: 6.2.1
sphinx: None
patsy: None
dateutil: 2.6.1
pytz: 2018.3
blosc: None
bottleneck: None
tables: None
numexpr: None
feather: None
matplotlib: 2.1.2
openpyxl: None
xlrd: None
xlwt: None
xlsxwriter: None
lxml: None
bs4: None
html5lib: 1.0.1
sqlalchemy: None
pymysql: None
psycopg2: None
jinja2: 2.10
s3fs: None
fastparquet: None
pandas_gbq: None
pandas_datareader: None
</code></pre></div>
</details> | <p dir="auto">Under Windows 8 (x64), with Pandas v0.17.0 (from Anaconda) and up, Pandas.DataFrame.where() function is found to behave sporadically, sometimes returning the expected result and sometimes returning a dataframe filled with zeros.</p>
<p dir="auto">The following code demonstrates this behavior, observed for dataframes that have larger than 361 rows and columns.</p>
<p dir="auto">I observed that this problem does NOT exist in Pandas v0.16.2 on the same machine (Windows 8 x64, Anaconda), and in Pandas v0.17.1 under Mac OS (Anaconda).</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
import pandas as pd
n = 400
n_trials = 1000
df_1 = pd.DataFrame(data=np.random.random((n,n)), index=np.arange(0,n), columns=np.arange(0,n))
df_2 = pd.DataFrame(data=np.random.random((n,n)), index=np.arange(0,n), columns=np.arange(0,n))
count = 0
for i in xrange(0,n_trials):
res = df_1.where(df_2 > 0.5)
if (res < 1e-6).all().all():
count += 1
print "number of unexpected cases: ", count"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">400</span>
<span class="pl-s1">n_trials</span> <span class="pl-c1">=</span> <span class="pl-c1">1000</span>
<span class="pl-s1">df_1</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-s1">n</span>,<span class="pl-s1">n</span>)), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-s1">n</span>), <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-s1">n</span>))
<span class="pl-s1">df_2</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-s1">n</span>,<span class="pl-s1">n</span>)), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-s1">n</span>), <span class="pl-s1">columns</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-s1">n</span>))
<span class="pl-s1">count</span> <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-k">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">xrange</span>(<span class="pl-c1">0</span>,<span class="pl-s1">n_trials</span>):
<span class="pl-s1">res</span> <span class="pl-c1">=</span> <span class="pl-s1">df_1</span>.<span class="pl-en">where</span>(<span class="pl-s1">df_2</span> <span class="pl-c1">></span> <span class="pl-c1">0.5</span>)
<span class="pl-k">if</span> (<span class="pl-s1">res</span> <span class="pl-c1"><</span> <span class="pl-c1">1e-6</span>).<span class="pl-en">all</span>().<span class="pl-en">all</span>():
<span class="pl-s1">count</span> <span class="pl-c1">+=</span> <span class="pl-c1">1</span>
<span class="pl-k">print</span> <span class="pl-s">"number of unexpected cases: "</span>, <span class="pl-s1">count</span></pre></div>
<p dir="auto">returns non-zero counts.</p> | 0 |
<h1 dir="auto">Bug report</h1>
<p dir="auto">If you declare shared modules that consist of multiple internal libraries, and define shareKey for this module, you may get run-time JS exceptions <code class="notranslate">Type error: fn is not a function</code>, because ModuleFederationPlugin will register more internal libraries under the same shareKey, which will make some shared libraries inaccessible.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">Some shared modules consist of multiple separated libraries. For example, declaring rxjs module as shared:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shared: {
[ 'rxjs' ]
}"><pre class="notranslate"><code class="notranslate">shared: {
[ 'rxjs' ]
}
</code></pre></div>
<p dir="auto">In this case ModuleFederationPlugin will generate and register two separated JS libraries: <code class="notranslate">rxjs</code> and <code class="notranslate">rxjs/operators</code>, and register them like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="register("rxjs", "6.6.7", () => .... __webpack_require__(/*! ./node_modules/rxjs/_esm2015/index.js */ 5906)
register("rxjs/operators", "6.6.7", () => ... __webpack_require__(/*! ./node_modules/rxjs/_esm2015/operators/index.js */ 6370)"><pre class="notranslate"><code class="notranslate">register("rxjs", "6.6.7", () => .... __webpack_require__(/*! ./node_modules/rxjs/_esm2015/index.js */ 5906)
register("rxjs/operators", "6.6.7", () => ... __webpack_require__(/*! ./node_modules/rxjs/_esm2015/operators/index.js */ 6370)
</code></pre></div>
<p dir="auto">This works as expected. But there is a problem when you use shareKey in config:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shared: {
[ 'rxjs': { shareKey: 'rxjs for Angular 13' } ]
}"><pre class="notranslate"><code class="notranslate">shared: {
[ 'rxjs': { shareKey: 'rxjs for Angular 13' } ]
}
</code></pre></div>
<p dir="auto">In this case ModuleFederationPlugin will register both libraries under the same key:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="register("rxjs for Angular 13", "6.6.7", () => .... __webpack_require__(/*! ./node_modules/rxjs/_esm2015/index.js */ 5906)
register("rxjs for Angular 13", "6.6.7", () => ... __webpack_require__(/*! ./node_modules/rxjs/_esm2015/operators/index.js */ 6370)"><pre class="notranslate"><code class="notranslate">register("rxjs for Angular 13", "6.6.7", () => .... __webpack_require__(/*! ./node_modules/rxjs/_esm2015/index.js */ 5906)
register("rxjs for Angular 13", "6.6.7", () => ... __webpack_require__(/*! ./node_modules/rxjs/_esm2015/operators/index.js */ 6370)
</code></pre></div>
<p dir="auto">This will produce unexpected run-time JS errors: <code class="notranslate">Type error: fn is not a function</code>, whenever a function from the first library is called, because the function will be looked-up in the second library because it will override the first registered library due to the same key.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">ModuleFederationPlugin should correcly register and resolve multiple libraries (because developers are not aware if shared module consists with more libraries).</p>
<p dir="auto">There is currently a workaround for this problem if you need to use shareKey: you must explicitely define all internal libraries for a shared module, and define them unique shareKeys:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="shared: {
[
'rxjs': { shareKey: 'rxjs for Angular 13' },
'rxjs/operators': { shareKey: 'rxjs/operators for Angular 13' },
]
}"><pre class="notranslate"><code class="notranslate">shared: {
[
'rxjs': { shareKey: 'rxjs for Angular 13' },
'rxjs/operators': { shareKey: 'rxjs/operators for Angular 13' },
]
}
</code></pre></div>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.73.0<br>
Node.js version: 16.15.1<br>
Operating System: Windows 10<br>
Additional tools:</p> | <h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">When using Module Federation, sharing a dependency and your other dependencies are using it too but in different versions, it won't respect semver matching and use the same version for everything.<br>
For example, even when it is explicitly defined to be shared with <code class="notranslate">^8.3.2</code> in the top-level, it matches the <code class="notranslate">3.4.0</code> version that another deep dependency consumes.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3.4.0 does not satisfy constraint ^8.3.2"><pre class="notranslate"><code class="notranslate">3.4.0 does not satisfy constraint ^8.3.2
</code></pre></div>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">Repo that reproduces the issue - <a href="https://github.com/tzachbon/mf-shared-deep-dependency">https://github.com/tzachbon/mf-shared-deep-dependency</a></p>
<p dir="auto">This example tries to reproduce the problem when sharing a dependency that exists in multiple versions across the node modules but resolves the request incorrectly.</p>
<p dir="auto">In this example repo, I use <code class="notranslate">uuid</code> package.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="└─┬ @startup-code/[email protected] -> ./app1
├─┬ [email protected] -> ./lib
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected] deduped"><pre class="notranslate"><code class="notranslate">└─┬ @startup-code/[email protected] -> ./app1
├─┬ [email protected] -> ./lib
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
└─┬ [email protected]
└── [email protected] deduped
</code></pre></div>
<p dir="auto">This graph shows that the root <code class="notranslate">uuid</code> is 8.3.2 and the version under <code class="notranslate">lib</code> is 3.4.0.</p>
<p dir="auto"><code class="notranslate">lib</code> uses the <code class="notranslate">v3</code> method from <code class="notranslate">uuid</code>.<br>
This method exists only in version 8.3.2.</p>
<p dir="auto">By default, if we build this project, serve it and click on <code class="notranslate">new uuid</code>, <strong>everything crashes as expected</strong>:<br>
<a target="_blank" rel="noopener noreferrer" href="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-is-not-shared/console.png?raw=true"><img src="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-is-not-shared/console.png?raw=true" alt="console" style="max-width: 100%;"></a></p>
<p dir="auto">But when we use Module Federation and share this package from <code class="notranslate">app1</code> like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[
new ModuleFederationPlugin({
name: 'app1',
shared: {
lib: deps['lib'],
uuid: deps['uuid'], // <-- resolve to ^8.3.2
react: { singleton: true, requiredVersion: deps.react },
'react-dom': { singleton: true, requiredVersion: deps['react-dom'] },
},
})
]"><pre class="notranslate"><span class="pl-kos">[</span>
<span class="pl-k">new</span> <span class="pl-v">ModuleFederationPlugin</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'app1'</span><span class="pl-kos">,</span>
<span class="pl-c1">shared</span>: <span class="pl-kos">{</span>
<span class="pl-c1">lib</span>: <span class="pl-s1">deps</span><span class="pl-kos">[</span><span class="pl-s">'lib'</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c1">uuid</span>: <span class="pl-s1">deps</span><span class="pl-kos">[</span><span class="pl-s">'uuid'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c">// <-- resolve to ^8.3.2</span>
<span class="pl-c1">react</span>: <span class="pl-kos">{</span> <span class="pl-c1">singleton</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">requiredVersion</span>: <span class="pl-s1">deps</span><span class="pl-kos">.</span><span class="pl-c1">react</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">'react-dom'</span>: <span class="pl-kos">{</span> <span class="pl-c1">singleton</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">requiredVersion</span>: <span class="pl-s1">deps</span><span class="pl-kos">[</span><span class="pl-s">'react-dom'</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">We can see that the runtime understands the difference between the packages:<br>
<a target="_blank" rel="noopener noreferrer" href="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-shared/runtime.png?raw=true"><img src="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-shared/runtime.png?raw=true" alt="runtime" style="max-width: 100%;"></a></p>
<p dir="auto">But when we click on <code class="notranslate">new uuid</code> which crashed our app, it works (not the desired behavior)...<br>
<a target="_blank" rel="noopener noreferrer" href="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-shared/console.png?raw=true"><img src="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-shared/console.png?raw=true" alt="console" style="max-width: 100%;"></a></p>
<p dir="auto">When we look inside the index file, we can see the <code class="notranslate">moduleToHandlerMapping</code> resolve it incorrectly:<br>
<a target="_blank" rel="noopener noreferrer" href="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-shared/moduleToHandlerMapping.png?raw=true"><img src="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-shared/moduleToHandlerMapping.png?raw=true" alt="moduleToHandlerMapping" style="max-width: 100%;"></a></p>
<p dir="auto">And when we remove the <code class="notranslate">uuid</code> entry from the <code class="notranslate">shared</code> section in ModuleFederationPlugin we can see that the app behaves as expected:<br>
<a target="_blank" rel="noopener noreferrer" href="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-is-not-shared/console.png?raw=true"><img src="https://github.com/tzachbon/mf-shared-deep-dependency/blob/master/screenshots/uuid-is-not-shared/console.png?raw=true" alt="console" style="max-width: 100%;"></a></p>
<p dir="auto">For some reason, even when it is explicitly defined to be shared with <code class="notranslate">^8.3.2</code>, it matches the <code class="notranslate">3.4.0</code> version that <code class="notranslate">lib</code> consumes.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">I would expect that each dependency would get the correct package resolution according to the node resolution algorithm.<br>
In our example -</p>
<ul dir="auto">
<li>top level (App) - 8.3.2</li>
<li>lib - 3.4.0</li>
</ul>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 5.72.1<br>
Node.js version: v16.15.0<br>
NPM version: 8.5.5<br>
Operating System: MacOS Monterey 12.4</p>
<p dir="auto">Also asked in the Module Federation examples repo -<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1278088681" data-permission-text="Title is private" data-url="https://github.com/module-federation/module-federation-examples/issues/2033" data-hovercard-type="issue" data-hovercard-url="/module-federation/module-federation-examples/issues/2033/hovercard" href="https://github.com/module-federation/module-federation-examples/issues/2033">module-federation/module-federation-examples#2033</a></p> | 1 |
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/sass/store-data-with-sass-variables" rel="nofollow">store-data-with-sass-variables</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.98 Safari/537.36</code>.<br>
To reproduce issue just copy/paste included code into page with challenge and run it,<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/23126351/24335536/17e7c5ca-124d-11e7-9ae1-4f5152eb6d23.png"><img src="https://cloud.githubusercontent.com/assets/23126351/24335536/17e7c5ca-124d-11e7-9ae1-4f5152eb6d23.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Same code in jsfiddle:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/23126351/24335578/fcc18dca-124d-11e7-9c29-72fc9a4980f1.png"><img src="https://cloud.githubusercontent.com/assets/23126351/24335578/fcc18dca-124d-11e7-9c29-72fc9a4980f1.png" alt="2017-03-26_17-56-20" style="max-width: 100%;"></a></p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<style>
$text-color: red;
.header{
text-align: center;
}
.blog-post, h2{
color: $text-color;
}
</style>
<h1 class="header">Learn Sass</h1>
<div class="blog-post">
<h2>Some random title</h2>
<p>This is a paragraph with some random text in it</p>
</div>
<div class="blog-post">
<h2>Header #2</h2>
<p>Here is some more random text.</p>
</div>
<div class="blog-post">
<h2>Here is another header</h2>
<p>Even more random text within a paragraph</p>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
$text<span class="pl-c1">-</span>col<span class="pl-c1">or</span><span class="pl-kos">:</span> <span class="pl-c1">red</span>;
.<span class="pl-c1">header</span>{
<span class="pl-c1">text-align</span><span class="pl-kos">:</span> center;
}
.<span class="pl-c1">blog-post</span><span class="pl-kos">,</span> <span class="pl-ent">h2</span>{
<span class="pl-c1">color</span><span class="pl-kos">:</span> $text<span class="pl-c1">-</span>col<span class="pl-c1">or</span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h1</span> <span class="pl-c1">class</span>="<span class="pl-s">header</span>"<span class="pl-kos">></span>Learn Sass<span class="pl-kos"></</span><span class="pl-ent">h1</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">blog-post</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>Some random title<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>This is a paragraph with some random text in it<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">blog-post</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>Header #2<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Here is some more random text.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">blog-post</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>Here is another header<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Even more random text within a paragraph<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">edited: attached screenshot<br>
edited-2: attached jsfiddle<br>
edited-3: added "edited" part at the end</p> | <p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/sass/storing-data-with-sass-variables" rel="nofollow">storing-data-with-sass-variables</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36</code>.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<style>
$text-color: red;
.header{
text-align: center;
}
.blog-post h2 {
color: $text-color;
}
</style>
<h1 class="header">Learn Sass</h1>
<div class="blog-post">
<h2>Some random title</h2>
<p>This is a paragraph with some random text in it</p>
</div>
<div class="blog-post">
<h2>Header #2</h2>
<p>Here is some more random text.</p>
</div>
<div class="blog-post">
<h2>Here is another header</h2>
<p>Even more random text within a paragraph</p>
</div>"><pre class="notranslate">
<span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
$text<span class="pl-c1">-</span>col<span class="pl-c1">or</span><span class="pl-kos">:</span> <span class="pl-c1">red</span>;
.<span class="pl-c1">header</span>{
<span class="pl-c1">text-align</span><span class="pl-kos">:</span> center;
}
.<span class="pl-c1">blog-post</span> <span class="pl-ent">h2</span> {
<span class="pl-c1">color</span><span class="pl-kos">:</span> $text<span class="pl-c1">-</span>col<span class="pl-c1">or</span>;
}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h1</span> <span class="pl-c1">class</span>="<span class="pl-s">header</span>"<span class="pl-kos">></span>Learn Sass<span class="pl-kos"></</span><span class="pl-ent">h1</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">blog-post</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>Some random title<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>This is a paragraph with some random text in it<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">blog-post</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>Header #2<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Here is some more random text.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">blog-post</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>Here is another header<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Even more random text within a paragraph<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div>
<p dir="auto">Hello Everyone, I think I found a bug in the challenge Storing Data With Sass Variables. I think I did everything right, but the h2 and the .blog-post elements colour doesn't change to red. I pass two of the user stories but not these:<br>
Your .blog-post element should have a color of red.<br>
Your h2 elements should have a color of red.</p>
<p dir="auto">It also doesn't change red. But it passes the user stories:<br>
Your code should have a Sass variable declared for $text-color with a value of red.<br>
Your code should use the $text-color variable to change the color for the .blog-post and h2 items</p>
<p dir="auto">Thank you in advance, and the new things in Beta seem amazing keep up the great work! Can't wait to work through more of them! <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji></p> | 1 |
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/basic-css/use-css-selectors-to-style-elements" rel="nofollow">use-css-selectors-to-style-elements</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:51.0) Gecko/20100101 Firefox/51.0</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
<style>
h2{color:blue;}
</style>
<h2>CatPhotoApp</h2>
<main>
<p>Click here to view more <a href="#">cat photos</a>.</p>
<a href="#"><img src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>
<div>
<p>Things cats love:</p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
</div>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor" checked> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label><br>
<label><input type="checkbox" name="personality" checked> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Energetic</label><br>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</main>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-ent">h2</span>{<span class="pl-c1">color</span><span class="pl-kos">:</span>blue;}
<span class="pl-kos"></</span><span class="pl-ent">style</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h2</span><span class="pl-kos">></span>CatPhotoApp<span class="pl-kos"></</span><span class="pl-ent">h2</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">main</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Click here to view more <span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span>cat photos<span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>.<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">#</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">img</span> <span class="pl-c1">src</span>="<span class="pl-s">https://bit.ly/fcc-relaxing-cat</span>" <span class="pl-c1">alt</span>="<span class="pl-s">A cute orange cat lying on its back.</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Things cats love:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>cat nip<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>laser pointers<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>lasagna<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ul</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">p</span><span class="pl-kos">></span>Top 3 things cats hate:<span class="pl-kos"></</span><span class="pl-ent">p</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>flea treatment<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>thunder<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">li</span><span class="pl-kos">></span>other cats<span class="pl-kos"></</span><span class="pl-ent">li</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">ol</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/submit-cat-photo</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>" <span class="pl-c1">checked</span><span class="pl-kos">></span> Indoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">radio</span>" <span class="pl-c1">name</span>="<span class="pl-s">indoor-outdoor</span>"<span class="pl-kos">></span> Outdoor<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">br</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>" <span class="pl-c1">checked</span><span class="pl-kos">></span> Loving<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Lazy<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">checkbox</span>" <span class="pl-c1">name</span>="<span class="pl-s">personality</span>"<span class="pl-kos">></span> Energetic<span class="pl-kos"></</span><span class="pl-ent">label</span><span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">br</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span>="<span class="pl-s">text</span>" <span class="pl-c1">placeholder</span>="<span class="pl-s">cat photo URL</span>" <span class="pl-c1">required</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span>="<span class="pl-s">submit</span>"<span class="pl-kos">></span>Submit<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">form</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">main</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-change-the-css-of-an-element-using-jquery" rel="nofollow">http://freecodecamp.com/challenges/waypoint-change-the-css-of-an-element-using-jquery</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">all jquery exercises constantly refreshes the page , couple of seconds later you passed the test popup shows up even though i cant change the code because of the refreshing issue.</p>
<p dir="auto">If document.ready is present in the code deleting one letter of it solves the issue temporarily</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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: dubbo2.7.1</li>
<li>Operating System version: windows 10</li>
<li>Java version: java 8</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>dubbo 2.5.3版本下自定义扩展Invoker</li>
<li>升级dubbo版本至2.7.1</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above [steps?]<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/26382649/56411587-d85aad00-62b3-11e9-8001-7aa586dd4f45.png"><img src="https://user-images.githubusercontent.com/26382649/56411587-d85aad00-62b3-11e9-8001-7aa586dd4f45.png" alt="image" style="max-width: 100%;"></a><br>
dubbo 2.5.3版本下自定义扩展Invoker,在dubbo2.7.1环境下运行,消费端直接返回null,这里default invoke方法应该调用接口定义的老版本invoke方法</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?<br>
return null</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.6.1</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">how config dubbo(x) to support websocket,I've tried many methods, but didn't work.</p>
<p dir="auto">don't know how to config rest easy to support it.</p> | 0 |
<p dir="auto"><strong>Bug summary</strong><br>
When using Pyinstaller in version 3.3.1, I get an error message that "defaultParams" is not defined.<br>
The dictionary is located in __ init __.py @ line # 563 (Version 3.3.1).</p>
<p dir="auto">In Version 3.2.2, "defaultParams" was imported from rcsetup at beginning of file, but in version 3.3.1 it is not present</p>
<p dir="auto">Version 3.2.2 ==> <strong>from matplotlib.rcsetup import defaultParams, validate_backend, cycler</strong><br>
Version 3.3.1 ==> <strong>from matplotlib.rcsetup import validate_backend, cycler</strong></p>
<p dir="auto">The only other location where "defaultParams" can be brought into __ init __.py is @ line # 916, but maybe it is too far down for program to see.</p>
<p dir="auto">I tried adding the import back, but does not work :)</p>
<p dir="auto"><strong>Code for reproduction</strong><br>
No code, just regular freezing in Pyinstaller</p>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "c:\python37-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.__dict__)
File "matplotlib\__init__.py", line 905, in <module>
File "matplotlib\cbook\__init__.py", line 480, in _get_data_path
File "matplotlib\__init__.py", line 239, in wrapper
File "matplotlib\__init__.py", line 534, in get_data_path
File "matplotlib\__init__.py", line 239, in wrapper
File "matplotlib\__init__.py", line 563, in _get_data_path
NameError: name 'defaultParams' is not defined"><pre class="notranslate"><code class="notranslate"> File "<frozen importlib._bootstrap>", line 983, in _find_and_load
File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
File "c:\python37-32\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 493, in exec_module
exec(bytecode, module.__dict__)
File "matplotlib\__init__.py", line 905, in <module>
File "matplotlib\cbook\__init__.py", line 480, in _get_data_path
File "matplotlib\__init__.py", line 239, in wrapper
File "matplotlib\__init__.py", line 534, in get_data_path
File "matplotlib\__init__.py", line 239, in wrapper
File "matplotlib\__init__.py", line 563, in _get_data_path
NameError: name 'defaultParams' is not defined
</code></pre></div>
<ul dir="auto">
<li>Operating system: Win 10</li>
<li>Matplotlib version: 3.3.1</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): matplotlib.backends.backend_qt5agg</li>
<li>Python version: 3.7.7</li>
<li>Other libraries: PyQt5: 5.15.0</li>
</ul> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">I try to plot some dataframe with matplotlib in a GUI designed by pyqt5. I use <code class="notranslate">pyinstaller</code> for packaging as following:</p>
<p dir="auto"><code class="notranslate"> pyinstaller main.py</code></p>
<p dir="auto">and its outcome:</p>
<blockquote>
<p dir="auto">33 INFO: PyInstaller: 3.4<br>
34 INFO: Python: 3.6.9<br>
34 INFO: Platform: Linux-5.4.0-42-generic-x86_64-with-Ubuntu-18.04-bionic<br>
35 INFO: wrote /home/shahriar/python_projects/first_test/src/main/python/main.spec<br>
36 INFO: UPX is not available.<br>
37 INFO: Extending PYTHONPATH with paths<br>
['/home/shahriar/python_projects/first_test/src/main/python',<br>
'/home/shahriar/python_projects/first_test/src/main/python']<br>
38 INFO: checking Analysis<br>
58 INFO: Building because /home/shahriar/python_projects/first_test/src/main/python/main.py changed<br>
59 INFO: Initializing module dependency graph...<br>
60 INFO: Initializing module graph hooks...<br>
61 INFO: Analyzing base_library.zip ...<br>
2440 INFO: running Analysis Analysis-00.toc<br>
2485 INFO: Caching module hooks...<br>
2490 INFO: Analyzing /home/shahriar/python_projects/first_test/src/main/python/main.py<br>
3151 INFO: Processing pre-find module path hook distutils<br>
3996 INFO: Processing pre-safe import module hook setuptools.extern.six.moves<br>
4263 INFO: Processing pre-find module path hook site<br>
4263 INFO: site: retargeting to fake-dir '/home/shahriar/first_test/lib/python3.6/site-packages/PyInstaller/fake-modules'<br>
8256 INFO: Processing pre-safe import module hook six.moves<br>
22239 INFO: Loading module hooks...<br>
22239 INFO: Loading module hook "hook-sqlite3.py"...<br>
22285 INFO: Loading module hook "hook-scipy.py"...<br>
22286 INFO: Loading module hook "hook-distutils.py"...<br>
22286 INFO: Loading module hook "hook-scipy.sparse.csgraph.py"...<br>
22289 INFO: Loading module hook "hook-scipy.linalg.py"...<br>
22290 INFO: Loading module hook "hook-PyQt5.QtGui.py"...<br>
22385 INFO: Loading module hook "hook-PyQt5.py"...<br>
22400 INFO: Loading module hook "hook-numpy.core.py"...<br>
22529 INFO: Loading module hook "hook-PyQt5.QtCore.py"...<br>
22555 INFO: Loading module hook "hook-encodings.py"...<br>
22607 INFO: Loading module hook "hook-matplotlib.py"...<br>
22878 INFO: Loading module hook "hook-PIL.Image.py"...<br>
23238 INFO: Loading module hook "hook-pycparser.py"...<br>
23239 INFO: Loading module hook "hook-lib2to3.py"...<br>
23240 INFO: Loading module hook "hook-sysconfig.py"...<br>
23245 INFO: Loading module hook "hook-numpy.py"...<br>
23246 INFO: Loading module hook "hook-xml.etree.cElementTree.py"...<br>
23246 INFO: Loading module hook "hook-pkg_resources.py"...<br>
23589 INFO: Processing pre-safe import module hook win32com<br>
23631 INFO: Loading module hook "hook-PyQt5.QtWidgets.py"...<br>
23702 INFO: Loading module hook "hook-pytz.py"...<br>
23722 INFO: Loading module hook "hook-scipy.special._ufuncs.py"...<br>
23722 INFO: Loading module hook "hook-pydoc.py"...<br>
23723 INFO: Loading module hook "hook-_tkinter.py"...<br>
23804 INFO: checking Tree<br>
23808 INFO: checking Tree<br>
23809 INFO: Loading module hook "hook-setuptools.py"...<br>
/home/shahriar/first_test/lib/python3.6/site-packages/setuptools/distutils_patch.py:26: UserWarning: Distutils was imported before Setuptools. This usage is discouraged and may exhibit undesirable behaviors or errors. Please use Setuptools' objects directly or at least import Setuptools first.<br>
"Distutils was imported before Setuptools. This usage is discouraged "<br>
24243 INFO: Loading module hook "hook-scipy.special._ellip_harm_2.py"...<br>
24244 INFO: Loading module hook "hook-matplotlib.backends.py"...<br>
24998 INFO: Matplotlib backend "GTK3Agg": ignored<br>
The GTK3 backends require PyGObject<br>
25466 INFO: Matplotlib backend "GTK3Cairo": ignored<br>
The GTK3 backends require PyGObject<br>
25726 INFO: Matplotlib backend "MacOSX": ignored<br>
cannot import name '_macosx'<br>
25991 INFO: Matplotlib backend "nbAgg": ignored<br>
No module named 'IPython'<br>
-c:12: MatplotlibDeprecationWarning:<br>
The matplotlib.backends.backend_qt4agg backend was deprecated in Matplotlib 3.3 and will be removed two minor releases later.<br>
26478 INFO: Matplotlib backend "Qt4Agg": added<br>
-c:12: MatplotlibDeprecationWarning:<br>
The matplotlib.backends.backend_qt4cairo backend was deprecated in Matplotlib 3.3 and will be removed two minor releases later.<br>
27028 INFO: Matplotlib backend "Qt4Cairo": added<br>
27514 INFO: Matplotlib backend "Qt5Agg": added<br>
28063 INFO: Matplotlib backend "Qt5Cairo": added<br>
28495 INFO: Matplotlib backend "TkAgg": added<br>
28964 INFO: Matplotlib backend "TkCairo": added<br>
29231 INFO: Matplotlib backend "WebAgg": ignored<br>
Traceback (most recent call last):<br>
File "/home/shahriar/first_test/lib/python3.6/site-packages/matplotlib/backends/backend_webagg.py", line 27, in <br>
import tornado<br>
ModuleNotFoundError: No module named 'tornado'</p>
<p dir="auto">The above exception was the direct cause of the following exception:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 12, in <br>
File "/home/shahriar/first_test/lib/python3.6/site-packages/matplotlib/backends/backend_webagg.py", line 29, in <br>
raise RuntimeError("The WebAgg backend requires Tornado.") from err<br>
RuntimeError: The WebAgg backend requires Tornado.<br>
29649 INFO: Matplotlib backend "WX": ignored<br>
No module named 'wx'<br>
29910 INFO: Matplotlib backend "WXAgg": ignored<br>
No module named 'wx'<br>
30179 INFO: Matplotlib backend "WXCairo": ignored<br>
No module named 'wx'<br>
30505 INFO: Matplotlib backend "agg": added<br>
30868 INFO: Matplotlib backend "cairo": added<br>
31301 INFO: Matplotlib backend "pdf": added<br>
31727 INFO: Matplotlib backend "pgf": added<br>
32083 INFO: Matplotlib backend "ps": added<br>
32430 INFO: Matplotlib backend "svg": added<br>
32847 INFO: Matplotlib backend "template": added<br>
33202 INFO: Loading module hook "hook-PIL.py"...<br>
33205 INFO: Excluding import 'PyQt4'<br>
33207 INFO: Excluding import 'tkinter'<br>
33210 INFO: Removing import of tkinter from module PIL.ImageTk<br>
33211 INFO: Excluding import 'PySide'<br>
33214 INFO: Import to be excluded not found: 'FixTk'<br>
33215 INFO: Excluding import 'PyQt5'<br>
33217 INFO: Removing import of PyQt5.QtCore from module PIL.ImageQt<br>
33217 INFO: Removing import of PyQt5.QtGui from module PIL.ImageQt<br>
33217 INFO: Loading module hook "hook-xml.py"...<br>
33261 INFO: Loading module hook "hook-PIL.SpiderImagePlugin.py"...<br>
33263 INFO: Import to be excluded not found: 'FixTk'<br>
33263 INFO: Excluding import 'tkinter'<br>
33264 INFO: Loading module hook "hook-pandas.py"...<br>
33994 INFO: Looking for ctypes DLLs<br>
34103 WARNING: library user32 required via ctypes not found<br>
34214 WARNING: library msvcrt required via ctypes not found<br>
34235 INFO: Analyzing run-time hooks ...<br>
34249 INFO: Including run-time hook 'pyi_rth_pkgres.py'<br>
34250 INFO: Including run-time hook 'pyi_rth_multiprocessing.py'<br>
34253 INFO: Including run-time hook 'pyi_rth__tkinter.py'<br>
34254 INFO: Including run-time hook 'pyi_rth_mplconfig.py'<br>
34255 INFO: Including run-time hook 'pyi_rth_mpldata.py'<br>
34256 INFO: Including run-time hook 'pyi_rth_qt5.py'<br>
34284 INFO: Looking for dynamic libraries<br>
37779 INFO: Looking for eggs<br>
37780 INFO: Python library not in binary dependencies. Doing additional searching...<br>
37800 INFO: Using Python library /usr/lib/x86_64-linux-gnu/libpython3.6m.so.1.0<br>
37826 INFO: Warnings written to /home/shahriar/python_projects/first_test/src/main/python/build/main/warn-main.txt<br>
37958 INFO: Graph cross-reference written to /home/shahriar/python_projects/first_test/src/main/python/build/main/xref-main.html<br>
38033 INFO: checking PYZ<br>
38046 INFO: Building because toc changed<br>
38047 INFO: Building PYZ (ZlibArchive) /home/shahriar/python_projects/first_test/src/main/python/build/main/PYZ-00.pyz<br>
40255 INFO: Building PYZ (ZlibArchive) /home/shahriar/python_projects/first_test/src/main/python/build/main/PYZ-00.pyz completed successfully.<br>
40295 INFO: checking PKG<br>
40296 INFO: Building because toc changed<br>
40296 INFO: Building PKG (CArchive) PKG-00.pkg<br>
40460 INFO: Building PKG (CArchive) PKG-00.pkg completed successfully.<br>
40462 INFO: Bootloader /home/shahriar/first_test/lib/python3.6/site-packages/PyInstaller/bootloader/Linux-64bit/run<br>
40462 INFO: checking EXE<br>
40464 INFO: Building because toc changed<br>
40464 INFO: Building EXE from EXE-00.toc<br>
40466 INFO: Appending archive to ELF section in EXE /home/shahriar/python_projects/first_test/src/main/python/build/main/main<br>
40659 INFO: Building EXE from EXE-00.toc completed successfully.<br>
40665 INFO: checking COLLECT<br>
WARNING: The output directory "/home/shahriar/python_projects/first_test/src/main/python/dist/main" and ALL ITS CONTENTS will be REMOVED! Continue? (y/n)y<br>
110470 INFO: Removing dir /home/shahriar/python_projects/first_test/src/main/python/dist/main<br>
110556 INFO: Building COLLECT COLLECT-00.toc<br>
111044 INFO: Building COLLECT COLLECT-00.toc completed successfully.</p>
</blockquote>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">when I run the executable file as <code class="notranslate">./dist/main</code>, I get this error:</p>
<blockquote>
<p dir="auto">/home/shahriar/first_test/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py:627: MatplotlibDeprecationWarning: Matplotlib installs where the data is not in the mpl-data subdirectory of the package are deprecated since 3.2 and support for them will be removed two minor releases later.<br>
exec(bytecode, module.<strong>dict</strong>)<br>
Traceback (most recent call last):<br>
File "main.py", line 20, in <br>
from matplotlib import ticker<br>
File "", line 971, in _find_and_load<br>
File "", line 955, in _find_and_load_unlocked<br>
File "", line 665, in _load_unlocked<br>
File "/home/shahriar/first_test/lib/python3.6/site-packages/PyInstaller/loader/pyimod03_importers.py", line 627, in exec_module<br>
exec(bytecode, module.<strong>dict</strong>)<br>
File "matplotlib/<strong>init</strong>.py", line 898, in <br>
File "matplotlib/cbook/<strong>init</strong>.py", line 480, in _get_data_path<br>
File "matplotlib/<strong>init</strong>.py", line 239, in wrapper<br>
File "matplotlib/<strong>init</strong>.py", line 534, in get_data_path<br>
File "matplotlib/<strong>init</strong>.py", line 239, in wrapper<br>
File "matplotlib/<strong>init</strong>.py", line 563, in _get_data_path<br>
NameError: name 'defaultParams' is not defined<br>
[24669] Failed to execute script main</p>
</blockquote>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# If applicable, paste the console output here
#
#"><pre class="notranslate"><code class="notranslate"># If applicable, paste the console output here
#
#
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">an executable file of my project</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: ubuntu 18.04</li>
<li>Matplotlib version: 3.3.0</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>):Backend Qt5Agg is interactive backend. Turning interactive mode on. Qt5Agg</li>
<li>Python version:3.6.9</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries: pyqt5, pyinstaller, pandas</li>
</ul> | 1 |
<p dir="auto">Julia version: 0.4.6 - 0.6.0,<br>
OS: Ubuntu</p>
<p dir="auto">try run the following buggy code in repl:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="a=zeros(10000000)
a[a.==1,1:2]"><pre class="notranslate">a<span class="pl-k">=</span><span class="pl-c1">zeros</span>(<span class="pl-c1">10000000</span>)
a[a<span class="pl-k">.==</span><span class="pl-c1">1</span>,<span class="pl-c1">1</span><span class="pl-k">:</span><span class="pl-c1">2</span>]</pre></div>
<p dir="auto">then the screen is flooded with red <code class="notranslate">false</code> for a while. Maybe it not very helpful dumping such a large array?</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9464825/19060667/98834fec-8a1c-11e6-8036-8206c94ce4fb.png"><img src="https://cloud.githubusercontent.com/assets/9464825/19060667/98834fec-8a1c-11e6-8036-8206c94ce4fb.png" alt="julia" style="max-width: 100%;"></a></p>
<p dir="auto">In addition (separate issue?), if press <code class="notranslate">ctrl+c</code> in the middle of printing, julia will crash with</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SYSTEM: show(lasterr) caused an error
ERROR: InterruptException:
in print_response(::Base.Terminals.TTYTerminal, ::Any, ::Array{Ptr{Void},1}, ::Bool, ::Bool, ::Void) at ./REPL.jl:176
in print_response(::Base.REPL.LineEditREPL, ::Any, ::Array{Ptr{Void},1}, ::Bool, ::Bool) at ./REPL.jl:141
in (::Base.REPL.##22#23{Bool,Base.REPL.##33#42{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:654
in run_interface(::Base.Terminals.TTYTerminal, ::Base.LineEdit.ModalInterface) at ./LineEdit.jl:1579
in run_frontend(::Base.REPL.LineEditREPL, ::Base.REPL.REPLBackendRef) at ./REPL.jl:931
in run_repl(::Base.REPL.LineEditREPL, ::Base.##926#927) at ./REPL.jl:190
in _start() at ./client.jl:368"><pre class="notranslate">SYSTEM<span class="pl-k">:</span> <span class="pl-c1">show</span>(lasterr) caused an error
ERROR<span class="pl-k">:</span> InterruptException<span class="pl-k">:</span>
<span class="pl-k">in</span> <span class="pl-c1">print_response</span>(<span class="pl-k">::</span><span class="pl-c1">Base.Terminals.TTYTerminal</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Array{Ptr{Void},1}</span>, <span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-k">::</span><span class="pl-c1">Void</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">176</span>
<span class="pl-k">in</span> <span class="pl-c1">print_response</span>(<span class="pl-k">::</span><span class="pl-c1">Base.REPL.LineEditREPL</span>, <span class="pl-k">::</span><span class="pl-c1">Any</span>, <span class="pl-k">::</span><span class="pl-c1">Array{Ptr{Void},1}</span>, <span class="pl-k">::</span><span class="pl-c1">Bool</span>, <span class="pl-k">::</span><span class="pl-c1">Bool</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">141</span>
<span class="pl-k">in</span> (<span class="pl-k">::</span><span class="pl-c1">Base.REPL.</span><span class="pl-c"><span class="pl-c">#</span>#22#23{Bool,Base.REPL.##33#42{Base.REPL.LineEditREPL,Base.REPL.REPLHistoryProvider},Base.REPL.LineEditREPL,Base.LineEdit.Prompt})(::Base.LineEdit.MIState, ::Base.AbstractIOBuffer{Array{UInt8,1}}, ::Bool) at ./REPL.jl:654</span>
<span class="pl-k">in</span> <span class="pl-c1">run_interface</span>(<span class="pl-k">::</span><span class="pl-c1">Base.Terminals.TTYTerminal</span>, <span class="pl-k">::</span><span class="pl-c1">Base.LineEdit.ModalInterface</span>) at <span class="pl-k">./</span>LineEdit<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">1579</span>
<span class="pl-k">in</span> <span class="pl-c1">run_frontend</span>(<span class="pl-k">::</span><span class="pl-c1">Base.REPL.LineEditREPL</span>, <span class="pl-k">::</span><span class="pl-c1">Base.REPL.REPLBackendRef</span>) at <span class="pl-k">./</span>REPL<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">931</span>
<span class="pl-k">in</span> <span class="pl-c1">run_repl</span>(<span class="pl-k">::</span><span class="pl-c1">Base.REPL.LineEditREPL</span>, <span class="pl-k">::</span><span class="pl-c1">Base.</span><span class="pl-c"><span class="pl-c">#</span>#926#927) at ./REPL.jl:190</span>
<span class="pl-k">in</span> <span class="pl-c1">_start</span>() at <span class="pl-k">./</span>client<span class="pl-k">.</span>jl<span class="pl-k">:</span><span class="pl-c1">368</span></pre></div> | <p dir="auto">For BoundsError, the entire index is printed even if it is a large array. Example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> [][[true for i=1:100]]
ERROR: BoundsError: attempt to access 0-element Array{Any,1}
at index [true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]
in throw_boundserror at ./abstractarray.jl:147
[inlined code] from ./abstractarray.jl:154
in anonymous at ./no file:4294967295
in eval at ./boot.jl:265"><pre class="notranslate"><code class="notranslate">julia> [][[true for i=1:100]]
ERROR: BoundsError: attempt to access 0-element Array{Any,1}
at index [true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true]
in throw_boundserror at ./abstractarray.jl:147
[inlined code] from ./abstractarray.jl:154
in anonymous at ./no file:4294967295
in eval at ./boot.jl:265
</code></pre></div>
<p dir="auto">I got trapped several times filtering a million-line DataFrame and forgetting the second dimension (like <code class="notranslate">df[df[:X] .== x]</code>), but the issue doesn't seem to be specific to DataFrames.</p> | 1 |
<p dir="auto">Hi we have many use cases where Twitter Bootstrap is only part of the page's design. Jquery plugins, custom code, legacy templates, etc etc all collide with Twitter Bootstrap's css. There should be an option to prefix the css for Twitter Bootstrap so that the scope is limited on page. Thank you!</p> | <p dir="auto">To prevent random mixing of styles maybe we should use prefix?</p>
<p dir="auto">For example, <code class="notranslate">.tb-span6</code> or <code class="notranslate">.tb-row</code> instead <code class="notranslate">.span6</code> or <code class="notranslate">.row</code>?</p>
<p dir="auto"><code class="notranslate">.menu</code>, <code class="notranslate">.navbar</code> is so common class names so it may a little confusing without prefix</p> | 1 |
<p dir="auto"><strong>Description</strong></p>
<p dir="auto">I'm currently migrating an API to FastAPI and I'm trying to prevent too many changes regarding how you call the API. To filter on the old API you'd pass a json serialized complex dict(with nested dicts and lists in it) as a query parameter and this would then be deserialized and parsed to create the filter. I can make this work in FastAPI as well, but this means I have to call <code class="notranslate">json.loads(filter_)</code> in every route that uses it, and it kind of feels like there is a way to declare a custom type that does this for me.</p>
<p dir="auto">On a similar note: the old API had comma separated lists. For example: <code class="notranslate">?columns=id,name,email</code>. If I define something as a list in FastAPI right now I have to pass it this: <code class="notranslate">?columns=id&columns=name&columns=email</code> which seems really verbose for my usecase(I can see it being useful if your data would potentially contain a "," though), so I'd like to write a custom parser for that as well(although iirc OpenAPI has support for this way of defining lists already somewhere).</p>
<p dir="auto">Could you help point me in the right direction on how to solve these issues?</p> | <h3 dir="auto">First Check</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I added a very descriptive title to this issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I used the GitHub search to find a similar issue and didn't find it.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I searched the FastAPI documentation, with the integrated search.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already searched in Google "How to X in FastAPI" and didn't find any information.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already read and followed all the tutorial in the docs and didn't find an answer.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/samuelcolvin/pydantic">Pydantic</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/swagger-api/swagger-ui">Swagger UI</a>.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I already checked if it is not related to FastAPI but to <a href="https://github.com/Redocly/redoc">ReDoc</a>.</li>
</ul>
<h3 dir="auto">Commit to Help</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I commit to help with one of those options <g-emoji class="g-emoji" alias="point_up_2" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f446.png">👆</g-emoji></li>
</ul>
<h3 dir="auto">Example Code</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import uvicorn
from fastapi import FastAPI, Depends
from pydantic import BaseModel, StrictInt
app = FastAPI()
class Model(BaseModel):
foo: StrictInt
bar: StrictInt
def dependency(request: Model):
return request.foo + request.bar
@app.post("/")
def foo(request: Model, processed_data: int = Depends(dependency)):
return "hello"
uvicorn.run(app, port=8000)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">uvicorn</span>
<span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>, <span class="pl-v">Depends</span>
<span class="pl-k">from</span> <span class="pl-s1">pydantic</span> <span class="pl-k">import</span> <span class="pl-v">BaseModel</span>, <span class="pl-v">StrictInt</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>()
<span class="pl-k">class</span> <span class="pl-v">Model</span>(<span class="pl-v">BaseModel</span>):
<span class="pl-s1">foo</span>: <span class="pl-v">StrictInt</span>
<span class="pl-s1">bar</span>: <span class="pl-v">StrictInt</span>
<span class="pl-k">def</span> <span class="pl-en">dependency</span>(<span class="pl-s1">request</span>: <span class="pl-v">Model</span>):
<span class="pl-k">return</span> <span class="pl-s1">request</span>.<span class="pl-s1">foo</span> <span class="pl-c1">+</span> <span class="pl-s1">request</span>.<span class="pl-s1">bar</span>
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">post</span>(<span class="pl-s">"/"</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">request</span>: <span class="pl-v">Model</span>, <span class="pl-s1">processed_data</span>: <span class="pl-s1">int</span> <span class="pl-c1">=</span> <span class="pl-v">Depends</span>(<span class="pl-s1">dependency</span>)):
<span class="pl-k">return</span> <span class="pl-s">"hello"</span>
<span class="pl-s1">uvicorn</span>.<span class="pl-en">run</span>(<span class="pl-s1">app</span>, <span class="pl-s1">port</span><span class="pl-c1">=</span><span class="pl-c1">8000</span>)</pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">I'm trying to make some request data postprocessing using FastAPI dependency.<br>
It works fine, but seems like data from request is dumped into Pydantic model multiple times. It leads to some overhead and excessive validation errors if any.</p>
<p dir="auto">For example, following request:<br>
<code class="notranslate">$ curl --location --request POST 'http://localhost:8000' --header 'Content-Type: application/json' --data-raw '{"bar": 2}'</code><br>
Will produce following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"detail": [
{
"loc": [
"body",
"foo"
],
"msg": "field required",
"type": "value_error.missing"
},
{
"loc": [
"body",
"foo"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}"><pre class="notranslate"><code class="notranslate">{
"detail": [
{
"loc": [
"body",
"foo"
],
"msg": "field required",
"type": "value_error.missing"
},
{
"loc": [
"body",
"foo"
],
"msg": "field required",
"type": "value_error.missing"
}
]
}
</code></pre></div>
<p dir="auto">which looks weird.<br>
Is there a correct way of doing this stuff using Pydantic models in methods declaration?</p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">Linux</p>
<h3 dir="auto">Operating System Details</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">FastAPI Version</h3>
<p dir="auto">0.68.1</p>
<h3 dir="auto">Python Version</h3>
<p dir="auto">3.9.5</p>
<h3 dir="auto">Additional Context</h3>
<p dir="auto"><em>No response</em></p> | 0 |
<p dir="auto">Very cool but when I building OpenCV from Source Using CMake, it not works. look forward to your reply! Thank you<br>
System information (version)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="OpenCV => 3.4.3
Operating System / Platform => ubuntu16.04 64 Bit
Compiler => cmake"><pre class="notranslate"><code class="notranslate">OpenCV => 3.4.3
Operating System / Platform => ubuntu16.04 64 Bit
Compiler => cmake
</code></pre></div>
<p dir="auto">Detailed description</p>
<p dir="auto">I download the opencv-3.4.3 and opencv_contrib-3.4.3,<br>
cd ~/opencv<br>
mkdir build<br>
cd build<br>
and i cmake as follows</p>
<p dir="auto">(base) lirui@lirui:~/cplusplus/opencv-3.4.3/build$ cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/home/lirui/cplusplus/opencv-3.4.3_install -D OPENCV_EXTRA_MODULES_PATH=/home/lirui/cplusplus/opencv_contrib-3.4.3/modules ..<br>
-- The CXX compiler identification is GNU 5.4.0<br>
-- The C compiler identification is GNU 5.4.0<br>
-- Check for working CXX compiler: /usr/bin/c++<br>
-- Check for working CXX compiler: /usr/bin/c++ -- works<br>
-- Detecting CXX compiler ABI info<br>
-- Detecting CXX compiler ABI info - done<br>
-- Detecting CXX compile features<br>
-- Detecting CXX compile features - done<br>
-- Check for working C compiler: /usr/bin/cc<br>
-- Check for working C compiler: /usr/bin/cc -- works<br>
-- Detecting C compiler ABI info<br>
-- Detecting C compiler ABI info - done<br>
-- Detecting C compile features<br>
-- Detecting C compile features - done<br>
-- Performing Test HAVE_CXX11 (check file: cmake/checks/cxx11.cpp)<br>
-- Performing Test HAVE_CXX11 - Failed<br>
-- Found PythonInterp: /usr/bin/python2.7 (found suitable version "2.7.12", minimum required is "2.7")<br>
-- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found suitable exact version "2.7.12")<br>
-- Found PythonInterp: /home/lirui/anaconda3/bin/python3 (found suitable version "3.7.6", minimum required is "3.4")<br>
-- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) (Required is exact version "3.7.6")<br>
-- Looking for ccache - not found<br>
-- Performing Test HAVE_CXX_FSIGNED_CHAR<br>
-- Performing Test HAVE_CXX_FSIGNED_CHAR - Success<br>
-- Performing Test HAVE_C_FSIGNED_CHAR<br>
-- Performing Test HAVE_C_FSIGNED_CHAR - Success<br>
-- Performing Test HAVE_CXX_W<br>
-- Performing Test HAVE_CXX_W - Success<br>
-- Performing Test HAVE_C_W<br>
-- Performing Test HAVE_C_W - Success<br>
-- Performing Test HAVE_CXX_WALL<br>
-- Performing Test HAVE_CXX_WALL - Success<br>
-- Performing Test HAVE_C_WALL<br>
-- Performing Test HAVE_C_WALL - Success<br>
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE<br>
-- Performing Test HAVE_CXX_WERROR_RETURN_TYPE - Success<br>
-- Performing Test HAVE_C_WERROR_RETURN_TYPE<br>
-- Performing Test HAVE_C_WERROR_RETURN_TYPE - Success<br>
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_CXX_WERROR_NON_VIRTUAL_DTOR - Success<br>
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_C_WERROR_NON_VIRTUAL_DTOR - Success<br>
-- Performing Test HAVE_CXX_WERROR_ADDRESS<br>
-- Performing Test HAVE_CXX_WERROR_ADDRESS - Success<br>
-- Performing Test HAVE_C_WERROR_ADDRESS<br>
-- Performing Test HAVE_C_WERROR_ADDRESS - Success<br>
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT<br>
-- Performing Test HAVE_CXX_WERROR_SEQUENCE_POINT - Success<br>
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT<br>
-- Performing Test HAVE_C_WERROR_SEQUENCE_POINT - Success<br>
-- Performing Test HAVE_CXX_WFORMAT<br>
-- Performing Test HAVE_CXX_WFORMAT - Success<br>
-- Performing Test HAVE_C_WFORMAT<br>
-- Performing Test HAVE_C_WFORMAT - Success<br>
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY<br>
-- Performing Test HAVE_CXX_WERROR_FORMAT_SECURITY - Success<br>
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY<br>
-- Performing Test HAVE_C_WERROR_FORMAT_SECURITY - Success<br>
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS<br>
-- Performing Test HAVE_CXX_WMISSING_DECLARATIONS - Success<br>
-- Performing Test HAVE_C_WMISSING_DECLARATIONS<br>
-- Performing Test HAVE_C_WMISSING_DECLARATIONS - Success<br>
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES<br>
-- Performing Test HAVE_CXX_WMISSING_PROTOTYPES - Failed<br>
-- Performing Test HAVE_C_WMISSING_PROTOTYPES<br>
-- Performing Test HAVE_C_WMISSING_PROTOTYPES - Success<br>
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES<br>
-- Performing Test HAVE_CXX_WSTRICT_PROTOTYPES - Failed<br>
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES<br>
-- Performing Test HAVE_C_WSTRICT_PROTOTYPES - Success<br>
-- Performing Test HAVE_CXX_WUNDEF<br>
-- Performing Test HAVE_CXX_WUNDEF - Success<br>
-- Performing Test HAVE_C_WUNDEF<br>
-- Performing Test HAVE_C_WUNDEF - Success<br>
-- Performing Test HAVE_CXX_WINIT_SELF<br>
-- Performing Test HAVE_CXX_WINIT_SELF - Success<br>
-- Performing Test HAVE_C_WINIT_SELF<br>
-- Performing Test HAVE_C_WINIT_SELF - Success<br>
-- Performing Test HAVE_CXX_WPOINTER_ARITH<br>
-- Performing Test HAVE_CXX_WPOINTER_ARITH - Success<br>
-- Performing Test HAVE_C_WPOINTER_ARITH<br>
-- Performing Test HAVE_C_WPOINTER_ARITH - Success<br>
-- Performing Test HAVE_CXX_WSHADOW<br>
-- Performing Test HAVE_CXX_WSHADOW - Success<br>
-- Performing Test HAVE_C_WSHADOW<br>
-- Performing Test HAVE_C_WSHADOW - Success<br>
-- Performing Test HAVE_CXX_WSIGN_PROMO<br>
-- Performing Test HAVE_CXX_WSIGN_PROMO - Success<br>
-- Performing Test HAVE_C_WSIGN_PROMO<br>
-- Performing Test HAVE_C_WSIGN_PROMO - Failed<br>
-- Performing Test HAVE_CXX_WUNINITIALIZED<br>
-- Performing Test HAVE_CXX_WUNINITIALIZED - Success<br>
-- Performing Test HAVE_C_WUNINITIALIZED<br>
-- Performing Test HAVE_C_WUNINITIALIZED - Success<br>
-- Performing Test HAVE_CXX_WNO_NARROWING<br>
-- Performing Test HAVE_CXX_WNO_NARROWING - Success<br>
-- Performing Test HAVE_C_WNO_NARROWING<br>
-- Performing Test HAVE_C_WNO_NARROWING - Success<br>
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_CXX_WNO_DELETE_NON_VIRTUAL_DTOR - Success<br>
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_C_WNO_DELETE_NON_VIRTUAL_DTOR - Failed<br>
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS<br>
-- Performing Test HAVE_CXX_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed<br>
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS<br>
-- Performing Test HAVE_C_WNO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed<br>
-- Performing Test HAVE_CXX_WNO_COMMENT<br>
-- Performing Test HAVE_CXX_WNO_COMMENT - Success<br>
-- Performing Test HAVE_C_WNO_COMMENT<br>
-- Performing Test HAVE_C_WNO_COMMENT - Success<br>
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION<br>
-- Performing Test HAVE_CXX_FDIAGNOSTICS_SHOW_OPTION - Success<br>
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION<br>
-- Performing Test HAVE_C_FDIAGNOSTICS_SHOW_OPTION - Success<br>
-- Performing Test HAVE_CXX_WNO_LONG_LONG<br>
-- Performing Test HAVE_CXX_WNO_LONG_LONG - Success<br>
-- Performing Test HAVE_C_WNO_LONG_LONG<br>
-- Performing Test HAVE_C_WNO_LONG_LONG - Success<br>
-- Performing Test HAVE_CXX_PTHREAD<br>
-- Performing Test HAVE_CXX_PTHREAD - Success<br>
-- Performing Test HAVE_C_PTHREAD<br>
-- Performing Test HAVE_C_PTHREAD - Success<br>
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER<br>
-- Performing Test HAVE_CXX_FOMIT_FRAME_POINTER - Success<br>
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER<br>
-- Performing Test HAVE_C_FOMIT_FRAME_POINTER - Success<br>
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS<br>
-- Performing Test HAVE_CXX_FFUNCTION_SECTIONS - Success<br>
-- Performing Test HAVE_C_FFUNCTION_SECTIONS<br>
-- Performing Test HAVE_C_FFUNCTION_SECTIONS - Success<br>
-- Performing Test HAVE_CXX_FDATA_SECTIONS<br>
-- Performing Test HAVE_CXX_FDATA_SECTIONS - Success<br>
-- Performing Test HAVE_C_FDATA_SECTIONS<br>
-- Performing Test HAVE_C_FDATA_SECTIONS - Success<br>
-- Performing Test HAVE_CXX_MSSE (check file: cmake/checks/cpu_sse.cpp)<br>
-- Performing Test HAVE_CXX_MSSE - Success<br>
-- Performing Test HAVE_CXX_MSSE2 (check file: cmake/checks/cpu_sse2.cpp)<br>
-- Performing Test HAVE_CXX_MSSE2 - Success<br>
-- Performing Test HAVE_CXX_MSSE3 (check file: cmake/checks/cpu_sse3.cpp)<br>
-- Performing Test HAVE_CXX_MSSE3 - Success<br>
-- Performing Test HAVE_CXX_MSSSE3 (check file: cmake/checks/cpu_ssse3.cpp)<br>
-- Performing Test HAVE_CXX_MSSSE3 - Success<br>
-- Performing Test HAVE_CXX_MSSE4_1 (check file: cmake/checks/cpu_sse41.cpp)<br>
-- Performing Test HAVE_CXX_MSSE4_1 - Success<br>
-- Performing Test HAVE_CXX_MPOPCNT (check file: cmake/checks/cpu_popcnt.cpp)<br>
-- Performing Test HAVE_CXX_MPOPCNT - Success<br>
-- Performing Test HAVE_CXX_MSSE4_2 (check file: cmake/checks/cpu_sse42.cpp)<br>
-- Performing Test HAVE_CXX_MSSE4_2 - Success<br>
-- Performing Test HAVE_CXX_MF16C (check file: cmake/checks/cpu_fp16.cpp)<br>
-- Performing Test HAVE_CXX_MF16C - Success<br>
-- Performing Test HAVE_CXX_MFMA<br>
-- Performing Test HAVE_CXX_MFMA - Success<br>
-- Performing Test HAVE_CXX_MAVX (check file: cmake/checks/cpu_avx.cpp)<br>
-- Performing Test HAVE_CXX_MAVX - Success<br>
-- Performing Test HAVE_CXX_MAVX2 (check file: cmake/checks/cpu_avx2.cpp)<br>
-- Performing Test HAVE_CXX_MAVX2 - Success<br>
-- Performing Test HAVE_CXX_MAVX512F (check file: cmake/checks/cpu_avx512.cpp)<br>
-- Performing Test HAVE_CXX_MAVX512F - Success<br>
-- Performing Test HAVE_CXX_MAVX512F_MAVX512CD_MAVX512VL_MAVX512BW_MAVX512DQ (check file: cmake/checks/cpu_avx512skx.cpp)<br>
-- Performing Test HAVE_CXX_MAVX512F_MAVX512CD_MAVX512VL_MAVX512BW_MAVX512DQ - Success<br>
-- Performing Test HAVE_CPU_BASELINE_FLAGS<br>
-- Performing Test HAVE_CPU_BASELINE_FLAGS - Success<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_1 - Success<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_SSE4_2 - Success<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_FP16 - Success<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX - Success<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX2 - Success<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX<br>
-- Performing Test HAVE_CPU_DISPATCH_FLAGS_AVX512_SKX - Success<br>
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN<br>
-- Performing Test HAVE_CXX_FVISIBILITY_HIDDEN - Success<br>
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN<br>
-- Performing Test HAVE_C_FVISIBILITY_HIDDEN - Success<br>
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN<br>
-- Performing Test HAVE_CXX_FVISIBILITY_INLINES_HIDDEN - Success<br>
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN<br>
-- Performing Test HAVE_C_FVISIBILITY_INLINES_HIDDEN - Failed<br>
-- Looking for pthread.h<br>
-- Looking for pthread.h - found<br>
-- Looking for posix_memalign<br>
-- Looking for posix_memalign - found<br>
-- Looking for malloc.h<br>
-- Looking for malloc.h - found<br>
-- Looking for memalign<br>
-- Looking for memalign - found<br>
-- Check if the system is big endian<br>
-- Searching 16 bit integer<br>
-- Looking for sys/types.h<br>
-- Looking for sys/types.h - found<br>
-- Looking for stdint.h<br>
-- Looking for stdint.h - found<br>
-- Looking for stddef.h<br>
-- Looking for stddef.h - found<br>
-- Check size of unsigned short<br>
-- Check size of unsigned short - done<br>
-- Using unsigned short<br>
-- Check if the system is big endian - little endian<br>
-- Found ZLIB: /home/lirui/anaconda3/lib/libz.so (found suitable version "1.2.11", minimum required is "1.2.3")<br>
-- Found JPEG: /home/lirui/anaconda3/lib/libjpeg.so<br>
-- Found TIFF: /home/lirui/anaconda3/lib/libtiff.so (found version "4.1.0")<br>
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE<br>
-- Performing Test HAVE_C_WNO_UNUSED_VARIABLE - Success<br>
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION<br>
-- Performing Test HAVE_C_WNO_UNUSED_FUNCTION - Success<br>
-- Performing Test HAVE_C_WNO_SHADOW<br>
-- Performing Test HAVE_C_WNO_SHADOW - Success<br>
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED<br>
-- Performing Test HAVE_C_WNO_MAYBE_UNINITIALIZED - Success<br>
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES<br>
-- Performing Test HAVE_C_WNO_MISSING_PROTOTYPES - Success<br>
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS<br>
-- Performing Test HAVE_C_WNO_MISSING_DECLARATIONS - Success<br>
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH<br>
-- Performing Test HAVE_C_WNO_IMPLICIT_FALLTHROUGH - Failed<br>
-- Found Jasper: /usr/lib/x86_64-linux-gnu/libjasper.so (found version "1.900.1")<br>
-- Found ZLIB: /home/lirui/anaconda3/lib/libz.so (found version "1.2.11")<br>
-- Found PNG: /home/lirui/anaconda3/lib/libpng.so (found version "1.6.37")<br>
-- Looking for /home/lirui/anaconda3/include/libpng/png.h<br>
-- Looking for /home/lirui/anaconda3/include/libpng/png.h - not found<br>
-- Looking for semaphore.h<br>
-- Looking for semaphore.h - found<br>
-- Performing Test HAVE_CXX_WNO_SHADOW<br>
-- Performing Test HAVE_CXX_WNO_SHADOW - Success<br>
-- Performing Test HAVE_CXX_WNO_UNUSED<br>
-- Performing Test HAVE_CXX_WNO_UNUSED - Success<br>
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE<br>
-- Performing Test HAVE_CXX_WNO_SIGN_COMPARE - Success<br>
-- Performing Test HAVE_CXX_WNO_UNDEF<br>
-- Performing Test HAVE_CXX_WNO_UNDEF - Success<br>
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS<br>
-- Performing Test HAVE_CXX_WNO_MISSING_DECLARATIONS - Success<br>
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED<br>
-- Performing Test HAVE_CXX_WNO_UNINITIALIZED - Success<br>
-- Performing Test HAVE_CXX_WNO_SWITCH<br>
-- Performing Test HAVE_CXX_WNO_SWITCH - Success<br>
-- Performing Test HAVE_CXX_WNO_PARENTHESES<br>
-- Performing Test HAVE_CXX_WNO_PARENTHESES - Success<br>
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS<br>
-- Performing Test HAVE_CXX_WNO_ARRAY_BOUNDS - Success<br>
-- Performing Test HAVE_CXX_WNO_EXTRA<br>
-- Performing Test HAVE_CXX_WNO_EXTRA - Success<br>
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS<br>
-- Performing Test HAVE_CXX_WNO_DEPRECATED_DECLARATIONS - Success<br>
-- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION<br>
-- Performing Test HAVE_CXX_WNO_MISLEADING_INDENTATION - Failed<br>
-- Performing Test HAVE_CXX_WNO_DEPRECATED<br>
-- Performing Test HAVE_CXX_WNO_DEPRECATED - Success<br>
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE<br>
-- Performing Test HAVE_CXX_WNO_SUGGEST_OVERRIDE - Success<br>
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE<br>
-- Performing Test HAVE_CXX_WNO_INCONSISTENT_MISSING_OVERRIDE - Failed<br>
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH<br>
-- Performing Test HAVE_CXX_WNO_IMPLICIT_FALLTHROUGH - Failed<br>
-- Checking for module 'gtk+-3.0'<br>
-- Found gtk+-3.0, version 3.18.9<br>
-- Checking for module 'gthread-2.0'<br>
-- Found gthread-2.0, version 2.48.2<br>
-- Checking for module 'gstreamer-base-1.0'<br>
-- No package 'gstreamer-base-1.0' found<br>
-- Checking for module 'gstreamer-video-1.0'<br>
-- No package 'gstreamer-video-1.0' found<br>
-- Checking for module 'gstreamer-app-1.0'<br>
-- No package 'gstreamer-app-1.0' found<br>
-- Checking for module 'gstreamer-riff-1.0'<br>
-- No package 'gstreamer-riff-1.0' found<br>
-- Checking for module 'gstreamer-pbutils-1.0'<br>
-- No package 'gstreamer-pbutils-1.0' found<br>
-- Checking for module 'gstreamer-base-0.10'<br>
-- No package 'gstreamer-base-0.10' found<br>
-- Checking for module 'gstreamer-video-0.10'<br>
-- No package 'gstreamer-video-0.10' found<br>
-- Checking for module 'gstreamer-app-0.10'<br>
-- No package 'gstreamer-app-0.10' found<br>
-- Checking for module 'gstreamer-riff-0.10'<br>
-- No package 'gstreamer-riff-0.10' found<br>
-- Checking for module 'gstreamer-pbutils-0.10'<br>
-- No package 'gstreamer-pbutils-0.10' found<br>
-- Checking for module 'libdc1394-2'<br>
-- Found libdc1394-2, version 2.2.4<br>
-- Looking for linux/videodev.h<br>
-- Looking for linux/videodev.h - not found<br>
-- Looking for linux/videodev2.h<br>
-- Looking for linux/videodev2.h - found<br>
-- Looking for sys/videoio.h<br>
-- Looking for sys/videoio.h - not found<br>
-- Checking for modules 'libavcodec;libavformat;libavutil;libswscale'<br>
-- Found libavcodec, version 56.60.100<br>
-- Found libavformat, version 56.40.101<br>
-- Found libavutil, version 54.31.100<br>
-- Found libswscale, version 3.1.101<br>
-- Checking for module 'libavresample'<br>
-- No package 'libavresample' found<br>
-- IPPICV: Download: ippicv_2017u3_lnx_intel64_general_20180518.tgz<br>
-- found Intel IPP (ICV version): 2017.0.3 [2017.0.3]<br>
-- at: /home/lirui/cplusplus/opencv-3.4.3/build/3rdparty/ippicv/ippicv_lnx<br>
-- found Intel IPP IW sources: 2017.0.3<br>
-- at: /home/lirui/cplusplus/opencv-3.4.3/build/3rdparty/ippicv/ippiw_lnx<br>
-- Could not find OpenBLAS lib. Turning OpenBLAS_FOUND off<br>
-- Could NOT find Atlas (missing: Atlas_CLAPACK_INCLUDE_DIR)<br>
-- Looking for dgemm_<br>
-- Looking for dgemm_ - found<br>
-- Looking for pthread.h<br>
-- Looking for pthread.h - found<br>
-- Looking for pthread_create<br>
-- Looking for pthread_create - found<br>
-- Found Threads: TRUE<br>
-- A library with BLAS API found.<br>
-- Looking for cheev_<br>
-- Looking for cheev_ - found<br>
-- A library with LAPACK API found.<br>
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES<br>
-- Performing Test HAVE_CXX_WNO_MISSING_PROTOTYPES - Failed<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_PARAMETER - Success<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_LOCAL_TYPEDEFS - Success<br>
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO<br>
-- Performing Test HAVE_CXX_WNO_SIGN_PROMO - Success<br>
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE<br>
-- Performing Test HAVE_CXX_WNO_TAUTOLOGICAL_UNDEFINED_COMPARE - Failed<br>
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS<br>
-- Performing Test HAVE_CXX_WNO_IGNORED_QUALIFIERS - Success<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_FUNCTION - Success<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_CONST_VARIABLE - Failed<br>
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32<br>
-- Performing Test HAVE_CXX_WNO_SHORTEN_64_TO_32 - Failed<br>
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF<br>
-- Performing Test HAVE_CXX_WNO_INVALID_OFFSETOF - Success<br>
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH<br>
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE_SWITCH - Failed<br>
-- Could NOT find JNI (missing: JAVA_AWT_LIBRARY JAVA_JVM_LIBRARY JAVA_INCLUDE_PATH JAVA_INCLUDE_PATH2 JAVA_AWT_INCLUDE_PATH)<br>
-- Found Matlab: /usr/local/MATLAB/R2019a/bin/mex<br>
-- Found VTK 8.2.0 (/usr/local/lib/cmake/vtk-8.2/UseVTK.cmake)<br>
-- Looking for dlerror in dl<br>
-- Looking for dlerror in dl - found<br>
-- Performing Test HAVE_C_WNO_UNDEF<br>
-- Performing Test HAVE_C_WNO_UNDEF - Success<br>
-- Performing Test HAVE_C_WNO_SIGN_COMPARE<br>
-- Performing Test HAVE_C_WNO_SIGN_COMPARE - Success<br>
-- Checking for one of the modules 'freetype2'<br>
-- Checking for one of the modules 'harfbuzz'<br>
-- freetype2: YES<br>
-- harfbuzz: YES<br>
Traceback (most recent call last):<br>
File "", line 1, in<br>
ImportError: No module named jinja2<br>
CMake Warning at /home/lirui/cplusplus/opencv_contrib-3.4.3/modules/matlab/CMakeLists.txt:54 (message):<br>
A required dependency of the matlab module (Python Jinja2 package) was not<br>
found (installation command: "pip install jinja2"). Disabling Matlab<br>
bindings...<br>
-- Module opencv_ovis disabled because OGRE3D was not found<br>
-- Found HDF5: /home/lirui/anaconda3/lib/libhdf5.so;/usr/lib/x86_64-linux-gnu/librt.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/home/lirui/anaconda3/lib/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.10.2")<br>
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.<br>
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.<br>
-- Failed to find gflags - Failed to find an installed/exported CMake configuration for gflags, will perform search for installed gflags components.<br>
-- Failed to find gflags - Could not find gflags include directory, set GFLAGS_INCLUDE_DIR to directory containing gflags/gflags.h<br>
-- Failed to find glog - Could not find glog include directory, set GLOG_INCLUDE_DIR to directory containing glog/logging.h<br>
-- Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags<br>
-- Caffe: NO<br>
-- Protobuf: NO<br>
-- Glog: NO<br>
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED<br>
-- Performing Test HAVE_CXX_WNO_MAYBE_UNINITIALIZED - Success<br>
-- Performing Test HAVE_CXX_WNO_ERROR_NON_VIRTUAL_DTOR<br>
-- Performing Test HAVE_CXX_WNO_ERROR_NON_VIRTUAL_DTOR - Success<br>
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE<br>
-- Performing Test HAVE_CXX_WNO_ENUM_COMPARE - Success<br>
-- data: Download: face_landmark_model.dat<br>
-- freetype2: YES<br>
-- harfbuzz: YES<br>
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL<br>
-- Performing Test HAVE_CXX_WNO_OVERLOADED_VIRTUAL - Success<br>
-- Checking for modules 'tesseract;lept'<br>
-- No package 'tesseract' found<br>
-- No package 'lept' found<br>
-- Tesseract: NO<br>
-- xfeatures2d/boostdesc: Download: boostdesc_bgm.i<br>
-- xfeatures2d/boostdesc: Download: boostdesc_bgm_bi.i<br>
-- xfeatures2d/boostdesc: Download: boostdesc_bgm_hd.i<br>
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_064.i<br>
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_128.i<br>
-- xfeatures2d/boostdesc: Download: boostdesc_binboost_256.i<br>
-- xfeatures2d/boostdesc: Download: boostdesc_lbgm.i<br>
-- xfeatures2d/vgg: Download: vgg_generated_48.i<br>
-- xfeatures2d/vgg: Download: vgg_generated_64.i<br>
-- xfeatures2d/vgg: Download: vgg_generated_80.i<br>
-- xfeatures2d/vgg: Download: vgg_generated_120.i<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD<br>
-- Performing Test HAVE_CXX_WNO_UNUSED_PRIVATE_FIELD - Failed<br>
-- General configuration for OpenCV 3.4.3 =====================================<br>
-- Version control: unknown<br>
-- Extra modules:<br>
-- Location (extra): /home/lirui/cplusplus/opencv_contrib-3.4.3/modules<br>
-- Version control (extra): unknown<br>
-- Platform:<br>
-- Timestamp: 2020-05-10T06:38:59Z<br>
-- Host: Linux 4.15.0-99-generic x86_64<br>
-- CMake: 3.5.1<br>
-- CMake generator: Unix Makefiles<br>
-- CMake build tool: /usr/bin/make<br>
-- Configuration: Release<br>
-- CPU/HW features:<br>
-- Baseline: SSE SSE2 SSE3<br>
-- requested: SSE3<br>
-- Dispatched code generation: SSE4_1 SSE4_2 FP16 AVX AVX2 AVX512_SKX<br>
-- requested: SSE4_1 SSE4_2 AVX FP16 AVX2 AVX512_SKX<br>
-- SSE4_1 (5 files): + SSSE3 SSE4_1<br>
-- SSE4_2 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2<br>
-- FP16 (2 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 AVX<br>
-- AVX (6 files): + SSSE3 SSE4_1 POPCNT SSE4_2 AVX<br>
-- AVX2 (11 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2<br>
-- AVX512_SKX (1 files): + SSSE3 SSE4_1 POPCNT SSE4_2 FP16 FMA3 AVX AVX2 AVX_512F AVX512_SKX<br>
-- C/C++:<br>
-- Built as dynamic libs?: YES<br>
-- C++ Compiler: /usr/bin/c++ (ver 5.4.0)<br>
-- C++ flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -O3 -DNDEBUG -DNDEBUG<br>
-- C++ flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -Wuninitialized -Winit-self -Wno-narrowing -Wno-delete-non-virtual-dtor -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -fvisibility-inlines-hidden -g -O0 -DDEBUG -D_DEBUG<br>
-- C Compiler: /usr/bin/cc<br>
-- C flags (Release): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -O3 -DNDEBUG -DNDEBUG<br>
-- C flags (Debug): -fsigned-char -W -Wall -Werror=return-type -Werror=non-virtual-dtor -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wuninitialized -Winit-self -Wno-narrowing -Wno-comment -fdiagnostics-show-option -Wno-long-long -pthread -fomit-frame-pointer -ffunction-sections -fdata-sections -msse -msse2 -msse3 -fvisibility=hidden -g -O0 -DDEBUG -D_DEBUG<br>
-- Linker flags (Release):<br>
-- Linker flags (Debug):<br>
-- ccache: NO<br>
-- Precompiled headers: YES<br>
-- Extra dependencies: dl m pthread rt<br>
-- 3rdparty dependencies:<br>
-- OpenCV modules:<br>
-- To be built: aruco bgsegm bioinspired calib3d ccalib core datasets dnn dnn_objdetect dpm face features2d flann freetype fuzzy hdf hfs highgui img_hash imgcodecs imgproc java_bindings_generator line_descriptor ml objdetect optflow phase_unwrapping photo plot python2 python_bindings_generator reg rgbd saliency shape stereo stitching structured_light superres surface_matching text tracking ts video videoio videostab viz xfeatures2d ximgproc xobjdetect xphoto<br>
-- Disabled: js world<br>
-- Disabled by dependency: -<br>
-- Unavailable: cnn_3dobj cudaarithm cudabgsegm cudacodec cudafeatures2d cudafilters cudaimgproc cudalegacy cudaobjdetect cudaoptflow cudastereo cudawarping cudev cvv java matlab ovis python3 sfm<br>
-- Applications: tests perf_tests apps<br>
-- Documentation: NO<br>
-- Non-free algorithms: NO<br>
-- GUI:<br>
-- GTK+: YES (ver 3.18.9)<br>
-- GThread : YES (ver 2.48.2)<br>
-- GtkGlExt: NO<br>
-- VTK support: YES (ver 8.2.0)<br>
-- Media I/O:<br>
-- ZLib: /home/lirui/anaconda3/lib/libz.so (ver 1.2.11)<br>
-- JPEG: /home/lirui/anaconda3/lib/libjpeg.so (ver 90)<br>
-- WEBP: build (ver encoder: 0x020e)<br>
-- PNG: /home/lirui/anaconda3/lib/libpng.so (ver 1.6.37)<br>
-- TIFF: /home/lirui/anaconda3/lib/libtiff.so (ver 42 / 4.1.0)<br>
-- JPEG 2000: /usr/lib/x86_64-linux-gnu/libjasper.so (ver 1.900.1)<br>
-- OpenEXR: build (ver 1.7.1)<br>
-- HDR: YES<br>
-- SUNRASTER: YES<br>
-- PXM: YES<br>
-- Video I/O:<br>
-- DC1394: YES (ver 2.2.4)<br>
-- FFMPEG: YES<br>
-- avcodec: YES (ver 56.60.100)<br>
-- avformat: YES (ver 56.40.101)<br>
-- avutil: YES (ver 54.31.100)<br>
-- swscale: YES (ver 3.1.101)<br>
-- avresample: NO<br>
-- GStreamer: NO<br>
-- libv4l/libv4l2: NO<br>
-- v4l/v4l2: linux/videodev2.h<br>
-- Parallel framework: pthreads<br>
-- Trace: YES (with Intel ITT)<br>
-- Other third-party libraries:<br>
-- Intel IPP: 2017.0.3 [2017.0.3]<br>
-- at: /home/lirui/cplusplus/opencv-3.4.3/build/3rdparty/ippicv/ippicv_lnx<br>
-- Intel IPP IW: sources (2017.0.3)<br>
-- at: /home/lirui/cplusplus/opencv-3.4.3/build/3rdparty/ippicv/ippiw_lnx<br>
-- Lapack: NO<br>
-- Eigen: YES (ver 3.2.92)<br>
-- Custom HAL: NO<br>
-- Protobuf: build (3.5.1)<br>
-- OpenCL: YES (no extra features)<br>
-- Include path: /home/lirui/cplusplus/opencv-3.4.3/3rdparty/include/opencl/1.2<br>
-- Link libraries: Dynamic load<br>
-- Python 2:<br>
-- Interpreter: /usr/bin/python2.7 (ver 2.7.12)<br>
-- Libraries: /usr/lib/x86_64-linux-gnu/libpython2.7.so (ver 2.7.12)<br>
-- numpy: /usr/local/lib/python2.7/dist-packages/numpy/core/include (ver 1.16.2)<br>
-- packages path: lib/python2.7/dist-packages<br>
-- Python (for build): /usr/bin/python2.7<br>
-- Java:<br>
-- ant: NO<br>
-- JNI: NO<br>
-- Java wrappers: NO<br>
-- Java tests: NO<br>
-- Matlab: YES<br>
-- mex: /usr/local/MATLAB/R2019a/bin/mex<br>
-- Compiler/generator: Not working (bindings will not be generated)</p>
<p dir="auto">-- Install to: /home/lirui/cplusplus/opencv-3.4.3_install</p>
<p dir="auto">--<br>
-- Configuring done<br>
-- Generating done<br>
-- Build files have been written to: /home/lirui/cplusplus/opencv-3.4.3/build<br>
and i make but error</p>
<p dir="auto">(base) lirui@lirui:~/cplusplus/opencv-3.4.3/build$ make<br>
Scanning dependencies of target gen-pkgconfig<br>
[ 0%] Generate opencv.pc<br>
[ 0%] Built target gen-pkgconfig<br>
Scanning dependencies of target libwebp<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/tree_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/vp8l_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/quant_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/buffer_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/io_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/alpha_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/frame_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/idec_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/webp_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dec/vp8_dec.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/demux/demux.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/demux/anim_decode.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/filters_sse2.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_neon.c.o<br>
[ 0%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_enc_mips_dsp_r2.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/cost_mips32.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/ssim.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/upsampling_neon.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_enc_neon.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/cost.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/yuv_sse41.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/upsampling.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_sse2.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/cost_sse2.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/alpha_processing_neon.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/rescaler_sse2.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/dec_sse2.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/alpha_processing_sse41.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/filters.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/cpu.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/yuv_mips_dsp_r2.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/upsampling_msa.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/ssim_sse2.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/cost_mips_dsp_r2.c.o<br>
[ 1%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/rescaler_neon.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/alpha_processing_mips_dsp_r2.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/upsampling_sse41.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/enc_sse2.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/enc_neon.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/dec_sse41.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/dec_mips_dsp_r2.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/rescaler_msa.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/enc_msa.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/yuv_mips32.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/enc_mips_dsp_r2.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_mips_dsp_r2.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/upsampling_mips_dsp_r2.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/yuv.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/upsampling_sse2.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_enc_msa.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/yuv_sse2.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/yuv_neon.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/rescaler.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_msa.c.o<br>
[ 2%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_enc_mips32.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/alpha_processing.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/dec.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_enc_sse41.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/alpha_processing_sse2.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/dec_clip_tables.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/enc_avx2.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/filters_mips_dsp_r2.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/enc.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/rescaler_mips32.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_enc_sse2.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/lossless_enc.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/dec_neon.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/dec_msa.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/dec_mips32.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/enc_mips32.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/enc_sse41.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/filters_msa.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/filters_neon.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/dsp/rescaler_mips_dsp_r2.c.o<br>
[ 3%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/near_lossless_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/picture_csp_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/picture_tools_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/backward_references_cost_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/iterator_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/filter_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/cost_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/histogram_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/vp8l_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/quant_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/analysis_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/backward_references_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/syntax_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/picture_rescale_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/picture_psnr_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/token_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/alpha_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/tree_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/frame_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/picture_enc.c.o<br>
[ 4%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/predictor_enc.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/config_enc.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/enc/webp_enc.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/mux/anim_encode.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/mux/muxinternal.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/mux/muxedit.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/mux/muxread.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/quant_levels_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/thread_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/bit_reader_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/rescaler_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/bit_writer_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/huffman_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/filters_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/huffman_encode_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/random_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/quant_levels_dec_utils.c.o<br>
[ 5%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/color_cache_utils.c.o<br>
[ 5%] Linking C static library ../lib/liblibwebp.a<br>
[ 5%] Built target libwebp<br>
Scanning dependencies of target IlmImf<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Half/half.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Iex/IexThrowErrnoExc.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Iex/IexBaseExc.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphore.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadPosix.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphorePosix.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThread.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadMutexPosix.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadMutex.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadSemaphorePosixCompat.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmThread/IlmThreadPool.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathVec.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathFun.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathRandom.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathColorAlgo.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/Imath/ImathMatrixAlgo.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChannelList.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfB44Compressor.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfHuf.cpp.o<br>
[ 5%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTestFile.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfKeyCode.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRgbaYca.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfVersion.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfScanLineInputFile.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfBoxAttribute.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPizCompressor.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfInputFile.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFrameBuffer.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStdIO.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMultiView.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTileOffsets.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFloatAttribute.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledOutputFile.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPreviewImage.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPxr24Compressor.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfKeyCodeAttribute.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledMisc.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTimeCode.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRationalAttribute.cpp.o<br>
[ 6%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfHeader.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTimeCodeAttribute.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfConvert.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledInputFile.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfDoubleAttribute.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStandardAttributes.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfZipCompressor.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfWav.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMisc.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfLineOrderAttribute.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChannelListAttribute.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfPreviewImageAttribute.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChromaticities.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTileDescriptionAttribute.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStringAttribute.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRgbaFile.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRleCompressor.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfIO.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCompressor.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfTiledRgbaFile.cpp.o<br>
[ 7%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfEnvmapAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfChromaticitiesAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfThreading.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfFramesPerSecond.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfMatrixAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfRational.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfIntAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfLut.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCRgbaFile.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfVecAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfOutputFile.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfStringVectorAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfCompressionAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfOpaqueAttribute.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfAcesFile.cpp.o<br>
[ 8%] Building CXX object 3rdparty/openexr/CMakeFiles/IlmImf.dir/IlmImf/ImfEnvmap.cpp.o<br>
[ 8%] Linking CXX static library ../lib/libIlmImf.a<br>
[ 8%] Built target IlmImf<br>
Scanning dependencies of target ippiw<br>
[ 8%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_general.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy_make_border.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_scharr.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_gaussian.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_set.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_transform_mirror.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy_channel.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_laplacian.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_box.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_sobel.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy_merge.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_morphology.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_color_convert_rgbs.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_bilateral.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_swap_channels.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_scale.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_transform_resize.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_filter_canny.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_own.c.o<br>
[ 9%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy_split.c.o<br>
[ 10%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_transform_rotate.c.o<br>
[ 10%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_core.c.o<br>
[ 10%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_color_convert_all.c.o<br>
[ 10%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_transform_warpaffine.c.o<br>
[ 10%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_set_channel.c.o<br>
[ 10%] Building C object 3rdparty/ippiw/CMakeFiles/ippiw.dir/src/iw_image_op_copy.c.o<br>
[ 10%] Linking C static library ../lib/libippiw.a<br>
[ 10%] Built target ippiw<br>
Scanning dependencies of target libprotobuf<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arena.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/arenastring.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_table_driven_lite.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_util.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/coded_stream.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message_lite.cc.o<br>
[ 10%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/repeated_field.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/bytestream.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/common.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/int128.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/io_win32.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/once.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/status.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/statusor.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/stringpiece.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/stringprintf.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/structurally_valid.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/strutil.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/time.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format_lite.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/any.pb.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/api.pb.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor.pb.cc.o<br>
[ 11%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/descriptor_database.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/duration.pb.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/dynamic_message.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/empty.pb.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/extension_set_heavy.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/field_mask.pb.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_reflection.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/generated_message_table_driven.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/gzip_stream.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/printer.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/strtod.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/tokenizer.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/io/zero_copy_stream_impl.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/map_field.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/message.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/reflection_ops.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/service.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/source_context.pb.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/struct.pb.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/mathlimits.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/stubs/substitute.cc.o<br>
[ 12%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/text_format.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/timestamp.pb.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/type.pb.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/unknown_field_set.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/delimited_message_util.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_comparator.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/field_mask_util.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/datapiece.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/default_value_objectwriter.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/field_mask_utility.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_escaping.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_objectwriter.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/json_stream_parser.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/object_writer.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/proto_writer.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectsource.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/protostream_objectwriter.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/type_info.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/internal/utility.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/json_util.cc.o<br>
[ 13%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/message_differencer.cc.o<br>
[ 14%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/time_util.cc.o<br>
[ 14%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/util/type_resolver_util.cc.o<br>
[ 14%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wire_format.cc.o<br>
[ 14%] Building CXX object 3rdparty/protobuf/CMakeFiles/libprotobuf.dir/src/google/protobuf/wrappers.pb.cc.o<br>
[ 14%] Linking CXX static library ../lib/liblibprotobuf.a<br>
[ 14%] Built target libprotobuf<br>
Scanning dependencies of target ittnotify<br>
[ 14%] Building C object 3rdparty/ittnotify/CMakeFiles/ittnotify.dir/src/ittnotify/ittnotify_static.c.o<br>
[ 14%] Building C object 3rdparty/ittnotify/CMakeFiles/ittnotify.dir/src/ittnotify/jitprofiling.c.o<br>
[ 14%] Linking C static library ../lib/libittnotify.a<br>
[ 14%] Built target ittnotify<br>
Scanning dependencies of target opencv_core_pch_dephelp<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core_pch_dephelp.dir/opencv_core_pch_dephelp.cxx.o<br>
[ 14%] Linking CXX static library ../../lib/libopencv_core_pch_dephelp.a<br>
[ 14%] Built target opencv_core_pch_dephelp<br>
Scanning dependencies of target pch_Generate_opencv_core<br>
[ 14%] Generating precomp.hpp<br>
[ 14%] Generating precomp.hpp.gch/opencv_core_Release.gch<br>
[ 14%] Built target pch_Generate_opencv_core<br>
[ 14%] Processing OpenCL kernels (core)<br>
Scanning dependencies of target opencv_core<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/minmax.cpp.o<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/directx.cpp.o<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel.cpp.o<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/conjugate_gradient.cpp.o<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lpsolver.cpp.o<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence_xml.cpp.o<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/tables.cpp.o<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/dxt.cpp.o<br>
[ 14%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/parallel_impl.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_wrap.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/umatrix.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs_core.dispatch.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/rand.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/logger.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stl.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/pca.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opengl.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_decomp.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/split.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence_base64.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_iterator.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/array.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ocl.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/command_line_parser.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/va_intel.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/norm.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/utils/filesystem.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lapack.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/algorithm.cpp.o<br>
[ 15%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/datastructs.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/arithm.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat_c.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_expressions.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/gl_core_3_1.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/channels.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/glob.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert_scale.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/system.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matmul.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/sum.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence_c.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/count_non_zero.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_stream.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_core.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdblas.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/opencl/runtime/opencl_clamdfft.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence_cpp.cpp.o<br>
[ 16%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_sparse.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/alloc.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lda.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/lut.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/stat.dispatch.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_operations.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence_json.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/out.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/hal_internal.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/batch_distance.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/check.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/matrix_c.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_gpu_mat.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/mathfuncs.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/types.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/merge.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/ovx.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/softfloat.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert_c.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/downhill_simplex.cpp.o<br>
[ 17%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence_yml.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/mean.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_info.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/copy.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/kmeans.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/persistence_types.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/trace.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/cuda_host_mem.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/opencl_kernels_core.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.sse4_1.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/stat.sse4_2.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.fp16.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/src/convert.avx2.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/mathfuncs_core.avx2.cpp.o<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_core.dir/stat.avx2.cpp.o<br>
[ 18%] Linking CXX shared library ../../lib/libopencv_core.so<br>
[ 18%] Built target opencv_core<br>
Scanning dependencies of target opencv_perf_core_pch_dephelp<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_perf_core_pch_dephelp.dir/opencv_perf_core_pch_dephelp.cxx.o<br>
[ 18%] Linking CXX static library ../../lib/libopencv_perf_core_pch_dephelp.a<br>
[ 18%] Built target opencv_perf_core_pch_dephelp<br>
Scanning dependencies of target opencv_test_core_pch_dephelp<br>
[ 18%] Building CXX object modules/core/CMakeFiles/opencv_test_core_pch_dephelp.dir/opencv_test_core_pch_dephelp.cxx.o<br>
[ 18%] Linking CXX static library ../../lib/libopencv_test_core_pch_dephelp.a<br>
[ 18%] Built target opencv_test_core_pch_dephelp<br>
Scanning dependencies of target opencv_ts_pch_dephelp<br>
[ 18%] Building CXX object modules/ts/CMakeFiles/opencv_ts_pch_dephelp.dir/opencv_ts_pch_dephelp.cxx.o<br>
[ 18%] Linking CXX static library ../../lib/libopencv_ts_pch_dephelp.a<br>
[ 18%] Built target opencv_ts_pch_dephelp<br>
Scanning dependencies of target pch_Generate_opencv_ts<br>
[ 18%] Generating precomp.hpp<br>
[ 18%] Generating precomp.hpp.gch/opencv_ts_Release.gch<br>
[ 18%] Built target pch_Generate_opencv_ts<br>
Scanning dependencies of target opencv_imgproc_pch_dephelp<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc_pch_dephelp.dir/opencv_imgproc_pch_dephelp.cxx.o<br>
[ 18%] Linking CXX static library ../../lib/libopencv_imgproc_pch_dephelp.a<br>
[ 18%] Built target opencv_imgproc_pch_dephelp<br>
Scanning dependencies of target pch_Generate_opencv_imgproc<br>
[ 18%] Generating precomp.hpp<br>
[ 18%] Generating precomp.hpp.gch/opencv_imgproc_Release.gch<br>
[ 18%] Built target pch_Generate_opencv_imgproc<br>
[ 18%] Processing OpenCL kernels (imgproc)<br>
Scanning dependencies of target opencv_imgproc<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/undistort.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color_hsv.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hershey_fonts.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.dispatch.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/subdivision2d.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/tables.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/phasecorr.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/convhull.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/featureselect.cpp.o<br>
[ 18%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/utils.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/colormap.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/emd.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color_lab.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/contours.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/connectedcomponents.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/templmatch.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/lsd.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/drawing.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/pyramids.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/shapedescr.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/hough.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/clahe.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/cornersubpix.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/linefit.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/histogram.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/grabcut.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/sumpixels.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/rotcalipers.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.cpp.o<br>
[ 19%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/main.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/canny.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/demosaicing.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/gabor.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/smooth.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/deriv.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/approx.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/min_enclosing_triangle.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color_rgb.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/thresh.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/intersection.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/blend.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/accum.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/moments.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/samplers.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/floodfill.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/spatialgradient.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/color_yuv.cpp.o<br>
[ 20%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/segmentation.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/generalized_hough.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/corner.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/morph.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/matchcontours.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/distransform.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/geometry.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/opencl_kernels_imgproc.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.sse4_1.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.sse4_1.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/corner.avx.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/accum.avx.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/resize.avx2.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/undistort.avx2.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/filter.avx2.cpp.o<br>
[ 21%] Building CXX object modules/imgproc/CMakeFiles/opencv_imgproc.dir/src/imgwarp.avx2.cpp.o<br>
[ 21%] Linking CXX shared library ../../lib/libopencv_imgproc.so<br>
[ 21%] Built target opencv_imgproc<br>
Scanning dependencies of target opencv_imgcodecs_pch_dephelp<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs_pch_dephelp.dir/opencv_imgcodecs_pch_dephelp.cxx.o<br>
[ 21%] Linking CXX static library ../../lib/libopencv_imgcodecs_pch_dephelp.a<br>
[ 21%] Built target opencv_imgcodecs_pch_dephelp<br>
Scanning dependencies of target pch_Generate_opencv_imgcodecs<br>
[ 21%] Generating precomp.hpp<br>
[ 21%] Generating precomp.hpp.gch/opencv_imgcodecs_Release.gch<br>
[ 21%] Built target pch_Generate_opencv_imgcodecs<br>
Scanning dependencies of target opencv_imgcodecs<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/loadsave.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/utils.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_jpeg2000.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_sunras.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_bmp.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_base.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_pxm.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_exr.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_hdr.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_pam.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_tiff.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_gdal.cpp.o<br>
[ 21%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_png.cpp.o<br>
[ 22%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_gdcm.cpp.o<br>
[ 22%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_webp.cpp.o<br>
[ 22%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/grfmt_jpeg.cpp.o<br>
[ 22%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/bitstrm.cpp.o<br>
[ 22%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/rgbe.cpp.o<br>
[ 22%] Building CXX object modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/src/exif.cpp.o<br>
[ 22%] Linking CXX shared library ../../lib/libopencv_imgcodecs.so<br>
[ 22%] Built target opencv_imgcodecs<br>
Scanning dependencies of target opencv_videoio_pch_dephelp<br>
[ 22%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio_pch_dephelp.dir/opencv_videoio_pch_dephelp.cxx.o<br>
[ 23%] Linking CXX static library ../../lib/libopencv_videoio_pch_dephelp.a<br>
[ 23%] Built target opencv_videoio_pch_dephelp<br>
Scanning dependencies of target pch_Generate_opencv_videoio<br>
[ 23%] Generating precomp.hpp<br>
[ 23%] Generating precomp.hpp.gch/opencv_videoio_Release.gch<br>
[ 23%] Built target pch_Generate_opencv_videoio<br>
Scanning dependencies of target opencv_videoio<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_registry.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/videoio_c.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_images.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_encoder.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_mjpeg_decoder.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/container_avi.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_dc1394_v2.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_v4l.cpp.o<br>
[ 23%] Building CXX object modules/videoio/CMakeFiles/opencv_videoio.dir/src/cap_ffmpeg.cpp.o<br>
[ 23%] Linking CXX shared library ../../lib/libopencv_videoio.so<br>
[ 23%] Built target opencv_videoio<br>
Scanning dependencies of target opencv_highgui_pch_dephelp<br>
[ 23%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui_pch_dephelp.dir/opencv_highgui_pch_dephelp.cxx.o<br>
[ 23%] Linking CXX static library ../../lib/libopencv_highgui_pch_dephelp.a<br>
[ 23%] Built target opencv_highgui_pch_dephelp<br>
Scanning dependencies of target pch_Generate_opencv_highgui<br>
[ 23%] Generating precomp.hpp<br>
[ 23%] Generating precomp.hpp.gch/opencv_highgui_Release.gch<br>
[ 23%] Built target pch_Generate_opencv_highgui<br>
Scanning dependencies of target opencv_highgui<br>
[ 23%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window.cpp.o<br>
[ 23%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/roiSelector.cpp.o<br>
[ 23%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/window_gtk.cpp.o<br>
[ 23%] Linking CXX shared library ../../lib/libopencv_highgui.so<br>
[ 23%] Built target opencv_highgui<br>
Scanning dependencies of target opencv_ts<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/cuda_test.cpp.o<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts.cpp.o<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/cuda_perf.cpp.o<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ocl_test.cpp.o<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_arrtest.cpp.o<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ocl_perf.cpp.o<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_perf.cpp.o<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_func.cpp.o<br>
[ 24%] Building CXX object modules/ts/CMakeFiles/opencv_ts.dir/src/ts_gtest.cpp.o<br>
[ 24%] Linking CXX static library ../../lib/libopencv_ts.a<br>
[ 24%] Built target opencv_ts<br>
Scanning dependencies of target pch_Generate_opencv_test_core<br>
[ 24%] Generating test_precomp.hpp<br>
[ 24%] Generating test_precomp.hpp.gch/opencv_test_core_Release.gch<br>
[ 24%] Built target pch_Generate_opencv_test_core<br>
Scanning dependencies of target opencv_test_core<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_io.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_arithm.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_dxt.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_main.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_hal_core.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_downhill_simplex.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_conjugate_gradient.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_operations.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_eigen.cpp.o<br>
[ 24%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_countnonzero.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_math.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_mat.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_concatenation.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_rand.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_rotatedrect.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_arithm.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_matrix_operation.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_matrix_expr.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_dft.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_image2d.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_gemm.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_opencl.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/ocl/test_channels.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_ds.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_misc.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_umat.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_lpsolver.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_ippasync.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_utils.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_ptr.cpp.o<br>
[ 25%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin128.sse2.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin128.sse3.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin128.ssse3.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin128.sse4_1.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin128.sse4_2.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin128.fp16.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin128.avx.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin128.avx2.cpp.o<br>
[ 26%] Building CXX object modules/core/CMakeFiles/opencv_test_core.dir/test/test_intrin256.avx2.cpp.o<br>
[ 26%] Linking CXX executable ../../bin/opencv_test_core<br>
/usr/bin/ld: warning: libzstd.so.1.3.7, needed by //home/lirui/anaconda3/lib/libtiff.so.5, not found (try using -rpath or -rpath-link)<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_initCStream’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_freeCStream’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_maxCLevel’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_createCStream’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_isError’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_getErrorName’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_endStream’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_createDStream’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_initDStream’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_freeDStream’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_compressStream’未定义的引用<br>
//home/lirui/anaconda3/lib/libtiff.so.5:对‘ZSTD_decompressStream’未定义的引用<br>
collect2: error: ld returned 1 exit status<br>
modules/core/CMakeFiles/opencv_test_core.dir/build.make:1116: recipe for target 'bin/opencv_test_core' failed<br>
make[2]: *** [bin/opencv_test_core] Error 1<br>
CMakeFiles/Makefile2:2607: recipe for target 'modules/core/CMakeFiles/opencv_test_core.dir/all' failed<br>
make[1]: *** [modules/core/CMakeFiles/opencv_test_core.dir/all] Error 2<br>
Makefile:160: recipe for target 'all' failed<br>
make: *** [all] Error 2</p> | <p dir="auto">I've been trying to build OpenCV 4.1.2 under Linux, with compatibility/bindings for Anaconda Python 3.7. I keep encountering problems arising from CMake's Generate process, where several libraries (including gstreamer) cannot be located. This is presumably because Anaconda installs libraries that 'shadow' those that CMake is looking for. The problems relating to the gstreamer libs also seem to be triggered by enabling the flag "WITH_QT", though I'm not sure of the connection. Presumably this is a larger problem, related to shadowing of expected libraries in general.</p>
<p dir="auto">I've noticed that several others have experienced similar problems. This seems like there should be a work-around, given the prevalence of Anaconda in neural net programming.</p>
<p dir="auto">Sample error messages:</p>
<p dir="auto">CMake Warning at cmake/OpenCVUtils.cmake:1471 (add_executable): Cannot generate a safe runtime search path for target opencv_test_videoio because files in some directories may conflict with libraries in implicit directories:</p>
<p dir="auto">runtime library [libgstbase-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:<br>
/opt/Anaconda/3.7/lib</p>
<p dir="auto">runtime library [libgstreamer-1.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:<br>
/opt/Anaconda/3.7/lib</p>
<p dir="auto">runtime library [libgobject-2.0.so.0] in /usr/lib/x86_64-linux-gnu may be hidden by files in:<br>
/opt/Anaconda/3.7/lib</p>
<p dir="auto">etc...</p>
<p dir="auto">Though CMake-Gui Generate flags these as 'warnings', subsequent attempts to compile code via make fail with a message about failing to build cudawarping libs. While this sounds like the major show-stopper, I'm sure that it must be caused by interactions that are evident in the 'generate' messages above. When WITH_QT is switched off, CMake-Gui generates with no errors, and make compiles with no errors.</p> | 1 |
<h3 dir="auto">System Info</h3>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 4.29.0.dev0</li>
<li>Platform: Linux-3.10.0-957.12.2.el7.x86_64-x86_64-with-glibc2.10</li>
<li>Python version: 3.8.3</li>
<li>Huggingface_hub version: 0.13.4</li>
<li>Safetensors version: not installed</li>
<li>PyTorch version (GPU?): 1.5.0 (True)</li>
<li>Tensorflow version (GPU?): not installed (NA)</li>
<li>Flax version (CPU?/GPU?/TPU?): not installed (NA)</li>
<li>Jax version: not installed</li>
<li>JaxLib version: not installed</li>
<li>Using GPU in script?: </li>
<li>Using distributed or parallel set-up in script?: </li>
</ul>
<h3 dir="auto">Who can help?</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Information</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own modified scripts</li>
</ul>
<h3 dir="auto">Tasks</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li>
</ul>
<h3 dir="auto">Reproduction</h3>
<p dir="auto">img_url = "<a href="https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png" rel="nofollow">https://huggingface.co/ybelkada/segment-anything/resolve/main/assets/car.png</a>"<br>
raw_image = Image.open(requests.get(img_url, stream=True).raw).convert("RGB")<br>
input_points = [[[450, 600]]] # 2D location of a window in the image</p>
<p dir="auto">inputs = processor(raw_image, input_points=input_points, return_tensors="pt").to(device)<br>
outputs = model(**inputs)</p>
<p dir="auto">masks = processor.image_processor.post_process_masks(<br>
outputs.pred_masks.cpu(), inputs["original_sizes"].cpu(), inputs["reshaped_input_sizes"].cpu()<br>
)<br>
scores = outputs.iou_scores</p>
<h3 dir="auto">Expected behavior</h3>
<hr>
<p dir="auto">RuntimeError Traceback (most recent call last)<br>
in <br>
4<br>
5 inputs = processor(raw_image, input_points=input_points, return_tensors="pt").to(device)<br>
----> 6 outputs = model(**inputs)<br>
7<br>
8 masks = processor.image_processor.post_process_masks(</p>
<p dir="auto">~/miniconda3/envs/pytorch/lib/python3.8/site-packages/torch/nn/modules/module.py in <strong>call</strong>(self, *input, **kwargs)<br>
548 result = self._slow_forward(*input, **kwargs)<br>
549 else:<br>
--> 550 result = self.forward(*input, **kwargs)<br>
551 for hook in self._forward_hooks.values():<br>
552 hook_result = hook(self, input, result)</p>
<p dir="auto">~/miniconda3/envs/pytorch/lib/python3.8/site-packages/transformers/models/sam/modeling_sam.py in forward(self, pixel_values, input_points, input_labels, input_boxes, input_masks, image_embeddings, multimask_output, output_attentions, output_hidden_states, return_dict, **kwargs)<br>
1331 )<br>
1332<br>
-> 1333 sparse_embeddings, dense_embeddings = self.prompt_encoder(<br>
1334 input_points=input_points,<br>
1335 input_labels=input_labels,</p>
<p dir="auto">~/miniconda3/envs/pytorch/lib/python3.8/site-packages/torch/nn/modules/module.py in <strong>call</strong>(self, *input, **kwargs)<br>
548 result = self._slow_forward(*input, **kwargs)<br>
549 else:<br>
--> 550 result = self.forward(*input, **kwargs)<br>
551 for hook in self._forward_hooks.values():<br>
552 hook_result = hook(self, input, result)</p>
<p dir="auto">~/miniconda3/envs/pytorch/lib/python3.8/site-packages/transformers/models/sam/modeling_sam.py in forward(self, input_points, input_labels, input_boxes, input_masks)<br>
669 if input_labels is None:<br>
670 raise ValueError("If points are provided, labels must also be provided.")<br>
--> 671 point_embeddings = self._embed_points(input_points, input_labels, pad=(input_boxes is None))<br>
672 sparse_embeddings = torch.empty((batch_size, point_batch_size, 0, self.hidden_size), device=target_device)<br>
673 sparse_embeddings = torch.cat([sparse_embeddings, point_embeddings], dim=2)</p>
<p dir="auto">~/miniconda3/envs/pytorch/lib/python3.8/site-packages/transformers/models/sam/modeling_sam.py in _embed_points(self, points, labels, pad)<br>
619 padding_point = torch.zeros(target_point_shape, device=points.device)<br>
620 padding_label = -torch.ones(target_labels_shape, device=labels.device)<br>
--> 621 points = torch.cat([points, padding_point], dim=2)<br>
622 labels = torch.cat([labels, padding_label], dim=2)<br>
623 input_shape = (self.input_image_size, self.input_image_size)</p>
<p dir="auto">RuntimeError: Expected object of scalar type double but got scalar type float for sequence element 1.</p> | <h3 dir="auto">System Info</h3>
<ul dir="auto">
<li><code class="notranslate">transformers</code> version: 4.29.0.dev0</li>
<li>Platform: macOS-13.2-arm64-arm-64bit</li>
<li>Python version: 3.10.6</li>
<li>Huggingface_hub version: 0.13.4</li>
<li>Safetensors version: 0.3.0</li>
<li>PyTorch version (GPU?): 1.13.0 (False)</li>
<li>Tensorflow version (GPU?): not installed (NA)</li>
<li>Flax version (CPU?/GPU?/TPU?): 0.6.9 (cpu)</li>
<li>Jax version: 0.4.8</li>
<li>JaxLib version: 0.4.7</li>
<li>Using GPU in script?: NO</li>
<li>Using distributed or parallel set-up in script?: NO</li>
</ul>
<p dir="auto">Dependencies</p>
<ul dir="auto">
<li>torch = 1.13.0</li>
<li>numpy = 1.23.4</li>
</ul>
<h3 dir="auto">Who can help?</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Information</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own modified scripts</li>
</ul>
<h3 dir="auto">Tasks</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> My own task or dataset (give details below)</li>
</ul>
<h3 dir="auto">Reproduction</h3>
<ol dir="auto">
<li>Pull <a href="https://github.com/huggingface/notebooks/blob/main/examples/segment_anything.ipynb">SAM Notebook example</a></li>
<li>Run notebook up until</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="masks = processor.image_processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"].cpu(), inputs["reshaped_input_sizes"].cpu())"><pre class="notranslate"><code class="notranslate">masks = processor.image_processor.post_process_masks(outputs.pred_masks.cpu(), inputs["original_sizes"].cpu(), inputs["reshaped_input_sizes"].cpu())
</code></pre></div>
<ol start="3" dir="auto">
<li>Get error</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: upsample_bilinear2d() received an invalid combination of arguments - got (Tensor, list, bool, NoneType), but expected one of:
* (Tensor input, tuple of SymInts output_size, bool align_corners, tuple of floats scale_factors)
didn't match because some of the arguments have invalid types: (Tensor, !list!, bool, !NoneType!)
* (Tensor input, tuple of SymInts output_size, bool align_corners, float scales_h, float scales_w, *, Tensor out)"><pre class="notranslate"><code class="notranslate">TypeError: upsample_bilinear2d() received an invalid combination of arguments - got (Tensor, list, bool, NoneType), but expected one of:
* (Tensor input, tuple of SymInts output_size, bool align_corners, tuple of floats scale_factors)
didn't match because some of the arguments have invalid types: (Tensor, !list!, bool, !NoneType!)
* (Tensor input, tuple of SymInts output_size, bool align_corners, float scales_h, float scales_w, *, Tensor out)
</code></pre></div>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">original_sizes/output_sizes to be of the expected type, is this a dependency issue?</p> | 1 |
<p dir="auto">The state variable is named 'var', but it is referred as 'state' afterwards.<br>
Changing this:<br>
new_value = tf.add(<strong>state</strong>, one)<br>
update = tf.assign(<strong>state</strong>, new_value)<br>
To this:<br>
new_value = tf.add(<strong>var</strong>, one)<br>
update = tf.assign(<strong>var</strong>, new_value)<br>
Solves the problem.</p> | <p dir="auto">In <a href="http://tensorflow.org/get_started/basic_usage.md#variables" rel="nofollow">http://tensorflow.org/get_started/basic_usage.md#variables</a></p>
<p dir="auto">the variable in the example is initialized as <code class="notranslate">var</code>, then subsequently referred to as <code class="notranslate">state</code><br>
leading to an obvious NameError:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "./variables.py", line 8, in <module>
new_value = tf.add(state, one)
NameError: name 'state' is not defined"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "./variables.py", line 8, in <module>
new_value = tf.add(state, one)
NameError: name 'state' is not defined
</code></pre></div> | 1 |
<p dir="auto">How to use threads in angular2 -Thread method like sleep(),wait()</p> | <p dir="auto">Hello,</p>
<p dir="auto">how can we do synchronized method calling in angular2 -Threads(sleep(),wait() ).</p> | 1 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.4</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://gist.github.com/DominusVilicus/f825d90575fccd6d437b02061c725a91">https://gist.github.com/DominusVilicus/f825d90575fccd6d437b02061c725a91</a> (code-sandbox doesn't allow <code class="notranslate">import()</code>)</p>
<h3 dir="auto">Steps to reproduce</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default {
render(h){
return h(import('./comp'))
}
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">{</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">h</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">h</span><span class="pl-kos">(</span><span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'./comp'</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">Results in an infinite loop that <strong>stops the browser tab from working</strong> (chrome). Just need to do <code class="notranslate">vue create app</code>, and create two components, and then use them in the <code class="notranslate">App.vue</code></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export default {
computed:{
component(){
return () => import('./comp')
}
},
render(h){
return h(this.component)
}
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-kos">{</span>
<span class="pl-c1">computed</span>:<span class="pl-kos">{</span>
<span class="pl-en">component</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-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">import</span><span class="pl-kos">(</span><span class="pl-s">'./comp'</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">h</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">h</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">component</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">works fine however</p>
<p dir="auto"><strong>comp.vue</strong></p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<template>
<pre>Hello World</pre>
</template>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">template</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">pre</span><span class="pl-kos">></span>Hello World<span class="pl-kos"></</span><span class="pl-ent">pre</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">template</span><span class="pl-kos">></span></pre></div>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">Returning the <code class="notranslate">import</code>ed component in <code class="notranslate">h(import('./comp'))</code> should render the async component</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">It's going in an infinite loop (try put <code class="notranslate">console.log('test')</code> in <code class="notranslate">render()</code></p> | <h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">We have a Mobile build and a Web build, and we want to add a directive <code class="notranslate">mobile</code> or <code class="notranslate">web</code> to components/elements so that they only get included into the bundle if they are built with the respective flags / env.</p>
<p dir="auto">Currently we are doing this via a vue-cli plugin which executes <code class="notranslate">preprocess</code> on the template (using a custom loader). We tried using <code class="notranslate">directives</code> and <code class="notranslate">modules</code> in <code class="notranslate">compilerOptions</code> instead, as this seemed safer and more idiomatic, however we were unable to remove elements using any of the callbacks.</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto">We tried returning <code class="notranslate">null</code> and <code class="notranslate">{}</code> and even <code class="notranslate">{ type: 3, text: "", isComment: true }</code> from <code class="notranslate">preTransformNode</code> (and <code class="notranslate">transformNode</code>), but it just resulted in various errors. We also tried changing <code class="notranslate">el.parent.children</code> which didn't yield any results.</p>
<p dir="auto">I think having the element just be removed when returning <code class="notranslate">null</code> from <code class="notranslate">preTransformNode</code> would be great, if that is possible.</p> | 0 |
<p dir="auto">I have been looking for how to solve this problem, but i couldn't find any how to solve it.<br>
When i used Thai Characters and run on iOS and Android. They displayed wrongly always. How can i solve this problem? I use current version (Beta 2 v 0.2.8)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32625530/38618630-713078c2-3dc4-11e8-8f18-691ca0b0d60a.png"><img width="311" alt="screen shot 2018-04-11 at 8 10 43 pm" src="https://user-images.githubusercontent.com/32625530/38618630-713078c2-3dc4-11e8-8f18-691ca0b0d60a.png" style="max-width: 100%;"></a></p> | <p dir="auto"><a href="https://github.com/eseidelGoogle"><img src="https://avatars.githubusercontent.com/u/11857803?v=3" align="left" width="96" height="96" hspace="10" style="max-width: 100%;"></a> <strong>Issue by <a href="https://github.com/eseidelGoogle">eseidelGoogle</a></strong><br>
<em>Tuesday Aug 18, 2015 at 18:10 GMT</em><br>
<em>Originally opened as <a href="https://github.com/flutter/engine/issues/674">https://github.com/flutter/engine/issues/674</a></em></p>
<hr>
<p dir="auto">Maybe there is a Play Store API we can hook into? Maybe we need to build our own (or presumably there is a third party solution?) Difficult to know when users hit Dart exceptions in our apps.</p>
<p dir="auto">Others must have solved this...<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abarth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abarth">@abarth</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/collinjackson/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/collinjackson">@collinjackson</a></p> | 0 |
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">It would be helpful to be able to duplicate an open tab.</p>
<p dir="auto"><strong>Use Case:</strong><br>
I am going into a repo that has two npm scripts, one to run the frontend and one to run the backend. So I run <code class="notranslate">npm run frontend</code>, great my frontend server is running. Now I want to go into the same folder on a second terminal window and run the other command <code class="notranslate">npm run backend</code>.</p>
<p dir="auto">Right now I would need to open a new window and manually navigate to the window. It would be very convenient to either right-click in the terminal or on the terminal-tab and have a "duplicate tab" option which opens a new tab in the same folder as the duplicated tab.</p> | <p dir="auto">On my 1909 RP PC the window frame size in 0.6 Terminal is much wider than it should be. I don't have this problem with my other machine running Insider.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2217248/68347303-5e263480-00ee-11ea-85d2-6cfa7daac9d4.PNG"><img src="https://user-images.githubusercontent.com/2217248/68347303-5e263480-00ee-11ea-85d2-6cfa7daac9d4.PNG" alt="winterm06" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto">In browsers, sending large array buffers over postMessage, for example to a <a href="https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API" rel="nofollow">Worker</a>, can be optimized by indicating that an ArrayBuffer (which is <a href="https://developer.mozilla.org/en-US/docs/Web/API/Transferable" rel="nofollow">Transferable</a>) should transfer ownership, instead of being cloned. See the <a href="https://developer.mozilla.org/en-US/docs/Web/API/Worker/postMessage#parameters" rel="nofollow">transfer parameter</a> to postMessage on MDN.</p>
<p dir="auto">This does not appear to be working in Deno 1.12.2: <code class="notranslate">const tmp = new Uint8Array(0); w.postMessage({ tmp }, [ tmp.buffer ]);</code> throws <code class="notranslate">DOMException: Value not transferable</code> - yet <code class="notranslate">const tmp = new Uint8Array(0); w.postMessage({ tmp }, [ ]);</code> succeeds.</p>
<p dir="auto">There is a related issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="740362148" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/8341" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/8341/hovercard" href="https://github.com/denoland/deno/issues/8341">#8341</a>, but it's far more broad - this issue is requesting only ArrayBuffer support, which is part of the spec all browsers implement.</p> | <p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="627697230" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/5965" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/5965/hovercard" href="https://github.com/denoland/deno/issues/5965">#5965</a> (and possibly others)</p>
<p dir="auto">It would be really nice if resources could be Transferable between web workers. This would allow for proper multi-threading for HTTP and WebSocket servers.</p>
<p dir="auto">This can provide multiple benefits:</p>
<ul dir="auto">
<li>Isolated code exposure.<br>
If someone finds a exploit it has a lower likelihood of affecting the entire server, only the worker it was executed on.</li>
<li>Load Balancing.<br>
This allows for balancing across all cores. This could be useful in a number of situations. Now obviously you could just make a new worker for each request and then delete the worker upon completion, but it may be easier conceptually for a programmer to just transfer the connection.</li>
<li>Fault Tolerance.<br>
You can use workers similar to Erlang for fault tolerance. It's easy enough to ensure workers are alive with heartbeats and if they are not you can kill them and re-instate. Would that kick any WebSockets (or any other connection)? Yes. But it is probably better to kick 10% of the server intentionally then for the server to kick 100% due to lag.</li>
</ul>
<p dir="auto">There are probably others but those are the reasons I can think of.</p>
<p dir="auto">This is probably not high up on the priority board, but it would be very nice if only for the use case of WebSockets.</p> | 1 |
<p dir="auto">Selecting Ubuntu isn't running in the terminal<br>
OS: Windows 10<br>
Terminal: Preview version</p> | <p dir="auto">Here's the scenarios:</p>
<ol dir="auto">
<li>No text in the interactive line. Active selection.</li>
<li>Text in the interactive line. Active selection.</li>
</ol>
<h2 dir="auto">Windows Terminal (before bugfix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="442478398" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/647" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/647/hovercard" href="https://github.com/microsoft/terminal/pull/647">#647</a> )</h2>
<table role="table">
<thead>
<tr>
<th>Shell</th>
<th>Scenario 1</th>
<th>Scenario 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>CMD</td>
<td>selection <em>cleared</em></td>
<td>Text and selection <em>cleared</em></td>
</tr>
<tr>
<td>Powershell</td>
<td>selection <em>active</em></td>
<td>text and selection <em>cleared</em></td>
</tr>
<tr>
<td>Ubuntu</td>
<td>selection <em>active</em></td>
<td>text and selection <em>active</em></td>
</tr>
</tbody>
</table>
<h2 dir="auto">Windows Terminal (after bugfix <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="442478398" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/647" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/terminal/pull/647/hovercard" href="https://github.com/microsoft/terminal/pull/647">#647</a> )</h2>
<table role="table">
<thead>
<tr>
<th>Shell</th>
<th>Scenario 1</th>
<th>Scenario 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>CMD</td>
<td>selection <em>cleared</em></td>
<td>Text and selection <em>cleared</em></td>
</tr>
<tr>
<td>Powershell</td>
<td>selection <em>cleared</em></td>
<td>text and selection <em>cleared</em></td>
</tr>
<tr>
<td>Ubuntu</td>
<td>selection <em>cleared</em></td>
<td>selection <em>cleared</em> (pressing again <em>DOES NOT</em> clear text)</td>
</tr>
</tbody>
</table>
<h2 dir="auto">Individual shells</h2>
<table role="table">
<thead>
<tr>
<th>Shell</th>
<th>Scenario 1</th>
<th>Scenario 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>CMD</td>
<td>selection <em>cleared</em></td>
<td>selection <em>cleared</em> (press again to clear text)</td>
</tr>
<tr>
<td>Powershell</td>
<td>selection <em>cleared</em></td>
<td>selection <em>cleared</em> (press again to clear text)</td>
</tr>
<tr>
<td>Ubuntu</td>
<td>selection <em>cleared</em></td>
<td>selection <em>cleared</em> (pressing again <em>DOES NOT</em> clear text)</td>
</tr>
</tbody>
</table>
<p dir="auto">I can probably match the "selection <em>cleared</em> (press again to clear text)" behavior. Is Ubuntu's behavior a bug though? I noticed that though pressing ESC again doesn't clear text, pressing backspace then clears the text (as opposed to just one character).</p> | 0 |
<p dir="auto">Hello <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/eschutho/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eschutho">@eschutho</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/craig-rueda/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/craig-rueda">@craig-rueda</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/hughhhh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/hughhhh">@hughhhh</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/michael-s-molina/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/michael-s-molina">@michael-s-molina</a><br>
When I want to run the Superset project directly from the github project instead of installing it in virtualenv, I get the following error.<br>
Error Description: can't find '<em>main</em>' module in 'superset'</p> | <p dir="auto">A clear and concise description of what the bug is.</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">after add druid cluster, I click "refresh druid metadata" button, I wish the databases of druid cluster can merge into database.</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">erro log:</p>
<p dir="auto">Error while processing cluster 'zjy' (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (MySQLdb._exceptions.IntegrityError) (1062, "Duplicate entry 'industrylevel2-2022' for key 'uq_columns_column_name'") [SQL: 'INSERT INTO <code class="notranslate">columns</code> (created_on, changed_on, column_name, verbose_name, is_active, type, groupby, count_distinct, sum, avg, max, min, filterable, description, datasource_id, dimension_spec_json, created_by_fk, changed_by_fk) VALUES (%s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s, %s)'] [parameters: (datetime.datetime(2019, 6, 12, 15, 18, 13, 148434), datetime.datetime(2019, 6, 12, 15, 18, 13, 148443), 'industrylevel2', None, 1, 'STRING', 1, 0, 0, 0, 0, 0, 1, None, 2022, None, 1, 1)] (Background on this error at: <a href="http://sqlalche.me/e/gkpj" rel="nofollow">http://sqlalche.me/e/gkpj</a>)</p>
<h4 dir="auto">Screenshots</h4>
<ul dir="auto">
<li>my druid cluster conf:</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19853623/59337276-d43a9100-8d32-11e9-9a64-7ccd49b03d18.png"><img src="https://user-images.githubusercontent.com/19853623/59337276-d43a9100-8d32-11e9-9a64-7ccd49b03d18.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>superset view :<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19853623/59337352-01873f00-8d33-11e9-8311-dc7e4d763361.png"><img src="https://user-images.githubusercontent.com/19853623/59337352-01873f00-8d33-11e9-8311-dc7e4d763361.png" alt="image" style="max-width: 100%;"></a></li>
</ul>
<p dir="auto">superset log:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19853623/59337168-9b022100-8d32-11e9-914c-639ef3d42906.png"><img src="https://user-images.githubusercontent.com/19853623/59337168-9b022100-8d32-11e9-914c-639ef3d42906.png" alt="image" style="max-width: 100%;"></a></p>
<h4 dir="auto">How to reproduce the bug</h4>
<ol dir="auto">
<li>Go to '...'</li>
<li>Click on '....'</li>
<li>Scroll down to '....'</li>
<li>See error</li>
</ol>
<h3 dir="auto">Environment</h3>
<p dir="auto">(please complete the following information):<br>
CentoOS 6.3</p>
<ul dir="auto">
<li>superset version: <code class="notranslate">superset version</code> === 0.28.1</li>
<li>python version: <code class="notranslate">python --version</code> === 3.6.8</li>
<li>node.js version: <code class="notranslate">node -v</code></li>
<li>npm version: <code class="notranslate">npm -v</code></li>
</ul>
<h3 dir="auto">Checklist</h3>
<p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the superset logs for python stacktraces and included it here as text if there are any.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have reproduced the issue with at least the latest released version of superset.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the issue tracker for the same issue and I haven't found one similar.</li>
</ul>
<h3 dir="auto">Additional context</h3>
<p dir="auto">Add any other context about the problem here.</p> | 0 |
<p dir="auto">AFAICT it's impossible to use a <strong>variable</strong> for <em>ignore_errors</em></p>
<h3 dir="auto">Given</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="vars:
ignore_err: no"><pre class="notranslate"><code class="notranslate">vars:
ignore_err: no
</code></pre></div>
<h3 dir="auto">Solution Attempts</h3>
<p dir="auto">Interpreted as a string, so always true:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ignore_errors: $ignore_err"><pre class="notranslate"><code class="notranslate">ignore_errors: $ignore_err
</code></pre></div>
<p dir="auto">Dito:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ignore_errors: {{ ignore_err }}"><pre class="notranslate"><code class="notranslate">ignore_errors: {{ ignore_err }}
</code></pre></div>
<p dir="auto">Illegal YAML syntax:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ignore_errors: {{ ignore_err | bool }}"><pre class="notranslate"><code class="notranslate">ignore_errors: {{ ignore_err | bool }}
</code></pre></div>
<p dir="auto">String again...:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ignore_errors: "{{ ignore_err | bool }}""><pre class="notranslate"><code class="notranslate">ignore_errors: "{{ ignore_err | bool }}"
</code></pre></div>
<p dir="auto">Maybe I'm stupid, but I can't see how to do this. I had to duplicate the task with one ignore_errors: yes and one no and control it with a when...</p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Documentation Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">core documentation</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">ansible 2.1.1.0 (stable-2.1 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/8659f255df742072bc8a5bc3a307a2ba3153f175/hovercard" href="https://github.com/ansible/ansible/commit/8659f255df742072bc8a5bc3a307a2ba3153f175"><tt>8659f25</tt></a>) last updated 2016/07/03 12:49:58 (GMT +200)<br>
lib/ansible/modules/core: (stable-2.1 dc15456874) last updated 2016/07/03 12:49:49 (GMT +200)<br>
lib/ansible/modules/extras: (stable-2.1 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/377f911867c63bdfa5e0fd70b273b1c67a3be212/hovercard" href="https://github.com/ansible/ansible/commit/377f911867c63bdfa5e0fd70b273b1c67a3be212"><tt>377f911</tt></a>) last updated 2016/07/03 12:49:49 (GMT +200)<br>
config file =<br>
configured module search path = Default w/o overrides</p>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">no changes</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Ansible host: Debian 8.5<br>
managed host: Debian 8.5</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">The documentation at <a href="http://docs.ansible.com/ansible/playbooks_roles.html#role-dependencies" rel="nofollow">http://docs.ansible.com/ansible/playbooks_roles.html#role-dependencies</a> is misleading and incorrect. First, it should be mentioned, that roles are executed multiple times if they have different parameters, regardless of the allow_duplicates setting. Second, in the example, the allow_duplicates is in the wrong meta file because it has to be specified in the role that has to be executed multiple times (in this case brake and tire).</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# site.yml
---
- name: sample
hosts: server
roles:
- car
# roles/car/meta/main.yml
---
dependencies:
- { role: wheel, n: 1 }
- { role: wheel, n: 2 }
- { role: wheel, n: 3 }
- { role: wheel, n: 4 }
# roles/car/tasks/main.yml
---
- debug:
msg: "in role CAR"
# roles/wheel/meta/main.yml
---
dependencies:
- { role: tire }
- { role: brake }
# roles/wheel/tasks/main.yml
---
- debug:
msg: "in role WHEEL (n={{ n }})"
# roles/tire/meta/main.yml
---
allow_duplicates: no
# roles/tire/tasks/main.yml
---
- debug:
msg: "in role TIRE (n={{ n }})"
# roles/brake/meta/main.yml
---
allow_duplicates: yes
# roles/brake/tasks/main.yml
---
- debug:
msg: "in role BRAKE (n={{ n }})""><pre class="notranslate"><code class="notranslate"># site.yml
---
- name: sample
hosts: server
roles:
- car
# roles/car/meta/main.yml
---
dependencies:
- { role: wheel, n: 1 }
- { role: wheel, n: 2 }
- { role: wheel, n: 3 }
- { role: wheel, n: 4 }
# roles/car/tasks/main.yml
---
- debug:
msg: "in role CAR"
# roles/wheel/meta/main.yml
---
dependencies:
- { role: tire }
- { role: brake }
# roles/wheel/tasks/main.yml
---
- debug:
msg: "in role WHEEL (n={{ n }})"
# roles/tire/meta/main.yml
---
allow_duplicates: no
# roles/tire/tasks/main.yml
---
- debug:
msg: "in role TIRE (n={{ n }})"
# roles/brake/meta/main.yml
---
allow_duplicates: yes
# roles/brake/tasks/main.yml
---
- debug:
msg: "in role BRAKE (n={{ n }})"
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">With the above configuration, role 'brake' is executed multiple times, while 'tire' is not.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [tire : debug] ************************************************************
ok: [localhost] => {
"msg": "in role TIRE (n=1)"
}
TASK [brake : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role BRAKE (n=1)"
}
TASK [wheel : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role WHEEL (n=1)"
}
TASK [brake : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role BRAKE (n=2)"
}
TASK [wheel : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role WHEEL (n=2)"
}
TASK [brake : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role BRAKE (n=3)"
}
TASK [wheel : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role WHEEL (n=3)"
}
TASK [brake : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role BRAKE (n=4)"
}
TASK [wheel : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role WHEEL (n=4)"
}
TASK [car : debug] *************************************************************
ok: [localhost] => {
"msg": "in role CAR"
}"><pre class="notranslate"><code class="notranslate">TASK [tire : debug] ************************************************************
ok: [localhost] => {
"msg": "in role TIRE (n=1)"
}
TASK [brake : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role BRAKE (n=1)"
}
TASK [wheel : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role WHEEL (n=1)"
}
TASK [brake : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role BRAKE (n=2)"
}
TASK [wheel : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role WHEEL (n=2)"
}
TASK [brake : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role BRAKE (n=3)"
}
TASK [wheel : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role WHEEL (n=3)"
}
TASK [brake : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role BRAKE (n=4)"
}
TASK [wheel : debug] ***********************************************************
ok: [localhost] => {
"msg": "in role WHEEL (n=4)"
}
TASK [car : debug] *************************************************************
ok: [localhost] => {
"msg": "in role CAR"
}
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">The actual result matches the expected one, because only the documentation is incorrect.</p> | 0 |
<h2 dir="auto">Issue</h2>
<p dir="auto">Using latest .14.7 I'm running into an issue error with select and <code class="notranslate">ReactDOMSelect:158</code> when navigating away from one place to another place which is causing a select to throw even though it should and is unmounted.</p>
<p dir="auto">Error being: <code class="notranslate">TypeError: Cannot set property 'initialValue' of null at Object.ReactDOMSelect.postUpdateWrapper (http://localhost:3992/assets/js/main.js:22153:38)</code></p>
<p dir="auto">Other reports of this happening are here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="118261422" data-permission-text="Title is private" data-url="https://github.com/redux-form/redux-form/issues/321" data-hovercard-type="issue" data-hovercard-url="/redux-form/redux-form/issues/321/hovercard" href="https://github.com/redux-form/redux-form/issues/321">redux-form/redux-form#321</a></p>
<h2 dir="auto">Setup</h2>
<p dir="auto">Currently integrating into an app in pieces, So I render our <code class="notranslate">Router</code> into an empty container that renders components that render into their appropriate DOM containers.</p>
<h2 dir="auto">Seemingly the error?</h2>
<p dir="auto">I've narrowed it down to calling <code class="notranslate">unmountComponentAtNode(this.section)</code> which occurs in a <code class="notranslate">componentDidUpdate</code>. I removed it and the error stops happening.</p>
<p dir="auto">I realize that mounting to an existing node that is a React root will cause an unmount and mount the correct things.</p>
<h2 dir="auto">Repro</h2>
<p dir="auto">I've attempted to reproduce it but no luck at the moment even though I've narrowed it down to the <code class="notranslate">unmountComponentAtNode</code> call.</p>
<p dir="auto">The click is originating in a different ReactDOM.render container so I'm not sure if it is an eventing thing where clicks from different ReactDOM roots are applying to everywhere else?</p>
<h2 dir="auto">Stack Trace</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ReactDOMSelect.postUpdateWrapper (ReactDOMSelect.js:158)
postUpdateSelectWrapper (ReactDOMComponent.js:303)
assign.notifyAll (CallbackQueue.js:65)
ON_DOM_READY_QUEUEING.close (ReactReconcileT…nsaction.js:81)
Mixin.closeAll (Transaction.js:202)
Mixin.perform (Transaction.js:149)
Mixin.perform (Transaction.js:136)
assign.perform (ReactUpdates.js:86)
flushBatchedUpdates (ReactUpdates.js:147)
ReactUpdates_flushBatchedUpdates (ReactPerf.js:66)
Mixin.closeAll (Transaction.js:202)
Mixin.perform (Transaction.js:149)
ReactDefaultBatchingStrategy.batchedUpdates (ReactDefaultBat…Strategy.js:62)
batchedUpdates (ReactUpdates.js:94)
ReactEventListener.dispatchEvent (ReactEventListener.js:204) //Mouse click event of me clicking on a different container render."><pre class="notranslate"><code class="notranslate">ReactDOMSelect.postUpdateWrapper (ReactDOMSelect.js:158)
postUpdateSelectWrapper (ReactDOMComponent.js:303)
assign.notifyAll (CallbackQueue.js:65)
ON_DOM_READY_QUEUEING.close (ReactReconcileT…nsaction.js:81)
Mixin.closeAll (Transaction.js:202)
Mixin.perform (Transaction.js:149)
Mixin.perform (Transaction.js:136)
assign.perform (ReactUpdates.js:86)
flushBatchedUpdates (ReactUpdates.js:147)
ReactUpdates_flushBatchedUpdates (ReactPerf.js:66)
Mixin.closeAll (Transaction.js:202)
Mixin.perform (Transaction.js:149)
ReactDefaultBatchingStrategy.batchedUpdates (ReactDefaultBat…Strategy.js:62)
batchedUpdates (ReactUpdates.js:94)
ReactEventListener.dispatchEvent (ReactEventListener.js:204) //Mouse click event of me clicking on a different container render.
</code></pre></div>
<h2 dir="auto">Code</h2>
<p dir="auto">My code causing the issue looks like so.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React, { Component, PropTypes } from "react";
import { render, unmountComponentAtNode } from "react-dom";
import { Provider } from "react-redux";
import ApplicationsRenderer from "./applications";
let getContainer = () => document.getElementById('dashboard-body');
export default class DashboardRenderer extends Component {
constructor(props, context) {
super(props, context);
this.renderIntoContainer = this.renderIntoContainer.bind(this);
}
componentDidMount() {
this.renderIntoContainer();
}
renderIntoContainer() {
let { store, container: Container } = this.props.route;
let { router } = this.context;
this.section = getContainer();
if (this.section) {
unmountComponentAtNode(this.section)
render(
<Provider store={store}>
<Container router={router} key={Container} />
</Provider>,
this.section
);
}
}
componentDidUpdate(prevProps) {
let { container } = this.props.route;
let { container: prevContainer } = prevProps.route;
if (container !== prevContainer) {
this.renderIntoContainer();
}
}
componentWillUnmount() {
unmountComponentAtNode(this.section)
}
render() {
return null;
}
}
DashboardRenderer.contextTypes = {
router: PropTypes.object
}
"><pre class="notranslate"><code class="notranslate">import React, { Component, PropTypes } from "react";
import { render, unmountComponentAtNode } from "react-dom";
import { Provider } from "react-redux";
import ApplicationsRenderer from "./applications";
let getContainer = () => document.getElementById('dashboard-body');
export default class DashboardRenderer extends Component {
constructor(props, context) {
super(props, context);
this.renderIntoContainer = this.renderIntoContainer.bind(this);
}
componentDidMount() {
this.renderIntoContainer();
}
renderIntoContainer() {
let { store, container: Container } = this.props.route;
let { router } = this.context;
this.section = getContainer();
if (this.section) {
unmountComponentAtNode(this.section)
render(
<Provider store={store}>
<Container router={router} key={Container} />
</Provider>,
this.section
);
}
}
componentDidUpdate(prevProps) {
let { container } = this.props.route;
let { container: prevContainer } = prevProps.route;
if (container !== prevContainer) {
this.renderIntoContainer();
}
}
componentWillUnmount() {
unmountComponentAtNode(this.section)
}
render() {
return null;
}
}
DashboardRenderer.contextTypes = {
router: PropTypes.object
}
</code></pre></div> | <p dir="auto">Hi,</p>
<p dir="auto">When trying to unmount my whole app, I got some error.</p>
<blockquote>
<p dir="auto">Uncaught TypeError: Cannot read property 'firstChild' of undefined<br>
ReactMount.js:606ReactMount.findComponentRoot<br>
ReactMount.js:606ReactMount.findReactNodeByID ReactMount.js:552getNode<br>
ReactMount.js:128executeDispatch EventPluginUtils.js:109SimpleEventPlugin.executeDispatch<br>
SimpleEventPlugin.js:305forEachEventDispatch EventPluginUtils.js:95executeDispatchesInOrder<br>
EventPluginUtils.js:119executeDispatchesAndRelease EventPluginHub.js:46forEachAccumulated<br>
forEachAccumulated.js:25EventPluginHub.processEventQueue<br>
EventPluginHub.js:251runEventQueueInBatch<br>
ReactEventEmitterMixin.js:18ReactEventEmitterMixin.handleTopLevel<br>
ReactEventEmitterMixin.js:44handleTopLevelImpl ReactEventListener.js:80Mixin.perform<br>
Transaction.js:134ReactDefaultBatchingStrategy.batchedUpdates<br>
ReactDefaultBatchingStrategy.js:66batchedUpdates<br>
ReactUpdates.js:109ReactEventListener.dispatchEvent ReactEventListener.js:175</p>
</blockquote>
<p dir="auto">I think it's not a big deal.</p>
<p dir="auto">According to what I see with the debugger, it seems to be because a <code class="notranslate">SyntheticMouseEvent</code> is trying to get dispatched. And I guess the target has just been unmounted...</p>
<p dir="auto">Note that my use case looks like this:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var Hello = React.createClass({
render: function() {
return <div onClick={unmount}>Hello {this.props.name}</div>;
}
});"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">Hello</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-en">render</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">onClick</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">unmount</span><span class="pl-kos">}</span><span class="pl-c1">></span>Hello <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">name</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><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">When using an <code class="notranslate">unmount</code> synchronous implementation, I get this error.<br>
When adding a setTimeout 0 in the unmount code, I got no error.</p>
<p dir="auto">I could not reproduce this in a jsfiddle, but I guess it's probably because I don't really know how batching work in React.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.5-SNAPSHOT</li>
<li>Operating System version: macos</li>
<li>Java version: 1.8.0_131</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">We could run the following UT, then we could find the issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ApplicationConfig application = new ApplicationConfig("provider");
ServiceConfig<DemoService> service = new ServiceConfig<DemoService>();
service.setProtocol(new ProtocolConfig("dubbo", 20880));
service.setRegistry(new RegistryConfig(RegistryConfig.NO_AVAILABLE));
service.setInterface(DemoService.class);
service.setRef(new DemoServiceImpl());
ConsumerConfig consumer = new ConsumerConfig();
consumer.setLazy(true);
ReferenceConfig<DemoService> reference = new ReferenceConfig<DemoService>();
reference.setConsumer(consumer);
reference.setRegistry(new RegistryConfig(RegistryConfig.NO_AVAILABLE));
reference.setInterface(DemoService.class);
reference.setUrl("dubbo://" + NetUtils.getLocalHost() + ":20880?" + DemoService.class.getName());
DubboBootstrap bootstrap = DubboBootstrap.getInstance()
.application(application)
.service(service)
.reference(reference)
.start();
Assert.assertEquals("true", reference.toUrls().get(0).getParameter("lazy"));"><pre class="notranslate"><code class="notranslate"> ApplicationConfig application = new ApplicationConfig("provider");
ServiceConfig<DemoService> service = new ServiceConfig<DemoService>();
service.setProtocol(new ProtocolConfig("dubbo", 20880));
service.setRegistry(new RegistryConfig(RegistryConfig.NO_AVAILABLE));
service.setInterface(DemoService.class);
service.setRef(new DemoServiceImpl());
ConsumerConfig consumer = new ConsumerConfig();
consumer.setLazy(true);
ReferenceConfig<DemoService> reference = new ReferenceConfig<DemoService>();
reference.setConsumer(consumer);
reference.setRegistry(new RegistryConfig(RegistryConfig.NO_AVAILABLE));
reference.setInterface(DemoService.class);
reference.setUrl("dubbo://" + NetUtils.getLocalHost() + ":20880?" + DemoService.class.getName());
DubboBootstrap bootstrap = DubboBootstrap.getInstance()
.application(application)
.service(service)
.reference(reference)
.start();
Assert.assertEquals("true", reference.toUrls().get(0).getParameter("lazy"));
</code></pre></div>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">Expected "lazy" : true</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Actual "lazy": false</p> | <p dir="auto">Write an UT to verify removal of TIMEOUT_FILTER_START_TIME attachement in case if exception occurs<br>
in dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/filter/TimeoutFilter.java.</p>
<p dir="auto">This task is an extension to add UT for PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="397192201" data-permission-text="Title is private" data-url="https://github.com/apache/dubbo/issues/3174" data-hovercard-type="pull_request" data-hovercard-url="/apache/dubbo/pull/3174/hovercard" href="https://github.com/apache/dubbo/pull/3174">#3174</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/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: xxx</li>
<li>Operating System version: xxx</li>
<li>Java version: xxx</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>xxx</li>
<li>xxx</li>
<li>xxx</li>
</ol>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto">What do you expected from the above steps?</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div> | 0 |
<h1 dir="auto">Bug report</h1>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">I have an app that imports both <code class="notranslate">pixi.js</code> and <code class="notranslate">pixi-batch-renderer</code>. <code class="notranslate">pixi-batch-renderer</code> imports classes from <code class="notranslate">pixi.js</code> as well.</p>
<p dir="auto">The resulting bundle has two pixi.js instances - one from the ESM build (required from the app itself), and one from the CJS build (required from pixi-batch-renderer). (required means <code class="notranslate">require()</code> inside the bundle).</p>
<p dir="auto">This should not be the case - webpack should only bundle the ESM version.</p>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">The full reproduction is here: <a href="https://github.com/SukantPal/webpack-duplicate-bundle">https://github.com/SukantPal/webpack-duplicate-bundle</a></p>
<p dir="auto">I've given more details there.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">Only one version of pixi.js should be bundled.</p>
<p dir="auto"><strong>Other relevant information:</strong><br>
webpack version: 4.42.0<br>
Node.js version: 12.7.0<br>
Operating System: macOS Catalina<br>
Additional tools: N/A</p> | <p dir="auto">I am building a web app (React) in which I need to support multiple themes. The file structure is as follows. Each component has it's own directory containing all files that belong to the component.<br>
Example:</p>
<p dir="auto">ui-Avatar<br>
|-- index.jsx<br>
|-- theme-a.css<br>
|-- theme-b.css<br>
|-- ....</p>
<p dir="auto">When using webpack-dev-server I can quite easily use a conditional require and pull in either theme-a or theme-b.</p>
<p dir="auto">onComponentWillMount() {<br>
if (this.context.theme === 'theme-a') {<br>
require('./theme-a.css');<br>
else (this.context.theme === 'theme-b') {<br>
require('./theme-b.css');<br>
}<br>
}</p>
<p dir="auto">BUT when I use web pack to package for the production server both theme-a.css and theme-b.css get pulled in and packaged into the same resulting css file. With the result that the style rules in the themes overwrite each other.</p>
<p dir="auto">What I would like is to be able to produce separate files for the two themes with the collected theme snippets from all the components in the application.</p>
<p dir="auto">Does anyone know how to set up webpack to solve my problem?</p> | 0 |
<p dir="auto">it would be nice if there was a way to generate extra data before dispatching to a module</p>
<p dir="auto">something like this (bad example to get the idea across)</p>
<pre class="notranslate">@app.route('//wiki', module=vcswiki)
def user_wiki(username):
g.wiki = get_wiki_for_user(username)
@app.route('/help', module=vcswiki)
def help_wiki():
g.wiki = get_help_wiki()
</pre> | <p dir="auto">The module branch support variable modules. Something like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="wiki = Module(__name__, url_prefix='/<user>')"><pre class="notranslate"><code class="notranslate">wiki = Module(__name__, url_prefix='/<user>')
</code></pre></div>
<p dir="auto">Then each function registered is passed 'user' as first parameter. This already works as far as I can see, however it would be better if that value can be attached to <code class="notranslate">g</code> instead. What should work (not tested) is this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@wiki.before_request
def attach_user():
g.wiki_user = request.view_args.pop('user', None)"><pre class="notranslate"><code class="notranslate">@wiki.before_request
def attach_user():
g.wiki_user = request.view_args.pop('user', None)
</code></pre></div>
<p dir="auto">The problem with this is that URLs generated still need that user attached, so <code class="notranslate">url_for</code> needs some kind of support for that. However I am not entirely sure how that should look like.</p> | 1 |
<p dir="auto">Visible-* classes applied to li items that are part of a list-inline styled list do not render inline, as the display: block !important; overrides the display: inline-block; for the list.</p>
<p dir="auto">Demo - <a href="http://www.bootply.com/73333#" rel="nofollow">http://www.bootply.com/73333#</a></p>
<p dir="auto">Consider a fix of</p>
<p dir="auto">.list-inline > li.visible-sm { display: inline-block !important; }</p>
<p dir="auto">and similar at for the -md and -lg classes at the correct breakpoints.</p> | <p dir="auto">related to issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="16856611" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/8500" data-hovercard-type="pull_request" data-hovercard-url="/twbs/bootstrap/pull/8500/hovercard" href="https://github.com/twbs/bootstrap/pull/8500">#8500</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14075731" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/7808" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/7808/hovercard" href="https://github.com/twbs/bootstrap/issues/7808">#7808</a> , <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="6609454" data-permission-text="Title is private" data-url="https://github.com/twbs/bootstrap/issues/4929" data-hovercard-type="issue" data-hovercard-url="/twbs/bootstrap/issues/4929/hovercard" href="https://github.com/twbs/bootstrap/issues/4929">#4929</a> ; using <code class="notranslate">.hidden-sm</code> to hide span within <code class="notranslate">.nav > li > a</code> . Because class is <code class="notranslate">display: block</code> above -sm then text wraps to new line. Would you consider <code class="notranslate">.hidden-*</code> classes to be <code class="notranslate">display: inline-block</code> instead ?</p>
<p dir="auto">Here's a jsfiddle of the two cases - but the repercussions could be greater outside of this situation so probably needs more consideration... <a href="http://jsfiddle.net/jholl/P86yf/" rel="nofollow">http://jsfiddle.net/jholl/P86yf/</a></p> | 1 |
<p dir="auto"><strong>Description</strong><br>
we need a feature where we can set the state of the task instance to the specified state.</p>
<p dir="auto"><strong>Use case / motivation</strong><br>
In my application, some task instances have been scheduled for a long time, we want to put it in the failed state. Currently, we are doing this by using airflow Web UI but we want to use API instead.</p>
<p dir="auto"><strong>Are you willing to submit a PR?</strong><br>
Yes, I'm willing to.</p>
<p dir="auto"><strong>Related Issues</strong><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="919443927" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/16412" data-hovercard-type="issue" data-hovercard-url="/apache/airflow/issues/16412/hovercard" href="https://github.com/apache/airflow/issues/16412">#16412</a></p> | <p dir="auto"><strong>Apache Airflow version</strong>: 2.0.2</p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</strong> (use <code class="notranslate">kubectl version</code>):</p>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>:</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ssh-keygen -t rsa -P "" -f test_rsa
cat test_rsa | python -c 'import sys;import json; print(json.dumps(sys.stdin.read()))' # gives the private key encoded as JSON string to be pasted in the connection extra private_key"><pre class="notranslate"><code class="notranslate">ssh-keygen -t rsa -P "" -f test_rsa
cat test_rsa | python -c 'import sys;import json; print(json.dumps(sys.stdin.read()))' # gives the private key encoded as JSON string to be pasted in the connection extra private_key
</code></pre></div>
<p dir="auto">I created an Airflow Connection</p>
<ul dir="auto">
<li>type: ssh</li>
<li>extra:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"look_for_keys": "false",
"no_host_key_check": "true",
"private_key": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn\nNhAA........W4tTGFndW5hLU1hY0Jvb2stUHJvAQI=\n-----END OPENSSH PRIVATE KEY-----\n",
"private_key_passphrase": ""
}"><pre class="notranslate"><code class="notranslate">{
"look_for_keys": "false",
"no_host_key_check": "true",
"private_key": "-----BEGIN OPENSSH PRIVATE KEY-----\nb3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAABlwAAAAdzc2gtcn\nNhAA........W4tTGFndW5hLU1hY0Jvb2stUHJvAQI=\n-----END OPENSSH PRIVATE KEY-----\n",
"private_key_passphrase": ""
}
</code></pre></div>
<p dir="auto">When this SSH connection is used in SFTPToS3Operator for example it will incorrectly parse that <code class="notranslate">private_key</code> as a <code class="notranslate">paramiko.dsskey.DSSKey</code> instead of the correct <code class="notranslate">paramiko.rsakey.RSAKey</code>.</p>
<p dir="auto">The code responsible for the processing of <code class="notranslate">private_key</code> is not <strong>not deterministic</strong> (I don't think <code class="notranslate">.values()</code> returns items in any particular order) , but in my case it will always try <code class="notranslate">paramiko.dsskey.DSSKey</code> before it tries <code class="notranslate">paramiko.rsakey.RSAKey</code>:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/apache/airflow/blob/8e2a0bc2e39aeaf15b409bbfa8ac0c85aa873815/airflow/providers/ssh/hooks/ssh.py#L363-L369">airflow/airflow/providers/ssh/hooks/ssh.py</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 363 to 369
in
<a data-pjax="true" class="commit-tease-sha" href="/apache/airflow/commit/8e2a0bc2e39aeaf15b409bbfa8ac0c85aa873815">8e2a0bc</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="L363" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="363"></td>
<td id="LC363" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">allowed_pkey_types</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">_default_pkey_mappings</span>.<span class="pl-en">values</span>() </td>
</tr>
<tr class="border-0">
<td id="L364" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="364"></td>
<td id="LC364" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> <span class="pl-s1">pkey_type</span> <span class="pl-c1">in</span> <span class="pl-s1">allowed_pkey_types</span>: </td>
</tr>
<tr class="border-0">
<td id="L365" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="365"></td>
<td id="LC365" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">try</span>: </td>
</tr>
<tr class="border-0">
<td id="L366" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="366"></td>
<td id="LC366" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s1">key</span> <span class="pl-c1">=</span> <span class="pl-s1">pkey_type</span>.<span class="pl-en">from_private_key</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">private_key</span>), <span class="pl-s1">password</span><span class="pl-c1">=</span><span class="pl-s1">passphrase</span>) </td>
</tr>
<tr class="border-0">
<td id="L367" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="367"></td>
<td id="LC367" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> <span class="pl-s1">key</span> </td>
</tr>
<tr class="border-0">
<td id="L368" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="368"></td>
<td id="LC368" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">except</span> <span class="pl-s1">paramiko</span>.<span class="pl-s1">ssh_exception</span>.<span class="pl-v">SSHException</span>: </td>
</tr>
<tr class="border-0">
<td id="L369" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="369"></td>
<td id="LC369" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">continue</span> </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">This incorrectly parsed private key will cause a very confusing error later when it's actually used</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2021-06-30 23:33:14,604] {transport.py:1819} INFO - Connected (version 2.0, client AWS_SFTP_1.0)
[2021-06-30 23:33:14,732] {transport.py:1819} ERROR - Unknown exception: q must be exactly 160, 224, or 256 bits long
[2021-06-30 23:33:14,737] {transport.py:1817} ERROR - Traceback (most recent call last):
[2021-06-30 23:33:14,737] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/paramiko/transport.py", line 2109, in run
[2021-06-30 23:33:14,737] {transport.py:1817} ERROR - handler(self.auth_handler, m)
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/paramiko/auth_handler.py", line 298, in _parse_service_accept
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - sig = self.private_key.sign_ssh_data(blob)
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/paramiko/dsskey.py", line 108, in sign_ssh_data
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - key = dsa.DSAPrivateNumbers(
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 244, in private_key
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - return backend.load_dsa_private_numbers(self)
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 826, in load_dsa_private_numbers
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - dsa._check_dsa_private_numbers(numbers)
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 282, in _check_dsa_private_numbers
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - _check_dsa_parameters(parameters)
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 274, in _check_dsa_parameters
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - raise ValueError("q must be exactly 160, 224, or 256 bits long")
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - ValueError: q must be exactly 160, 224, or 256 bits long
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - "><pre class="notranslate"><code class="notranslate">[2021-06-30 23:33:14,604] {transport.py:1819} INFO - Connected (version 2.0, client AWS_SFTP_1.0)
[2021-06-30 23:33:14,732] {transport.py:1819} ERROR - Unknown exception: q must be exactly 160, 224, or 256 bits long
[2021-06-30 23:33:14,737] {transport.py:1817} ERROR - Traceback (most recent call last):
[2021-06-30 23:33:14,737] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/paramiko/transport.py", line 2109, in run
[2021-06-30 23:33:14,737] {transport.py:1817} ERROR - handler(self.auth_handler, m)
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/paramiko/auth_handler.py", line 298, in _parse_service_accept
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - sig = self.private_key.sign_ssh_data(blob)
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/paramiko/dsskey.py", line 108, in sign_ssh_data
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - key = dsa.DSAPrivateNumbers(
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 244, in private_key
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - return backend.load_dsa_private_numbers(self)
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/cryptography/hazmat/backends/openssl/backend.py", line 826, in load_dsa_private_numbers
[2021-06-30 23:33:14,738] {transport.py:1817} ERROR - dsa._check_dsa_private_numbers(numbers)
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 282, in _check_dsa_private_numbers
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - _check_dsa_parameters(parameters)
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - File "/Users/rubelagu/git/apache-airflow-providers-tdh/venv/lib/python3.8/site-packages/cryptography/hazmat/primitives/asymmetric/dsa.py", line 274, in _check_dsa_parameters
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - raise ValueError("q must be exactly 160, 224, or 256 bits long")
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR - ValueError: q must be exactly 160, 224, or 256 bits long
[2021-06-30 23:33:14,739] {transport.py:1817} ERROR -
</code></pre></div>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">I expected to parse the <code class="notranslate">private_key</code> as a RSAKey.</p>
<p dir="auto">I did my own test and <code class="notranslate">paramiko.dsskey.DSSKey.from_private_key(StringIO(private_key), password=passphrase)</code> will happily parse (incorrectly) a RSA key. The current code assumes that it will raise an exception but it won't.</p>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<p dir="auto">For me it happens always, I don't think the order of <code class="notranslate">.values()</code> is deterministic, but in my laptop it will always try DSSKey before RSAKey.</p> | 0 |
<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>no</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.4</td>
</tr>
</tbody>
</table>
<p dir="auto">After upgrading to Symfony 3.4 beta1, I'm seeing a ton of deprecations like this one:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="The "Twig_Extension::getName()" method is deprecated since 1.26 (to be removed
in 2.0), not used anymore internally. You should not extend it from
"Symfony\Bridge\Twig\Extension\LogoutUrlExtension""><pre class="notranslate"><code class="notranslate">The "Twig_Extension::getName()" method is deprecated since 1.26 (to be removed
in 2.0), not used anymore internally. You should not extend it from
"Symfony\Bridge\Twig\Extension\LogoutUrlExtension"
</code></pre></div>
<p dir="auto"><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 on the Symfony Slack chat to require Twig 1.26 as the minimum version, because that's the one which deprecated <code class="notranslate">getName()</code> and the first version where we can remove it without making the applications fail.</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>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>no</td>
</tr>
<tr>
<td>Symfony version</td>
<td>3.4</td>
</tr>
</tbody>
</table>
<p dir="auto">The Debug component detects usages of deprecated methods since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="248393939" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/23816" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/23816/hovercard" href="https://github.com/symfony/symfony/pull/23816">#23816</a>.</p>
<p dir="auto">Problem is that the TwigBridge's Twig extensions are all implementing <code class="notranslate">Twig\Extension::getName()</code> which is deprecated since Twig 1.26 (only via <code class="notranslate">@deprecated</code> phpdoc annotations to avoid unexpected deprecation notices, see <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179374258" data-permission-text="Title is private" data-url="https://github.com/twigphp/Twig/issues/2148" data-hovercard-type="pull_request" data-hovercard-url="/twigphp/Twig/pull/2148/hovercard" href="https://github.com/twigphp/Twig/pull/2148">twigphp/Twig#2148</a>).</p>
<p dir="auto">As a result, using symfony/debug 3.4 + symfony/twig-bridge 3.4 + twig 1.x triggers the following deprecation:</p>
<blockquote>
<p dir="auto">The "Twig_Extension::getName()" method is deprecated since 1.26 (to be removed in 2.0), not used anymore internally. You should not extend it from "Symfony\Bridge\Twig\Extension\AssetExtension".</p>
</blockquote>
<p dir="auto">Same for every Twig extension provided by TwigBridge (16)</p> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">lib/ansible/modules/clustering/consul_kv.py</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<p dir="auto">ansible 2.3.0.0<br>
ansible 2.4.0.0</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Currently the <code class="notranslate">consul_kv</code> module does not provide any extra diff output (when running ansible with the so useful <code class="notranslate">--diff</code> option).<br>
Diff output (we could make it optional, by an extra optional parameter like 'diffView') should be easy to add using the <code class="notranslate">module.exit_json</code> <code class="notranslate">diff</code> return attribute containing both the old and new value for the updated key, in following fashion:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" index, existing = consul_api.kv.get(key)
...
# to support diff-mode, just need following block:
if existing and existing['Value']:
ansible_diff = {'before': existing['Value'], 'after': value}
else:
ansible_diff = None
module.exit_json(changed=changed,
index=index,
key=key,
data=stored,
diff= ansible_diff
)"><pre class="notranslate"><code class="notranslate"> index, existing = consul_api.kv.get(key)
...
# to support diff-mode, just need following block:
if existing and existing['Value']:
ansible_diff = {'before': existing['Value'], 'after': value}
else:
ansible_diff = None
module.exit_json(changed=changed,
index=index,
key=key,
data=stored,
diff= ansible_diff
)
</code></pre></div>
<p dir="auto">Note: <del>Untested code</del><br>
Update: I've already tested the new <code class="notranslate">--diff</code> successfully in a duplicated consul_kv.py file. TODO make a PR etc</p> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">lxc_container</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]"><pre class="notranslate"><code class="notranslate">ansible 2.3.1.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
python version = 2.7.6 (default, Oct 26 2016, 20:30:19) [GCC 4.8.4]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">This issue is a follow-up (but it's not a duplicate: that issue was about something different but still contains relevant messages) for the <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="147239210" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-extras/issues/1998" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-extras/issues/1998/hovercard" href="https://github.com/ansible/ansible-modules-extras/issues/1998">ansible/ansible-modules-extras#1998</a>.</p>
<p dir="auto">In short, if you change the <code class="notranslate">container_config</code> it's easy to reach the state when the config contains duplicates.</p>
<p dir="auto">I understand <code class="notranslate">lxc</code> allows some configuration directives to present multiple times in the config, but at least the module could de-duplicate the entries that are guaranteed to be unique.</p>
<p dir="auto">Eg: <code class="notranslate">lxc.start.auto</code>. Having duplicates for it really can cause issues when you expect (or do not) the container to start on the host restart, but due to multiple duplicate lines arbitrarily ordered - the outcome is basically random.</p>
<p dir="auto">What I suggest: what if the module kept the list of directives that are guaranteed to be unique and for those only kept the currently set values, and removed everything else.</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="- name: Create a container
lxc_container:
name: container-to-demonstrate-duplicate-issues
template: ubuntu
state: started
template_options: "--release xenial"
container_config:
- "lxc.start.auto = 1""><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Create a container</span>
<span class="pl-ent">lxc_container</span>:
<span class="pl-ent">name</span>: <span class="pl-s">container-to-demonstrate-duplicate-issues</span>
<span class="pl-ent">template</span>: <span class="pl-s">ubuntu</span>
<span class="pl-ent">state</span>: <span class="pl-s">started</span>
<span class="pl-ent">template_options</span>: <span class="pl-s"><span class="pl-pds">"</span>--release xenial<span class="pl-pds">"</span></span>
<span class="pl-ent">container_config</span>:
- <span class="pl-s"><span class="pl-pds">"</span>lxc.start.auto = 1<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">then change to <code class="notranslate">lxc.start.auto = 0</code></p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">There should be just one <code class="notranslate">lxc.start.auto</code> in the container's <code class="notranslate">config</code> file.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">There are 2 entries</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> | 0 |
<p dir="auto"><strong>Please fill out the below information:</strong></p>
<ul dir="auto">
<li>
<p dir="auto">Your Windows build number: 10.0.18362.356</p>
</li>
<li>
<p dir="auto">What you're doing and what's happening: (Copy&paste the full set of <em>specific</em> command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)<br>
I can open the find box by right-clicking the title bar and select from the menu. But I can't open it with Ctrl + F shortcut.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22290018/65384136-21c29300-dd51-11e9-8fbf-2aa42ebdb579.png"><img src="https://user-images.githubusercontent.com/22290018/65384136-21c29300-dd51-11e9-8fbf-2aa42ebdb579.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22290018/65384179-8978de00-dd51-11e9-93e9-4c4d382714f5.png"><img src="https://user-images.githubusercontent.com/22290018/65384179-8978de00-dd51-11e9-93e9-4c4d382714f5.png" alt="image" style="max-width: 100%;"></a></p>
</li>
</ul>
<p dir="auto">My <code class="notranslate">/etc/inputrc</code> is the default.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set input-meta on
set output-meta on
# To allow the use of 8bit-characters like the german umlauts, uncomment
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
# set convert-meta off
# try to enable the application keypad when it is called. Some systems
# need this to enable the arrow keys.
# set enable-keypad on
# see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys
# do not bell on tab-completion
# set bell-style none
# set bell-style visible
# some defaults / modifications for the emacs mode
$if mode=emacs
# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
# mappings for "page up" and "page down" to step to the beginning/end
# of the history
# "\e[5~": beginning-of-history
# "\e[6~": end-of-history
# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
$if term=rxvt
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
$endif
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
# "\eOH": beginning-of-line
# "\eOF": end-of-line
# for freebsd console
# "\e[H": beginning-of-line
# "\e[F": end-of-line
$endif"><pre class="notranslate"><code class="notranslate"># /etc/inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set input-meta on
set output-meta on
# To allow the use of 8bit-characters like the german umlauts, uncomment
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
# set convert-meta off
# try to enable the application keypad when it is called. Some systems
# need this to enable the arrow keys.
# set enable-keypad on
# see /usr/share/doc/bash/inputrc.arrows for other codes of arrow keys
# do not bell on tab-completion
# set bell-style none
# set bell-style visible
# some defaults / modifications for the emacs mode
$if mode=emacs
# allow the use of the Home/End keys
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# allow the use of the Delete/Insert keys
"\e[3~": delete-char
"\e[2~": quoted-insert
# mappings for "page up" and "page down" to step to the beginning/end
# of the history
# "\e[5~": beginning-of-history
# "\e[6~": end-of-history
# alternate mappings for "page up" and "page down" to search the history
# "\e[5~": history-search-backward
# "\e[6~": history-search-forward
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
$if term=rxvt
"\e[7~": beginning-of-line
"\e[8~": end-of-line
"\eOc": forward-word
"\eOd": backward-word
$endif
# for non RH/Debian xterm, can't hurt for RH/Debian xterm
# "\eOH": beginning-of-line
# "\eOF": end-of-line
# for freebsd console
# "\e[H": beginning-of-line
# "\e[F": end-of-line
$endif
</code></pre></div> | <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.295
Windows Terminal version (if applicable): 0.3.2171.0
Any other software?
Clink v0.4.9 [git:2fd2c2] (http://mridgers.github.io/clink)"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.295
Windows Terminal version (if applicable): 0.3.2171.0
Any other software?
Clink v0.4.9 [git:2fd2c2] (http://mridgers.github.io/clink)
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">open a cmd tab<br>
edit the settings and change fontFace for the cmd profile to something invalid (apending "ZZZ" for example)</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">terminal uses a default font and does not crash</p>
<h1 dir="auto">Actual behaviour</h1>
<p dir="auto">terminal terminates</p>
<p dir="auto">This would sound like a perfect dupe of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="441519117" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/550" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/550/hovercard" href="https://github.com/microsoft/terminal/issues/550">#550</a> only I am running <code class="notranslate">0.3.2171.0</code> and that was "fixed" in <code class="notranslate">0.3.2142.0</code><br>
Terminal does not terminate if you start cmd.exe without autorun extensions (clink) with the <code class="notranslate">/D</code> flag.</p>
<p dir="auto">If you have powershell tabs open terminal still terminates and you loose work (which is why I beleive this is a terminal bug and not a clink one)</p> | 0 |
<p dir="auto">I am working with 4/5/6D arrays and I have found so many bugs caused by supplying 4 indexes to a 5D array, which just silently returns an (essentially random) element.</p>
<p dir="auto">I think this should be considered a bug as it is very easy to do by mistake and leads to data corruption.</p>
<p dir="auto">Is this regarded as a feature? What is the reasoning behind it, rather than requiring colons to fill out the missing indexes?</p> | <p dir="auto">There are some aspects of <code class="notranslate">getindex</code>.<br>
Let <code class="notranslate">A</code> is a <code class="notranslate">n</code>-dimensional array, say 4-dimensional with <code class="notranslate">size(A) == (2,3,2,2)</code>,</p>
<ul dir="auto">
<li>Dimensions left out get flattened into the last indexed dimension, so for example<br>
<code class="notranslate">A[i, k]==A[i,:,:,:][k] for k in 1:12</code><br>
This seems to be a consistent generalization of A[:] transforming the array to a vector.</li>
<li>Also additional indexes of the form <code class="notranslate">1</code>, <code class="notranslate">:</code> and equivalent <code class="notranslate">1:1</code> (additional to the <code class="notranslate">n</code> dimensions) can be provided. For example<br>
<code class="notranslate">A[2,3,2,2, 1, 1] ~ Int64 A[2,3,2,2, :, 1] ~ 1x1x1x1x1 Array{Int64,5}</code><br>
(In both cases as usual the trailing integer-indexed dimension are removed)</li>
</ul>
<p dir="auto">Which behaviors are desired, which are artifacts from the implementation, which should be documented?</p> | 1 |
<p dir="auto">Numpy silently assigns zeroes instead of the correct array if the array has a negative fraction.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="A = np.array([[3,2,4],
[2,1,3],
[1,2,4]])
b = A[1,0:3] - 0.66*A[0,0:3]
A[1,1:3] = b[1:3]
A"><pre class="notranslate"><span class="pl-v">A</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-c1">3</span>,<span class="pl-c1">2</span>,<span class="pl-c1">4</span>],
[<span class="pl-c1">2</span>,<span class="pl-c1">1</span>,<span class="pl-c1">3</span>],
[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">4</span>]])
<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-v">A</span>[<span class="pl-c1">1</span>,<span class="pl-c1">0</span>:<span class="pl-c1">3</span>] <span class="pl-c1">-</span> <span class="pl-c1">0.66</span><span class="pl-c1">*</span><span class="pl-v">A</span>[<span class="pl-c1">0</span>,<span class="pl-c1">0</span>:<span class="pl-c1">3</span>]
<span class="pl-v">A</span>[<span class="pl-c1">1</span>,<span class="pl-c1">1</span>:<span class="pl-c1">3</span>] <span class="pl-c1">=</span> <span class="pl-s1">b</span>[<span class="pl-c1">1</span>:<span class="pl-c1">3</span>]
<span class="pl-v">A</span></pre></div>
<p dir="auto">Output:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="array([[3, 2, 4],
[2, 0, 0],
[1, 2, 4]])"><pre class="notranslate"><span class="pl-en">array</span>([[<span class="pl-c1">3</span>, <span class="pl-c1">2</span>, <span class="pl-c1">4</span>],
[<span class="pl-c1">2</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>],
[<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">4</span>]])</pre></div>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">OS: Windows 10<br>
Numpy version : 1.14.5<br>
Python version : 3.6.6<br>
1.14.5 3.6.6 (v3.6.6:4cf1f54eb7, Jun 27 2018, 03:37:03) [MSC v.1900 64 bit (AMD64)]</p> | <p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1600" rel="nofollow">http://projects.scipy.org/numpy/ticket/1600</a> on 2010-09-02 by trac user steveb, assigned to unknown.</em></p>
<p dir="auto">When a record type is defined using a dictionary, dtype doesn't allow zero length arrays.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="np.dtype([('val1', np.float32, (0,))]) # OK
np.dtype({'names': ['val1'], 'formats':[(np.float32, (0,))]}) # Throws TypeError"><pre class="notranslate"><code class="notranslate">np.dtype([('val1', np.float32, (0,))]) # OK
np.dtype({'names': ['val1'], 'formats':[(np.float32, (0,))]}) # Throws TypeError
</code></pre></div>
<p dir="auto">It isn't clear to me why they shouldn't be allowed in this case.</p> | 0 |
<p dir="auto">Open a TS file and paste this code:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export type {
CreateHandle,
EffectCallback,
Inputs,
PropRef,
Reducer,
Ref,
StateUpdater,
} from "https://esm.sh/[email protected]/hooks";
export {
useCallback,
useContext,
useDebugValue,
useEffect,
useErrorBoundary,
useImperativeHandle,
useLayoutEffect,
useMemo,
useReducer,
useRef,
useState,
} from "https://esm.sh/[email protected]/hooks";"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">type</span> <span class="pl-kos">{</span>
<span class="pl-smi">CreateHandle</span><span class="pl-kos">,</span>
<span class="pl-smi">EffectCallback</span><span class="pl-kos">,</span>
<span class="pl-smi">Inputs</span><span class="pl-kos">,</span>
<span class="pl-smi">PropRef</span><span class="pl-kos">,</span>
<span class="pl-smi">Reducer</span><span class="pl-kos">,</span>
<span class="pl-smi">Ref</span><span class="pl-kos">,</span>
<span class="pl-smi">StateUpdater</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://esm.sh/[email protected]/hooks"</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span>
<span class="pl-s1">useCallback</span><span class="pl-kos">,</span>
<span class="pl-s1">useContext</span><span class="pl-kos">,</span>
<span class="pl-s1">useDebugValue</span><span class="pl-kos">,</span>
<span class="pl-s1">useEffect</span><span class="pl-kos">,</span>
<span class="pl-s1">useErrorBoundary</span><span class="pl-kos">,</span>
<span class="pl-s1">useImperativeHandle</span><span class="pl-kos">,</span>
<span class="pl-s1">useLayoutEffect</span><span class="pl-kos">,</span>
<span class="pl-s1">useMemo</span><span class="pl-kos">,</span>
<span class="pl-s1">useReducer</span><span class="pl-kos">,</span>
<span class="pl-s1">useRef</span><span class="pl-kos">,</span>
<span class="pl-s1">useState</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://esm.sh/[email protected]/hooks"</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">You will see that type completions and hover are not working. Now remove the <code class="notranslate">export type</code> statement. Type completions and hover work again.</p> | <p dir="auto">If you try to <code class="notranslate">import type</code> a type from a module which has a <code class="notranslate">X-TypeScript-Types</code> header, the language server does not properly handle this and reports that the import does not have the named export.</p> | 1 |
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vlg/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vlg">@vlg</a>: 'OK so there is an issue with key-value automatic indices (code bellow) upon node removal. The scenario tested here is the following:</p>
<p dir="auto">Assume that we index a property named 'ID', and that we want to use it to manage unicity of nodes. We create a database, and init indexing of this property, then we do the following:<br>
addNode('N1)<br>
deleteNode('N1)<br>
graph.shutdown()<br>
graph.openAgain()<br>
addNode('N1')<br>
addNode('N2')<br>
getNodeFromIndex('ID', 'N1)</p>
<p dir="auto">The issue is that nothing is retrieved by the last instruction while N1 should be retrieved. Additional observations:</p>
<p dir="auto">(1) If we add N2 BEFORE N1, results are OK<br>
(1) If we do not remove N1, results are OK<br>
(2) If we don't close and reopen the database, results are OK<br>
(3) If we drop the reference node at the database creation, results are OK</p>
<p dir="auto">CODE:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import java.util.logging.Level;
import java.util.logging.Logger;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.NotFoundException;
import org.neo4j.graphdb.Transaction;
import org.neo4j.graphdb.index.IndexHits;
import org.neo4j.kernel.EmbeddedGraphDatabase;
public class Neo4jKeyIndexIssues
{
public static final String DBPATH = "NeoTest" ;
public static final String INDEXED = "ID" ;
public static final String N1 = "Node1" ;
public static final String N2 = "Node2" ;
public static void main(String[] args)
throws Exception {
Node node1, node2 ;
GraphDatabaseService g = new EmbeddedGraphDatabase(DBPATH);
g.index().getNodeAutoIndexer().setEnabled(true);
g.index().getNodeAutoIndexer().startAutoIndexingProperty(INDEXED);
// dropNeoReferenceNode(g);
System.out.println("(1)");
node1 = addNode(g, N1);
IndexHits<Node> hits = g.index().getNodeAutoIndexer().getAutoIndex().get(INDEXED, N1);
System.out.println("1) Query Hits for '"+N1+"': " + hits.size()+" "+hits.hasNext());
Node hit = hits.getSingle();
System.out.println("1) Hit for '"+N1+"': " + hit.getProperty(INDEXED));
// Remove the nodes
Transaction tx = g.beginTx();
System.out.println("Removing node 1 "+N1);
node1.delete();
tx.success(); tx.finish();
// Reopen database
System.out.println("-Shutting down and reopening the database-");
g.shutdown();
g = new EmbeddedGraphDatabase(DBPATH);
g.index().getNodeAutoIndexer().setEnabled(true);
g.index().getNodeAutoIndexer().startAutoIndexingProperty(INDEXED);
// OK, add new nodes again
System.out.println("\n(2)");
node1 = addNode(g, N1);
node2 = addNode(g, N2);
hits = g.index().getNodeAutoIndexer().getAutoIndex().get(INDEXED, N1);
System.out.println("2) Query Hits for 'N1': "+hits.size()+" "+hits.hasNext());
// Something should be found
node1 = hits.getSingle();
if(node1 == null) {
System.out.println("2) ERROR: nothing found ID='"+N1+"'");
}
else {
System.out.println("2) Hit for 'N1': " + node1+" ID="+node1.getProperty("ID"));
}
// Something should be found too
hits = g.index().getNodeAutoIndexer().getAutoIndex().get(INDEXED, N2);
System.out.println("2) Query Hits for 'N2': "+hits.size()+" "+hits.hasNext());
// Nothing was found
node2 = hits.getSingle();
if(node2 == null) {
System.out.println("2) ERROR: nothing found ID='"+N2+"'");
}
else {
System.out.println("2) Hit for 'N2': " + node2+" ID="+node2.getProperty("ID"));
}
g.shutdown();
}
/**
* Add a node to a database, only if a node with the same identifier does not
* exist yet.
*/
private static Node addNode(GraphDatabaseService g, String id)
throws Exception {
System.out.println("Adding node "+id);
Transaction tx = g.beginTx();
Node node = null ;
try {
IndexHits<Node> hits =
g.index().getNodeAutoIndexer().getAutoIndex().get("ID", id);
System.out.println(" Existing nodes in index: "+hits.size()+" "+hits.hasNext());
if(hits.size() > 0 && hits.hasNext()) {
System.out.print(" Duplicate: "+id);
node = hits.getSingle();
System.out.println(" --> "+node);
return node;
}
node = g.createNode();
node.setProperty("ID", id);
tx.success();
}
catch(Exception e) {
Logger.getLogger("App").log(Level.FINE,
"Could not add node node "+id, e);
throw e ;
}
finally {
tx.finish();
}
System.out.println(" Node added: "+node);
return node;
}
/**
* Drop the refernce node from a database
*/
private static void dropNeoReferenceNode(GraphDatabaseService neoGraph) {
Transaction t = neoGraph.beginTx();
try {
Node node = neoGraph.getReferenceNode();
if (node != null) {
node.delete();
}
t.success();
}
catch (NotFoundException e) {
Logger.getLogger("App").log(Level.FINE,
"Could not drop reference node!", e);
t.failure();
}
finally {
t.finish();
}
}
}"><pre class="notranslate"><code class="notranslate">import java.util.logging.Level;
import java.util.logging.Logger;
import org.neo4j.graphdb.GraphDatabaseService;
import org.neo4j.graphdb.Node;
import org.neo4j.graphdb.NotFoundException;
import org.neo4j.graphdb.Transaction;
import org.neo4j.graphdb.index.IndexHits;
import org.neo4j.kernel.EmbeddedGraphDatabase;
public class Neo4jKeyIndexIssues
{
public static final String DBPATH = "NeoTest" ;
public static final String INDEXED = "ID" ;
public static final String N1 = "Node1" ;
public static final String N2 = "Node2" ;
public static void main(String[] args)
throws Exception {
Node node1, node2 ;
GraphDatabaseService g = new EmbeddedGraphDatabase(DBPATH);
g.index().getNodeAutoIndexer().setEnabled(true);
g.index().getNodeAutoIndexer().startAutoIndexingProperty(INDEXED);
// dropNeoReferenceNode(g);
System.out.println("(1)");
node1 = addNode(g, N1);
IndexHits<Node> hits = g.index().getNodeAutoIndexer().getAutoIndex().get(INDEXED, N1);
System.out.println("1) Query Hits for '"+N1+"': " + hits.size()+" "+hits.hasNext());
Node hit = hits.getSingle();
System.out.println("1) Hit for '"+N1+"': " + hit.getProperty(INDEXED));
// Remove the nodes
Transaction tx = g.beginTx();
System.out.println("Removing node 1 "+N1);
node1.delete();
tx.success(); tx.finish();
// Reopen database
System.out.println("-Shutting down and reopening the database-");
g.shutdown();
g = new EmbeddedGraphDatabase(DBPATH);
g.index().getNodeAutoIndexer().setEnabled(true);
g.index().getNodeAutoIndexer().startAutoIndexingProperty(INDEXED);
// OK, add new nodes again
System.out.println("\n(2)");
node1 = addNode(g, N1);
node2 = addNode(g, N2);
hits = g.index().getNodeAutoIndexer().getAutoIndex().get(INDEXED, N1);
System.out.println("2) Query Hits for 'N1': "+hits.size()+" "+hits.hasNext());
// Something should be found
node1 = hits.getSingle();
if(node1 == null) {
System.out.println("2) ERROR: nothing found ID='"+N1+"'");
}
else {
System.out.println("2) Hit for 'N1': " + node1+" ID="+node1.getProperty("ID"));
}
// Something should be found too
hits = g.index().getNodeAutoIndexer().getAutoIndex().get(INDEXED, N2);
System.out.println("2) Query Hits for 'N2': "+hits.size()+" "+hits.hasNext());
// Nothing was found
node2 = hits.getSingle();
if(node2 == null) {
System.out.println("2) ERROR: nothing found ID='"+N2+"'");
}
else {
System.out.println("2) Hit for 'N2': " + node2+" ID="+node2.getProperty("ID"));
}
g.shutdown();
}
/**
* Add a node to a database, only if a node with the same identifier does not
* exist yet.
*/
private static Node addNode(GraphDatabaseService g, String id)
throws Exception {
System.out.println("Adding node "+id);
Transaction tx = g.beginTx();
Node node = null ;
try {
IndexHits<Node> hits =
g.index().getNodeAutoIndexer().getAutoIndex().get("ID", id);
System.out.println(" Existing nodes in index: "+hits.size()+" "+hits.hasNext());
if(hits.size() > 0 && hits.hasNext()) {
System.out.print(" Duplicate: "+id);
node = hits.getSingle();
System.out.println(" --> "+node);
return node;
}
node = g.createNode();
node.setProperty("ID", id);
tx.success();
}
catch(Exception e) {
Logger.getLogger("App").log(Level.FINE,
"Could not add node node "+id, e);
throw e ;
}
finally {
tx.finish();
}
System.out.println(" Node added: "+node);
return node;
}
/**
* Drop the refernce node from a database
*/
private static void dropNeoReferenceNode(GraphDatabaseService neoGraph) {
Transaction t = neoGraph.beginTx();
try {
Node node = neoGraph.getReferenceNode();
if (node != null) {
node.delete();
}
t.success();
}
catch (NotFoundException e) {
Logger.getLogger("App").log(Level.FINE,
"Could not drop reference node!", e);
t.failure();
}
finally {
t.finish();
}
}
}
</code></pre></div>
<p dir="auto">'</p> | <p dir="auto">Currently there doesn't seem to be a way to configure the isolation level for a transaction (especially SERIALIZABLE) when using the REST API.</p>
<p dir="auto">I'm trying to create friendly id's for child objects using the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="CREATE (o:Foo {name: 'parent', nextChildId: 1})
MATCH (o:Foo)
WHERE o.name = 'parent'
CREATE (o)-[:HAS]->(c:Child {name: 'child1', friendlyId: o.nextChildId})
SET o.nextChildId = o.nextChildId + 1
// if this call comes in before the previous SET, we have a problem
MATCH (o:Foo)
WHERE o.name = 'parent'
CREATE (o)-[:HAS]->(c:Child {name: 'child2', friendlyId: o.nextChildId})
SET o.nextChildId = o.nextChildId + 1"><pre class="notranslate"><code class="notranslate">CREATE (o:Foo {name: 'parent', nextChildId: 1})
MATCH (o:Foo)
WHERE o.name = 'parent'
CREATE (o)-[:HAS]->(c:Child {name: 'child1', friendlyId: o.nextChildId})
SET o.nextChildId = o.nextChildId + 1
// if this call comes in before the previous SET, we have a problem
MATCH (o:Foo)
WHERE o.name = 'parent'
CREATE (o)-[:HAS]->(c:Child {name: 'child2', friendlyId: o.nextChildId})
SET o.nextChildId = o.nextChildId + 1
</code></pre></div>
<p dir="auto">But without being able to take a lock on the <code class="notranslate">parent</code> node there isn't a way to prevent two <code class="notranslate">child</code> nodes from getting assigned the same friendly id.</p> | 0 |
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Feature</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">If a component's render method throws an error, it leaves React in an inconsistent state.<br>
Subsequent renders attempt to update the inconsistent component and result in errors like "Cannot read property 'getHostNode' of null".</p>
<p dir="auto"><strong>Proposed behavior</strong></p>
<p dir="auto">React could catch the error from the render method, set an "inconsistent state" flag and re-throw it.<br>
Afterwards, if React is about to update the previously rendered component, but this flag is set, it could discard or unmount the existing component and perform a fresh render, as if the container were empty.</p>
<p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue?</strong></p>
<p dir="auto">I've encountered the inconsistent state problems in 15.5 and 15.6</p> | <p dir="auto">So I'm trying to put some graceful error handling in case 1 of my views crap out:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var MyGoodView = React.createClass({
render: function () {
return <p>Cool</p>;
}
});
var MyBadView = React.createClass({
render: function () {
throw new Error('crap');
}
});
try {
React.render(<MyBadView/>, document.body);
} catch (e) {
React.render(<MyGoodView/>, document.body);
}"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-v">MyGoodView</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-en">render</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Cool<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</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-k">var</span> <span class="pl-v">MyBadView</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">createClass</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-en">render</span>: <span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-v">Error</span><span class="pl-kos">(</span><span class="pl-s">'crap'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">try</span> <span class="pl-kos">{</span>
<span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1"><</span><span class="pl-v">MyBadView</span><span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span> <span class="pl-k">catch</span> <span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-c1"><</span><span class="pl-v">MyGoodView</span><span class="pl-c1">/</span><span class="pl-c1">></span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-c1">body</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">However, <code class="notranslate">MyGoodView</code> does not get rendered w/ the following stack trace:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/fd284309818d836a1305ff759d73533cd3b2e9668c4a179d0e76c1b975190cc4/687474703a2f2f662e636c2e6c792f6974656d732f304733643373314734353270336731713054326a2f53637265656e25323053686f74253230323031342d31312d3034253230617425323031322e31312e3433253230414d2e706e67"><img src="https://camo.githubusercontent.com/fd284309818d836a1305ff759d73533cd3b2e9668c4a179d0e76c1b975190cc4/687474703a2f2f662e636c2e6c792f6974656d732f304733643373314734353270336731713054326a2f53637265656e25323053686f74253230323031342d31312d3034253230617425323031322e31312e3433253230414d2e706e67" alt="stack trace" data-canonical-src="http://f.cl.ly/items/0G3d3s1G452p3g1q0T2j/Screen%20Shot%202014-11-04%20at%2012.11.43%20AM.png" style="max-width: 100%;"></a></p>
<p dir="auto">Seems like error throw React in a bad state where <code class="notranslate">renderedComponent</code> is <code class="notranslate">undefined</code>, thus cannot be unmounted. How do I handle this scenario?</p> | 1 |
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="localSeries = pd.date_range("2018-7-1", periods=1, freq="30T", tz="Europe/London")
print(localSeries.to_period("30T")[0].start_time)
#Timestamp('2018-07-01 00:00:00')
print(localSeries.to_period("30T")[0].start_time.tz)
#None
print(localSeries.to_period("30T")[0].end_time.tz)
#None
print(localSeries[0].tz)
#<DstTzInfo 'Europe/London' BST+1:00:00 DST>"><pre class="notranslate"><span class="pl-s1">localSeries</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s">"2018-7-1"</span>, <span class="pl-s1">periods</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">freq</span><span class="pl-c1">=</span><span class="pl-s">"30T"</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">"Europe/London"</span>)
<span class="pl-en">print</span>(<span class="pl-s1">localSeries</span>.<span class="pl-en">to_period</span>(<span class="pl-s">"30T"</span>)[<span class="pl-c1">0</span>].<span class="pl-s1">start_time</span>)
<span class="pl-c">#Timestamp('2018-07-01 00:00:00')</span>
<span class="pl-en">print</span>(<span class="pl-s1">localSeries</span>.<span class="pl-en">to_period</span>(<span class="pl-s">"30T"</span>)[<span class="pl-c1">0</span>].<span class="pl-s1">start_time</span>.<span class="pl-s1">tz</span>)
<span class="pl-c">#None</span>
<span class="pl-en">print</span>(<span class="pl-s1">localSeries</span>.<span class="pl-en">to_period</span>(<span class="pl-s">"30T"</span>)[<span class="pl-c1">0</span>].<span class="pl-s1">end_time</span>.<span class="pl-s1">tz</span>)
<span class="pl-c">#None</span>
<span class="pl-en">print</span>(<span class="pl-s1">localSeries</span>[<span class="pl-c1">0</span>].<span class="pl-s1">tz</span>)
<span class="pl-c">#<DstTzInfo 'Europe/London' BST+1:00:00 DST></span></pre></div>
<p dir="auto">While this may be useful for monthly/quarterly granularity data, it causes a problem for half-hourly data or similar around clock change, because the local times are used but the time-zone knowledge is dropped without warning.</p> | <p dir="auto">This might be quite a bit of work, maybe leave for post 0.8.0</p> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ansible-vault</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/hymie/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]"><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/hymie/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python2.6/site-packages/ansible
executable location = /usr/bin/ansible
python version = 2.6.6 (r266:84292, Aug 9 2016, 06:11:56) [GCC 4.4.7 20120313 (Red Hat 4.4.7-17)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DEFAULT_VAULT_PASSWORD_FILE(/root/ansible.password.change/ansible.cfg) = /usr/local/bin/redactedprogram"><pre class="notranslate"><code class="notranslate">DEFAULT_VAULT_PASSWORD_FILE(/root/ansible.password.change/ansible.cfg) = /usr/local/bin/redactedprogram
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Red Hat Enterprise Linux Workstation release 6.9 (Santiago)</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">My <code class="notranslate">ansible.cfg</code> file specifies a default vault password. I am unable to override this with a different vault password.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ cat ansible.cfg
[defaults]
vault_password_file = /usr/local/bin/redactedprogram
$ echo "hi there" | ansible-vault encrypt_string --ask-vault-pass
New Vault password:
Confirm New Vault password:
ERROR! Only one --vault-id can be used for encryption. This includes passwords from configuration and cli.
$ echo "hi there" | ansible-vault encrypt_string --vault-password-file=/tmp/foo
ERROR! Only one --vault-id can be used for encryption. This includes passwords from configuration and cli.
$ echo "hi there" | ansible-vault encrypt_string --vault-id=@prompt
New vault password (default):
Confirm vew vault password (default):
ERROR! Only one --vault-id can be used for encryption. This includes passwords from configuration and cli."><pre class="notranslate"><code class="notranslate">$ cat ansible.cfg
[defaults]
vault_password_file = /usr/local/bin/redactedprogram
$ echo "hi there" | ansible-vault encrypt_string --ask-vault-pass
New Vault password:
Confirm New Vault password:
ERROR! Only one --vault-id can be used for encryption. This includes passwords from configuration and cli.
$ echo "hi there" | ansible-vault encrypt_string --vault-password-file=/tmp/foo
ERROR! Only one --vault-id can be used for encryption. This includes passwords from configuration and cli.
$ echo "hi there" | ansible-vault encrypt_string --vault-id=@prompt
New vault password (default):
Confirm vew vault password (default):
ERROR! Only one --vault-id can be used for encryption. This includes passwords from configuration and cli.
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">I expect the supplied command-line options to override the configuration file defaults and specify (or allow me to specify) the encryption password.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">I get the above errors that the pre-configured default vault-id cannot be replaced.</p> | <h5 dir="auto">Issue Type:</h5>
<p dir="auto">“Bug Report”</p>
<h5 dir="auto">Ansible Version:</h5>
<p dir="auto">ansible 1.7 (devel <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/ansible/ansible/commit/05eb6aacec2ee1bdb1318587d4a183d1e5f92019/hovercard" href="https://github.com/ansible/ansible/commit/05eb6aacec2ee1bdb1318587d4a183d1e5f92019"><tt>05eb6aa</tt></a>) last updated 2014/06/26 13:36:36 (GMT +000)</p>
<h5 dir="auto">Environment:</h5>
<p dir="auto">Centos 5/6</p>
<h5 dir="auto">Summary:</h5>
<p dir="auto">when using git module, if ssh://[email protected]:1357/, the host check process breaks.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<ol dir="auto">
<li>have a git repo available over ssh on port 22</li>
<li>have a working git checkout with ssh://git@fqdn/</li>
<li>try with ssh://git@fqdn:22/</li>
</ol>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">It should work as expected, on port 22 and on non-standard ports.</p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">(let me add that the host key IS in known_hosts)</p>
<p dir="auto">with accept_hostkey = False</p>
<p dir="auto">failed: [127.0.0.1] => (item=..) => {"failed": true, "item": ".."}<br>
msg: 192.168.1.89:22 has an unknown hostkey. Set accept_hostkey to True or manually add the hostkey prior to running the git module</p>
<p dir="auto">with accept_hostkey = True</p>
<p dir="auto">failed: [127.0.0.1] => (item=..) => {"failed": true, "item": ".."}<br>
msg: failed to add 192.168.1.89:22 hostkey: getaddrinfo 192.168.1.89:22: Name or service not known</p>
<p dir="auto">The problem seems to come from ansiwork/lib/ansible/module_utils/known_hosts.py<br>
get_fqdn does not remove the port.</p> | 0 |
<p dir="auto">The bottom left corner of the .glyphicon-chevor-right is cut off, which can be recognized especially when used with a large font-size and used next to the correct .glyphicon-chevron-left.</p> | <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/19b13eba672111a20f342e50e01824c08f7786cbd72ef49ac397c92bffd540f1/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f35353033372f313031383339362f32306138636136632d306332382d313165332d393139632d3635396565623135636638332e706e67"><img src="https://camo.githubusercontent.com/19b13eba672111a20f342e50e01824c08f7786cbd72ef49ac397c92bffd540f1/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f35353033372f313031383339362f32306138636136632d306332382d313165332d393139632d3635396565623135636638332e706e67" alt="screenshot 2013-08-24 3 09 43" data-canonical-src="https://f.cloud.github.com/assets/55037/1018396/20a8ca6c-0c28-11e3-919c-659eeb15cf83.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/2c24f566f4427d3bd92485050b47210e584c68794f6ae3dc40cf7c1db178017d/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f35353033372f313031383339382f32313133653834632d306332382d313165332d393036622d3730313566643235306333652e706e67"><img src="https://camo.githubusercontent.com/2c24f566f4427d3bd92485050b47210e584c68794f6ae3dc40cf7c1db178017d/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f35353033372f313031383339382f32313133653834632d306332382d313165332d393036622d3730313566643235306333652e706e67" alt="screenshot 2013-08-24 3 07 41" data-canonical-src="https://f.cloud.github.com/assets/55037/1018398/2113e84c-0c28-11e3-906b-7015fd250c3e.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=sbrannen" rel="nofollow">Sam Brannen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8450?redirect=false" rel="nofollow">SPR-8450</a></strong> and commented</p>
<h4 dir="auto">Background</h4>
<p dir="auto">Autowiring a bean with an instance of itself is not something one would normally do, but there are cases where it might be useful -- for example, to route method calls <em>through</em> the proxy that wraps the bean. There are of course alternatives to this, such as using load-time weaving with AspectJ proxies instead of JDK dynamic proxies.</p>
<p dir="auto">Note that self-autowiring <em>by name</em> via <code class="notranslate">@Resource</code> <strong>is</strong> permitted by the framework; whereas, self-autowiring <em>by type</em> is <strong>not</strong> permitted by the framework as can be seen in the following code snippet from <code class="notranslate">DefaultListableBeanFactory</code>'s <code class="notranslate">findAutowireCandidates(String, Class, DependencyDescriptor)</code> method.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="for (String candidateName : candidateNames) {
if (!candidateName.equals(beanName) && isAutowireCandidate(candidateName, descriptor)) {
result.put(candidateName, getBean(candidateName));
}
}"><pre class="notranslate"><span class="pl-k">for</span> (<span class="pl-smi">String</span> <span class="pl-s1">candidateName</span> : <span class="pl-s1">candidateNames</span>) {
<span class="pl-k">if</span> (!<span class="pl-s1">candidateName</span>.<span class="pl-en">equals</span>(<span class="pl-s1">beanName</span>) && <span class="pl-en">isAutowireCandidate</span>(<span class="pl-s1">candidateName</span>, <span class="pl-s1">descriptor</span>)) {
<span class="pl-s1">result</span>.<span class="pl-en">put</span>(<span class="pl-s1">candidateName</span>, <span class="pl-en">getBean</span>(<span class="pl-s1">candidateName</span>));
}
}</pre></div>
<p dir="auto">The name of the bean (i.e., the bean that's trying to autowire itself) is <code class="notranslate">beanName</code>. That bean is in fact an autowire candidate, but the above if-condition returns <code class="notranslate">false</code> (since <code class="notranslate">candidateName</code> equals the <code class="notranslate">beanName</code>). Thus you simply cannot autowire a bean with itself <em>by type</em> (at least not as of Spring 3.1 M2).</p>
<h4 dir="auto">Goal</h4>
<p dir="auto">Add support for self-autowiring using <code class="notranslate">@Autowired</code> on fields and methods.</p>
<h4 dir="auto">Stack Overflow Discussion</h4>
<p dir="auto">This topic was brought to our attention via a discussion on <a href="http://stackoverflow.com/questions/5152686/self-injection-with-spring" rel="nofollow">Stack Overflow</a>.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398225102" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/21186" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/21186/hovercard" href="https://github.com/spring-projects/spring-framework/issues/21186">#21186</a> Self autowiring does not work for transactional beans</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398201427" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/19532" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/19532/hovercard" href="https://github.com/spring-projects/spring-framework/issues/19532">#19532</a> Self reference fallback in 4.3 is not meant to apply to collection elements</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398171632" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/16794" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/16794/hovercard" href="https://github.com/spring-projects/spring-framework/issues/16794">#16794</a> <code class="notranslate">@Autowired</code> does not work for target bean of type Collection</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398194717" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/18973" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/18973/hovercard" href="https://github.com/spring-projects/spring-framework/issues/18973">#18973</a> Define and document rules for <code class="notranslate">@Autowired</code> self-injection in case of ambiguity</li>
</ul>
<p dir="auto">18 votes, 23 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mschipperheyn" rel="nofollow">marc schipperheyn</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9366?redirect=false" rel="nofollow">SPR-9366</a></strong> and commented</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Controller
@RequestMapping("/my")
public class MyController extends ExtendedController
@RequestMapping(method = RequestMethod.POST, value = "/post/")
public String post(
@ModelAttribute("vo") MyVO vo,
BindingResult result,
ModelMap model,
NativeWebRequest request) throws Exception{
[...]
@Controller
@RequestMapping("/my/extend")
public class MyController extends ExtendedController
@RequestMapping(method = RequestMethod.POST, value = "/post/")
public String extendPost(
@ModelAttribute("vo") MyVO vo,
BindingResult result,
ModelMap model,
NativeWebRequest request) throws Exception{
"><pre class="notranslate"><code class="notranslate">@Controller
@RequestMapping("/my")
public class MyController extends ExtendedController
@RequestMapping(method = RequestMethod.POST, value = "/post/")
public String post(
@ModelAttribute("vo") MyVO vo,
BindingResult result,
ModelMap model,
NativeWebRequest request) throws Exception{
[...]
@Controller
@RequestMapping("/my/extend")
public class MyController extends ExtendedController
@RequestMapping(method = RequestMethod.POST, value = "/post/")
public String extendPost(
@ModelAttribute("vo") MyVO vo,
BindingResult result,
ModelMap model,
NativeWebRequest request) throws Exception{
</code></pre></div>
<p dir="auto">This leads to</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/my/extend/post/': {public java.lang.String nlproject.controller.MyExtendController.extendPost(nl.project.VO.MyVO,org.springframework.validation.BindingResult,org.springframework.ui.ModelMap,org.springframework.web.context.request.NativeWebRequest) throws java.lang.Exception, public java.lang.String nl.project.controller.MyController.post(nl.project.VO.MyVO,org.springframework.validation.BindingResult,org.springframework.ui.ModelMap,org.springframework.web.context.request.NativeWebRequest)}. If you intend to handle the same path in multiple methods, then factor them out into a dedicated handler class with that path mapped at the type level!
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodResolver.resolveHandlerMethod(AnnotationMethodHandlerAdapter.java:642)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:431)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)"><pre class="notranslate"><code class="notranslate">java.lang.IllegalStateException: Ambiguous handler methods mapped for HTTP path '/my/extend/post/': {public java.lang.String nlproject.controller.MyExtendController.extendPost(nl.project.VO.MyVO,org.springframework.validation.BindingResult,org.springframework.ui.ModelMap,org.springframework.web.context.request.NativeWebRequest) throws java.lang.Exception, public java.lang.String nl.project.controller.MyController.post(nl.project.VO.MyVO,org.springframework.validation.BindingResult,org.springframework.ui.ModelMap,org.springframework.web.context.request.NativeWebRequest)}. If you intend to handle the same path in multiple methods, then factor them out into a dedicated handler class with that path mapped at the type level!
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter$ServletHandlerMethodResolver.resolveHandlerMethod(AnnotationMethodHandlerAdapter.java:642)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:431)
at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:424)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:923)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:852)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:882)
at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:789)
</code></pre></div>
<p dir="auto">The exception suggests that the paths are identical, which they are not. Apparently, Spring checks for path uniqueness at the method level without taking into account the base mapping at the classlevel.</p>
<hr>
<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="398118182" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13891" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13891/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13891">#13891</a> Controller extension doesn't allow extending REST Urls (<em><strong>"is duplicated by"</strong></em>)</li>
</ul> | 0 |
<p dir="auto">Hell, I have backend storage on Apache Phoenix:<br>
<a href="https://phoenix.apache.org/language/index.html" rel="nofollow">https://phoenix.apache.org/language/index.html</a></p>
<p dir="auto">How hard it could be to exten sqlalchemy for support this?<br>
Main difference I see is it uses UPSERT instead of INSERT/UPDATE, otherwise it is very close to any other sql engine.</p>
<p dir="auto">Any hints welcomed!</p> | <p dir="auto"><strong>Migrated issue, originally created by jvanasco (<a href="https://github.com/jvanasco">@jvanasco</a>)</strong></p>
<p dir="auto">This affects <code class="notranslate">subqueryload</code>, not <code class="notranslate">joinedload</code>.</p>
<p dir="auto">It is related to <a href="https://bitbucket.org/zzzeek/sqlalchemy/issues/3064/warn-when-limit-offset-used-w-o-order-by" rel="nofollow">https://bitbucket.org/zzzeek/sqlalchemy/issues/3064/warn-when-limit-offset-used-w-o-order-by</a></p>
<p dir="auto">Assume a simple relationship of Foo to Bar:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Bar(Base):
__tablename__ = 'bar'
id = Column(Integer, primary_key=True)
class Foo(Base):
__tablename__ = 'foo'
id = Column(Integer, primary_key=True)
id_bar = Column(Integer, ForeignKey("bar.id"), nullable=False)
bar = sqlalchemy.orm.relationship("Bar")"><pre class="notranslate"><code class="notranslate">class Bar(Base):
__tablename__ = 'bar'
id = Column(Integer, primary_key=True)
class Foo(Base):
__tablename__ = 'foo'
id = Column(Integer, primary_key=True)
id_bar = Column(Integer, ForeignKey("bar.id"), nullable=False)
bar = sqlalchemy.orm.relationship("Bar")
</code></pre></div>
<p dir="auto">The following query will yield unpredictable results for the 'bar' relationship, even when an id_bar is present:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="foos = s.query(Foo)\
.options(subqueryload('bar'))\
.limit(20)\
.offset(10)\
.all()"><pre class="notranslate"><code class="notranslate">foos = s.query(Foo)\
.options(subqueryload('bar'))\
.limit(20)\
.offset(10)\
.all()
</code></pre></div>
<p dir="auto">The issue is that the subqueryload logic generates a selection like such (reformatted for emphasis):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" SELECT bar.* FROM
(SELECT DISTINCT foo.id_bar AS foo_id_bar FROM foo LIMIT :limit OFFSET :offset )
as anon_1 JOIN bar on bar.id = anon_1.foo_id_bar ORDER BY anon_1.foo_id_bar;"><pre class="notranslate"><code class="notranslate"> SELECT bar.* FROM
(SELECT DISTINCT foo.id_bar AS foo_id_bar FROM foo LIMIT :limit OFFSET :offset )
as anon_1 JOIN bar on bar.id = anon_1.foo_id_bar ORDER BY anon_1.foo_id_bar;
</code></pre></div>
<p dir="auto">Because that inner select for the subquery is performing a DISTINCT, the LIMIT and OFFSET apply to the 'distinct' -- not overall -- list.</p>
<p dir="auto">one example scenario that will fail: the offset is greater than the total number of possible values. if every foo is assigned an id_bar of only 2 values (1, 2), paginating an offset of 2 of greater will always return NULL and no <code class="notranslate">bar</code> relation will be set.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# 1. make a bunch of Bars. Let's do 20!
for i in range(0, 20):
b = Bar(id=i)
s.add(b)
s.flush()
s.commit()
# 2, okay, now make 100 foos... but only use 2 `bars`.
for i in range(0, 100):
if i < 50:
id_bar = 1
else:
id_bar = 2
f = Foo(id=i, id_bar=id_bar)
s.add(f)
f.id
s.flush()
s.commit()
# run the above select , and see the results:
for f in foos:
print "--"
print "examing foo.%s" % f.id
print f.id_bar
print f.bar
# you'll notice that `bar` will be missing even when id_bar is set"><pre class="notranslate"><code class="notranslate"># 1. make a bunch of Bars. Let's do 20!
for i in range(0, 20):
b = Bar(id=i)
s.add(b)
s.flush()
s.commit()
# 2, okay, now make 100 foos... but only use 2 `bars`.
for i in range(0, 100):
if i < 50:
id_bar = 1
else:
id_bar = 2
f = Foo(id=i, id_bar=id_bar)
s.add(f)
f.id
s.flush()
s.commit()
# run the above select , and see the results:
for f in foos:
print "--"
print "examing foo.%s" % f.id
print f.id_bar
print f.bar
# you'll notice that `bar` will be missing even when id_bar is set
</code></pre></div>
<p dir="auto">another example scenario is when you have a lot of repetition within the dataset. e.g. if there are fewer unique BARs than FOOs, you'll encounter errors when you paginate closer to the end. i haven't been able to recreate a reliable dataset for this, but it happens in my production dataset when I paginate 80% through.</p>
<p dir="auto">Then to complicate further, this sort of becomes the other issue -- there is no implicit <code class="notranslate">order_by</code> on the inner query unless an <code class="notranslate">order_by</code> is explicitly applied to the outer query.</p>
<p dir="auto"><code class="notranslate">order_by(Foo.id.asc())</code> will create this inner query:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(SELECT DISTINCT foo.id_bar AS foo_id_bar, foo.id AS foo_id
FROM foo ORDER BY foo.id ASC
LIMIT ? OFFSET ?)"><pre class="notranslate"><code class="notranslate">(SELECT DISTINCT foo.id_bar AS foo_id_bar, foo.id AS foo_id
FROM foo ORDER BY foo.id ASC
LIMIT ? OFFSET ?)
</code></pre></div>
<p dir="auto">however, no order_by will result in the inner query</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(SELECT DISTINCT foo.id_bar AS foo_id_bar
FROM foo
LIMIT ? OFFSET ?)"><pre class="notranslate"><code class="notranslate">(SELECT DISTINCT foo.id_bar AS foo_id_bar
FROM foo
LIMIT ? OFFSET ?)
</code></pre></div>
<p dir="auto">there is no reason for the db to guarantee these results will be for the same ids returned in the previous query (the non-subqueryload 'master' query that sqlalchemy just issued).</p>
<p dir="auto">The other ticket talked about a more specific use-case with depth, but I'll address the larger and less detailed concept - in the absence of an explicit order_by, sqlalchemy appears to issue an implicit order_by on the primary key -- however does not extend that implicit order_by to the inner query.</p>
<p dir="auto">the fixes I suggest are:</p>
<ol dir="auto">
<li>
<p dir="auto">migrate this into 2 queries -- an inner that paginates and an outer that applies distinct (or group_by, which can be much faster for this in certain scenarios)</p>
<ul dir="auto">
<li>SELECT DISTINCT foo.id_bar AS foo_id_bar FROM foo LIMIT :limit OFFSET :offset</li>
</ul>
<ul dir="auto">
<li>SELECT DISTINCT foo_id_bar FROM (SELECT foo.id_bar AS foo_id_bar FROM foo LIMIT :limit OFFSET :offset) AS foo</li>
</ul>
</li>
<li>
<p dir="auto">in the absence of no order_by issued with a subquery, just apply the same implicit primary-key ordering to the inner query that was used on the outer query.</p>
</li>
</ol>
<hr>
<p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/3650/test_orm_subqueryload.py">test_orm_subqueryload.py</a> | <a href="../wiki/imported_issue_attachments/3650/test_orm_subqueryload.1.py">test_orm_subqueryload.1.py</a></p> | 0 |
<p dir="auto">After installing the 1.8.4.0 VS 2015 Typescript tools I'm getting an unexpected build error:</p>
<p dir="auto">Build: File 'COMPUTE_PATHS_ONLY.ts' not found.</p>
<p dir="auto">After perusing other issues with this error I dug into</p>
<p dir="auto">C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\Typescript</p>
<p dir="auto">And also found</p>
<p dir="auto">C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v15.0\Typescript</p>
<p dir="auto">I don't know if it's related but for giggles I replaced the Microsoft.TypeScript.targets in v14.0 with the same file I found in v15.0 and the issue went away. Is this v15 stuff mis-installed? I don't have a VS v15.</p> | <p dir="auto">I'm currently using VS 2015 with TS 1.7.6. This was after a short stint with 1.8.6 after it was auto updated to that version. Now I'm getting 'COMPUTE_PATHS_ONLY.ts' not found. I've seen the descriptions of how to unload the project and remove the import lines but that was breaking typescript for other members of the team. How can I remove this error so I can peacefully return to 1.7.6? Thanks...below are my first few lines from my project. Further down I have the tools version line for 1.7. At the bottom is the usual import project for the MSBuildExtensionsPath32 for the TypeScript.targets</p> | 1 |
<h4 dir="auto">Add Font Awesome Icons to all of our Buttons</h4>
<p dir="auto"><a href="https://www.freecodecamp.com/challenges/add-font-awesome-icons-to-all-of-our-buttons#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-8%22%3E%0A%20%20%20%20%20%20%3Ch2%20class%3D%22text-primary%20text-center%22%3ECatPhotoApp%3C%2Fh2%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-4%22%3E%0A%20%20%20%20%20%20%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22img-responsive%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%3E%3C%2Fa%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%20%20%3Cimg%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-running-cats%22%20class%3D%22img-responsive%22%20alt%3D%22Three%20kittens%20running%20towards%20the%20camera.%20%22%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-4%22%3E%0A%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-block%20btn-primary%22%3E%3Ci%20class%3D%22fa%20fa-thumbs-up%22%3E%3C%2Fi%3E%20Like%3C%2Fbutton%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-4%22%3E%0A%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-block%20btn-info%22%3EInfo%3Ci%20class%3D%22fa%20fa-info-circle%22%3E%3C%2Fi%3E%3C%2Fbutton%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-4%22%3E%0A%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-block%20btn-danger%22%3EDelete%3Ci%20class%3D%22fa%20fa-trash%22%3E%3C%2Fi%3E%3C%2Fbutton%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%20%20%3Cp%3EThings%20cats%20%3Cspan%20class%3D%22text-danger%22%3Elove%3A%3C%2Fspan%3E%3C%2Fp%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%20%20%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%20%20%3Col%3E%0A%20%20%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%20%20%3C%2Fol%3E%0A%20%20%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Loving%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Crazy%3C%2Flabel%3E%0A%20%20%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%20%20%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">https://www.freecodecamp.com/challenges/add-font-awesome-icons-to-all-of-our-buttons#?solution=%0A%3Clink%20href%3D%22https%3A%2F%2Ffonts.googleapis.com%2Fcss%3Ffamily%3DLobster%22%20rel%3D%22stylesheet%22%20type%3D%22text%2Fcss%22%3E%0A%3Cstyle%3E%0A%20%20h2%20%7B%0A%20%20%20%20font-family%3A%20Lobster%2C%20Monospace%3B%0A%20%20%7D%0A%0A%20%20.thick-green-border%20%7B%0A%20%20%20%20border-color%3A%20green%3B%0A%20%20%20%20border-width%3A%2010px%3B%0A%20%20%20%20border-style%3A%20solid%3B%0A%20%20%20%20border-radius%3A%2050%25%3B%0A%20%20%7D%0A%3C%2Fstyle%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-8%22%3E%0A%20%20%20%20%20%20%3Ch2%20class%3D%22text-primary%20text-center%22%3ECatPhotoApp%3C%2Fh2%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-4%22%3E%0A%20%20%20%20%20%20%3Ca%20href%3D%22%23%22%3E%3Cimg%20class%3D%22img-responsive%20thick-green-border%22%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-relaxing-cat%22%20alt%3D%22A%20cute%20orange%20cat%20lying%20on%20its%20back.%20%22%3E%3C%2Fa%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%20%20%3Cimg%20src%3D%22https%3A%2F%2Fbit.ly%2Ffcc-running-cats%22%20class%3D%22img-responsive%22%20alt%3D%22Three%20kittens%20running%20towards%20the%20camera.%20%22%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-4%22%3E%0A%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-block%20btn-primary%22%3E%3Ci%20class%3D%22fa%20fa-thumbs-up%22%3E%3C%2Fi%3E%20Like%3C%2Fbutton%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-4%22%3E%0A%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-block%20btn-info%22%3EInfo%3Ci%20class%3D%22fa%20fa-info-circle%22%3E%3C%2Fi%3E%3C%2Fbutton%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-4%22%3E%0A%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-block%20btn-danger%22%3EDelete%3Ci%20class%3D%22fa%20fa-trash%22%3E%3C%2Fi%3E%3C%2Fbutton%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%20%20%3Cp%3EThings%20cats%20%3Cspan%20class%3D%22text-danger%22%3Elove%3A%3C%2Fspan%3E%3C%2Fp%3E%0A%20%20%3Cul%3E%0A%20%20%20%20%3Cli%3Ecat%20nip%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elaser%20pointers%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Elasagna%3C%2Fli%3E%0A%20%20%3C%2Ful%3E%0A%20%20%3Cp%3ETop%203%20things%20cats%20hate%3A%3C%2Fp%3E%0A%20%20%3Col%3E%0A%20%20%20%20%3Cli%3Eflea%20treatment%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Ethunder%3C%2Fli%3E%0A%20%20%20%20%3Cli%3Eother%20cats%3C%2Fli%3E%0A%20%20%3C%2Fol%3E%0A%20%20%3Cform%20fccfaa%3D%22%2Fsubmit-cat-photo%22%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Indoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22radio%22%20name%3D%22indoor-outdoor%22%3E%20Outdoor%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Loving%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Lazy%3C%2Flabel%3E%0A%20%20%20%20%3Clabel%3E%3Cinput%20type%3D%22checkbox%22%20name%3D%22personality%22%3E%20Crazy%3C%2Flabel%3E%0A%20%20%20%20%3Cinput%20type%3D%22text%22%20placeholder%3D%22cat%20photo%20URL%22%20required%3E%0A%20%20%20%20%3Cbutton%20type%3D%22submit%22%3ESubmit%3C%2Fbutton%3E%0A%20%20%3C%2Fform%3E%0A%3C%2Fdiv%3E%0A</a></p>
<h4 dir="auto">Issue Description</h4>
<p dir="auto">when you add the delete button it doesnt show, apparently the image is to large and doesnt show</p>
<h4 dir="auto">Browser Information</h4>
<p dir="auto">chrome in windows 10</p>
<ul dir="auto">
<li>Browser Name, Version: Google Chrome Versión 54.0.2840.99 m (64-bit)</li>
<li>Operating System: Windows 1064b</li>
<li>Mobile, Desktop, or Tablet: 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="
<link href="https://fonts.googleapis.com/css?family=Lobster" rel="stylesheet" type="text/css">
<style>
h2 {
font-family: Lobster, Monospace;
}
.thick-green-border {
border-color: green;
border-width: 10px;
border-style: solid;
border-radius: 50%;
}
</style>
<div class="container-fluid">
<div class="row">
<div class="col-xs-8">
<h2 class="text-primary text-center">CatPhotoApp</h2>
</div>
<div class="col-xs-4">
<a href="#"><img class="img-responsive thick-green-border" src="https://bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back. "></a>
</div>
</div>
<img src="https://bit.ly/fcc-running-cats" class="img-responsive" alt="Three kittens running towards the camera. ">
<div class="row">
<div class="col-xs-4">
<button class="btn btn-block btn-primary"><i class="fa fa-thumbs-up"></i> Like</button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-info">Info<i class="fa fa-info-circle"></i></button>
</div>
<div class="col-xs-4">
<button class="btn btn-block btn-danger">Delete<i class="fa fa-trash"></i></button>
</div>
</div>
<p>Things cats <span class="text-danger">love:</span></p>
<ul>
<li>cat nip</li>
<li>laser pointers</li>
<li>lasagna</li>
</ul>
<p>Top 3 things cats hate:</p>
<ol>
<li>flea treatment</li>
<li>thunder</li>
<li>other cats</li>
</ol>
<form action="/submit-cat-photo">
<label><input type="radio" name="indoor-outdoor"> Indoor</label>
<label><input type="radio" name="indoor-outdoor"> Outdoor</label>
<label><input type="checkbox" name="personality"> Loving</label>
<label><input type="checkbox" name="personality"> Lazy</label>
<label><input type="checkbox" name="personality"> Crazy</label>
<input type="text" placeholder="cat photo URL" required>
<button type="submit">Submit</button>
</form>
</div>
"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">link</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"https://fonts.googleapis.com/css?family=Lobster"</span> <span class="pl-c1">rel</span><span class="pl-c1">=</span><span class="pl-s">"stylesheet"</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"text/css"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">style</span><span class="pl-c1">></span>
h2 <span class="pl-kos">{</span>
<span class="pl-s1">font</span><span class="pl-c1">-</span><span class="pl-s1">family</span>: <span class="pl-v">Lobster</span><span class="pl-kos">,</span> <span class="pl-v">Monospace</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
.thick-green-border <span class="pl-kos">{</span>
<span class="pl-s1">border</span><span class="pl-c1">-</span><span class="pl-s1">color</span>: <span class="pl-s1">green</span><span class="pl-kos">;</span>
<span class="pl-s1">border</span><span class="pl-c1">-</span><span class="pl-s1">width</span>: <span class="pl-c1">10</span><span class="pl-s1">px</span><span class="pl-kos">;</span>
<span class="pl-s1">border</span><span class="pl-c1">-</span><span class="pl-s1">style</span>: <span class="pl-s1">solid</span><span class="pl-kos">;</span>
<span class="pl-s1">border</span><span class="pl-c1">-</span><span class="pl-s1">radius</span>: <span class="pl-c1">50</span><span class="pl-c1">%</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">style</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"container-fluid"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"row"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-8"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"text-primary text-center"</span><span class="pl-c1">></span>CatPhotoApp<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">h2</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>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-4"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span><span class="pl-c1">=</span><span class="pl-s">"#"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">img</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"img-responsive thick-green-border"</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-s">"https://bit.ly/fcc-relaxing-cat"</span> <span class="pl-c1">alt</span><span class="pl-c1">=</span><span class="pl-s">"A cute orange cat lying on its back. "</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">a</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>
<span class="pl-c1"><</span><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">img</span> <span class="pl-c1">src</span><span class="pl-c1">=</span><span class="pl-s">"https://bit.ly/fcc-running-cats"</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"img-responsive"</span> <span class="pl-c1">alt</span><span class="pl-c1">=</span><span class="pl-s">"Three kittens running towards the camera. "</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"row"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-4"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-block btn-primary"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"fa fa-thumbs-up"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">i</span><span class="pl-c1">></span> Like<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</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>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-4"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-block btn-info"</span><span class="pl-c1">></span>Info<span class="pl-c1"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"fa fa-info-circle"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">i</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</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>
<span class="pl-c1"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-4"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-block btn-danger"</span><span class="pl-c1">></span>Delete<span class="pl-c1"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"fa fa-trash"</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">i</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</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>
<span class="pl-c1"><</span><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">p</span><span class="pl-c1">></span>Things cats <span class="pl-c1"><</span><span class="pl-ent">span</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"text-danger"</span><span class="pl-c1">></span>love:<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">span</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">ul</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>cat nip<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>laser pointers<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>lasagna<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">ul</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">p</span><span class="pl-c1">></span>Top 3 things cats hate:<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">p</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">ol</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>flea treatment<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>thunder<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">li</span><span class="pl-c1">></span>other cats<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">li</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">ol</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">form</span> <span class="pl-c1">action</span><span class="pl-c1">=</span><span class="pl-s">"/submit-cat-photo"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"radio"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"indoor-outdoor"</span><span class="pl-c1">></span> Indoor<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"radio"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"indoor-outdoor"</span><span class="pl-c1">></span> Outdoor<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"checkbox"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"personality"</span><span class="pl-c1">></span> Loving<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"checkbox"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"personality"</span><span class="pl-c1">></span> Lazy<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">label</span><span class="pl-c1">></span><span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"checkbox"</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"personality"</span><span class="pl-c1">></span> Crazy<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">input</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"text"</span> <span class="pl-c1">placeholder</span><span class="pl-c1">=</span><span class="pl-s">"cat photo URL"</span> <span class="pl-c1">required</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">button</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"submit"</span><span class="pl-c1">></span>Submit<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">button</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">form</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>
<h4 dir="auto">Screenshot</h4> | <p dir="auto">Forewarning, this <em>may</em> be bike-shedding worthy....</p>
<h3 dir="auto">Workspace</h3>
<p dir="auto">User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.110 Safari/537.36</code>. (Chrome on Windows 7)</p>
<h3 dir="auto">Setting</h3>
<p dir="auto">The CatPhoto is where you make an web page and one component is adding three buttons like below.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199337/7156ec7e-f798-11e5-864c-49dd8c334c40.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Problem</h3>
<p dir="auto">But then you will eventually make it into something like this below.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199333/641738c0-f798-11e5-9464-43c6de465704.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Notice that the red Delete button is squished and on the side (this is mostly a desktop problem; mobile user won't have the same issue -- see below)</p>
<h4 dir="auto">Mobile Version</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199436/364c3a70-f799-11e5-98af-7dbe7da0fbb1.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Solution</h3>
<p dir="auto">So I propose two things:</p>
<ul dir="auto">
<li>Change the "Delete" button into a "Edit" button so it'll fit on the button better.
<ul dir="auto">
<li>This is fairly easy. You'll just need to change this in the challenge seeds starting with the challenge <a href="https://www.freecodecamp.com/challenges/warn-your-users-of-a-dangerous-action" rel="nofollow">Warn your Users of a Dangerous Action</a> where the button is added.</li>
<li>Then change the challenges up until the last one on <a href="https://www.freecodecamp.com/challenges/line-up-form-elements-responsively-with-bootstrap" rel="nofollow">Line up Form Elements Responsively with Bootstrap</a>.</li>
<li>You could also change the icon if appropriate.</li>
</ul>
</li>
<li>Add new challenge to add in making all three of those buttons also have the class <code class="notranslate">btn-sm</code> to make the text inside the button not seem all smushed.
<ul dir="auto">
<li>This one will require a little more effort in making an entirely new challenge, which may be unnecessary.</li>
</ul>
</li>
</ul>
<p dir="auto">Example:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<button class="btn btn-block btn-info btn-sm"><i class="fa fa-info-circle"></i> Info</button>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-block btn-info btn-sm</span>"<span class="pl-kos">></span><span class="pl-kos"><</span><span class="pl-ent">i</span> <span class="pl-c1">class</span>="<span class="pl-s">fa fa-info-circle</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</span><span class="pl-kos">></span> Info<span class="pl-kos"></</span><span class="pl-ent">button</span><span class="pl-kos">></span></pre></div>
<p dir="auto">If the proposed changes were made, the finished app will look like this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png"><img src="https://cloud.githubusercontent.com/assets/2754821/14199509/e3e483d6-f799-11e5-8983-b02a50d68da7.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">While running npm scripts, npm logs <code class="notranslate">timing config:load:flatten completed in 1/2ms</code> (The 1/2ms isnt what it actually logs, rather it flickers between 1ms and 2ms).</p>
<p dir="auto">This only happens when I have a <code class="notranslate">.npmrc</code> file in the package root. npm also says <code class="notranslate">npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc</code> before starting my script.</p>
<p dir="auto">While this does not prevent me from typing (as far as I can tell), I can't see my input nor is it really ideal for my terminal to do this. I also noticed a significant slowdown installing packages (part of my script has to run npm i -D "a bunch of packages"), although this could be a coincidence.</p>
<p dir="auto">Example:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
> [email protected] test
> npm run elevate && npm run build && npm run install && node test/main.test.js && npm run clean
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
> [email protected] elevate
> sudo echo '' || exit 0
[sudo] password for thomas: (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten Completed in 2ms
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten Completed in 1ms
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
> [email protected] build
> tsc --project tsconfig.json && minify bin/index.max.js > bin/index.js && rimraf bin/index.max.js && chmod u+x bin/index.js || exit 0
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
> [email protected] install
> npm run clean && sudo npm link || npm link
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
> [email protected] clean
> sudo npm -g uninstall create-octobox-app || npm -g uninstall create-octobox-app
up to date, audited 1 package in 147ms
found 0 vulnerabilities
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
added 1 package, and audited 3 packages in 497ms
found 0 vulnerabilities
➤ Running tests...⠂) ⠙ : timing config:load:flatten Completed in 2ms
➤ Running test 1...) ⠙ : timing config:load:flatten Completed in 2ms"><pre class="notranslate">npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
<span class="pl-k">></span> [email protected] <span class="pl-c1">test</span>
<span class="pl-k">></span> npm run elevate <span class="pl-k">&&</span> npm run build <span class="pl-k">&&</span> npm run install <span class="pl-k">&&</span> node test/main.test.js <span class="pl-k">&&</span> npm run clean
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
<span class="pl-k">></span> [email protected] elevate
<span class="pl-k">></span> sudo <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> <span class="pl-k">||</span> <span class="pl-c1">exit</span> 0
[sudo] password <span class="pl-k">for</span> <span class="pl-smi">thomas: (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten (⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ : timing config:load:flatten Completed</span> <span class="pl-k">in</span> 2ms
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠙ <span class="pl-c1">:</span> timing config:load:flatten Completed <span class="pl-k">in</span> 1ms
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
<span class="pl-k">></span> [email protected] build
<span class="pl-k">></span> tsc --project tsconfig.json <span class="pl-k">&&</span> minify bin/index.max.js <span class="pl-k">></span> bin/index.js <span class="pl-k">&&</span> rimraf bin/index.max.js <span class="pl-k">&&</span> chmod u+x bin/index.js <span class="pl-k">||</span> <span class="pl-c1">exit</span> 0
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
<span class="pl-k">></span> [email protected] install
<span class="pl-k">></span> npm run clean <span class="pl-k">&&</span> sudo npm link <span class="pl-k">||</span> npm link
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
<span class="pl-k">></span> [email protected] clean
<span class="pl-k">></span> sudo npm -g uninstall create-octobox-app <span class="pl-k">||</span> npm -g uninstall create-octobox-app
up to date, audited 1 package <span class="pl-k">in</span> 147ms
found 0 vulnerabilities
npm WARN ignoring workspace config at /home/thomas/Documents/octobox/create-octobox-app/.npmrc
added 1 package, and audited 3 packages <span class="pl-k">in</span> 497ms
found 0 vulnerabilities
➤ Running tests...⠂) ⠙ <span class="pl-c1">:</span> timing config:load:flatten Completed <span class="pl-k">in</span> 2ms
➤ Running <span class="pl-c1">test</span> 1...) ⠙ <span class="pl-c1">:</span> timing config:load:flatten Completed <span class="pl-k">in</span> 2ms</pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">For this to not happen.</p>
<p dir="auto">Same example as above, but what it should look like:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="> [email protected] test
> npm run elevate && npm run build && npm run install && node test/main.test.js && npm run clean
> [email protected] elevate
> sudo echo '' || exit 0
[sudo] password for thomas:
> [email protected] build
> tsc --project tsconfig.json && minify bin/index.max.js > bin/index.js && rimraf bin/index.max.js && chmod u+x bin/index.js || exit 0
> [email protected] install
> npm run clean && sudo npm link || npm link
> [email protected] clean
> sudo npm -g uninstall create-octobox-app || npm -g uninstall create-octobox-app
removed 1 package, and audited 1 package in 157ms
found 0 vulnerabilities
added 1 package, and audited 3 packages in 349ms
found 0 vulnerabilities
➤ Running tests...
➤ Running test 1...
"><pre class="notranslate"><span class="pl-k">></span> [email protected] <span class="pl-c1">test</span>
<span class="pl-k">></span> npm run elevate <span class="pl-k">&&</span> npm run build <span class="pl-k">&&</span> npm run install <span class="pl-k">&&</span> node test/main.test.js <span class="pl-k">&&</span> npm run clean
<span class="pl-k">></span> [email protected] elevate
<span class="pl-k">></span> sudo <span class="pl-c1">echo</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> <span class="pl-k">||</span> <span class="pl-c1">exit</span> 0
[sudo] password <span class="pl-k">for</span> thomas:
<span class="pl-k">></span> [email protected] build
<span class="pl-k">></span> tsc --project tsconfig.json <span class="pl-k">&&</span> minify bin/index.max.js <span class="pl-k">></span> bin/index.js <span class="pl-k">&&</span> rimraf bin/index.max.js <span class="pl-k">&&</span> chmod u+x bin/index.js <span class="pl-k">||</span> <span class="pl-c1">exit</span> 0
<span class="pl-k">></span> [email protected] install
<span class="pl-k">></span> npm run clean <span class="pl-k">&&</span> sudo npm link <span class="pl-k">||</span> npm link
<span class="pl-k">></span> [email protected] clean
<span class="pl-k">></span> sudo npm -g uninstall create-octobox-app <span class="pl-k">||</span> npm -g uninstall create-octobox-app
removed 1 package, and audited 1 package <span class="pl-k">in</span> 157ms
found 0 vulnerabilities
added 1 package, and audited 3 packages <span class="pl-k">in</span> 349ms
found 0 vulnerabilities
➤ Running tests...
➤ Running <span class="pl-c1">test</span> 1...
</pre></div>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Have a <code class="notranslate">.npmrc</code> file in some package installed locally with <code class="notranslate">npm link</code>. Mine had one line with <code class="notranslate">engine-strict=true</code> in it.</li>
<li>Run any of said package's npm scripts, anywhere on the system. For when I'm out of the package's root directory, I've used <code class="notranslate">npm create octobox-app</code>, because I have a binary to execute with <code class="notranslate">npx</code> in my package and the name is <code class="notranslate">create-octobox-app</code>. I haven't tested running a script without using <code class="notranslate">npx</code> or some sort of alias like <code class="notranslate">npm create</code> outside of the root directory, though.</li>
<li>See the error.</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.5.5</li>
<li>Node.js: 16.14.0</li>
<li>OS Name: Ubuntu 21.09</li>
<li>System Model Name: Custom build (will provide specs if requested)</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="; "user" config from /home/thomas/.npmrc
//registry.npmjs.org/:_authToken = (protected)
unsafe-perm = true
user = "0"
; node bin location = /usr/local/bin/node
; cwd = /home/thomas/Documents/octobox/create-octobox-app
; HOME = /home/thomas
; Run `npm config ls -l` to show all defaults.
"><pre class="notranslate"><span class="pl-c"><span class="pl-c">;</span> "user" config from /home/thomas/.npmrc</span>
//registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected)
<span class="pl-k">unsafe-perm</span> = true
<span class="pl-k">user</span> = <span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>
<span class="pl-c"><span class="pl-c">;</span> node bin location = /usr/local/bin/node</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = /home/thomas/Documents/octobox/create-octobox-app</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = /home/thomas</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span>
</pre></div> | <h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">This issue exists in the latest npm version</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I am using the latest npm</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">' npm start ' produces the following timing output which sticks always to the last line:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1231174/157500431-fed4bf14-ece1-405c-abff-6d231e7230b2.png"><img width="500" alt="image" src="https://user-images.githubusercontent.com/1231174/157500431-fed4bf14-ece1-405c-abff-6d231e7230b2.png" style="max-width: 100%;"></a><br>
the "normal" output from the started app is always scrolling above this last line.</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">no timing output.</p>
<p dir="auto">Digging deeper I noticed that with <code class="notranslate">--loglevel</code> <code class="notranslate">silent</code>or <code class="notranslate">error</code> there is no sticky output.<br>
BUT for <code class="notranslate">warn</code> , <code class="notranslate">notice</code> and <code class="notranslate">http</code> there is <code class="notranslate">timing</code> output which in my opinion should not happen, since these levels are before <code class="notranslate">timing</code> log level ....</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>npm start</li>
<li>See error...</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>npm: 8.5.3</li>
<li>Node.js: 17.6.0</li>
<li>OS Name: macOS 12.2.1</li>
<li>System Model Name: Macbook Pro</li>
<li>npm config:</li>
</ul>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npm config ls
npm WARN ignoring workspace config at /Users/ogi/Repositories/IMS/IMS_v2/packages/mims-test/.npmrc
npm WARN config This command does not support workspaces.
; "user" config from /Users/ogi/.npmrc
; @ogi-it:registry = "http://localhost:4873/" ; overridden by project
//localhost:4873/:_authToken = (protected)
//registry.npmjs.org/:_authToken = (protected)
scripts-prepend-node-path = true
; "project" config from /Users/ogi/Repositories/IMS/IMS_v2/.npmrc
@ogi-it:registry = "http://localhost:4873"
; node bin location = /usr/local/bin/node
; cwd = /Users/ogi/Repositories/IMS/IMS_v2/packages/mims-test
; HOME = /Users/ogi
; Run `npm config ls -l` to show all defaults.
ogi@ogi-it-mac mims-test % "><pre class="notranslate">npm config ls
npm WARN ignoring workspace config at /Users/ogi/Repositories/IMS/IMS_v2/packages/mims-test/.npmrc
npm WARN config This command does not support workspaces.
<span class="pl-c"><span class="pl-c">;</span> "user" config from /Users/ogi/.npmrc</span>
<span class="pl-c"><span class="pl-c">;</span> @ogi-it:registry = "http://localhost:4873/" ; overridden by project</span>
//localhost:4873/:<span class="pl-k">_authToken</span> = (protected)
//registry.npmjs.org/:<span class="pl-k">_authToken</span> = (protected)
<span class="pl-k">scripts-prepend-node-path</span> = true
<span class="pl-c"><span class="pl-c">;</span> "project" config from /Users/ogi/Repositories/IMS/IMS_v2/.npmrc</span>
@ogi-it:<span class="pl-k">registry</span> = <span class="pl-s"><span class="pl-pds">"</span>http://localhost:4873<span class="pl-pds">"</span></span>
<span class="pl-c"><span class="pl-c">;</span> node bin location = /usr/local/bin/node</span>
<span class="pl-c"><span class="pl-c">;</span> cwd = /Users/ogi/Repositories/IMS/IMS_v2/packages/mims-test</span>
<span class="pl-c"><span class="pl-c">;</span> HOME = /Users/ogi</span>
<span class="pl-c"><span class="pl-c">;</span> Run `npm config ls -l` to show all defaults.</span>
ogi@ogi-it-mac mims-test % </pre></div> | 1 |
<p dir="auto">This works fine:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function test(): [number, string] {
return [1, "a"];
}"><pre class="notranslate"><code class="notranslate">function test(): [number, string] {
return [1, "a"];
}
</code></pre></div>
<p dir="auto">But this...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="async function test(): Promise<[number, string]> {
return [1, "a"];
}"><pre class="notranslate"><code class="notranslate">async function test(): Promise<[number, string]> {
return [1, "a"];
}
</code></pre></div>
<p dir="auto">gives the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="main.ts(2,9): error TS2322: Type '(number | string)[]' is not assignable to type '[number, string]'.
Property '0' is missing in type '(number | string)[]'."><pre class="notranslate"><code class="notranslate">main.ts(2,9): error TS2322: Type '(number | string)[]' is not assignable to type '[number, string]'.
Property '0' is missing in type '(number | string)[]'.
</code></pre></div>
<p dir="auto">It appears that [1, "a"] has instead been inferred to be an array of number | string, which is not what I want.</p> | <p dir="auto">There appears to be a typing bug with the return values from async functions, perhaps limited to tuples. Examples:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Works!
function test(): [boolean, number] {
return [true, 1];
}
// Works!
function test2(): Promise<[boolean, number]> {
return Promise.resolve([true, 1]);
}
// Doesn't work
async function test3(): Promise<[boolean, number]> {
return [true, 1]; // Error here!
}"><pre class="notranslate"><span class="pl-c">// Works!</span>
<span class="pl-k">function</span> <span class="pl-s1">test</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-kos">[</span><span class="pl-s1">boolean</span><span class="pl-kos">,</span> <span class="pl-s1">number</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">true</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">// Works!</span>
<span class="pl-k">function</span> <span class="pl-s1">test2</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-v">Promise</span><span class="pl-c1"><</span><span class="pl-kos">[</span><span class="pl-s1">boolean</span><span class="pl-kos">,</span> <span class="pl-s1">number</span><span class="pl-kos">]</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-s1">return</span> <span class="pl-v">Promise</span><span class="pl-kos">.</span><span class="pl-c1">resolve</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s1">true</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-kos">}</span>
<span class="pl-c">// Doesn't work</span>
async <span class="pl-k">function</span> <span class="pl-s1">test3</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-v">Promise</span><span class="pl-c1"><</span><span class="pl-kos">[</span><span class="pl-s1">boolean</span><span class="pl-kos">,</span> <span class="pl-s1">number</span><span class="pl-kos">]</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
return<span class="pl-kos"></span> <span class="pl-kos">[</span><span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">1</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-c">// Error here!</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">The error is:</p>
<blockquote>
<p dir="auto">Type '(boolean | number)[]' is not assignable to type '[boolean, number]'.</p>
</blockquote> | 1 |
<p dir="auto">Hi guys, I have a strong feeling that this issue is not bootstrap but rather chrome, but it may be interesting to you too.</p>
<p dir="auto"><a href="http://codepen.io/sirinity/pen/fLuFG" rel="nofollow">http://codepen.io/sirinity/pen/fLuFG</a></p>
<p dir="auto">Tooltip in combination with a list of display: inline-block elements seems to remove empty text nodes when appearing, thus bringing blocks closer together.</p>
<p dir="auto">I am seeing this on</p>
<p dir="auto">Windows 7 Opera 19<br>
Chromium 32.0.1700.102 Ubuntu 12.04</p>
<p dir="auto">Cannot test chrome at the moment, but I am sure it will replicate in chrome too.</p>
<p dir="auto">P.S. Couldn't find any similar issue and hope it is not a duplicate</p> | 0 |
|
<p dir="auto">Like this:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15178410/11741099/badd8e48-a031-11e5-9601-fea5a2cb85f5.png"><img src="https://cloud.githubusercontent.com/assets/15178410/11741099/badd8e48-a031-11e5-9601-fea5a2cb85f5.png" alt="360 20151211174429" style="max-width: 100%;"></a></p> | <ul dir="auto">
<li>Zoom once using Ctrl-+.</li>
<li>Click on a file to open it. Text in editor looks crisp.</li>
<li>Scroll down in editor and the font of the text goes fuzzy.</li>
</ul> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.