text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">*Electron version: 1.3.4</p>
<p dir="auto">Operating System (Platform and Version): OSX 10.13.5<br>
Expected behavior<br>
We have a system that we connect into that starts off with a microsoft login. It then redirects to a VPN login popup that uses NTLM authentication. The page should show a popup to enter the credentials and allow the ability to send the NTLM creds to the redirected page.</p>
<p dir="auto">Actual behavior<br>
In electron I get the microsoft login but then get a blank page for the redirect for the NTLM popup.<br>
I see a 401 unauthorized on the redirect call.</p>
<p dir="auto">Electron shows blank page where as in chrome you get a popup for credentials. Also, there is no way to send the NTLM cred to the redirected page.</p>
<p dir="auto">I was able to successfully log in from Postman using the redirect link and sending the user name and password in NTLM format.</p> | 0 |
|
<p dir="auto">Greetings, yticks, yticklabels, and annotations seem to be off center on the yaxis for some reason (by default). Is this user error, and if so I am having trouble googling a solution and any help is appreciated!</p>
<p dir="auto">Version info:<br>
seaborn-0.9.0<br>
scipy-1.3.0<br>
scikit_learn-0.21.3<br>
pandas-0.25.0<br>
numpy-1.17.0<br>
matplotlib-3.1.1</p>
<p dir="auto">Code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
data = {'y_Predicted': [1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0], 'y_Actual': [1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0]}
df = pd.DataFrame(data, columns=['y_Actual','y_Predicted'])
confusion_matrix = pd.crosstab(df['y_Actual'], df['y_Predicted'], rownames=['Actual'], colnames=['Predicted'])
fig = plt.figure(figsize=(12,8))
sns.heatmap(confusion_matrix, annot=True)
plt.show()"><pre class="notranslate"><code class="notranslate">import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
data = {'y_Predicted': [1, 1, 0, 1, 0, 1, 1, 0, 1, 0, 0, 0], 'y_Actual': [1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1, 0]}
df = pd.DataFrame(data, columns=['y_Actual','y_Predicted'])
confusion_matrix = pd.crosstab(df['y_Actual'], df['y_Predicted'], rownames=['Actual'], colnames=['Predicted'])
fig = plt.figure(figsize=(12,8))
sns.heatmap(confusion_matrix, annot=True)
plt.show()
</code></pre></div>
<p dir="auto">Observed phenotype from code above:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6826472/64052349-2037ed80-cb4c-11e9-90bd-c1145f071f88.png"><img src="https://user-images.githubusercontent.com/6826472/64052349-2037ed80-cb4c-11e9-90bd-c1145f071f88.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Thanks!<br>
-Sungshine</p> | <p dir="auto">Is there a way to not show outliers in boxplot in order to not to mess up a scale?<br>
If not I think It would be nice to add.<br>
I tried <code class="notranslate">fliersize=0</code> but that didn't work. (The scale was still the same).</p> | 0 |
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wfreeman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wfreeman">@wfreeman</a>: 'I was unable to figure out how to do that.'</p> | <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/peterneubauer/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/peterneubauer">@peterneubauer</a>: ''</p> | 1 |
<p dir="auto">Basic JavaScript: Waypoint: Generate Random Whole Numbers within a Range (<a href="http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-within-a-range" rel="nofollow">http://freecodecamp.com/challenges/waypoint-generate-random-whole-numbers-within-a-range</a>)</p>
<p dir="auto">I've tried this over and over for about an hour and I've looked it up on Google and from what I can see, I'm doing this right.</p>
<p dir="auto">Here is my code which I believe is correct...</p>
<p dir="auto">var min = 0;<br>
var max = 12;<br>
function myFunction() {<br>
// Make myFunction return a random number between zero and nine instead of a decimal<br>
// Only change code below this line.</p>
<p dir="auto">return Math.floor(Math.random() * (9 - 1 + 1)) + 1;<br>
}</p>
<p dir="auto">// Only change code above this line.<br>
// We use this function to show you the value of your variable in your output box.<br>
(function(){return(myFunction());})();</p>
<p dir="auto">Depending on the number that is generated, it's either correct on 2 out of 3 points none.</p>
<p dir="auto">No matter what I do, I can't get the third point. I'm pretty sure it's a bug because I've looked this up and the fact is that the results of my code give what the exercise is asking for.</p>
<p dir="auto">Here is the readout...</p>
<p dir="auto">assert(myFunction() >= min, 'The random number that's generated by myFunction should be greater than or equal to the minimum number');<br>
assert(myFunction() <= max, 'The random number that's generated by myFunction should be less than or equal to the maximum number');<br>
assert((function(){if(editor.getValue().match(/max/g).length >= 2 && editor.getValue().match(/min/g).length >= 2 && editor.getValue().match(/Math.floor/g) && editor.getValue().match(/Math.random/g)){return(true);}else{return(false);}})(), 'You should be using the function given in the description to calculate the random in number in a range');You should be using the function given in the description to calculate the random in number in a range</p> | <h4 dir="auto">Challenge Name</h4>
<h4 dir="auto">Issue Description</h4>
<h4 dir="auto">Browser Information</h4>
<ul dir="auto">
<li>Browser Name, Version: Google Chrome 55.0.2883.87 m</li>
<li>Operating System: Windows 8.1</li>
<li>Mobile, Desktop, or Tablet: Desktop</li>
</ul>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<form action="/submit-cat-photo">
<div class="row">
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor">Indoor</label>
</div>
<div class="col-xs-6">
<label><input type="radio" name="indoor-outdoor">Outdoor</label>
</div>
</div>
<div class="row">
<div class="col-xs-4">
<label><input type="checkbox" name="personality">Loving</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality">Lazy</label>
</div>
<div class="col-xs-4">
<label><input type="checkbox" name="personality">Crazy</label>
</div>
</div>
<input class="form-control" type="text" placeholder="cat photo URL" required>
<button class="btn btn-primary" type="submit"><i class="fa fa-paper-plane"></i>Submit</button>
</form>
</div>"><pre class="notranslate"><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">div</span> <span class="pl-c1">class</span>="<span class="pl-s">row</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">col-xs-6</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>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">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">col-xs-6</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">div</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">row</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">col-xs-4</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>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">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">col-xs-4</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">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">col-xs-4</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>Crazy<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">div</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">input</span> <span class="pl-c1">class</span>="<span class="pl-s">form-control</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">class</span>="<span class="pl-s">btn btn-primary</span>" <span class="pl-c1">type</span>="<span class="pl-s">submit</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-paper-plane</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">i</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>div<span class="pl-kos">></span></pre></div>
<h4 dir="auto">Screenshot</h4>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14169239/22007405/0ff06e4e-dc38-11e6-9bb5-ed2948bc0af4.png"><img src="https://cloud.githubusercontent.com/assets/14169239/22007405/0ff06e4e-dc38-11e6-9bb5-ed2948bc0af4.png" alt="screenshot 653" style="max-width: 100%;"></a></p>
<p dir="auto"><em>Edited by moderator</em></p> | 0 |
<p dir="auto">Is it feasible to extend tfcompile to support training?</p>
<p dir="auto">Our reinforcement learning pipelines sometimes spend significant time in Python side of session.run because networks are small, and need lots of session.run calls since each .run leads to an interaction with a simulator (ie, Mujoco, gym or universe)</p>
<p dir="auto">So you could have have 30k session.run calls where actual computation takes 200 usec, and Python session.run overhead is another 150 usec.</p>
<p dir="auto">This could be improved if the network was tfcompiled and we didn't have to use session.run, however, this would need tfcompile to be extended to support multiple sets of fetches for the compiled object. IE</p>
<ol dir="auto">
<li>network initialization, input: weights, output: None</li>
<li>network forward op: input: observation, output: action</li>
<li>network train op: input: observations, actions output: None</li>
<li>network variable read: input: None, output: weights</li>
</ol> | <h2 dir="auto">URL(s) with the issue:</h2>
<p dir="auto"><a href="https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/estimator/SessionRunHook" rel="nofollow">https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/estimator/SessionRunHook</a></p>
<h2 dir="auto">Description of issue (what needs changing):</h2>
<h3 dir="auto">Clear description</h3>
<p dir="auto">Yes clear description</p>
<h3 dir="auto">Correct links</h3>
<p dir="auto">The link to the source code correct.</p>
<h3 dir="auto">Parameters defined</h3>
<p dir="auto">All parameters defined and formatted correctly.</p>
<h3 dir="auto">Returns defined</h3>
<p dir="auto">Return values are defined.</p>
<h3 dir="auto">Raises listed and defined</h3>
<p dir="auto">No raises listed and defined.</p>
<h3 dir="auto">Usage example</h3>
<p dir="auto">No usage examples provided</p>
<h3 dir="auto">Request visuals, if applicable</h3>
<p dir="auto">No visuals included</p> | 0 |
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">I had the windows terminal open.<br>
I was installing node at the same time.<br>
After installation I tried <code class="notranslate">node --version</code> it couldn't find it, because the current window terminal session path didn't have node in it.</p>
<p dir="auto">I added a new Powershell tab, and I found it too failed, when I entered <code class="notranslate">node --version</code>. I had to close Windows Terminal and open it again for it to work</p>
<p dir="auto">Perhaps when you add a new tab, it should grab the latest path?</p> | <h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">Sync terminal settings and customization between devices.</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1> | 0 |
<p dir="auto">When trying to resample transactions data where there are infrequent transactions for a large number of people, I get horrible performance. Compare the function annualize with the clunkier but faster annualize2 below. Ideally resample should be able to handle multiindex data and resample on 1 of the dimensions without the need to resort to groupby.</p>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import pandas
import numpy as np
def annualize(df):
def resample(df):
df = df.set_index('DATE')
df = df.resample('A').ffill()
df = df.reset_index()
return df
df = df.groupby('ID', as_index = False).apply(resample)
df['YEAR'] = df['DATE'].dt.year
df = df.reset_index(drop = True)
return df
def annualize2(df):
#DF must be sorted by ID then DATE
df = df.sort_values(['ID','DATE']).reset_index(drop = True)
#Extract the year from the date and keep last observation from each year
df['YEAR'] = df['DATE'].dt.year
df = df.drop_duplicates(subset = ['ID','YEAR'], keep = 'last')
#Get the YEAR and ID of the next record down
ndf = df[['ID', 'YEAR']].shift(-1)
#Want to duplicate records where ID's between record pairs match and spacing is more than year
match = (ndf['ID'] == df['ID'])
reps = np.array(np.maximum(match*(ndf['YEAR'] - df['YEAR']),1), dtype = int)
reps[-1] = 1 # the last value will by -inf
#Do the duplication
df = df.loc[np.repeat(df.index, reps)]
#Now we need to fix the year field
cs = np.ones(len(df))
cs[np.cumsum(reps[:-1])] -= reps[:-1]
df['YEAR'] = df['YEAR'] + np.cumsum(cs)-1
df = df.reset_index(drop = True)
return df
if __name__ == '__main__':
import StringIO
import timeit
#Generate some transaction record data
data='''ID,DATE,STATUS
1,3/1/2005,A
1,4/30/2005,B
1,6/30/2010,C
1,8/20/2010,D
'''
df = pandas.read_csv(StringIO.StringIO(data))
df['DATE'] = pandas.to_datetime(df['DATE'])
print(annualize(df))
print(annualize2(df))
#then repeat the rows of the table to get a more realistic sample size for measuring performance
df = df.loc[np.tile(df.index.values, 10000)]
df['ID'] = np.repeat(np.arange(10000), 4)
print('annualize')
print(timeit.timeit('annualize(df)', setup = 'from __main__ import annualize, df', number = 1))
print('annualize2')
print(timeit.timeit('annualize2(df)', setup = 'from __main__ import annualize2, df', number = 1))"><pre class="notranslate"><code class="notranslate">import pandas
import numpy as np
def annualize(df):
def resample(df):
df = df.set_index('DATE')
df = df.resample('A').ffill()
df = df.reset_index()
return df
df = df.groupby('ID', as_index = False).apply(resample)
df['YEAR'] = df['DATE'].dt.year
df = df.reset_index(drop = True)
return df
def annualize2(df):
#DF must be sorted by ID then DATE
df = df.sort_values(['ID','DATE']).reset_index(drop = True)
#Extract the year from the date and keep last observation from each year
df['YEAR'] = df['DATE'].dt.year
df = df.drop_duplicates(subset = ['ID','YEAR'], keep = 'last')
#Get the YEAR and ID of the next record down
ndf = df[['ID', 'YEAR']].shift(-1)
#Want to duplicate records where ID's between record pairs match and spacing is more than year
match = (ndf['ID'] == df['ID'])
reps = np.array(np.maximum(match*(ndf['YEAR'] - df['YEAR']),1), dtype = int)
reps[-1] = 1 # the last value will by -inf
#Do the duplication
df = df.loc[np.repeat(df.index, reps)]
#Now we need to fix the year field
cs = np.ones(len(df))
cs[np.cumsum(reps[:-1])] -= reps[:-1]
df['YEAR'] = df['YEAR'] + np.cumsum(cs)-1
df = df.reset_index(drop = True)
return df
if __name__ == '__main__':
import StringIO
import timeit
#Generate some transaction record data
data='''ID,DATE,STATUS
1,3/1/2005,A
1,4/30/2005,B
1,6/30/2010,C
1,8/20/2010,D
'''
df = pandas.read_csv(StringIO.StringIO(data))
df['DATE'] = pandas.to_datetime(df['DATE'])
print(annualize(df))
print(annualize2(df))
#then repeat the rows of the table to get a more realistic sample size for measuring performance
df = df.loc[np.tile(df.index.values, 10000)]
df['ID'] = np.repeat(np.arange(10000), 4)
print('annualize')
print(timeit.timeit('annualize(df)', setup = 'from __main__ import annualize, df', number = 1))
print('annualize2')
print(timeit.timeit('annualize2(df)', setup = 'from __main__ import annualize2, df', number = 1))
</code></pre></div>
<h4 dir="auto">Expected Output</h4>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" DATE ID STATUS YEAR
0 2005-12-31 1 B 2005
1 2006-12-31 1 B 2006
2 2007-12-31 1 B 2007
3 2008-12-31 1 B 2008
4 2009-12-31 1 B 2009
5 2010-12-31 1 D 2010
ID DATE STATUS YEAR
0 1 2005-04-30 B 2005.0
1 1 2005-04-30 B 2006.0
2 1 2005-04-30 B 2007.0
3 1 2005-04-30 B 2008.0
4 1 2005-04-30 B 2009.0
5 1 2010-08-20 D 2010.0
annualize
26.4788940619
annualize2
0.0899452309903"><pre class="notranslate"><code class="notranslate"> DATE ID STATUS YEAR
0 2005-12-31 1 B 2005
1 2006-12-31 1 B 2006
2 2007-12-31 1 B 2007
3 2008-12-31 1 B 2008
4 2009-12-31 1 B 2009
5 2010-12-31 1 D 2010
ID DATE STATUS YEAR
0 1 2005-04-30 B 2005.0
1 1 2005-04-30 B 2006.0
2 1 2005-04-30 B 2007.0
3 1 2005-04-30 B 2008.0
4 1 2005-04-30 B 2009.0
5 1 2010-08-20 D 2010.0
annualize
26.4788940619
annualize2
0.0899452309903
</code></pre></div>
<h4 dir="auto">output of <code class="notranslate">pd.show_versions()</code></h4>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 2.7.11.final.0<br>
python-bits: 64<br>
OS: Windows<br>
OS-release: 7<br>
machine: AMD64<br>
processor: Intel64 Family 6 Model 62 Stepping 4, GenuineIntel<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: None</p>
<p dir="auto">pandas: 0.18.1<br>
nose: 1.3.7<br>
pip: 8.1.2<br>
setuptools: 20.3<br>
Cython: 0.23.4<br>
numpy: 1.11.0<br>
scipy: 0.17.0<br>
statsmodels: 0.6.1<br>
xarray: None<br>
IPython: 4.1.2<br>
sphinx: 1.3.5<br>
patsy: 0.4.0<br>
dateutil: 2.5.3<br>
pytz: 2016.4<br>
blosc: None<br>
bottleneck: 1.0.0<br>
tables: 3.2.2<br>
numexpr: 2.5<br>
matplotlib: 1.5.1<br>
openpyxl: 2.3.2<br>
xlrd: 0.9.4<br>
xlwt: 1.0.0<br>
xlsxwriter: 0.8.4<br>
lxml: 3.6.0<br>
bs4: 4.4.1<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: 1.0.12<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
boto: 2.39.0<br>
pandas_datareader: None</p> | <p dir="auto">Hello,</p>
<p dir="auto">I work on a dataframe with a multi index (Date, InputTime) and this dataframe may contain some NaN values in the columns (Value, Id). I want to fill forward value but by Date only and I don't find anyway to do this a in a very efficient way. I'm using Pandas 0.16.2 and numpy 1.9.2.</p>
<p dir="auto">Here is the type of dataframe I have :</p>
<p dir="auto">Dataframe example<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15088142/10427077/b33c3e20-70e6-11e5-9c28-1644791ef46d.png"><img src="https://cloud.githubusercontent.com/assets/15088142/10427077/b33c3e20-70e6-11e5-9c28-1644791ef46d.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">And here is the result I want :</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15088142/10427084/c331ff54-70e6-11e5-8ee8-bb499c6cc6e5.png"><img src="https://cloud.githubusercontent.com/assets/15088142/10427084/c331ff54-70e6-11e5-8ee8-bb499c6cc6e5.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">So to properly fillback by date I can use groupby(level=0) function. The groupby call is fast but the fill forward function applied on the "group by dataframe" is really too slow.</p>
<p dir="auto">Here is the code I use to compare simple fill forward (which doesn't give the expected result but is run very quickly) and expected fill forward by date (which give expected result but is really too slow).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np
import pandas as pd
import datetime as dt
# Show pandas & numpy versions
print('pandas '+pd.__version__)
print('numpy '+np.__version__)
# Build a big list of (Date,InputTime,Value,Id)
listdata = []
d = dt.datetime(2001,10,6,5)
for i in range(0,100000):
listdata.append((d.date(), d, 2*i if i%3==1 else np.NaN, i if i%3==1 else np.NaN))
d = d + dt.timedelta(hours=8)
# Create the dataframe with Date and InputTime as index
df = pd.DataFrame.from_records(listdata, index=['Date','InputTime'], columns=['Date', 'InputTime', 'Value', 'Id'])
# Simple Fill forward on index
start = dt.datetime.now()
for col in df.columns:
df[col] = df[col].ffill()
end = dt.datetime.now()
print "Time to fill forward on index = " + str((end-start).total_seconds()) + " s"
# Fill forward on Date (first level of index)
start = dt.datetime.now()
for col in df.columns:
df[col] = df[col].groupby(level=0).ffill()
end = dt.datetime.now()
print "Time to fill forward on Date only = " + str((end-start).total_seconds()) + " s""><pre class="notranslate"><code class="notranslate">import numpy as np
import pandas as pd
import datetime as dt
# Show pandas & numpy versions
print('pandas '+pd.__version__)
print('numpy '+np.__version__)
# Build a big list of (Date,InputTime,Value,Id)
listdata = []
d = dt.datetime(2001,10,6,5)
for i in range(0,100000):
listdata.append((d.date(), d, 2*i if i%3==1 else np.NaN, i if i%3==1 else np.NaN))
d = d + dt.timedelta(hours=8)
# Create the dataframe with Date and InputTime as index
df = pd.DataFrame.from_records(listdata, index=['Date','InputTime'], columns=['Date', 'InputTime', 'Value', 'Id'])
# Simple Fill forward on index
start = dt.datetime.now()
for col in df.columns:
df[col] = df[col].ffill()
end = dt.datetime.now()
print "Time to fill forward on index = " + str((end-start).total_seconds()) + " s"
# Fill forward on Date (first level of index)
start = dt.datetime.now()
for col in df.columns:
df[col] = df[col].groupby(level=0).ffill()
end = dt.datetime.now()
print "Time to fill forward on Date only = " + str((end-start).total_seconds()) + " s"
</code></pre></div>
<p dir="auto">Here are the time results I have:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/15088142/10427113/fd415ec4-70e6-11e5-96fd-5b669e738843.png"><img src="https://cloud.githubusercontent.com/assets/15088142/10427113/fd415ec4-70e6-11e5-96fd-5b669e738843.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">So, the fill foward on the group by dataframe is 10000 times slower than the simple fill forward. I cannot understand why pandas is running so slowly. I need to have comparable perfs with the simple fill forward so just a couple of milliseconds.</p>
<p dir="auto">Could somebody address the performance issue? Or give me a solution to do this kind of action in a very efficient way?</p>
<p dir="auto">Thanks</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">jenkins_plugin</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Getting the following using the jenkins_plugin module:<br>
MODULE FAILURE</p>
<p dir="auto">failed: [manager.virtualbox] (item=mailer) => {<br>
"failed": true,<br>
"item": "mailer",<br>
"module_stderr": "Shared connection to manager.virtualbox closed.\r\n",<br>
"module_stdout": "Traceback (most recent call last):\r\n File "/tmp/ansible_zgkt5_ya/ansible_module_jenkins_plugin.py", line 335, in _get_json_data\r\n json_data = json.load(r)\r\n File "/usr/lib/python3.5/json/<strong>init</strong>.py", line 268, in load\r\n parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)\r\n File "/usr/lib/python3.5/json/<strong>init</strong>.py", line 312, in loads\r\n s.<strong>class</strong>.<strong>name</strong>))\r\nTypeError: the JSON object must be str, not 'bytes'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n File "/tmp/ansible_zgkt5_ya/ansible_module_jenkins_plugin.py", line 817, in \r\n main()\r\n File "/tmp/ansible_zgkt5_ya/ansible_module_jenkins_plugin.py", line 796, in main\r\n jp = JenkinsPlugin(module)\r\n File "/tmp/ansible_zgkt5_ya/ansible_module_jenkins_plugin.py", line 317, in <strong>init</strong>\r\n if self._csrf_enabled():\r\n File "/tmp/ansible_zgkt5_ya/ansible_module_jenkins_plugin.py", line 325, in _csrf_enabled\r\n "%s/%s" % (self.url, "api/json"), 'CSRF')\r\n File "/tmp/ansible_zgkt5_ya/ansible_module_jenkins_plugin.py", line 340, in _get_json_data\r\n details=e.message)\r\nAttributeError: 'TypeError' object has no attribute 'message'\r\n"<br>
}</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Run any code with jenkins_plugin e.g the following from jeerlingguy.jenkins</p>
<ul dir="auto">
<li>name: Install Jenkins plugins.<br>
jenkins_plugin:<br>
name: "{{ item }}"<br>
params:<br>
url_username: "{{ jenkins_admin_username }}"<br>
url_password: "{{ jenkins_admin_password }}"<br>
updates_expiration: "{{ jenkins_plugin_updates_expiration }}"<br>
url: "http://{{ jenkins_hostname }}:{{ jenkins_http_port }}{{ jenkins_url_prefix }}"<br>
with_items: "{{ jenkins_plugins }}"<br>
notify: restart jenkins</li>
</ul>
<p dir="auto">with the variables passed as:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="jenkins_version: 2.60
jenkins_plugins:
- ant"><pre class="notranslate"><span class="pl-ent">jenkins_version</span>: <span class="pl-c1">2.60</span>
<span class="pl-ent">jenkins_plugins</span>:
- <span class="pl-s">ant</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate">
</code></pre></div> | <h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto"><code class="notranslate">jenkins_plugin</code></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.0.0"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible_python_interpreter=/usr/bin/python3"><pre class="notranslate"><code class="notranslate">ansible_python_interpreter=/usr/bin/python3
</code></pre></div>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Host: macOS 10.12.4<br>
Controlled server(s): Ubuntu 16.04 LTS (AWS 64-bit AMI)</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">When I run <code class="notranslate">jenkins_plugin</code> tasks, I get the following error (once for each plugin I attempt to install):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [geerlingguy.jenkins : Install Jenkins plugins.] ******************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'TypeError' object has no attribute 'message'
failed: [1.2.3.4] (item=git) => {"failed": true, "item": "git", "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 341, in _get_json_data\n json_data = json.load(r)\n File \"/usr/lib/python3.5/json/__init__.py\", line 268, in load\n parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)\n File \"/usr/lib/python3.5/json/__init__.py\", line 312, in loads\n s.__class__.__name__))\nTypeError: the JSON object must be str, not 'bytes'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 823, in <module>\n main()\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 802, in main\n jp = JenkinsPlugin(module)\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 323, in __init__\n if self._csrf_enabled():\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 331, in _csrf_enabled\n \"%s/%s\" % (self.url, \"api/json\"), 'CSRF')\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 346, in _get_json_data\n details=e.message)\nAttributeError: 'TypeError' object has no attribute 'message'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'TypeError' object has no attribute 'message'"><pre class="notranslate"><code class="notranslate">TASK [geerlingguy.jenkins : Install Jenkins plugins.] ******************************************************************
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'TypeError' object has no attribute 'message'
failed: [1.2.3.4] (item=git) => {"failed": true, "item": "git", "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 341, in _get_json_data\n json_data = json.load(r)\n File \"/usr/lib/python3.5/json/__init__.py\", line 268, in load\n parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)\n File \"/usr/lib/python3.5/json/__init__.py\", line 312, in loads\n s.__class__.__name__))\nTypeError: the JSON object must be str, not 'bytes'\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 823, in <module>\n main()\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 802, in main\n jp = JenkinsPlugin(module)\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 323, in __init__\n if self._csrf_enabled():\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 331, in _csrf_enabled\n \"%s/%s\" % (self.url, \"api/json\"), 'CSRF')\n File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 346, in _get_json_data\n details=e.message)\nAttributeError: 'TypeError' object has no attribute 'message'\n", "module_stdout": "", "msg": "MODULE FAILURE", "rc": 1}
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: AttributeError: 'TypeError' object has no attribute 'message'
</code></pre></div>
<p dir="auto">Formatted more nicely:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 341, in _get_json_data
json_data = json.load(r)
File \"/usr/lib/python3.5/json/__init__.py\", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File \"/usr/lib/python3.5/json/__init__.py\", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 823, in <module>
main()
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 802, in main
jp = JenkinsPlugin(module)
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 323, in __init__
if self._csrf_enabled():
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 331, in _csrf_enabled
\"%s/%s\" % (self.url, \"api/json\"), 'CSRF')
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 346, in _get_json_data
details=e.message)
AttributeError: 'TypeError' object has no attribute 'message'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 341, in _get_json_data
json_data = json.load(r)
File \"/usr/lib/python3.5/json/__init__.py\", line 268, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File \"/usr/lib/python3.5/json/__init__.py\", line 312, in loads
s.__class__.__name__))
TypeError: the JSON object must be str, not 'bytes'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 823, in <module>
main()
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 802, in main
jp = JenkinsPlugin(module)
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 323, in __init__
if self._csrf_enabled():
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 331, in _csrf_enabled
\"%s/%s\" % (self.url, \"api/json\"), 'CSRF')
File \"/tmp/ansible_42hz6qg4/ansible_module_jenkins_plugin.py\", line 346, in _get_json_data
details=e.message)
AttributeError: 'TypeError' object has no attribute 'message'
</code></pre></div>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Use a task like the following:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: Install Jenkins plugins.
jenkins_plugin:
name: "{{ item }}"
params:
url_username: "{{ jenkins_admin_username }}"
url_password: "{{ jenkins_admin_password }}"
updates_expiration: "{{ jenkins_plugin_updates_expiration }}"
url: "http://{{ jenkins_hostname }}:{{ jenkins_http_port }}{{ jenkins_url_prefix }}"
with_items: "{{ jenkins_plugins }}"
notify: restart jenkins"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">Install Jenkins plugins.</span>
<span class="pl-ent">jenkins_plugin</span>:
<span class="pl-ent">name</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ item }}<span class="pl-pds">"</span></span>
<span class="pl-ent">params</span>:
<span class="pl-ent">url_username</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ jenkins_admin_username }}<span class="pl-pds">"</span></span>
<span class="pl-ent">url_password</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ jenkins_admin_password }}<span class="pl-pds">"</span></span>
<span class="pl-ent">updates_expiration</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ jenkins_plugin_updates_expiration }}<span class="pl-pds">"</span></span>
<span class="pl-ent">url</span>: <span class="pl-s"><span class="pl-pds">"</span>http://{{ jenkins_hostname }}:{{ jenkins_http_port }}{{ jenkins_url_prefix }}<span class="pl-pds">"</span></span>
<span class="pl-ent">with_items</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ jenkins_plugins }}<span class="pl-pds">"</span></span>
<span class="pl-ent">notify</span>: <span class="pl-s">restart jenkins</span></pre></div>
<p dir="auto">And run it against a system that only has Python 3 available (and set <code class="notranslate">ansible_python_interpreter=/usr/bin/python3</code> in the host inventory).</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">The <code class="notranslate">jenkins_plugin</code> module should install plugins successfully, and not show an error message.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">See summary above.</p>
<h5 dir="auto">Workaround</h5>
<p dir="auto">My workaround, for now, is to use the method of installing Python 2 listed in this post: <a href="https://www.jeffgeerling.com/blog/2017/how-fix-ssh-errors-when-using-ansible-newer-oses-ubuntu-1604" rel="nofollow">How to fix SSH errors when using Ansible with newer OSes like Ubuntu 16.04</a></p> | 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): yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 16.04</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): not sure</li>
<li>TensorFlow version (use command below): v1.12.0-0-ga6d8ffa</li>
<li>Python version: 3.6.6</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version: CUDA 10.0</li>
<li>GPU model and memory: GeForce GTX 1080 Ti, 11178MiB</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong><br>
When computing a batched matmul with 32-bit precision and batch size >= 2 ** 16, the first 2 ** 16 - 1 batch elements of the result are correct, and the remaining elements are arbitrary - often zero, but not always. When the <code class="notranslate">sess.run</code> call is made multiple times, the result is usually the same or similar. The bug only seems to occur when using a variable or placeholder.</p>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
Every batch element of the result should be correct.</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="import numpy as np
import tensorflow as tf
s = (100000, 1, 1)
p = tf.placeholder(shape=s, dtype=tf.float32)
x = tf.matmul(tf.ones(s), p)
with tf.Session() as sess:
r = sess.run(x, feed_dict={p: np.ones(s, dtype=np.float32)})
print(r[2**16 - 5:2**16 + 5, 0, 0])"><pre class="notranslate"><code class="notranslate">import numpy as np
import tensorflow as tf
s = (100000, 1, 1)
p = tf.placeholder(shape=s, dtype=tf.float32)
x = tf.matmul(tf.ones(s), p)
with tf.Session() as sess:
r = sess.run(x, feed_dict={p: np.ones(s, dtype=np.float32)})
print(r[2**16 - 5:2**16 + 5, 0, 0])
</code></pre></div>
<p dir="auto">Typical output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[1. 1. 1. 1. 0. 0. 0. 0. 0. 0.]"><pre class="notranslate"><code class="notranslate">[1. 1. 1. 1. 0. 0. 0. 0. 0. 0.]
</code></pre></div>
<p dir="auto"><strong>Other info / logs</strong></p> | <p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Linux Ubuntu 18.04</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): binary</li>
<li>TensorFlow version (use command below): v1.14.0-rc1-22-gaf24dc91b5 1.14.0</li>
<li>Python version: 3.6.7</li>
<li>GCC/Compiler version (if compiling from source): 8.2.0</li>
<li>CUDA/cuDNN version: cuda-10.0</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto"><strong>Describe the current behavior</strong><br>
tf.matmul on tensorflow-gpu gave wrong results. Here is a simplified version of the code.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
r = [[ 1.0, 0.0], [0.0, 1.0]]
x, y = np.meshgrid(list(range(400)), list(range(400)))
coords = np.stack([x,y],-1).reshape((400,400,2,1))
coords = tf.convert_to_tensor(coords,dtype=tf.float32)
r1 = tf.constant(r)
newCoords = tf.matmul(r1, coords)
sess = tf.Session()
ret = sess.run(newCoords,feed_dict={r1:r})
plt.matshow(ret[:,:,0,0])
plt.show()"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
r = [[ 1.0, 0.0], [0.0, 1.0]]
x, y = np.meshgrid(list(range(400)), list(range(400)))
coords = np.stack([x,y],-1).reshape((400,400,2,1))
coords = tf.convert_to_tensor(coords,dtype=tf.float32)
r1 = tf.constant(r)
newCoords = tf.matmul(r1, coords)
sess = tf.Session()
ret = sess.run(newCoords,feed_dict={r1:r})
plt.matshow(ret[:,:,0,0])
plt.show()
</code></pre></div>
<p dir="auto">When I ran it on my tensorflow-gpu, here is the result:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://gist.githubusercontent.com/sWizad/3a25d6559ea3308e5cc2731519635c32/raw/2479341ed43fb8e69c94eda3a1362d5cbde7d2d7/Figure_1.png"><img src="https://gist.githubusercontent.com/sWizad/3a25d6559ea3308e5cc2731519635c32/raw/2479341ed43fb8e69c94eda3a1362d5cbde7d2d7/Figure_1.png" alt="bug" style="max-width: 100%;"></a><br>
Looks like it stops computing halfway through and gave the rest 0 as a result.</p>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
Here is the result with CPU:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/45821224/62137176-08631480-b2d5-11e9-8b8e-6348e8b206e7.png"><img src="https://user-images.githubusercontent.com/45821224/62137176-08631480-b2d5-11e9-8b8e-6348e8b206e7.png" alt="CPU" style="max-width: 100%;"></a></p>
<hr>
<p dir="auto">Below is my old post. Initially, I thought the problem was related to TFRecord, but seems like this problem occurs without even using tfrecord too. For completeness, I keep the old example code with tfrecord.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
def parser(serialized_example):
fs = tf.io.parse_single_example(
serialized_example,
features={ "r": tf.FixedLenFeature([4], tf.float32) })
fs["r"] = tf.reshape(fs["r"], [2, 2])
return fs
r = [[ 1.0, 0.0],[0.0, 1.0]]
with tf.io.TFRecordWriter("cc.test") as tfrecord_writer:
feature = {"r": tf.train.Feature(float_list=tf.train.FloatList(value=np.array(r).flatten() ))}
example = tf.train.Example(features=tf.train.Features(feature=feature))
tfrecord_writer.write(example.SerializeToString())
dataset = tf.data.TFRecordDataset(["cc.test"])
dataset = dataset.map(parser).repeat().make_one_shot_iterator()
features = dataset.get_next()
x, y = tf.meshgrid(list(range(400)), list(range(400)))
coords = tf.stack([x, y], -1) #(h,w,2)
coords = tf.expand_dims(tf.cast(coords,tf.float32),-1) #(h,w,2,1)
r1 = features["r"]
r2 = tf.constant(r)
newCoords = tf.matmul(r1, coords)
sess = tf.Session()
ret = sess.run(newCoords[:,:,0,0])
plt.matshow(ret)
plt.show()"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
def parser(serialized_example):
fs = tf.io.parse_single_example(
serialized_example,
features={ "r": tf.FixedLenFeature([4], tf.float32) })
fs["r"] = tf.reshape(fs["r"], [2, 2])
return fs
r = [[ 1.0, 0.0],[0.0, 1.0]]
with tf.io.TFRecordWriter("cc.test") as tfrecord_writer:
feature = {"r": tf.train.Feature(float_list=tf.train.FloatList(value=np.array(r).flatten() ))}
example = tf.train.Example(features=tf.train.Features(feature=feature))
tfrecord_writer.write(example.SerializeToString())
dataset = tf.data.TFRecordDataset(["cc.test"])
dataset = dataset.map(parser).repeat().make_one_shot_iterator()
features = dataset.get_next()
x, y = tf.meshgrid(list(range(400)), list(range(400)))
coords = tf.stack([x, y], -1) #(h,w,2)
coords = tf.expand_dims(tf.cast(coords,tf.float32),-1) #(h,w,2,1)
r1 = features["r"]
r2 = tf.constant(r)
newCoords = tf.matmul(r1, coords)
sess = tf.Session()
ret = sess.run(newCoords[:,:,0,0])
plt.matshow(ret)
plt.show()
</code></pre></div>
<p dir="auto">The code will create "cc.test" file to save the variable <code class="notranslate">r</code> and load it as <code class="notranslate">r1</code>. Then matmul <code class="notranslate">r1</code> with some big varibles.</p> | 1 |
<p dir="auto">React version: 17.0.2</p>
<h2 dir="auto">Steps To Reproduce</h2>
<p dir="auto">The following minimal repro sample is used to indicate a props change in a component:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from "react";
export default function App() {
const [a, setA] = React.useState("a");
return (
<>
<Test a={a} />
<button onClick={() => setA((oldA) => (oldA === "a" ? "b" : "a"))}>
Test
</button>
</>
);
}
const Test = ({ a }) => {
const oldRef = React.useRef(a);
const hasChanged = oldRef.current !== a;
if (hasChanged) {
oldRef.current = a;
}
const changedText = hasChanged ? "yes" : "no";
console.log("Changed: ", changedText);
return (
<>
<div>{a}</div>
<div>Changed: {changedText}</div>
</>
);
};"><pre class="notranslate"><code class="notranslate">import React from "react";
export default function App() {
const [a, setA] = React.useState("a");
return (
<>
<Test a={a} />
<button onClick={() => setA((oldA) => (oldA === "a" ? "b" : "a"))}>
Test
</button>
</>
);
}
const Test = ({ a }) => {
const oldRef = React.useRef(a);
const hasChanged = oldRef.current !== a;
if (hasChanged) {
oldRef.current = a;
}
const changedText = hasChanged ? "yes" : "no";
console.log("Changed: ", changedText);
return (
<>
<div>{a}</div>
<div>Changed: {changedText}</div>
</>
);
};
</code></pre></div>
<p dir="auto">Clicking the "Test" button prints the value "Changed: yes" to the console, while React renders "no":<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5010901/129494759-c7037df4-7e70-4761-8118-e9fd98f45c61.png"><img width="312" alt="yes_no_ref" src="https://user-images.githubusercontent.com/5010901/129494759-c7037df4-7e70-4761-8118-e9fd98f45c61.png" style="max-width: 100%;"></a></p>
<p dir="auto">Note: this works as expected if I remove the <code class="notranslate"><StrictMode></code> wrapper in index.js.</p>
<p dir="auto">Link to code example: <a href="https://codesandbox.io/s/youthful-jang-2xw3i?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/youthful-jang-2xw3i?file=/src/App.js</a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">"Changed: yes" in printed to console, but "Changed: no" is rendered by React.</p>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">"Changed: yes" in printed to console, "Changed: yes" is rendered by React.</p> | <p dir="auto">Hi, I know this issue has been discussed endlessly so I apologize for bringing it up again. I hope this issue is net helpful. <g-emoji class="g-emoji" alias="crossed_fingers" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f91e.png">🤞</g-emoji></p>
<p dir="auto">Quick summary: as of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="596902061" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/18547" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/18547/hovercard" href="https://github.com/facebook/react/pull/18547">#18547</a>, React 17 silences console logs during the second rendering pass in strict mode, in dev. It's a trade-off between the confusion of logging multiple times for a single render pass and the confusion of only logging once even though the code was actually called twice.</p>
<p dir="auto">Note that there's an outstanding PR to make it configurable (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="687437949" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/19710" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/19710/hovercard" href="https://github.com/facebook/react/pull/19710">#19710</a>) but it seems to be stalled awaiting review.</p>
<p dir="auto">Since the change was released, I've seen a number of issues in which folks have been confused by the behavior, e.g.:</p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="810480279" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/20835" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20835/hovercard" href="https://github.com/facebook/react/issues/20835">#20835</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="829346736" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/20982" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20982/hovercard" href="https://github.com/facebook/react/issues/20982">#20982</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="755011790" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/20367" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20367/hovercard" href="https://github.com/facebook/react/issues/20367">#20367</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="728803156" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/20090" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20090/hovercard" href="https://github.com/facebook/react/issues/20090">#20090</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="850373766" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/21178" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/21178/hovercard" href="https://github.com/facebook/react/issues/21178">#21178</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="843407104" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/21126" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/21126/hovercard" href="https://github.com/facebook/react/issues/21126">#21126</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="812466225" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/20851" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20851/hovercard" href="https://github.com/facebook/react/issues/20851">#20851</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="783925678" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/20575" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20575/hovercard" href="https://github.com/facebook/react/issues/20575">#20575</a></li>
</ul>
<p dir="auto">The response from the core team has generally been that, yes, this behavior can be confusing, but the previous behavior was equally if not more confusing. It's a trade-off without a clear answer. (Examples: <a href="https://github.com/facebook/react/issues/20090#issuecomment-715926549" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20090/hovercard">1</a>, <a href="https://github.com/facebook/react/issues/20835#issuecomment-781393974" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20835/hovercard">2</a>, <a href="https://github.com/facebook/react/issues/20367#issuecomment-737610144" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20367/hovercard">3</a>.)</p>
<p dir="auto">I totally understand this perspective and I've tried to internalize it, but, frankly, the longer it's been since the release, the more it seems to me like the new behavior is actually just significantly more confusing for most people. My signal is:</p>
<ol dir="auto">
<li>Anecdotally, it's a recurring source of confusion within my company, much more so than the old behavior was. It's also probably the source of the most "oh, that's weird" reactions (vs. "oh, I get it now") when explained, compared with other React nuances.</li>
<li>The change was only released 8 months ago and there are already many GitHub issues expressing confusion about it, seemingly more than there ever were for the old behavior. (There used to be more instances where people weren't aware that strict mode double-invokes components, but it's not that the new behavior makes this any more clear, it just means that fewer people are now learning this fact, which doesn't seem good?) The rate of new issues also doesn't seem to be slowing as was <a href="https://github.com/facebook/react/issues/20367#issuecomment-737764279" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/20367/hovercard">hypothesized</a>.</li>
<li>The implementing PR (<a href="https://github.com/facebook/react/pull/18547" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/18547/hovercard">#18547</a>) currently has 19 downvotes vs. 2 upvotes. Obviously people who dislike the change are more likely to downvote, but PRs are rarely this controversial and in fact this is the <a href="https://github.com/facebook/react/pulls?q=is%3Apr+sort%3Areactions--1-desc+is%3Aclosed">most downvoted non-docs PR</a> in the whole repo.</li>
</ol>
<p dir="auto">Altogether, the change was clearly well-reasoned and well-intentioned, but now that it's had some time to settle, what I'm asking is:</p>
<ol dir="auto">
<li>Does my perspective on the community reaction align with your perception?</li>
<li>Have you observed a different reaction internally at FB?</li>
<li>In aggregate, does any of this change your original perspective at all?</li>
</ol>
<p dir="auto">I hope this is a fair take and a helpful set of questions to ask. Thanks for taking the time to read.</p>
<hr>
<p dir="auto">(FWIW, if I had to guess, I'd propose that one reason for the new behavior being more confusing is that the old behavior is only confusing until you learn that strict mode = double render, whereas the new behavior continues to be confusing after you learn it because there are subtleties. e.g., "which pass gets silenced again?", "oh, right, it's the second one, so if you log a value and render it, the console might show something different than the screen", "what about when you set state in render?", "what about refs?", etc.)</p> | 1 |
<p dir="auto">We need a solid and unambiguous behaviour of <code class="notranslate">map</code> for sparse matrices which would preserve sparse structure and keep the memory and computational burden small. Please consider conversation related to issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34080421" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/6918" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/6918/hovercard" href="https://github.com/JuliaLang/julia/issues/6918">#6918</a>.</p> | <p dir="auto">There is a lot of unnecessary stuff in <code class="notranslate">make dist</code>:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> static libraries. I don't think they are needed.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> readline libraries. I believe we statically link them so they shouldn't need to be distributed.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 3 copies of libarpack named <code class="notranslate">.so</code>, <code class="notranslate">.so.2</code>, and <code class="notranslate">.so.2.0.0</code>. Might be a problem in the arpack build, copying instead of making links perhaps.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> 20MB of unicode test files. <code class="notranslate">make install</code> specifically runs <code class="notranslate">make -C test/unicode</code>. Why?</li>
</ul>
<p dir="auto">We could also remove the docs, since they are available online.</p> | 0 |
<h3 dir="auto">Problem description</h3>
<p dir="auto">See screenshot <a href="http://prnt.sc/cli338" rel="nofollow">http://prnt.sc/cli338</a><br>
When I open my dialog the content is unaccessible and unscrollable. Of course I could add the autoScrollBodyContent property but first I would like that the dialog uses as much space as possible.</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Create a dialog with lots of content.</p>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 15.3</li>
<li>React: 15.3</li>
<li>Browser:</li>
</ul> | <p dir="auto">Dialogs look great at big screen, but while browsing with phone - it's almost unusable. Contents collapses to small box with scrollbar if params set right. That was very very bad UX for my case. Here it's w/o modifications:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2733862/12972247/43ad758a-d0ac-11e5-84d9-405ace21104f.png"><img src="https://cloud.githubusercontent.com/assets/2733862/12972247/43ad758a-d0ac-11e5-84d9-405ace21104f.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I've modified dialog.js to keep scrolling available while dialog is on and do not collapse contents, just leave it as it is when screen is too small for all dialog. Now it's scrollable and UX is a lot better. I also changed position from fixed to absolute and when showing dialog scroll to top of the screen to see actual dialog, not gray matter if clicked somewhere scrolled down. So now it looks like this:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2733862/12972297/96431386-d0ac-11e5-9527-6cd348bc1fbc.png"><img src="https://cloud.githubusercontent.com/assets/2733862/12972297/96431386-d0ac-11e5-9527-6cd348bc1fbc.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">I can scroll and read all the contents easily. Even on such a small viewport height.</p>
<p dir="auto">I've cloned material-ui v0.13.4 and updating for my needs, so use this code with this info in your mind.</p>
<p dir="auto">Hope some of this will go to main lib for better UX at least add option for such behaviour.</p>
<p dir="auto">dialog.js:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
var React = require('react');
var ReactDOM = require('react-dom');
var WindowListenable = require('./mixins/window-listenable');
var CssEvent = require('./utils/css-event');
var KeyCode = require('./utils/key-code');
var Transitions = require('./styles/transitions');
var StylePropable = require('./mixins/style-propable');
var FlatButton = require('./flat-button');
var Overlay = require('./overlay');
var Paper = require('./paper');
var DefaultRawTheme = require('./styles/raw-themes/light-raw-theme');
var ThemeManager = require('./styles/theme-manager');
var warning = require('warning');
var ReactTransitionGroup = require('react-addons-transition-group');
var TransitionItem = React.createClass({
displayName: 'TransitionItem',
mixins: [StylePropable],
contextTypes: {
muiTheme: React.PropTypes.object
},
//for passing default theme context to children
childContextTypes: {
muiTheme: React.PropTypes.object
},
getChildContext: function getChildContext() {
return {
muiTheme: this.state.muiTheme
};
},
getInitialState: function getInitialState() {
return {
style: {},
muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme)
};
},
//to update theme inside state whenever a new theme is passed down
//from the parent / owner using context
componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) {
var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme;
this.setState({ muiTheme: newMuiTheme });
},
componentWillEnter: function componentWillEnter(callback) {
var spacing = this.state.muiTheme.rawTheme.spacing;
this.setState({
style: {
opacity: 1,
transform: 'translate3d(0, ' + spacing.desktopKeylineIncrement + 'px, 0)'
}
});
setTimeout(callback, 450); // matches transition duration
},
componentWillLeave: function componentWillLeave(callback) {
var _this = this;
this.setState({
style: {
opacity: 0,
transform: 'translate3d(0, 0, 0)'
}
});
setTimeout(function () {
if (_this.isMounted()) callback();
}, 450); // matches transition duration
},
render: function render() {
var _props = this.props;
var style = _props.style;
var other = _objectWithoutProperties(_props, ['style']);
return React.createElement(
'div',
_extends({}, other, { style: this.prepareStyles(this.state.style, style) }),
this.props.children
);
}
});
var Dialog = React.createClass({
displayName: 'Dialog',
mixins: [WindowListenable, StylePropable],
contextTypes: {
muiTheme: React.PropTypes.object
},
//for passing default theme context to children
childContextTypes: {
muiTheme: React.PropTypes.object
},
getChildContext: function getChildContext() {
return {
muiTheme: this.state.muiTheme
};
},
propTypes: {
actions: React.PropTypes.array,
autoDetectWindowHeight: React.PropTypes.bool,
autoScrollBodyContent: React.PropTypes.bool,
bodyStyle: React.PropTypes.object,
contentClassName: React.PropTypes.string,
contentStyle: React.PropTypes.object,
openImmediately: React.PropTypes.bool,
repositionOnUpdate: React.PropTypes.bool,
style: React.PropTypes.object,
title: React.PropTypes.node,
defaultOpen: React.PropTypes.bool,
open: React.PropTypes.bool,
modal: React.PropTypes.bool,
onDismiss: React.PropTypes.func,
onShow: React.PropTypes.func,
onRequestClose: React.PropTypes.func,
actionFocus: React.PropTypes.string,
titleStyle: React.PropTypes.object
},
windowListeners: {
keyup: '_handleWindowKeyUp',
resize: '_handleResize'
},
getDefaultProps: function getDefaultProps() {
return {
autoDetectWindowHeight: false,
autoScrollBodyContent: false,
actions: [],
repositionOnUpdate: false,
defaultOpen: false,
open: null
};
},
getInitialState: function getInitialState() {
if (process.env.NODE_ENV !== 'production') {
this._testDeprecations();
}
var open = this.props.open;
if (open === null) {
open = this.props.openImmediately || this.props.defaultOpen;
}
return {
open: open,
muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme)
};
},
//to update theme inside state whenever a new theme is passed down
//from the parent / owner using context
componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) {
var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme;
this.setState({ muiTheme: newMuiTheme });
if (process.env.NODE_ENV !== 'production') {
this._testDeprecations();
}
if (nextProps.open !== this.props.open) {
if (nextProps.open && !this.state.open) {
this._show();
} else if (!nextProps.open && this.state.open) {
this._dismiss();
}
}
},
componentDidMount: function componentDidMount() {
this._positionDialog();
if (this.state.open) {
this.refs.dialogOverlay.preventScrolling();
}
},
componentDidUpdate: function componentDidUpdate() {
this._positionDialog();
},
getStyles: function getStyles() {
var spacing = this.state.muiTheme.rawTheme.spacing;
var main = {
position: 'absolute',
boxSizing: 'border-box',
WebkitTapHighlightColor: 'rgba(0,0,0,0)',
zIndex: 10,
top: 0,
left: -10000,
width: '100%',
height: '100%',
transition: Transitions.easeOut('0ms', 'left', '450ms')
};
var content = {
boxSizing: 'border-box',
WebkitTapHighlightColor: 'rgba(0,0,0,0)',
transition: Transitions.easeOut(),
position: 'relative',
width: '75%',
maxWidth: spacing.desktopKeylineIncrement * 12,
margin: '0 auto',
zIndex: 10
};
var body = {
padding: spacing.desktopGutter,
overflowY: this.props.autoScrollBodyContent ? 'auto' : 'hidden',
overflowX: 'hidden'
};
var gutter = spacing.desktopGutter + 'px ';
var title = {
margin: 0,
padding: gutter + gutter + '0 ' + gutter,
color: this.state.muiTheme.rawTheme.palette.textColor,
fontSize: 24,
lineHeight: '32px',
fontWeight: '400'
};
if (this.state.open) {
main = this.mergeStyles(main, {
left: 0,
transition: Transitions.easeOut('0ms', 'left', '0ms')
});
}
return {
main: this.mergeStyles(main, this.props.style),
content: this.mergeStyles(content, this.props.contentStyle),
paper: {
background: this.state.muiTheme.rawTheme.palette.canvasColor
},
body: this.mergeStyles(body, this.props.bodyStyle),
title: this.mergeStyles(title, this.props.titleStyle)
};
},
render: function render() {
var styles = this.getStyles();
var actions = this._getActionsContainer(this.props.actions);
var title = undefined;
if (this.props.title) {
// If the title is a string, wrap in an h3 tag.
// If not, just use it as a node.
title = Object.prototype.toString.call(this.props.title) === '[object String]' ? React.createElement(
'h3',
{ style: this.prepareStyles(styles.title) },
this.props.title
) : this.props.title;
}
return React.createElement(
'div',
{ ref: 'container', style: this.prepareStyles(styles.main) },
React.createElement(
ReactTransitionGroup,
{ component: 'div', ref: 'dialogWindow' },
this.state.open && React.createElement(
TransitionItem,
{
className: this.props.contentClassName,
style: styles.content },
React.createElement(
Paper,
{
style: styles.paper,
zDepth: 4 },
title,
React.createElement(
'div',
{ ref: 'dialogContent', style: this.prepareStyles(styles.body) },
this.props.children
),
actions
)
)
),
React.createElement(Overlay, {
ref: 'dialogOverlay',
show: this.state.open,
autoLockScrolling: false,
onTouchTap: this._handleOverlayTouchTap })
);
},
isOpen: function isOpen() {
return this.state.open;
},
_testDeprecations: function _testDeprecations() {
process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('openImmediately'), 'openImmediately has been deprecated in favor of defaultOpen') : undefined;
process.env.NODE_ENV !== 'production' ? warning(!(typeof this.props.onShow === 'function'), 'onShow will be removed in favor of explicitly setting open') : undefined;
process.env.NODE_ENV !== 'production' ? warning(!(typeof this.props.onDismiss === 'function'), 'onDismiss will be removed in favor of explicitly setting open and can be replaced by onRequestClose') : undefined;
process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('modal'), 'modal will be removed in favor of explicitly setting open and onRequestClose') : undefined;
},
_getAction: function _getAction(actionJSON, key) {
var _this2 = this;
var props = {
key: key,
secondary: true,
onClick: actionJSON.onClick,
onTouchTap: function onTouchTap() {
if (actionJSON.onTouchTap) {
actionJSON.onTouchTap.call(undefined);
}
if (!(actionJSON.onClick || actionJSON.onTouchTap)) {
_this2._requestClose(true);
}
},
label: actionJSON.text,
style: {
marginRight: 8
}
};
if (actionJSON.ref) {
props.ref = actionJSON.ref;
props.keyboardFocused = actionJSON.ref === this.props.actionFocus;
}
if (actionJSON.id) {
props.id = actionJSON.id;
}
return React.createElement(FlatButton, props);
},
_getActionsContainer: function _getActionsContainer(actions) {
var actionContainer = undefined;
var actionObjects = [];
var actionStyle = {
boxSizing: 'border-box',
WebkitTapHighlightColor: 'rgba(0,0,0,0)',
padding: 8,
marginBottom: 8,
width: '100%',
textAlign: 'right'
};
if (actions.length) {
for (var i = 0; i < actions.length; i++) {
var currentAction = actions[i];
//if the current action isn't a react object, create one
if (!React.isValidElement(currentAction)) {
currentAction = this._getAction(currentAction, i);
}
actionObjects.push(currentAction);
}
actionContainer = React.createElement(
'div',
{ style: this.prepareStyles(actionStyle) },
actionObjects
);
}
return actionContainer;
},
_positionDialog: function _positionDialog() {
if (this.state.open) {
var clientHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
var container = ReactDOM.findDOMNode(this);
var dialogWindow = ReactDOM.findDOMNode(this.refs.dialogWindow);
var dialogContent = ReactDOM.findDOMNode(this.refs.dialogContent);
var minPaddingTop = 16;
//Reset the height in case the window was resized.
dialogWindow.style.height = '';
dialogContent.style.height = '';
var dialogWindowHeight = dialogWindow.offsetHeight;
var paddingTop = (clientHeight - dialogWindowHeight) / 2 - 64;
if (paddingTop < minPaddingTop) paddingTop = minPaddingTop;
//Vertically center the dialog window, but make sure it doesn't
//transition to that position.
if (this.props.repositionOnUpdate || !container.style.paddingTop) {
container.style.paddingTop = paddingTop + 'px';
}
// Force a height if the dialog is taller than clientHeight
if (this.props.autoDetectWindowHeight || this.props.autoScrollBodyContent) {
var styles = this.getStyles();
var maxDialogContentHeight = clientHeight - 2 * (styles.body.padding + 64);
if (this.props.title) maxDialogContentHeight -= dialogContent.previousSibling.offsetHeight;
if (this.props.actions.length) maxDialogContentHeight -= dialogContent.nextSibling.offsetHeight;
dialogContent.style.maxHeight = maxDialogContentHeight + 'px';
}
}
},
show: function show() {
process.env.NODE_ENV !== 'production' ? warning(false, 'show has been deprecated in favor of explicitly setting the open property.') : undefined;
this._show();
},
_onShow: function _onShow() {
if (this.props.onShow) {
this.props.onShow();
}
},
_show: function _show() {
//this.refs.dialogOverlay.preventScrolling();
window.scroll(0, 0);
this.setState({
open: true
}, this._onShow);
},
dismiss: function dismiss() {
process.env.NODE_ENV !== 'production' ? warning(false, 'dismiss has been deprecated in favor of explicitly setting the open property.') : undefined;
this._dismiss();
},
_onDismiss: function _onDismiss() {
if (this.props.onDismiss) {
this.props.onDismiss();
}
},
_dismiss: function _dismiss() {
var _this3 = this;
window.scroll(0, 0); // bf if one dialog is open and it opens another
CssEvent.onTransitionEnd(ReactDOM.findDOMNode(this), function () {
_this3.refs.dialogOverlay.allowScrolling();
});
this.setState({
open: false
}, this._onDismiss);
},
_requestClose: function _requestClose(buttonClicked) {
process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('modal'), 'modal will be removed in favor of explicitly setting open and onRequestClose') : undefined;
if (!buttonClicked && this.props.modal) {
return;
}
// Close the dialog if the open state is not explicitly set.
if (this.props.open === null) {
this._dismiss();
}
if (this.props.onRequestClose) {
this.props.onRequestClose(!!buttonClicked);
}
},
_handleOverlayTouchTap: function _handleOverlayTouchTap() {
this._requestClose(false);
},
_handleWindowKeyUp: function _handleWindowKeyUp(event) {
if (event.keyCode === KeyCode.ESC) {
this._requestClose(false);
}
},
_handleResize: function _handleResize() {
if (this.state.open) {
//this.refs.dialogOverlay.preventScrolling();
window.scroll(0, 0);
this._positionDialog();
}
}
});
module.exports = Dialog;"><pre class="notranslate"><code class="notranslate">'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
var React = require('react');
var ReactDOM = require('react-dom');
var WindowListenable = require('./mixins/window-listenable');
var CssEvent = require('./utils/css-event');
var KeyCode = require('./utils/key-code');
var Transitions = require('./styles/transitions');
var StylePropable = require('./mixins/style-propable');
var FlatButton = require('./flat-button');
var Overlay = require('./overlay');
var Paper = require('./paper');
var DefaultRawTheme = require('./styles/raw-themes/light-raw-theme');
var ThemeManager = require('./styles/theme-manager');
var warning = require('warning');
var ReactTransitionGroup = require('react-addons-transition-group');
var TransitionItem = React.createClass({
displayName: 'TransitionItem',
mixins: [StylePropable],
contextTypes: {
muiTheme: React.PropTypes.object
},
//for passing default theme context to children
childContextTypes: {
muiTheme: React.PropTypes.object
},
getChildContext: function getChildContext() {
return {
muiTheme: this.state.muiTheme
};
},
getInitialState: function getInitialState() {
return {
style: {},
muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme)
};
},
//to update theme inside state whenever a new theme is passed down
//from the parent / owner using context
componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) {
var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme;
this.setState({ muiTheme: newMuiTheme });
},
componentWillEnter: function componentWillEnter(callback) {
var spacing = this.state.muiTheme.rawTheme.spacing;
this.setState({
style: {
opacity: 1,
transform: 'translate3d(0, ' + spacing.desktopKeylineIncrement + 'px, 0)'
}
});
setTimeout(callback, 450); // matches transition duration
},
componentWillLeave: function componentWillLeave(callback) {
var _this = this;
this.setState({
style: {
opacity: 0,
transform: 'translate3d(0, 0, 0)'
}
});
setTimeout(function () {
if (_this.isMounted()) callback();
}, 450); // matches transition duration
},
render: function render() {
var _props = this.props;
var style = _props.style;
var other = _objectWithoutProperties(_props, ['style']);
return React.createElement(
'div',
_extends({}, other, { style: this.prepareStyles(this.state.style, style) }),
this.props.children
);
}
});
var Dialog = React.createClass({
displayName: 'Dialog',
mixins: [WindowListenable, StylePropable],
contextTypes: {
muiTheme: React.PropTypes.object
},
//for passing default theme context to children
childContextTypes: {
muiTheme: React.PropTypes.object
},
getChildContext: function getChildContext() {
return {
muiTheme: this.state.muiTheme
};
},
propTypes: {
actions: React.PropTypes.array,
autoDetectWindowHeight: React.PropTypes.bool,
autoScrollBodyContent: React.PropTypes.bool,
bodyStyle: React.PropTypes.object,
contentClassName: React.PropTypes.string,
contentStyle: React.PropTypes.object,
openImmediately: React.PropTypes.bool,
repositionOnUpdate: React.PropTypes.bool,
style: React.PropTypes.object,
title: React.PropTypes.node,
defaultOpen: React.PropTypes.bool,
open: React.PropTypes.bool,
modal: React.PropTypes.bool,
onDismiss: React.PropTypes.func,
onShow: React.PropTypes.func,
onRequestClose: React.PropTypes.func,
actionFocus: React.PropTypes.string,
titleStyle: React.PropTypes.object
},
windowListeners: {
keyup: '_handleWindowKeyUp',
resize: '_handleResize'
},
getDefaultProps: function getDefaultProps() {
return {
autoDetectWindowHeight: false,
autoScrollBodyContent: false,
actions: [],
repositionOnUpdate: false,
defaultOpen: false,
open: null
};
},
getInitialState: function getInitialState() {
if (process.env.NODE_ENV !== 'production') {
this._testDeprecations();
}
var open = this.props.open;
if (open === null) {
open = this.props.openImmediately || this.props.defaultOpen;
}
return {
open: open,
muiTheme: this.context.muiTheme ? this.context.muiTheme : ThemeManager.getMuiTheme(DefaultRawTheme)
};
},
//to update theme inside state whenever a new theme is passed down
//from the parent / owner using context
componentWillReceiveProps: function componentWillReceiveProps(nextProps, nextContext) {
var newMuiTheme = nextContext.muiTheme ? nextContext.muiTheme : this.state.muiTheme;
this.setState({ muiTheme: newMuiTheme });
if (process.env.NODE_ENV !== 'production') {
this._testDeprecations();
}
if (nextProps.open !== this.props.open) {
if (nextProps.open && !this.state.open) {
this._show();
} else if (!nextProps.open && this.state.open) {
this._dismiss();
}
}
},
componentDidMount: function componentDidMount() {
this._positionDialog();
if (this.state.open) {
this.refs.dialogOverlay.preventScrolling();
}
},
componentDidUpdate: function componentDidUpdate() {
this._positionDialog();
},
getStyles: function getStyles() {
var spacing = this.state.muiTheme.rawTheme.spacing;
var main = {
position: 'absolute',
boxSizing: 'border-box',
WebkitTapHighlightColor: 'rgba(0,0,0,0)',
zIndex: 10,
top: 0,
left: -10000,
width: '100%',
height: '100%',
transition: Transitions.easeOut('0ms', 'left', '450ms')
};
var content = {
boxSizing: 'border-box',
WebkitTapHighlightColor: 'rgba(0,0,0,0)',
transition: Transitions.easeOut(),
position: 'relative',
width: '75%',
maxWidth: spacing.desktopKeylineIncrement * 12,
margin: '0 auto',
zIndex: 10
};
var body = {
padding: spacing.desktopGutter,
overflowY: this.props.autoScrollBodyContent ? 'auto' : 'hidden',
overflowX: 'hidden'
};
var gutter = spacing.desktopGutter + 'px ';
var title = {
margin: 0,
padding: gutter + gutter + '0 ' + gutter,
color: this.state.muiTheme.rawTheme.palette.textColor,
fontSize: 24,
lineHeight: '32px',
fontWeight: '400'
};
if (this.state.open) {
main = this.mergeStyles(main, {
left: 0,
transition: Transitions.easeOut('0ms', 'left', '0ms')
});
}
return {
main: this.mergeStyles(main, this.props.style),
content: this.mergeStyles(content, this.props.contentStyle),
paper: {
background: this.state.muiTheme.rawTheme.palette.canvasColor
},
body: this.mergeStyles(body, this.props.bodyStyle),
title: this.mergeStyles(title, this.props.titleStyle)
};
},
render: function render() {
var styles = this.getStyles();
var actions = this._getActionsContainer(this.props.actions);
var title = undefined;
if (this.props.title) {
// If the title is a string, wrap in an h3 tag.
// If not, just use it as a node.
title = Object.prototype.toString.call(this.props.title) === '[object String]' ? React.createElement(
'h3',
{ style: this.prepareStyles(styles.title) },
this.props.title
) : this.props.title;
}
return React.createElement(
'div',
{ ref: 'container', style: this.prepareStyles(styles.main) },
React.createElement(
ReactTransitionGroup,
{ component: 'div', ref: 'dialogWindow' },
this.state.open && React.createElement(
TransitionItem,
{
className: this.props.contentClassName,
style: styles.content },
React.createElement(
Paper,
{
style: styles.paper,
zDepth: 4 },
title,
React.createElement(
'div',
{ ref: 'dialogContent', style: this.prepareStyles(styles.body) },
this.props.children
),
actions
)
)
),
React.createElement(Overlay, {
ref: 'dialogOverlay',
show: this.state.open,
autoLockScrolling: false,
onTouchTap: this._handleOverlayTouchTap })
);
},
isOpen: function isOpen() {
return this.state.open;
},
_testDeprecations: function _testDeprecations() {
process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('openImmediately'), 'openImmediately has been deprecated in favor of defaultOpen') : undefined;
process.env.NODE_ENV !== 'production' ? warning(!(typeof this.props.onShow === 'function'), 'onShow will be removed in favor of explicitly setting open') : undefined;
process.env.NODE_ENV !== 'production' ? warning(!(typeof this.props.onDismiss === 'function'), 'onDismiss will be removed in favor of explicitly setting open and can be replaced by onRequestClose') : undefined;
process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('modal'), 'modal will be removed in favor of explicitly setting open and onRequestClose') : undefined;
},
_getAction: function _getAction(actionJSON, key) {
var _this2 = this;
var props = {
key: key,
secondary: true,
onClick: actionJSON.onClick,
onTouchTap: function onTouchTap() {
if (actionJSON.onTouchTap) {
actionJSON.onTouchTap.call(undefined);
}
if (!(actionJSON.onClick || actionJSON.onTouchTap)) {
_this2._requestClose(true);
}
},
label: actionJSON.text,
style: {
marginRight: 8
}
};
if (actionJSON.ref) {
props.ref = actionJSON.ref;
props.keyboardFocused = actionJSON.ref === this.props.actionFocus;
}
if (actionJSON.id) {
props.id = actionJSON.id;
}
return React.createElement(FlatButton, props);
},
_getActionsContainer: function _getActionsContainer(actions) {
var actionContainer = undefined;
var actionObjects = [];
var actionStyle = {
boxSizing: 'border-box',
WebkitTapHighlightColor: 'rgba(0,0,0,0)',
padding: 8,
marginBottom: 8,
width: '100%',
textAlign: 'right'
};
if (actions.length) {
for (var i = 0; i < actions.length; i++) {
var currentAction = actions[i];
//if the current action isn't a react object, create one
if (!React.isValidElement(currentAction)) {
currentAction = this._getAction(currentAction, i);
}
actionObjects.push(currentAction);
}
actionContainer = React.createElement(
'div',
{ style: this.prepareStyles(actionStyle) },
actionObjects
);
}
return actionContainer;
},
_positionDialog: function _positionDialog() {
if (this.state.open) {
var clientHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
var container = ReactDOM.findDOMNode(this);
var dialogWindow = ReactDOM.findDOMNode(this.refs.dialogWindow);
var dialogContent = ReactDOM.findDOMNode(this.refs.dialogContent);
var minPaddingTop = 16;
//Reset the height in case the window was resized.
dialogWindow.style.height = '';
dialogContent.style.height = '';
var dialogWindowHeight = dialogWindow.offsetHeight;
var paddingTop = (clientHeight - dialogWindowHeight) / 2 - 64;
if (paddingTop < minPaddingTop) paddingTop = minPaddingTop;
//Vertically center the dialog window, but make sure it doesn't
//transition to that position.
if (this.props.repositionOnUpdate || !container.style.paddingTop) {
container.style.paddingTop = paddingTop + 'px';
}
// Force a height if the dialog is taller than clientHeight
if (this.props.autoDetectWindowHeight || this.props.autoScrollBodyContent) {
var styles = this.getStyles();
var maxDialogContentHeight = clientHeight - 2 * (styles.body.padding + 64);
if (this.props.title) maxDialogContentHeight -= dialogContent.previousSibling.offsetHeight;
if (this.props.actions.length) maxDialogContentHeight -= dialogContent.nextSibling.offsetHeight;
dialogContent.style.maxHeight = maxDialogContentHeight + 'px';
}
}
},
show: function show() {
process.env.NODE_ENV !== 'production' ? warning(false, 'show has been deprecated in favor of explicitly setting the open property.') : undefined;
this._show();
},
_onShow: function _onShow() {
if (this.props.onShow) {
this.props.onShow();
}
},
_show: function _show() {
//this.refs.dialogOverlay.preventScrolling();
window.scroll(0, 0);
this.setState({
open: true
}, this._onShow);
},
dismiss: function dismiss() {
process.env.NODE_ENV !== 'production' ? warning(false, 'dismiss has been deprecated in favor of explicitly setting the open property.') : undefined;
this._dismiss();
},
_onDismiss: function _onDismiss() {
if (this.props.onDismiss) {
this.props.onDismiss();
}
},
_dismiss: function _dismiss() {
var _this3 = this;
window.scroll(0, 0); // bf if one dialog is open and it opens another
CssEvent.onTransitionEnd(ReactDOM.findDOMNode(this), function () {
_this3.refs.dialogOverlay.allowScrolling();
});
this.setState({
open: false
}, this._onDismiss);
},
_requestClose: function _requestClose(buttonClicked) {
process.env.NODE_ENV !== 'production' ? warning(!this.props.hasOwnProperty('modal'), 'modal will be removed in favor of explicitly setting open and onRequestClose') : undefined;
if (!buttonClicked && this.props.modal) {
return;
}
// Close the dialog if the open state is not explicitly set.
if (this.props.open === null) {
this._dismiss();
}
if (this.props.onRequestClose) {
this.props.onRequestClose(!!buttonClicked);
}
},
_handleOverlayTouchTap: function _handleOverlayTouchTap() {
this._requestClose(false);
},
_handleWindowKeyUp: function _handleWindowKeyUp(event) {
if (event.keyCode === KeyCode.ESC) {
this._requestClose(false);
}
},
_handleResize: function _handleResize() {
if (this.state.open) {
//this.refs.dialogOverlay.preventScrolling();
window.scroll(0, 0);
this._positionDialog();
}
}
});
module.exports = Dialog;
</code></pre></div> | 1 |
<ul dir="auto">
<li>OpenCV => 4.5.1</li>
<li>Operating System / Platform =>ubuntu20.04</li>
<li>Compiler => gcc-8.4<br>
I compiled clfft by myself, and library located in /usr/local/lib64, and I have add this directory to CMAKE_LIBRARY_PATH in opencv toplevel CMakeLists.txt, I found clfftInitSetupData class in the clfft source code? so what's wrong?<br>
does my compile flag wrong when I compile clfft? or wrong gcc version?</li>
</ul> | <p dir="auto">OpenCV supports clAmdFft, but I think it would be better to replace clAmdFft with clFFT, the newer version of clAmdFft. The AMD website links to clFFT so it's difficult for new users to find clAmdFft. The small trouble is that the library file name and function names are renamed from clFFT.</p> | 1 |
<p dir="auto">I am referencing a <code class="notranslate">statsmodels</code> issue <a href="https://github.com/statsmodels/statsmodels/issues/5419#issuecomment-602699607" data-hovercard-type="issue" data-hovercard-url="/statsmodels/statsmodels/issues/5419/hovercard">(#5419, for which I just added a comment)</a> because it affects the kde plots in <code class="notranslate">seaborn</code> when <code class="notranslate">IQR = 0</code> leads to <code class="notranslate">bw = 0</code></p>
<p dir="auto">I wonder if there is a possibility to handle it with <code class="notranslate">try except</code>.<br>
It was suggested by someone with clearly a better understanding that I have maybe to "check if IQR is 0 and then perhaps add noise (with some level) so the IQR and SD are similar. If you have SD = 0, then ... then it should just plot point ... maybe"</p> | <h3 dir="auto">Description</h3>
<p dir="auto">Hey Everybody,<br>
I have encountered unexpected behavior when I tried to create a seaborn distplot from an array with many zeros. I know that this is probably a weird corner case that doesn't seem very urgent but I think there is some value reporting it. I could not manage to create suitable synthetic data but I have included my original data to reproduce it, I hope that's ok.<br>
Keep on the good work with seaborn, its a pleasure using it!</p>
<p dir="auto">Best,<br>
Henry</p>
<h3 dir="auto">Versions:</h3>
<p dir="auto">Seaborn='0.10.0'<br>
Matplotlib='3.1.3'</p>
<h3 dir="auto">Error Message:</h3>
<div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="C:\Users\...\.conda\envs\...\python.exe C:/Users/henry/.PyCharmCE2019.3/config/scratches/scratch.py
Traceback (most recent call last):
File "C:\Users\...\.conda\envs\...\lib\site-packages\statsmodels\nonparametric\kde.py", line 451, in kdensityfft
bw = float(bw)
ValueError: could not convert string to float: 'scott'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/.../.PyCharmCE2019.3/config/scratches/scratch.py", line 555, in <module>
ax = sns.distplot(a, rug=True, hist=False, label='UW')
File "C:\Users\...\.conda\envs\...\lib\site-packages\seaborn\distributions.py", line 233, in distplot
kdeplot(a, vertical=vertical, ax=ax, color=kde_color, **kde_kws)
File "C:\Users\...\.conda\envs\...\lib\site-packages\seaborn\distributions.py", line 705, in kdeplot
cumulative=cumulative, **kwargs)
File "C:\Users\...\.conda\envs\...\lib\site-packages\seaborn\distributions.py", line 295, in _univariate_kdeplot
cumulative=cumulative)
File "C:\Users\...\.conda\envs\...\lib\site-packages\seaborn\distributions.py", line 367, in _statsmodels_univariate_kde
kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)
File "C:\Users\...\.conda\envs\...\lib\site-packages\statsmodels\nonparametric\kde.py", line 140, in fit
clip=clip, cut=cut)
File "C:\Users\...\.conda\envs\....\lib\site-packages\statsmodels\nonparametric\kde.py", line 453, in kdensityfft
bw = bandwidths.select_bandwidth(X, bw, kern) # will cross-val fit this pattern?
File "C:\Users\....\.conda\envs\....\lib\site-packages\statsmodels\nonparametric\bandwidths.py", line 174, in select_bandwidth
raise RuntimeError(err)
RuntimeError: Selected KDE bandwidth is 0. Cannot estiamte density.
Process finished with exit code 1"><pre class="notranslate"><span class="pl-c1">C:\Users\...\.conda\envs\...\python.exe C:/Users/henry/.PyCharmCE2019.3/config/scratches/scratch.py</span>
<span class="pl-c1">Traceback (most recent call last):</span>
<span class="pl-c1"> File "C:\Users\...\.conda\envs\...\lib\site-packages\statsmodels\nonparametric\kde.py", line 451, in kdensityfft</span>
<span class="pl-c1"> bw = float(bw)</span>
<span class="pl-c1">ValueError: could not convert string to float: 'scott'</span>
<span class="pl-c1">During handling of the above exception, another exception occurred:</span>
<span class="pl-c1">Traceback (most recent call last):</span>
<span class="pl-c1"> File "C:/Users/.../.PyCharmCE2019.3/config/scratches/scratch.py", line 555, in <module></span>
<span class="pl-c1"> ax = sns.distplot(a, rug=True, hist=False, label='UW')</span>
<span class="pl-c1"> File "C:\Users\...\.conda\envs\...\lib\site-packages\seaborn\distributions.py", line 233, in distplot</span>
<span class="pl-c1"> kdeplot(a, vertical=vertical, ax=ax, color=kde_color, **kde_kws)</span>
<span class="pl-c1"> File "C:\Users\...\.conda\envs\...\lib\site-packages\seaborn\distributions.py", line 705, in kdeplot</span>
<span class="pl-c1"> cumulative=cumulative, **kwargs)</span>
<span class="pl-c1"> File "C:\Users\...\.conda\envs\...\lib\site-packages\seaborn\distributions.py", line 295, in _univariate_kdeplot</span>
<span class="pl-c1"> cumulative=cumulative)</span>
<span class="pl-c1"> File "C:\Users\...\.conda\envs\...\lib\site-packages\seaborn\distributions.py", line 367, in _statsmodels_univariate_kde</span>
<span class="pl-c1"> kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)</span>
<span class="pl-c1"> File "C:\Users\...\.conda\envs\...\lib\site-packages\statsmodels\nonparametric\kde.py", line 140, in fit</span>
<span class="pl-c1"> clip=clip, cut=cut)</span>
<span class="pl-c1"> File "C:\Users\...\.conda\envs\....\lib\site-packages\statsmodels\nonparametric\kde.py", line 453, in kdensityfft</span>
<span class="pl-c1"> bw = bandwidths.select_bandwidth(X, bw, kern) # will cross-val fit this pattern?</span>
<span class="pl-c1"> File "C:\Users\....\.conda\envs\....\lib\site-packages\statsmodels\nonparametric\bandwidths.py", line 174, in select_bandwidth</span>
<span class="pl-c1"> raise RuntimeError(err)</span>
<span class="pl-c1">RuntimeError: Selected KDE bandwidth is 0. Cannot estiamte density.</span>
<span class="pl-c1">Process finished with exit code 1</span></pre></div>
<h3 dir="auto">Example code</h3>
<details><summary>very long example code</summary>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import seaborn as sns
a = [ 6.44158112e+00, 2.22931748e+00, 1.90461774e+00, 1.62838104e+00,
1.44450213e+00, 1.32120694e+00, -1.37449727e+00, -1.34068670e+00,
-1.22437811e+00, 1.08203506e+00, 1.00687963e+00, -1.08464463e+00,
-9.92682231e-01, 8.77397031e-01, -8.18224584e-01, -7.88574259e-01,
-7.39802046e-01, 7.26716930e-01, 7.20018861e-01, 7.05212335e-01,
-6.44688312e-01, 6.36198782e-01, -5.76895770e-01, 6.03964108e-01,
5.76204893e-01, 5.69689909e-01, 5.52118112e-01, 5.25401516e-01,
-4.18012528e-01, 4.59933207e-01, 4.43555421e-01, 4.41596376e-01,
4.39098156e-01, 4.28526102e-01, 4.20569936e-01, 4.15588319e-01,
3.98167467e-01, 3.79937382e-01, 3.69704675e-01, 3.48799274e-01,
3.15384843e-01, 3.15267651e-01, 3.12962586e-01, 2.89400742e-01,
2.95672458e-01, -2.66440651e-01, 2.53409343e-01, 2.45168039e-01,
2.33842507e-01, 2.18591293e-01, 2.17178734e-01, 2.14425229e-01,
2.11277792e-01, 2.10006902e-01, 1.97309425e-01, 1.82623551e-01,
1.78820952e-01, 1.75251894e-01, 1.69346510e-01, -2.23685152e-01,
-2.23374659e-01, -2.17195278e-01, -2.20288950e-01, 1.63397981e-01,
1.55450837e-01, 1.55034695e-01, 1.50501798e-01, 1.42519918e-01,
1.31807907e-01, 1.38860666e-01, 1.35390009e-01, 1.37646864e-01,
1.37242513e-01, 1.21238699e-01, 1.19726271e-01, 1.13726245e-01,
1.11266238e-01, 1.10557847e-01, 1.08976907e-01, -2.14119343e-01,
1.05026061e-01, 1.05515901e-01, 9.95445982e-02, 9.10744981e-02,
-2.09274377e-01, -2.03248740e-01, -2.01819404e-01, -2.01263355e-01,
-2.00151327e-01, -1.99609002e-01, -1.99324882e-01, -1.99020335e-01,
-1.98850700e-01, -1.97380528e-01, -1.95276893e-01, -1.92891803e-01,
-1.89409380e-01, -1.89497128e-01, -1.89755567e-01, -1.90709324e-01,
-1.91072552e-01, -1.91251750e-01, -1.91612635e-01, -1.91484739e-01,
-1.91446185e-01, -1.87141562e-01, -1.86916499e-01, -1.85361033e-01,
-1.78510889e-01, -1.79920662e-01, -1.82477178e-01, -1.83361572e-01,
-1.84418528e-01, -1.84353793e-01, -1.84203884e-01, -1.63041863e-01,
-1.79187162e-01, -1.76616619e-01, -1.76058466e-01, -1.81513868e-01,
-1.74516815e-01, -1.75429097e-01, -1.64305490e-01, -1.73209698e-01,
-1.81287911e-01, -1.72931546e-01, -1.81305962e-01, -1.67938028e-01,
-1.68547032e-01, -1.70654936e-01, -1.71224488e-01, -1.70046221e-01,
-1.69553459e-01, -1.67849033e-01, -1.68964827e-01, -1.68950514e-01,
-1.69532848e-01, 8.37116094e-02, 8.23125124e-02, 8.15529990e-02,
8.11596805e-02, 8.08502063e-02, 7.72547025e-02, 7.65640185e-02,
7.01004415e-02, 6.62348263e-02, 6.59924193e-02, 6.46424494e-02,
5.83199746e-02, -1.61669672e-01, -1.61406270e-01, -1.61529541e-01,
-1.60591827e-01, -1.60479389e-01, -1.59761896e-01, -1.59576433e-01,
-1.56387956e-01, -1.55819170e-01, -1.57978147e-01, -1.36274966e-01,
-1.43409731e-01, -1.43110906e-01, -1.58415985e-01, -1.53305601e-01,
-1.46081258e-01, -1.58444168e-01, -1.52835757e-01, -1.38571159e-01,
-1.52311674e-01, -1.38007676e-01, -1.50877098e-01, -1.50393344e-01,
-1.47580092e-01, -1.48095339e-01, -1.49929040e-01, -1.50207709e-01,
-1.47717919e-01, 5.67238171e-02, 5.56471282e-02, 5.40983928e-02,
5.38816730e-02, 5.43976521e-02, 4.58309306e-02, 5.05709835e-02,
4.96411935e-02, 4.94740307e-02, -1.29477913e-01, -1.31885780e-01,
-1.32769128e-01, -1.35228537e-01, -1.38915251e-01, -1.33084403e-01,
-1.27640698e-01, -1.35115744e-01, -1.48678080e-01, -1.49160991e-01,
-1.49138897e-01, -1.24029421e-01, -1.49157217e-01, -1.22302996e-01,
-1.21170579e-01, -9.81788195e-02, -1.18786846e-01, -1.20252946e-01,
-1.20895307e-01, -1.19927552e-01, -1.15299137e-01, -1.16483578e-01,
-1.00593212e-01, -9.98744104e-02, -1.00191733e-01, -1.15729095e-01,
-1.13453486e-01, -1.11293466e-01, -1.09606570e-01, -1.11860069e-01,
-1.04643493e-01, -1.13444140e-01, -1.05704060e-01, -1.07932356e-01,
-1.07308795e-01, -1.07061131e-01, -1.06332775e-01, -1.05680215e-01,
-1.05556510e-01, -1.06531647e-01, -1.06546074e-01, 4.46522709e-02,
4.26326376e-02, 4.18579030e-02, 3.95789224e-02, 3.67029722e-02,
-9.07252905e-02, -9.31991170e-02, -9.48009629e-02, -9.37511452e-02,
3.77194782e-02, 3.63218933e-02, 3.64345478e-02, 3.50365062e-02,
3.47210397e-02, 3.22271144e-02, 3.27813039e-02, 3.01730225e-02,
2.75490276e-02, -8.58690329e-02, -8.38566794e-02, 2.55098638e-02,
2.63265642e-02, 2.69203628e-02, -8.25406187e-02, -7.89080276e-02,
-8.18018371e-02, -8.08433316e-02, -8.27116088e-02, 2.80862357e-02,
2.26070834e-02, 2.11098929e-02, 1.94462773e-02, 1.87655915e-02,
1.79644481e-02, 1.61079425e-02, 1.67037111e-02, 1.74944810e-02,
-7.88106740e-02, -8.07984234e-02, -8.07135524e-02, 1.07818841e-02,
1.20588749e-02, 1.37124959e-02, -7.70532180e-02, -7.62938575e-02,
-7.78147109e-02, -7.59550947e-02, -7.57975654e-02, -7.35855022e-02,
1.40408613e-02, -6.76752283e-02, -6.87429319e-02, -6.94180556e-02,
-7.14036197e-02, -7.11021845e-02, -6.99441693e-02, 1.18585177e-02,
-6.16563322e-02, -7.46773776e-02, -6.82789447e-02, -6.11811485e-02,
-5.89809954e-02, -5.66514754e-02, -5.58221355e-02, -5.51303038e-02,
-5.39643569e-02, -5.33207840e-02, -5.27445706e-02, -5.21709381e-02,
-4.61021790e-02, -4.42446168e-02, -4.41405884e-02, -4.45180547e-02,
-5.04652409e-02, -4.80008972e-02, -4.40915878e-02, -4.74504462e-02,
-4.73400376e-02, -4.78504585e-02, -4.85186333e-02, -5.04339005e-02,
-5.02457771e-02, -5.03974339e-02, 1.33749380e-02, 1.10408305e-02,
9.01743685e-03, 8.43389771e-03, -3.87831428e-02, -4.28769616e-02,
-4.14306446e-02, -4.10137655e-02, -4.39109163e-02, -4.38856318e-02,
6.11191333e-03, 5.97722565e-03, 5.49410749e-03, 4.09716218e-03,
2.72398131e-03, 2.27430876e-03, 2.01532595e-03, 1.52393434e-03,
6.78264082e-04, 2.86254191e-04, 1.72368287e-04, -3.90050641e-02,
-3.60705360e-04, -3.84656223e-02, -3.85343367e-02, -3.81052277e-02,
-3.80782952e-02, -3.71953838e-02, -3.69504859e-02, -3.67808849e-02,
-3.66022877e-02, -3.59646413e-02, -3.52132050e-02, -3.36462876e-02,
-3.40490035e-02, -3.18415071e-02, -3.27403419e-02, -3.43256771e-02,
-3.43204148e-02, -3.24156593e-02, -3.05766265e-02, -3.30033619e-02,
-2.98220002e-02, -3.01131585e-02, -3.03290421e-02, -2.99423896e-02,
-2.88595658e-02, -2.87151243e-02, -2.80879787e-02, -2.74451726e-02,
-2.71362640e-02, -2.69734837e-02, -2.66375744e-02, -7.54322044e-04,
-1.23093022e-03, -1.38938584e-03, -1.40447606e-03, -2.55350500e-02,
-2.53044848e-02, -2.52834725e-02, -2.50011349e-02, -2.41489003e-02,
-2.45273573e-02, -1.70504288e-03, -1.78253366e-03, -2.03871152e-03,
-2.49232162e-03, -2.10988084e-03, -2.26496525e-03, -2.69011455e-03,
-2.43301779e-02, -2.43109116e-02, -5.61679141e-03, -4.75819585e-03,
-4.57157121e-03, -2.30341475e-03, -7.26984792e-03, -3.52972031e-03,
-6.32520347e-03, -7.49145245e-03, -3.94233363e-03, -3.96198695e-03,
-8.13305576e-03, -6.71888881e-03, -7.55099622e-03, -6.52408512e-03,
-3.74535407e-03, -3.95916921e-03, -3.63936469e-03, -3.82913567e-03,
-6.54316719e-03, -2.39414903e-02, -2.39133181e-02, -2.37050536e-02,
-2.36659159e-02, -2.32695605e-02, -2.31764590e-02, -8.54702157e-03,
-8.99214600e-03, -8.86464018e-03, -2.30837945e-02, -2.30769429e-02,
-1.60867691e-02, -9.28590513e-03, -9.87791006e-03, -9.83266794e-03,
-2.27264161e-02, -2.28972009e-02, -2.28894535e-02, -2.28506962e-02,
-2.28652122e-02, -1.14488089e-02, -1.26773164e-02, -1.40918099e-02,
-1.34593134e-02, -1.33454488e-02, -1.01530025e-02, -1.34095187e-02,
-1.46555593e-02, -1.12614537e-02, -1.29164302e-02, -1.49605177e-02,
-1.08296044e-02, -1.07256005e-02, -2.15098885e-02, -1.22558325e-02,
-1.48544055e-02, -1.05348111e-02, -1.05276558e-02, -1.48605454e-02,
-2.17955599e-02, -2.21009741e-02, -2.20810729e-02, -2.20625219e-02,
-2.20169857e-02, -2.16666111e-02, -2.16598543e-02, -2.16819682e-02,
-1.22342029e-02, -1.10130980e-02, -1.02922707e-02, -1.65756767e-02,
-2.07313924e-02, -1.44611227e-02, -1.54267371e-02, -1.41747379e-02,
-2.11662878e-02, -1.52330202e-02, -2.11738629e-02, -2.10542458e-02,
-1.56997291e-02, -1.50555111e-02, -1.64983511e-02, -1.70710367e-02,
-1.77221893e-02, -1.78515526e-02, -2.08755995e-02, -1.87110205e-02,
-1.89590547e-02, -1.69000058e-02, -1.73204121e-02, -1.93520404e-02,
-2.03202500e-02, -2.06333452e-02, -1.92398459e-02, -2.01127992e-02,
-2.07540415e-02, -1.94179367e-02, -2.01220855e-02, -2.07082950e-02,
-2.05509375e-02, -2.04702399e-02, -1.70837884e-02, -1.72166447e-02,
-1.75795969e-02, -1.79566412e-02, -1.98717610e-02, -1.77591278e-02,
-1.97493766e-02, -1.80378840e-02, -1.94786238e-02, -1.99131232e-02,
-1.98986727e-02, -1.82544655e-02, -1.83911627e-02, -1.84204920e-02,
-1.84059917e-02, -1.86930325e-02, -1.95818499e-02, -1.95779855e-02,
-1.96101750e-02, -2.02479476e-02, -1.78562265e-02, -1.81803334e-02,
-1.81768789e-02, -1.76010627e-02, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00]
ax = sns.distplot(a, rug=True, hist=False, label='UW')
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> [ <span class="pl-c1">6.44158112e+00</span>, <span class="pl-c1">2.22931748e+00</span>, <span class="pl-c1">1.90461774e+00</span>, <span class="pl-c1">1.62838104e+00</span>,
<span class="pl-c1">1.44450213e+00</span>, <span class="pl-c1">1.32120694e+00</span>, <span class="pl-c1">-</span><span class="pl-c1">1.37449727e+00</span>, <span class="pl-c1">-</span><span class="pl-c1">1.34068670e+00</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.22437811e+00</span>, <span class="pl-c1">1.08203506e+00</span>, <span class="pl-c1">1.00687963e+00</span>, <span class="pl-c1">-</span><span class="pl-c1">1.08464463e+00</span>,
<span class="pl-c1">-</span><span class="pl-c1">9.92682231e-01</span>, <span class="pl-c1">8.77397031e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">8.18224584e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">7.88574259e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">7.39802046e-01</span>, <span class="pl-c1">7.26716930e-01</span>, <span class="pl-c1">7.20018861e-01</span>, <span class="pl-c1">7.05212335e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">6.44688312e-01</span>, <span class="pl-c1">6.36198782e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">5.76895770e-01</span>, <span class="pl-c1">6.03964108e-01</span>,
<span class="pl-c1">5.76204893e-01</span>, <span class="pl-c1">5.69689909e-01</span>, <span class="pl-c1">5.52118112e-01</span>, <span class="pl-c1">5.25401516e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">4.18012528e-01</span>, <span class="pl-c1">4.59933207e-01</span>, <span class="pl-c1">4.43555421e-01</span>, <span class="pl-c1">4.41596376e-01</span>,
<span class="pl-c1">4.39098156e-01</span>, <span class="pl-c1">4.28526102e-01</span>, <span class="pl-c1">4.20569936e-01</span>, <span class="pl-c1">4.15588319e-01</span>,
<span class="pl-c1">3.98167467e-01</span>, <span class="pl-c1">3.79937382e-01</span>, <span class="pl-c1">3.69704675e-01</span>, <span class="pl-c1">3.48799274e-01</span>,
<span class="pl-c1">3.15384843e-01</span>, <span class="pl-c1">3.15267651e-01</span>, <span class="pl-c1">3.12962586e-01</span>, <span class="pl-c1">2.89400742e-01</span>,
<span class="pl-c1">2.95672458e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.66440651e-01</span>, <span class="pl-c1">2.53409343e-01</span>, <span class="pl-c1">2.45168039e-01</span>,
<span class="pl-c1">2.33842507e-01</span>, <span class="pl-c1">2.18591293e-01</span>, <span class="pl-c1">2.17178734e-01</span>, <span class="pl-c1">2.14425229e-01</span>,
<span class="pl-c1">2.11277792e-01</span>, <span class="pl-c1">2.10006902e-01</span>, <span class="pl-c1">1.97309425e-01</span>, <span class="pl-c1">1.82623551e-01</span>,
<span class="pl-c1">1.78820952e-01</span>, <span class="pl-c1">1.75251894e-01</span>, <span class="pl-c1">1.69346510e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.23685152e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.23374659e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.17195278e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.20288950e-01</span>, <span class="pl-c1">1.63397981e-01</span>,
<span class="pl-c1">1.55450837e-01</span>, <span class="pl-c1">1.55034695e-01</span>, <span class="pl-c1">1.50501798e-01</span>, <span class="pl-c1">1.42519918e-01</span>,
<span class="pl-c1">1.31807907e-01</span>, <span class="pl-c1">1.38860666e-01</span>, <span class="pl-c1">1.35390009e-01</span>, <span class="pl-c1">1.37646864e-01</span>,
<span class="pl-c1">1.37242513e-01</span>, <span class="pl-c1">1.21238699e-01</span>, <span class="pl-c1">1.19726271e-01</span>, <span class="pl-c1">1.13726245e-01</span>,
<span class="pl-c1">1.11266238e-01</span>, <span class="pl-c1">1.10557847e-01</span>, <span class="pl-c1">1.08976907e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.14119343e-01</span>,
<span class="pl-c1">1.05026061e-01</span>, <span class="pl-c1">1.05515901e-01</span>, <span class="pl-c1">9.95445982e-02</span>, <span class="pl-c1">9.10744981e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.09274377e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.03248740e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.01819404e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">2.01263355e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.00151327e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.99609002e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.99324882e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.99020335e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.98850700e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.97380528e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.95276893e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.92891803e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.89409380e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.89497128e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.89755567e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.90709324e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.91072552e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.91251750e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.91612635e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.91484739e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.91446185e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.87141562e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.86916499e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.85361033e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.78510889e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.79920662e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.82477178e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.83361572e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.84418528e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.84353793e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.84203884e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.63041863e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.79187162e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.76616619e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.76058466e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.81513868e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.74516815e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.75429097e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.64305490e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.73209698e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.81287911e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.72931546e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.81305962e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.67938028e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.68547032e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.70654936e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.71224488e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.70046221e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.69553459e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.67849033e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.68964827e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.68950514e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.69532848e-01</span>, <span class="pl-c1">8.37116094e-02</span>, <span class="pl-c1">8.23125124e-02</span>, <span class="pl-c1">8.15529990e-02</span>,
<span class="pl-c1">8.11596805e-02</span>, <span class="pl-c1">8.08502063e-02</span>, <span class="pl-c1">7.72547025e-02</span>, <span class="pl-c1">7.65640185e-02</span>,
<span class="pl-c1">7.01004415e-02</span>, <span class="pl-c1">6.62348263e-02</span>, <span class="pl-c1">6.59924193e-02</span>, <span class="pl-c1">6.46424494e-02</span>,
<span class="pl-c1">5.83199746e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.61669672e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.61406270e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.61529541e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.60591827e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.60479389e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.59761896e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.59576433e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.56387956e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.55819170e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.57978147e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.36274966e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.43409731e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.43110906e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.58415985e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.53305601e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.46081258e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.58444168e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.52835757e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.38571159e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.52311674e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.38007676e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.50877098e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.50393344e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.47580092e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.48095339e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.49929040e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.50207709e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.47717919e-01</span>, <span class="pl-c1">5.67238171e-02</span>, <span class="pl-c1">5.56471282e-02</span>, <span class="pl-c1">5.40983928e-02</span>,
<span class="pl-c1">5.38816730e-02</span>, <span class="pl-c1">5.43976521e-02</span>, <span class="pl-c1">4.58309306e-02</span>, <span class="pl-c1">5.05709835e-02</span>,
<span class="pl-c1">4.96411935e-02</span>, <span class="pl-c1">4.94740307e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.29477913e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.31885780e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.32769128e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.35228537e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.38915251e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.33084403e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.27640698e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.35115744e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.48678080e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.49160991e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.49138897e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.24029421e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.49157217e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.22302996e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.21170579e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">9.81788195e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.18786846e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.20252946e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.20895307e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.19927552e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.15299137e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.16483578e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.00593212e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">9.98744104e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.00191733e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.15729095e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.13453486e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.11293466e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.09606570e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.11860069e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.04643493e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.13444140e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.05704060e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.07932356e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.07308795e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.07061131e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.06332775e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.05680215e-01</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.05556510e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.06531647e-01</span>, <span class="pl-c1">-</span><span class="pl-c1">1.06546074e-01</span>, <span class="pl-c1">4.46522709e-02</span>,
<span class="pl-c1">4.26326376e-02</span>, <span class="pl-c1">4.18579030e-02</span>, <span class="pl-c1">3.95789224e-02</span>, <span class="pl-c1">3.67029722e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">9.07252905e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">9.31991170e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">9.48009629e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">9.37511452e-02</span>,
<span class="pl-c1">3.77194782e-02</span>, <span class="pl-c1">3.63218933e-02</span>, <span class="pl-c1">3.64345478e-02</span>, <span class="pl-c1">3.50365062e-02</span>,
<span class="pl-c1">3.47210397e-02</span>, <span class="pl-c1">3.22271144e-02</span>, <span class="pl-c1">3.27813039e-02</span>, <span class="pl-c1">3.01730225e-02</span>,
<span class="pl-c1">2.75490276e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.58690329e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.38566794e-02</span>, <span class="pl-c1">2.55098638e-02</span>,
<span class="pl-c1">2.63265642e-02</span>, <span class="pl-c1">2.69203628e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.25406187e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.89080276e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">8.18018371e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.08433316e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.27116088e-02</span>, <span class="pl-c1">2.80862357e-02</span>,
<span class="pl-c1">2.26070834e-02</span>, <span class="pl-c1">2.11098929e-02</span>, <span class="pl-c1">1.94462773e-02</span>, <span class="pl-c1">1.87655915e-02</span>,
<span class="pl-c1">1.79644481e-02</span>, <span class="pl-c1">1.61079425e-02</span>, <span class="pl-c1">1.67037111e-02</span>, <span class="pl-c1">1.74944810e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">7.88106740e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.07984234e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.07135524e-02</span>, <span class="pl-c1">1.07818841e-02</span>,
<span class="pl-c1">1.20588749e-02</span>, <span class="pl-c1">1.37124959e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.70532180e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.62938575e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">7.78147109e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.59550947e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.57975654e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.35855022e-02</span>,
<span class="pl-c1">1.40408613e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">6.76752283e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">6.87429319e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">6.94180556e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">7.14036197e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.11021845e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">6.99441693e-02</span>, <span class="pl-c1">1.18585177e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">6.16563322e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.46773776e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">6.82789447e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">6.11811485e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">5.89809954e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.66514754e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.58221355e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.51303038e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">5.39643569e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.33207840e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.27445706e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.21709381e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">4.61021790e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.42446168e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.41405884e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.45180547e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">5.04652409e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.80008972e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.40915878e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.74504462e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">4.73400376e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.78504585e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.85186333e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.04339005e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">5.02457771e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.03974339e-02</span>, <span class="pl-c1">1.33749380e-02</span>, <span class="pl-c1">1.10408305e-02</span>,
<span class="pl-c1">9.01743685e-03</span>, <span class="pl-c1">8.43389771e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">3.87831428e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.28769616e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">4.14306446e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.10137655e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.39109163e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">4.38856318e-02</span>,
<span class="pl-c1">6.11191333e-03</span>, <span class="pl-c1">5.97722565e-03</span>, <span class="pl-c1">5.49410749e-03</span>, <span class="pl-c1">4.09716218e-03</span>,
<span class="pl-c1">2.72398131e-03</span>, <span class="pl-c1">2.27430876e-03</span>, <span class="pl-c1">2.01532595e-03</span>, <span class="pl-c1">1.52393434e-03</span>,
<span class="pl-c1">6.78264082e-04</span>, <span class="pl-c1">2.86254191e-04</span>, <span class="pl-c1">1.72368287e-04</span>, <span class="pl-c1">-</span><span class="pl-c1">3.90050641e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">3.60705360e-04</span>, <span class="pl-c1">-</span><span class="pl-c1">3.84656223e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.85343367e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.81052277e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">3.80782952e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.71953838e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.69504859e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.67808849e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">3.66022877e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.59646413e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.52132050e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.36462876e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">3.40490035e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.18415071e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.27403419e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.43256771e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">3.43204148e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.24156593e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.05766265e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.30033619e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.98220002e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.01131585e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">3.03290421e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.99423896e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.88595658e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.87151243e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.80879787e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.74451726e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.71362640e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.69734837e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.66375744e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">7.54322044e-04</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.23093022e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">1.38938584e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">1.40447606e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">2.55350500e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.53044848e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.52834725e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.50011349e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.41489003e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.45273573e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.70504288e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">1.78253366e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">2.03871152e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.49232162e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">2.10988084e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">2.26496525e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">2.69011455e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.43301779e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.43109116e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">5.61679141e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">4.75819585e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">4.57157121e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">2.30341475e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">7.26984792e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">3.52972031e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">6.32520347e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">7.49145245e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">3.94233363e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">3.96198695e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">8.13305576e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">6.71888881e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">7.55099622e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">6.52408512e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">3.74535407e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">3.95916921e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">3.63936469e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">3.82913567e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">6.54316719e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">2.39414903e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.39133181e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.37050536e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.36659159e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.32695605e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.31764590e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">8.54702157e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">8.99214600e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">8.86464018e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">2.30837945e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.30769429e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.60867691e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">9.28590513e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">9.87791006e-03</span>, <span class="pl-c1">-</span><span class="pl-c1">9.83266794e-03</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.27264161e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.28972009e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.28894535e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.28506962e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.28652122e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.14488089e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.26773164e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.40918099e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.34593134e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.33454488e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.01530025e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.34095187e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.46555593e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.12614537e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.29164302e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.49605177e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.08296044e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.07256005e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.15098885e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.22558325e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.48544055e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.05348111e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.05276558e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.48605454e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.17955599e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.21009741e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.20810729e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.20625219e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.20169857e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.16666111e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.16598543e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.16819682e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.22342029e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.10130980e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.02922707e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.65756767e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.07313924e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.44611227e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.54267371e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.41747379e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.11662878e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.52330202e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.11738629e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.10542458e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.56997291e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.50555111e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.64983511e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.70710367e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.77221893e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.78515526e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.08755995e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.87110205e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.89590547e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.69000058e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.73204121e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.93520404e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.03202500e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.06333452e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.92398459e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.01127992e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.07540415e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.94179367e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.01220855e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.07082950e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">2.05509375e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.04702399e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.70837884e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.72166447e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.75795969e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.79566412e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.98717610e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.77591278e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.97493766e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.80378840e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.94786238e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.99131232e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.98986727e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.82544655e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.83911627e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.84204920e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.84059917e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.86930325e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.95818499e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.95779855e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.96101750e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">2.02479476e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.78562265e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.81803334e-02</span>,
<span class="pl-c1">-</span><span class="pl-c1">1.81768789e-02</span>, <span class="pl-c1">-</span><span class="pl-c1">1.76010627e-02</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>,
<span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>, <span class="pl-c1">0.00000000e+00</span>]
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">distplot</span>(<span class="pl-s1">a</span>, <span class="pl-s1">rug</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">hist</span><span class="pl-c1">=</span><span class="pl-c1">False</span>, <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'UW'</span>)</pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Plot of example data</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/31069329/76546976-b5695680-648c-11ea-92bd-b7c76a09670f.png"><img src="https://user-images.githubusercontent.com/31069329/76546976-b5695680-648c-11ea-92bd-b7c76a09670f.png" alt="grafik" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">This is strongly related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="107375551" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/4881" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/4881/hovercard" href="https://github.com/microsoft/TypeScript/issues/4881">#4881</a> but I'm not sure if it's feature request or if it's really a bug. Given that the Decorators spec states the decorator can return a new constructor function, it sort of seems like it should work.</p>
<p dir="auto">The following example uses constructor function types and very nearly works.</p>
<p dir="auto"><a href="http://www.typescriptlang.org/Playground#src=interface%20ConstructorFunction%3CT%3E%20%7B%0D%0A%20%20%20%20new%20%28...args%3Aany%5B%5D%29%3AT%3B%0D%0A%20%20%20%20prototype%3AT%0D%0A%7D%0D%0A%0D%0Ainterface%20Disappearing%20%7B%0D%0A%20%20%20%20isVisible%28%29%3Aboolean%3B%0D%0A%20%20%20%20vanish%28%29%3Avoid%3B%0D%0A%7D%0D%0A%0D%0Afunction%20Disappearing%3CT%3E%28ctor%3AConstructorFunction%3CT%3E%29%3AConstructorFunction%3CT%20%26%20Disappearing%3E%20%7B%0D%0A%20%20%20%20let%20result%20%3D%20%3CConstructorFunction%3CT%20%26%20Disappearing%3E%3Ector%3B%0D%0A%20%20%20%20result.prototype.isVisible%20%3D%20%28%29%20%3D%3E%20%7B%0D%0A%20%20%20%20%20%20%20%20return%20!this%5B'_hasDisappeared'%5D%3B%0D%0A%20%20%20%20%7D%3B%0D%0A%20%20%20%20result.prototype.vanish%20%3D%20%28%29%20%3D%3E%20%7B%0D%0A%20%20%20%20%20%20%20%20this%5B'_hasDisappeared'%5D%20%3D%20true%3B%0D%0A%20%20%20%20%7D%3B%0D%0A%20%20%20%20return%20result%3B%0D%0A%7D%0D%0A%0D%0A%2F%2F%20This%20seems%20like%20it%20should%20work%0D%0A%2F%2F%20%40Disappearing%0D%0A%2F%2F%20class%20Cat%20%7B%0D%0A%2F%2F%20%20%20%20%20constructor%28private%20name%3Astring%29%20%7B%7D%0D%0A%2F%2F%20%7D%0D%0A%0D%0A%2F%2F%20but%20I%20have%20to%20do%20this%0D%0A%40Disappearing%0D%0Aclass%20Cat%20implements%20Disappearing%20%7B%0D%0A%20%20%20%20constructor%28private%20name%3Astring%29%20%7B%7D%0D%0A%20%20%20%20isVisible%28%29%20%7Breturn%20false%7D%0D%0A%20%20%20%20vanish%28%29%7B%7D%0D%0A%7D%0D%0A%0D%0A%2F%2F%20let%20ctor%20%3D%20wrappedBlah%28Cat%29%3B%0D%0Alet%20buster%20%3D%20new%20Cat%28'Buster'%29%3B%0D%0Aalert%28%60Is%20Buster%20visible%3F%20-%3E%20%24%7Bbuster.isVisible%28%29%7D%60%29%3B%0D%0Abuster.vanish%28%29%3B%0D%0Aalert%28%60Is%20Buster%20visible%3F%20-%3E%20%24%7Bbuster.isVisible%28%29%7D%60%29%3B%0D%0A%0D%0A" rel="nofollow">View this in playground</a></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface ConstructorFunction<T> {
new (...args:any[]):T;
prototype:T
}
interface Disappearing {
isVisible():boolean;
vanish():void;
}
function Disappearing<T>(ctor:ConstructorFunction<T>):ConstructorFunction<T & Disappearing> {
let result = <ConstructorFunction<T & Disappearing>>ctor;
result.prototype.isVisible = () => {
return !this['_hasDisappeared'];
};
result.prototype.vanish = () => {
this['_hasDisappeared'] = true;
};
return result;
}
// This seems like it should work
// @Disappearing
// class Cat {
// constructor(private name:string) {}
// }
// but I have to do this
@Disappearing
class Cat implements Disappearing {
constructor(private name:string) {}
isVisible() {return false}
vanish(){}
}
// let ctor = wrappedBlah(Cat);
let buster = new Cat('Buster');
alert(`Is Buster visible? -> ${buster.isVisible()}`);
buster.vanish();
alert(`Is Buster visible? -> ${buster.isVisible()}`);"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">ConstructorFunction</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span> <span class="pl-kos">(</span>...<span class="pl-s1">args</span>:<span class="pl-smi">any</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span>:<span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-c1">prototype</span>:<span class="pl-smi">T</span>
<span class="pl-kos">}</span>
<span class="pl-k">interface</span> <span class="pl-smi">Disappearing</span> <span class="pl-kos">{</span>
<span class="pl-c1">isVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span>:<span class="pl-smi">boolean</span><span class="pl-kos">;</span>
<span class="pl-c1">vanish</span><span class="pl-kos">(</span><span class="pl-kos">)</span>:<span class="pl-smi"><span class="pl-k">void</span></span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-smi">Disappearing</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">ctor</span>:<span class="pl-smi">ConstructorFunction</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-kos">)</span>:<span class="pl-smi">ConstructorFunction</span><span class="pl-kos"><</span><span class="pl-smi">T</span> <span class="pl-c1">&</span> <span class="pl-smi">Disappearing</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-kos"><</span><span class="pl-smi">ConstructorFunction</span><span class="pl-kos"><</span><span class="pl-smi">T</span> <span class="pl-c1">&</span> <span class="pl-smi">Disappearing</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-s1">ctor</span><span class="pl-kos">;</span>
<span class="pl-s1">result</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">isVisible</span> <span class="pl-c1">=</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">return</span> <span class="pl-c1">!</span><span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s">'_hasDisappeared'</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-c1">prototype</span><span class="pl-kos">.</span><span class="pl-en">vanish</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">[</span><span class="pl-s">'_hasDisappeared'</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-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-c">// This seems like it should work</span>
<span class="pl-c">// <span class="pl-k">@Disappearing</span></span>
<span class="pl-c">// class Cat {</span>
<span class="pl-c">// constructor(private name:string) {}</span>
<span class="pl-c">// }</span>
<span class="pl-c">// but I have to do this</span>
@<span class="pl-smi">Disappearing</span>
<span class="pl-k">class</span> <span class="pl-smi">Cat</span> <span class="pl-k">implements</span> <span class="pl-smi">Disappearing</span> <span class="pl-kos">{</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">name</span>:<span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-en">isVisible</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">false</span><span class="pl-kos">}</span>
<span class="pl-en">vanish</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-c">// let ctor = wrappedBlah(Cat);</span>
<span class="pl-k">let</span> <span class="pl-s1">buster</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">Cat</span><span class="pl-kos">(</span><span class="pl-s">'Buster'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s">`Is Buster visible? -> <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">buster</span><span class="pl-kos">.</span><span class="pl-en">isVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">buster</span><span class="pl-kos">.</span><span class="pl-en">vanish</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">alert</span><span class="pl-kos">(</span><span class="pl-s">`Is Buster visible? -> <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">buster</span><span class="pl-kos">.</span><span class="pl-en">isVisible</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | <p dir="auto">If we can get this to type check properly, we would have perfect support for boilerplate-free mixins:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare function Blah<T>(target: T): T & {foo: number}
@Blah
class Foo {
bar() {
return this.foo; // Property 'foo' does not exist on type 'Foo'
}
}
new Foo().foo; // Property 'foo' does not exist on type 'Foo'"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-smi">Blah</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">T</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-c1">&</span> <span class="pl-kos">{</span><span class="pl-c1">foo</span>: <span class="pl-smi">number</span><span class="pl-kos">}</span>
@<span class="pl-smi">Blah</span>
<span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-en">bar</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">foo</span><span class="pl-kos">;</span> <span class="pl-c">// Property 'foo' does not exist on type 'Foo'</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">new</span> <span class="pl-smi">Foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">foo</span><span class="pl-kos">;</span> <span class="pl-c">// Property 'foo' does not exist on type 'Foo'</span></pre></div> | 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-clone-an-element-using-jquery?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23target2%22%29.appendTo%28%22%23right-well%22%29%3B%0A%20%20%20%20%24%28%22%23target5%22%29.clone%28%29.appendTo%28%22%23left-well%22%29%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Clone an Element Using jQuery</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well")
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</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">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</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-ent">script</span><span class="pl-kos">></span>
<span class="pl-c"><!-- Only change code above this line. --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">></span>jQuery Playground<span class="pl-kos"></</span><span class="pl-ent">h3</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">row</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">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#left-well<span class="pl-kos"></</span><span class="pl-ent">h4</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">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">></span>#target1<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">></span>#target2<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">></span>#target3<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">div</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">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#right-well<span class="pl-kos"></</span><span class="pl-ent">h4</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">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">></span>#target4<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">></span>#target5<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">></span>#target6<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">div</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-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | <p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-use-jquery-to-modify-the-entire-page" rel="nofollow">Waypoint: Use jQuery to Modify the Entire Page</a> has an issue.<br>
Please I want to know why double quotes don't work in the line while they work on the previous lines. Just curious really.<br>
My code:</p>
<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color", "red");
$("#right-well").children().css("color", "green");
$("#left-well").children().css("color", "green");
$(".target:nth-child(2)").addClass("animated bounce");
$(".target:even").addClass("animated shake");
$("body").addClass("animated hinge"); //This line seems to have issues
});
</script>
<div dir="auto">
<h3 dir="auto">jQuery Playground</h3>
<div dir="auto">
<div dir="auto">
<h4 dir="auto">#left-well</h4>
<div id="user-content-left-well" dir="auto">
#target1
#target2
#target3
</div>
</div>
<div dir="auto">
<h4 dir="auto">#right-well</h4>
<div id="user-content-right-well" dir="auto">
#target4
#target5
#target6
</div>
</div>
</div>
</div> | 0 |
<p dir="auto"><em>Versions:</em></p>
<ul dir="auto">
<li><strong>react</strong>: 16.8.0-alpha-0</li>
<li><strong>react-dom</strong>: 16.8.0-alpha-0</li>
<li><strong>react-form-uncontrolled</strong>: 0.3.1</li>
</ul>
<h3 dir="auto">Problem</h3>
<p dir="auto">I wrote a simple Form library with just one hook (react-form-uncontrolled). However, <strong>using this library</strong> is displaying this error:</p>
<blockquote>
<p dir="auto">Invariant Violation: Hooks can only be called inside the body of a function component</p>
</blockquote>
<p dir="auto">Codesandbox: <a href="https://codesandbox.io/s/znx2r55lkp" rel="nofollow">https://codesandbox.io/s/znx2r55lkp</a></p>
<p dir="auto">Although the error says that it can only be called inside the body of a function component, is already on the body...</p>
<p dir="auto">Original library code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React, { useCallback } from 'react'
function Form(props) {
const onSubmitForm = useCallback(event => {
event.preventDefault()
event.stopPropagation()
const { onSubmit = () => {} } = props
const fields = Array.prototype.slice.call(event.target)
.filter(field => field.name)
.reduce((form, { name, value }) => ({
...form,
[name]: typeof value === 'string'
? value.trim()
: value,
}), {})
onSubmit(fields)
}, [])
const { children } = props
return (
<form {...props} onSubmit={onSubmitForm}>
{children}
</form>
)
}
function Input(props) {
const { label, name } = props
return (
<label htmlFor={name}>
<div>{label}</div>
<input
{...props}
id={name}
name={name}
/>
</label>
)
}
module.exports = {
Form, Input,
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s1">useCallback</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span>
<span class="pl-k">function</span> <span class="pl-v">Form</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">onSubmitForm</span> <span class="pl-c1">=</span> <span class="pl-en">useCallback</span><span class="pl-kos">(</span><span class="pl-s1">event</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-en">stopPropagation</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> onSubmit <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span>
<span class="pl-k">const</span> <span class="pl-s1">fields</span> <span class="pl-c1">=</span> <span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">.</span><span class="pl-c1">slice</span><span class="pl-kos">.</span><span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-c1">target</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">filter</span><span class="pl-kos">(</span><span class="pl-s1">field</span> <span class="pl-c1">=></span> <span class="pl-s1">field</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">)</span>
<span class="pl-kos">.</span><span class="pl-en">reduce</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">form</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> name<span class="pl-kos">,</span> value <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">(</span><span class="pl-kos">{</span>
...<span class="pl-s1">form</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span><span class="pl-s1">name</span><span class="pl-kos">]</span>: <span class="pl-k">typeof</span> <span class="pl-s1">value</span> <span class="pl-c1">===</span> <span class="pl-s">'string'</span>
? <span class="pl-s1">value</span><span class="pl-kos">.</span><span class="pl-en">trim</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
: <span class="pl-s1">value</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-en">onSubmit</span><span class="pl-kos">(</span><span class="pl-s1">fields</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">const</span> <span class="pl-kos">{</span> children <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">form</span> <span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span> <span class="pl-c1">onSubmit</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">onSubmitForm</span><span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-s1">children</span><span class="pl-kos">}</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-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-k">function</span> <span class="pl-v">Input</span><span class="pl-kos">(</span><span class="pl-s1">props</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> label<span class="pl-kos">,</span> name <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">props</span>
<span class="pl-k">return</span> <span class="pl-kos">(</span>
<span class="pl-c1"><</span><span class="pl-ent">label</span> <span class="pl-c1">htmlFor</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">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-s1">label</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-c1"><</span><span class="pl-ent">input</span>
<span class="pl-kos">{</span>...<span class="pl-s1">props</span><span class="pl-kos">}</span>
<span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">name</span><span class="pl-kos">}</span>
<span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">name</span><span class="pl-kos">}</span>
<span class="pl-c1">/</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">></span>
<span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-smi">module</span><span class="pl-kos">.</span><span class="pl-c1">exports</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
Form<span class="pl-kos">,</span> Input<span class="pl-kos">,</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">At the beginning I thought that was for the Babel transpilation. Nevertheless, running a codesandbox using the transpiled code instead of the library, is working well:</p>
<ul dir="auto">
<li><a href="https://codesandbox.io/s/k0j6zn2xzo" rel="nofollow">https://codesandbox.io/s/k0j6zn2xzo</a></li>
</ul>
<p dir="auto">Downgrading these versions in the project that use the library, it works:</p>
<ul dir="auto">
<li><strong>react</strong> -> from 16.8.0-alpha.0 -> to 16.7.0-alpha.2</li>
<li><strong>react-dom:</strong> from 16.8.0-alpha.0 -> to 16.7.0-alpha.2</li>
</ul>
<p dir="auto">So looks that for some reason with 16.8.0-alpha.0 is not compatible.</p>
<blockquote>
<p dir="auto"><strong>Note</strong>: Perhaps is not an issue and is something that I'm doing wrong... Any sugestion?</p>
</blockquote> | <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gaearon/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gaearon">@gaearon</a> I normally bundle React and all its add-ons in a different file from my application, but when using ReactPerf I forgot of including it in the same bundle of React and ReactDOM, so I noticed I was receiving an empty array from ReactPerf functions every time I was using them, and that is because ReactDebugTool is different for the application and for React which means flushHistory is also different.</p>
<p dir="auto">What do you think about warning the user if there are more than one instance of ReactPerf/ReactDebugTool in the page?</p> | 0 |
<p dir="auto">Pickling <code class="notranslate">imshow</code> objects (I'm using them used for heatmaps) fails with the following error in IPython after <code class="notranslate">%matplotlib inline</code> magic has been used. If inline figures are not set they work as expected.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UnpickleableError: Cannot pickle <type 'Image'> objects"><pre class="notranslate"><code class="notranslate">UnpickleableError: Cannot pickle <type 'Image'> objects
</code></pre></div>
<p dir="auto">Using <code class="notranslate">matplotlib.tests.test_pickle.recursive_pickle</code> fails reporting the following (similar to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="10443960" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/1719" data-hovercard-type="issue" data-hovercard-url="/matplotlib/matplotlib/issues/1719/hovercard" href="https://github.com/matplotlib/matplotlib/issues/1719">#1719</a>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Failed to pickle attribute "gridline" in (list/tuple item #0 in (attribute "majorTicks" in (attribute "xaxis" in (list/tuple item #1 in (list/tuple item #1 in (list/tuple item #0 in (attribute "_elements" in (attribute "_axstack" in (top level object))))))))). Type: <class 'matplotlib.lines.Line2D'>"><pre class="notranslate"><code class="notranslate">Failed to pickle attribute "gridline" in (list/tuple item #0 in (attribute "majorTicks" in (attribute "xaxis" in (list/tuple item #1 in (list/tuple item #1 in (list/tuple item #0 in (attribute "_elements" in (attribute "_axstack" in (top level object))))))))). Type: <class 'matplotlib.lines.Line2D'>
</code></pre></div>
<p dir="auto">However, using <code class="notranslate">matplotlib.tests.test_pickle.depth_getter</code> its possible to identify the object that is the cause of the initial error. It's at:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="140628613187224 (8, <Image object at 0x7fe6a688c698>, u'attribute "_imcache" in (list/tuple item #0 in (attribute "images" in (list/tuple item #1 in (list/tuple item #1 in (list/tuple item #0 in (attribute "_elements" in (attribute "_axstack" in (top level object))))))))')"><pre class="notranslate"><code class="notranslate">140628613187224 (8, <Image object at 0x7fe6a688c698>, u'attribute "_imcache" in (list/tuple item #0 in (attribute "images" in (list/tuple item #1 in (list/tuple item #1 in (list/tuple item #0 in (attribute "_elements" in (attribute "_axstack" in (top level object))))))))')
</code></pre></div>
<p dir="auto">It looks as though this is a cache of the rendered image. Can these be ignored when pickling?</p> | <p dir="auto">Couple of issues I've found.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def latex_float(f, pos=0):
float_str = "{0:.2g}".format(f)
if "e" in float_str:
base, exponent = float_str.split("e")
return r"${0} \times 10^{{{1}}}$".format(base, int(exponent))
else:
return r"${}$".format(float_str)
formatter = FuncFormatter(latex_float)
corr = np.corrcoef(data['x'], data['y'])[0,1]
fig, ax = pl.subplots(figsize=figsize)
hist, _, _, im = ax.hist2d(data['x'], data['y'], norm=LogNorm(), bins=(bins_x, bins_y) , alpha=0.75, cmap = cmap)
cbar = fig.colorbar(im, ticks=[0., 1., 2., 5., 10., 20., 50., 100., 200., 500., 1000., 2000., 5000.], format=formatter)
cbar.set_label('number density', fontsize=labelsize, labelpad=79)
cbar.ax.tick_params(labelsize=labelsize-6, width=3, length=15)
cbar.ax.minorticks_on()
ax.set_xlabel(label_x, fontsize=labelsize)
ax.set_ylabel(label_y, fontsize=labelsize)
ax.grid(True, which='both', linewidth=3, linestyle='--', alpha=0.5)
ax.text(0.95, 0.05, '$\mathrm{{Corr}} = {:0.4f}$'.format(corr), transform=ax.transAxes, fontsize=labelsize, verticalalignment='bottom', horizontalalignment='right', bbox=textprops)
ax.tick_params(axis='both', which='major', labelsize=labelsize-6)
pickle.dump(ax, file('ZH_ax.pkl', 'w+'))
fig.close()"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">latex_float</span>(<span class="pl-s1">f</span>, <span class="pl-s1">pos</span><span class="pl-c1">=</span><span class="pl-c1">0</span>):
<span class="pl-s1">float_str</span> <span class="pl-c1">=</span> <span class="pl-s">"{0:.2g}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">f</span>)
<span class="pl-k">if</span> <span class="pl-s">"e"</span> <span class="pl-c1">in</span> <span class="pl-s1">float_str</span>:
<span class="pl-s1">base</span>, <span class="pl-s1">exponent</span> <span class="pl-c1">=</span> <span class="pl-s1">float_str</span>.<span class="pl-en">split</span>(<span class="pl-s">"e"</span>)
<span class="pl-k">return</span> <span class="pl-s">r"${0} \times 10^{{{1}}}$"</span>.<span class="pl-en">format</span>(<span class="pl-s1">base</span>, <span class="pl-en">int</span>(<span class="pl-s1">exponent</span>))
<span class="pl-k">else</span>:
<span class="pl-k">return</span> <span class="pl-s">r"${}$"</span>.<span class="pl-en">format</span>(<span class="pl-s1">float_str</span>)
<span class="pl-s1">formatter</span> <span class="pl-c1">=</span> <span class="pl-v">FuncFormatter</span>(<span class="pl-s1">latex_float</span>)
<span class="pl-s1">corr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">corrcoef</span>(<span class="pl-s1">data</span>[<span class="pl-s">'x'</span>], <span class="pl-s1">data</span>[<span class="pl-s">'y'</span>])[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]
<span class="pl-s1">fig</span>, <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">pl</span>.<span class="pl-en">subplots</span>(<span class="pl-s1">figsize</span><span class="pl-c1">=</span><span class="pl-s1">figsize</span>)
<span class="pl-s1">hist</span>, <span class="pl-s1">_</span>, <span class="pl-s1">_</span>, <span class="pl-s1">im</span> <span class="pl-c1">=</span> <span class="pl-s1">ax</span>.<span class="pl-en">hist2d</span>(<span class="pl-s1">data</span>[<span class="pl-s">'x'</span>], <span class="pl-s1">data</span>[<span class="pl-s">'y'</span>], <span class="pl-s1">norm</span><span class="pl-c1">=</span><span class="pl-v">LogNorm</span>(), <span class="pl-s1">bins</span><span class="pl-c1">=</span>(<span class="pl-s1">bins_x</span>, <span class="pl-s1">bins_y</span>) , <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.75</span>, <span class="pl-s1">cmap</span> <span class="pl-c1">=</span> <span class="pl-s1">cmap</span>)
<span class="pl-s1">cbar</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">colorbar</span>(<span class="pl-s1">im</span>, <span class="pl-s1">ticks</span><span class="pl-c1">=</span>[<span class="pl-c1">0.</span>, <span class="pl-c1">1.</span>, <span class="pl-c1">2.</span>, <span class="pl-c1">5.</span>, <span class="pl-c1">10.</span>, <span class="pl-c1">20.</span>, <span class="pl-c1">50.</span>, <span class="pl-c1">100.</span>, <span class="pl-c1">200.</span>, <span class="pl-c1">500.</span>, <span class="pl-c1">1000.</span>, <span class="pl-c1">2000.</span>, <span class="pl-c1">5000.</span>], <span class="pl-s1">format</span><span class="pl-c1">=</span><span class="pl-s1">formatter</span>)
<span class="pl-s1">cbar</span>.<span class="pl-en">set_label</span>(<span class="pl-s">'number density'</span>, <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-s1">labelsize</span>, <span class="pl-s1">labelpad</span><span class="pl-c1">=</span><span class="pl-c1">79</span>)
<span class="pl-s1">cbar</span>.<span class="pl-s1">ax</span>.<span class="pl-en">tick_params</span>(<span class="pl-s1">labelsize</span><span class="pl-c1">=</span><span class="pl-s1">labelsize</span><span class="pl-c1">-</span><span class="pl-c1">6</span>, <span class="pl-s1">width</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">length</span><span class="pl-c1">=</span><span class="pl-c1">15</span>)
<span class="pl-s1">cbar</span>.<span class="pl-s1">ax</span>.<span class="pl-en">minorticks_on</span>()
<span class="pl-s1">ax</span>.<span class="pl-en">set_xlabel</span>(<span class="pl-s1">label_x</span>, <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-s1">labelsize</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s1">label_y</span>, <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-s1">labelsize</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">grid</span>(<span class="pl-c1">True</span>, <span class="pl-s1">which</span><span class="pl-c1">=</span><span class="pl-s">'both'</span>, <span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">linestyle</span><span class="pl-c1">=</span><span class="pl-s">'--'</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">text</span>(<span class="pl-c1">0.95</span>, <span class="pl-c1">0.05</span>, <span class="pl-s">'$\mathrm{{Corr}} = {:0.4f}$'</span>.<span class="pl-en">format</span>(<span class="pl-s1">corr</span>), <span class="pl-s1">transform</span><span class="pl-c1">=</span><span class="pl-s1">ax</span>.<span class="pl-s1">transAxes</span>, <span class="pl-s1">fontsize</span><span class="pl-c1">=</span><span class="pl-s1">labelsize</span>, <span class="pl-s1">verticalalignment</span><span class="pl-c1">=</span><span class="pl-s">'bottom'</span>, <span class="pl-s1">horizontalalignment</span><span class="pl-c1">=</span><span class="pl-s">'right'</span>, <span class="pl-s1">bbox</span><span class="pl-c1">=</span><span class="pl-s1">textprops</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">tick_params</span>(<span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-s">'both'</span>, <span class="pl-s1">which</span><span class="pl-c1">=</span><span class="pl-s">'major'</span>, <span class="pl-s1">labelsize</span><span class="pl-c1">=</span><span class="pl-s1">labelsize</span><span class="pl-c1">-</span><span class="pl-c1">6</span>)
<span class="pl-s1">pickle</span>.<span class="pl-en">dump</span>(<span class="pl-s1">ax</span>, <span class="pl-en">file</span>(<span class="pl-s">'ZH_ax.pkl'</span>, <span class="pl-s">'w+'</span>))
<span class="pl-s1">fig</span>.<span class="pl-en">close</span>()</pre></div>
<p dir="auto">As it is, the code gives the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "make_plots_new.py", line 124, in <module>
pickle.dump(fig, file('ZH_ax.pkl', 'w+'))
File "/lib/python2.7/copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle instancemethod objects"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "make_plots_new.py", line 124, in <module>
pickle.dump(fig, file('ZH_ax.pkl', 'w+'))
File "/lib/python2.7/copy_reg.py", line 70, in _reduce_ex
raise TypeError, "can't pickle %s objects" % base.__name__
TypeError: can't pickle instancemethod objects
</code></pre></div>
<p dir="auto">If I exclude the label formatter function in the <code class="notranslate">colorbar</code>, I get an error of</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "make_plots_new.py", line 124, in <module>
pickle.dump(fig, file('ZH_ax.pkl', 'w+'))
cPickle.UnpickleableError: Cannot pickle <type 'Image'> objects"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "make_plots_new.py", line 124, in <module>
pickle.dump(fig, file('ZH_ax.pkl', 'w+'))
cPickle.UnpickleableError: Cannot pickle <type 'Image'> objects
</code></pre></div>
<p dir="auto">How can one pickle?</p> | 1 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
After upgrading Babel to 7.7.x, the code constructors marked as "public" does not transpile. to. If I remove the "public" keyword it works. This only occurs with constructors, public methods still transpile properly.</p>
<p dir="auto">Error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" public constructor() {
^^^^^^^^^^^
SyntaxError: Unexpected identifier"><pre class="notranslate"><code class="notranslate"> public constructor() {
^^^^^^^^^^^
SyntaxError: Unexpected identifier
</code></pre></div>
<p dir="auto"><strong>Input Code</strong></p>
<ul dir="auto">
<li>REPL or Repo link if applicable:</li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class SomeClass {
public constructor() {
// Stuff
}
}
"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">SomeClass</span> <span class="pl-kos">{</span>
<span class="pl-c1">public</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Stuff</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expected behavior/code</strong><br>
Using "public constructor" worked before so this seems to be a regression.</p>
<p dir="auto"><strong>Babel Configuration (.babelrc, package.json, cli command)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": [
"@babel/typescript",
[
"@babel/preset-env",
{
"targets": {
"node": "current"
}
}
]
],
"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/typescript"</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-s">"@babel/preset-env"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"targets"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"node"</span>: <span class="pl-s">"current"</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-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"><strong>Environment</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- "@babel/core": "7.6.4",
- "@babel/node": "7.6.3",
- "@babel/preset-env": "7.6.3",
- "@babel/preset-typescript": "7.6.0",
+ "@babel/core": "7.7.0",
+ "@babel/node": "7.7.0",
+ "@babel/plugin-proposal-class-properties": "7.7.0",
+ "@babel/preset-env": "7.7.1",
+ "@babel/preset-typescript": "7.7.0","><pre class="notranslate"><code class="notranslate">- "@babel/core": "7.6.4",
- "@babel/node": "7.6.3",
- "@babel/preset-env": "7.6.3",
- "@babel/preset-typescript": "7.6.0",
+ "@babel/core": "7.7.0",
+ "@babel/node": "7.7.0",
+ "@babel/plugin-proposal-class-properties": "7.7.0",
+ "@babel/preset-env": "7.7.1",
+ "@babel/preset-typescript": "7.7.0",
</code></pre></div>
<p dir="auto"><strong>Additional context/Screenshots</strong><br>
<a href="https://www.typescriptlang.org/docs/handbook/classes.html#public-private-and-protected-modifiers" rel="nofollow">https://www.typescriptlang.org/docs/handbook/classes.html#public-private-and-protected-modifiers</a></p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "@babel/core": "^7.7.0",
"@babel/preset-env": "^7.7.0",
"@babel/preset-typescript": "^7.7.0",
"babel-loader": "^8.0.6",
"typescript": "^3.6.4",
"webpack": "^4.40.2",
"webpack-cli": "^3.3.9",
"webpack-dev-middleware": "^3.7.0",
"webpack-hot-middleware": "^2.25.0""><pre class="notranslate"><code class="notranslate"> "@babel/core": "^7.7.0",
"@babel/preset-env": "^7.7.0",
"@babel/preset-typescript": "^7.7.0",
"babel-loader": "^8.0.6",
"typescript": "^3.6.4",
"webpack": "^4.40.2",
"webpack-cli": "^3.3.9",
"webpack-dev-middleware": "^3.7.0",
"webpack-hot-middleware": "^2.25.0"
</code></pre></div>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo {
private constructor() {}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-k">private</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">in resulting js file I see</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Foo {
private constructor() {}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span>
<span class="pl-c1">private</span> <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | 1 |
<ul dir="auto">
<li>VSCode Version:1.2.0</li>
<li>OS Version:Windows 7 SP1, Windows 10 th2</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Set up japanese locale.</li>
<li>Launch Visual Studio Code</li>
<li>Run integration terminal.</li>
<li>Run "DIR" command at a integration terminal.</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/589304/15915080/3eb902c4-2e21-11e6-884d-40e61558fe8c.PNG"><img src="https://cloud.githubusercontent.com/assets/589304/15915080/3eb902c4-2e21-11e6-884d-40e61558fe8c.PNG" alt="vscode" style="max-width: 100%;"></a></p>
<p dir="auto">Indication of a japanese characters are piled at a integration terminal.</p> | <ul dir="auto">
<li>VSCode Version: 1.1.1</li>
<li>OS Version: OSX 10.11.5</li>
</ul>
<p dir="auto">When debugging a unity project, debug popovers do not seem to be working for a class' fields/properties, but do work for local variables:</p>
<p dir="auto">Hovering over the local variable <code class="notranslate">schedule</code> correctly shows its value:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1172479/15700510/9760d532-27aa-11e6-9308-cd8a61921d43.png"><img src="https://cloud.githubusercontent.com/assets/1172479/15700510/9760d532-27aa-11e6-9308-cd8a61921d43.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Hovering over the private field <code class="notranslate">data</code> does nothing, but it's values do appear on the left panel:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1172479/15700567/fdd69b62-27aa-11e6-8d19-055cf00ef430.png"><img src="https://cloud.githubusercontent.com/assets/1172479/15700567/fdd69b62-27aa-11e6-8d19-055cf00ef430.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Sorry if duplicate!</p> | 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> import scipy.special
>>> scipy.special.hankel1(0, 10**8)
(3.2060295340412074e-05+7.3063911655217044e-05j)
>>> scipy.special.hankel1(0, 10**9)
(2.4687471886269185e-05-5.2104226538976152e-06j)
>>> scipy.special.hankel1(0, 10**10)
(nan+nan*j)"><pre class="notranslate"><code class="notranslate">>>> import scipy.special
>>> scipy.special.hankel1(0, 10**8)
(3.2060295340412074e-05+7.3063911655217044e-05j)
>>> scipy.special.hankel1(0, 10**9)
(2.4687471886269185e-05-5.2104226538976152e-06j)
>>> scipy.special.hankel1(0, 10**10)
(nan+nan*j)
</code></pre></div>
<p dir="auto">I'm not sure but i think this should be done by either Mathematica or MATLAB but i got nan when use scipy.</p> | <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> import scipy.special
>>> scipy.special.hankel1(0, 10**8)
(3.2060295340412074e-05+7.3063911655217044e-05j)
>>> scipy.special.hankel1(0, 10**9)
(2.4687471886269185e-05-5.2104226538976152e-06j)
>>> scipy.special.hankel1(0, 10**10)
(nan+nan*j)"><pre class="notranslate"><code class="notranslate">>>> import scipy.special
>>> scipy.special.hankel1(0, 10**8)
(3.2060295340412074e-05+7.3063911655217044e-05j)
>>> scipy.special.hankel1(0, 10**9)
(2.4687471886269185e-05-5.2104226538976152e-06j)
>>> scipy.special.hankel1(0, 10**10)
(nan+nan*j)
</code></pre></div>
<p dir="auto">I'm not sure but i think this should be done by either Mathematica or MATLAB but i got nan when use scipy.</p> | 1 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Issue+Type%3A+Feature+Request%22+">issues list</a><br>
for similar or identical feature requests.</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?utf8=%E2%9C%93&q=is%3Apr+label%3A%22PR+Type%3A+Feature%22+">pull requests list</a><br>
for existing proposed implementations of this feature.</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 if the same feature was already implemented in the<br>
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">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Brief Summary</h1>
<h1 dir="auto">Design</h1>
<h2 dir="auto">Architectural Considerations</h2>
<p dir="auto">How to link a task to an other running task</p>
<p dir="auto">like this?</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="result = celery.AsyncResult(parents_task.task_id)
result.add_children(new_task_id)"><pre class="notranslate"><span class="pl-s1">result</span> <span class="pl-c1">=</span> <span class="pl-s1">celery</span>.<span class="pl-v">AsyncResult</span>(<span class="pl-s1">parents_task</span>.<span class="pl-s1">task_id</span>)
<span class="pl-s1">result</span>.<span class="pl-en">add_children</span>(<span class="pl-s1">new_task_id</span>)</pre></div>
<h2 dir="auto">Proposed Behavior</h2>
<h2 dir="auto">Proposed UI/UX</h2>
<h2 dir="auto">Diagrams</h2>
<p dir="auto">N/A</p>
<h2 dir="auto">Alternatives</h2>
<p dir="auto">None</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"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<h2 dir="auto">- <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="284694904" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/4465" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/4465/hovercard" href="https://github.com/celery/celery/issues/4465">#4465</a></h2>
<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>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -> celery:5.1.0 (sun-harmonics) kombu:5.1.0 py:3.8.8
billiard:3.6.4.0 redis:3.5.3
platform -> system:Darwin arch:64bit
kernel version:20.4.0 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:redis:///
broker_url: 'redis://localhost:6379//'
result_backend: 'redis:///'
task_queue_max_priority: 10
deprecated_settings: None"><pre class="notranslate"><code class="notranslate">software -> celery:5.1.0 (sun-harmonics) kombu:5.1.0 py:3.8.8
billiard:3.6.4.0 redis:3.5.3
platform -> system:Darwin arch:64bit
kernel version:20.4.0 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:redis:///
broker_url: 'redis://localhost:6379//'
result_backend: 'redis:///'
task_queue_max_priority: 10
deprecated_settings: None
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="amqp==5.0.6
billiard==3.6.4.0
celery==5.1.0
certifi==2021.5.30
chardet==4.0.0
click==7.1.2
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
dnspython==1.16.0
eventlet==0.31.0
Flask==2.0.1
greenlet==1.1.0
idna==2.10
itsdangerous==2.0.1
Jinja2==3.0.1
kombu==5.1.0
MarkupSafe==2.0.1
prompt-toolkit==3.0.18
pytz==2021.1
redis==3.5.3
requests==2.25.1
six==1.16.0
urllib3==1.26.5
vine==5.0.0
wcwidth==0.2.5
Werkzeug==2.0.1"><pre class="notranslate"><code class="notranslate">amqp==5.0.6
billiard==3.6.4.0
celery==5.1.0
certifi==2021.5.30
chardet==4.0.0
click==7.1.2
click-didyoumean==0.0.3
click-plugins==1.1.1
click-repl==0.2.0
dnspython==1.16.0
eventlet==0.31.0
Flask==2.0.1
greenlet==1.1.0
idna==2.10
itsdangerous==2.0.1
Jinja2==3.0.1
kombu==5.1.0
MarkupSafe==2.0.1
prompt-toolkit==3.0.18
pytz==2021.1
redis==3.5.3
requests==2.25.1
six==1.16.0
urllib3==1.26.5
vine==5.0.0
wcwidth==0.2.5
Werkzeug==2.0.1
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><p dir="auto">tasks.py</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import time
from celery import Celery
app = Celery('tasks', backend='redis://', broker='redis://', task_queue_max_priority=10)
@app.task
def sleep():
time.sleep(1)"><pre class="notranslate"><code class="notranslate">import time
from celery import Celery
app = Celery('tasks', backend='redis://', broker='redis://', task_queue_max_priority=10)
@app.task
def sleep():
time.sleep(1)
</code></pre></div>
<p dir="auto">web.py</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from flask import Flask
from tasks import sleep
app = Flask(__name__)
@app.route('/')
def hello_world():
result = sleep.apply_async()
result.wait()
return '', 200
if __name__ == '__main__':
app.run(port=4444)"><pre class="notranslate"><code class="notranslate">from flask import Flask
from tasks import sleep
app = Flask(__name__)
@app.route('/')
def hello_world():
result = sleep.apply_async()
result.wait()
return '', 200
if __name__ == '__main__':
app.run(port=4444)
</code></pre></div>
<p dir="auto">simulate.py</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import requests
for i in range(20):
requests.get("http://localhost:4444")"><pre class="notranslate"><code class="notranslate">import requests
for i in range(20):
requests.get("http://localhost:4444")
</code></pre></div>
<ol dir="auto">
<li><code class="notranslate">pip install celery[redis] requests flask</code></li>
<li>Start redis<br>
<code class="notranslate">docker run -p 6379:6379 --name redis redis</code></li>
<li>Run celery <code class="notranslate">celery -A tasks worker --loglevel=INFO</code></li>
<li>Run web server <code class="notranslate">python web.py</code></li>
<li>connect to redis</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="docker exec -it redis /bin/bash
redis-cli
info Clients"><pre class="notranslate"><code class="notranslate">docker exec -it redis /bin/bash
redis-cli
info Clients
</code></pre></div>
<p dir="auto">Note the <code class="notranslate">connected_clients</code> number</p>
<ol dir="auto">
<li>simulate requests <code class="notranslate">python simulate.py</code></li>
<li>Run <code class="notranslate">info Clients</code> again in redis-cli.<br>
Note the <code class="notranslate">connected_clients</code> number which is now a lot higher</li>
</ol>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">Connections close after getting/waiting for a result</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">I'm experiencing a very strange problem with redis connections staying open after each request (after each result.wait() or result.get()).</p>
<p dir="auto">Help will be super appreciated.<br>
Running flask with <code class="notranslate">threaded=False</code> solves the issue.<br>
Obviously this is a simplified reproduction code. Our real environment is gunicorn, eventlet, flask, redis, celery.<br>
In production we are getting 60k open connections to redis quite fast and we had to restart our server a few times to reset the leaks.</p> | 0 |
<p dir="auto">Currently several dont_... flags don't work as one could expect if their value is False: <code class="notranslate">dont_merge_cookies=False</code> is the same as <code class="notranslate">dont_merge_cookies=True</code> - only the presence of a flag is checked. What about checking actual values?</p>
<p dir="auto">Affected options:</p>
<ul dir="auto">
<li>dont_merge_cookies <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="39855401" data-permission-text="Title is private" data-url="https://github.com/scrapy/scrapy/issues/846" data-hovercard-type="pull_request" data-hovercard-url="/scrapy/scrapy/pull/846/hovercard" href="https://github.com/scrapy/scrapy/pull/846">#846</a></li>
<li>dont_redirect</li>
<li>dont_retry</li>
<li>dont_cache from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="38933169" data-permission-text="Title is private" data-url="https://github.com/scrapy/scrapy/issues/821" data-hovercard-type="pull_request" data-hovercard-url="/scrapy/scrapy/pull/821/hovercard" href="https://github.com/scrapy/scrapy/pull/821">#821</a></li>
</ul>
<p dir="auto">There is also 'dont_filter' argument for Request; it handles False values.</p> | <p dir="auto">Case:<br>
unexpected behavior identified for LinkExctractor with Unique = False if the page contains fully identical links (the same URL and text).<br>
The current result returns one unique link instead of two or more identical ones.<br>
For example:</p>
<ol dir="auto">
<li>Local http file</li>
</ol>
<div class="highlight highlight-text-html-ecmarkup notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<html>
<body>
<a href='sample3.html'>sample 3 repetition</a>
<a href='sample3.html'>sample 3 repetition</a>
</body>
</html>```
2) Scrapy test code:
ignore the error about <GET file:///robots.txt> as we use local file
`import scrapy
from scrapy.linkextractors import LinkExtractor
class QuotesSpider(scrapy.Spider):
name = “test”
start_urls = [
'file:///<insert_your_local_path>/Test_file.html',
]
def __init__(self, *args, **kwargs):
super(QuotesSpider, self).__init__(*args, **kwargs)
self.le = LinkExtractor(unique=False)
def parse(self, response):
links = self.le.extract_links(response)
yield {'extract_link': links}`
3) run the code: scrapy crawl test, and get the result with one link:
{'extract_link': [Link(url='file:///<your_local_path>/sample3.html', text='sample 3 repetition', fragment='', nofollow=False)]}
Instead of the result with two links from HTML:
{'extract_link': [Link(url='file:///<your_local_path>/sample3.html', text='sample 3 repetition', fragment='', nofollow=False),
Link(url='<your_local_path>/sample3.html', text='sample 3 repetition', fragment='', nofollow=False)]}"><pre class="notranslate"><<span class="pl-ent">html</span>>
<<span class="pl-ent">body</span>>
<<span class="pl-ent">a</span> <span class="pl-e">href</span>=<span class="pl-s"><span class="pl-pds">'</span>sample3.html<span class="pl-pds">'</span></span>>sample 3 repetition</<span class="pl-ent">a</span>>
<<span class="pl-ent">a</span> <span class="pl-e">href</span>=<span class="pl-s"><span class="pl-pds">'</span>sample3.html<span class="pl-pds">'</span></span>>sample 3 repetition</<span class="pl-ent">a</span>>
</<span class="pl-ent">body</span>>
</<span class="pl-ent">html</span>>```
2) Scrapy test code:
ignore the error about <<span class="pl-ent">GET</span> <span class="pl-e">file:</span>///<span class="pl-e">robots.txt</span>> as we use local file
`import scrapy
from scrapy.linkextractors import LinkExtractor
class QuotesSpider(scrapy.Spider):
name = “test”
start_urls = [
'file:///<<span class="pl-ent">insert</span><span class="pl-e">_your_local_path</span>>/Test_file.html',
]
def __init__(self, *args, **kwargs):
super(QuotesSpider, self).__init__(*args, **kwargs)
self.le = LinkExtractor(unique=False)
def parse(self, response):
links = self.le.extract_links(response)
yield {'extract_link': links}`
3) run the code: scrapy crawl test, and get the result with one link:
{'extract_link': [Link(url='file:///<<span class="pl-ent">your</span><span class="pl-e">_local_path</span>>/sample3.html', text='sample 3 repetition', fragment='', nofollow=False)]}
Instead of the result with two links from HTML:
{'extract_link': [Link(url='file:///<<span class="pl-ent">your</span><span class="pl-e">_local_path</span>>/sample3.html', text='sample 3 repetition', fragment='', nofollow=False),
Link(url='<<span class="pl-ent">your</span><span class="pl-e">_local_path</span>>/sample3.html', text='sample 3 repetition', fragment='', nofollow=False)]}</pre></div> | 0 |
<p dir="auto">Currently there are duplicated checks (e.g. java location and version) in <code class="notranslate">lib/src/android/android_workflow.dart</code> and <code class="notranslate">lib/src/android/android_studio.dart</code>.</p>
<p dir="auto">There should be one canonical Java locator / version checker that is shared between all components that need it (Android build steps, Flutter doctor checks, etc).</p> | <p dir="auto">I thought we had written this down somewhere but I don't see it. This came out of a discussion with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Hixie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Hixie">@Hixie</a> and is a nice-to-have feature, but not anywhere on our near-term roadmap. Filing as this came up in discussion with a customer the other day. The goal is to answer the question of "what devices/screensizes does my app look bad on".</p>
<p dir="auto">Should be straightforward with flutter to attempt laying out an app/route/widget at lots of different sizes and validate that no layout exceptions (red areas) are thrown. In the headless desktop sky_shell this would be very quick. Presumably there exists a list of known Android device screen sizes/densities somewhere on the web which should be straightforward to compile.</p> | 0 |
<p dir="auto">Hello Everyone,</p>
<p dir="auto">Just tried installing on server 2012 and I get the following notifications:</p>
<p dir="auto">E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"')<br>
for unknown op: FinishedNodes<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for<br>
unknown op: GrowTree<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"')<br>
for unknown op: SampleInputs<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"'<br>
) for unknown op: ScatterAddNdim<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') fo<br>
r unknown op: TopNRemove<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"<br>
') for unknown op: TreePredictions<br>
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core<br>
\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots</p>
<p dir="auto">I assume this is due to the server using 2 processors.<br>
Btw i did uninstall and reinstalled the nightly build.</p> | <p dir="auto">I installed TensorFlow version 1.0.0-rc2 on Windows 7 SP1 x64 Ultimate (Python 3.5.2 |Anaconda custom (64-bit)) using:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0rc2-cp35-cp35m-win_amd64.whl"><pre class="notranslate"><code class="notranslate">pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-1.0.0rc2-cp35-cp35m-win_amd64.whl
</code></pre></div>
<p dir="auto">When I try running the test script from <a href="https://web.archive.org/web/20170214034751/https://www.tensorflow.org/get_started/os_setup#test_the_tensorflow_installation" rel="nofollow">https://web.archive.org/web/20170214034751/https://www.tensorflow.org/get_started/os_setup#test_the_tensorflow_installation</a> in Eclipse 4.5 or in the console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
print('TensorFlow version: {0}'.format(tf.__version__))
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
print('TensorFlow version: {0}'.format(tf.__version__))
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
print(sess.run(hello))
</code></pre></div>
<p dir="auto">I obtain some error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TensorFlow version: 1.0.0-rc2
'Hello, TensorFlow!'
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflob
w\core\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodes
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTree
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"') for unknown op: ScatterAddNdim
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') for unknown op: TopNRemove
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"') for unknown op: TreePredictions
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots"><pre class="notranslate"><code class="notranslate">TensorFlow version: 1.0.0-rc2
'Hello, TensorFlow!'
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflob
w\core\framework\op_kernel.cc:943] OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "CountExtremelyRandomStats" device_type: "CPU"') for unknown op: CountExtremelyRandomStats
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "FinishedNodes" device_type: "CPU"') for unknown op: FinishedNodes
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "GrowTree" device_type: "CPU"') for unknown op: GrowTree
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ReinterpretStringToFloat" device_type: "CPU"') for unknown op: ReinterpretStringToFloat
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "SampleInputs" device_type: "CPU"') for unknown op: SampleInputs
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "ScatterAddNdim" device_type: "CPU"') for unknown op: ScatterAddNdim
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNInsert" device_type: "CPU"') for unknown op: TopNInsert
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TopNRemove" device_type: "CPU"') for unknown op: TopNRemove
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "TreePredictions" device_type: "CPU"') for unknown op: TreePredictions
E c:\tf_jenkins\home\workspace\release-win\device\cpu\os\windows\tensorflow\core\framework\op_kernel.cc:943] OpKernel ('op: "UpdateFertileSlots" device_type: "CPU"') for unknown op: UpdateFertileSlots
</code></pre></div>
<p dir="auto">Why?</p>
<p dir="auto">I didn't have such issues with TensorFlow 0.12.1 (installed with <code class="notranslate">pip install tensorflow==0.12.1</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TensorFlow version: 0.12.1
b'Hello, TensorFlow!'"><pre class="notranslate"><code class="notranslate">TensorFlow version: 0.12.1
b'Hello, TensorFlow!'
</code></pre></div>
<p dir="auto">Stack Exchange thread: <a href="http://stackoverflow.com/q/42217532/395857" rel="nofollow">TensorFlow version 1.0.0-rc2 on Windows: "OpKernel ('op: "BestSplits" device_type: "CPU"') for unknown op: BestSplits" with test code</a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/drpngx/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/drpngx">@drpngx</a></p> | 1 |
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays" rel="nofollow">http://freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible. My code is below and runs fine in Firebug console:<br>
function largestOfFour(arr) {<br>
var matrix = arr;<br>
var longestNum = 0;<br>
var longestArray = [];<br>
for (var i = 0; i < matrix.length; i++) {<br>
longestNum = 0;<br>
for (var j = 0; j < matrix[i].length; j++){<br>
if (longestNum < matrix[i][j]) {<br>
longestNum = matrix[i][j];<br>
}<br>
}<br>
longestArray.push(longestNum); // push highest value in first sub array<br>
}<br>
return longestArray;<br>
}</p>
<p dir="auto">largestOfFour([[4, 5, 1, 3], [13, 27, 18, 26], [32, 35, 37, 39], [1000, 1001, 857, 1]]);</p>
<p dir="auto">In Firefox, it gives the error largestOfFour(...). should is undefined.<br>
In Chrome, it gives the error cannot read propery 'eql' of undefined.</p> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-comment-your-javascript-code</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">Hi there,<br>
I came across this naturally from going through the jQuery exercises, I refreshed the page thinking what I imagine is test code to disappear, but alas, it's still there. This is what I'm seeing.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7364028/9430008/35d1f962-4999-11e5-890d-7acf0e61b53d.png"><img src="https://cloud.githubusercontent.com/assets/7364028/9430008/35d1f962-4999-11e5-890d-7acf0e61b53d.png" alt="screenshot 2015-08-23 13 14 01" style="max-width: 100%;"></a></p>
<p dir="auto">Hope this helps!<br>
Thanks,<br>
Bri</p> | 0 |
<p dir="auto">I am trying the 'hero' example on angular.io and using JSPM to load my scripts (non-bundled).<br>
To get relative urls for my templates, i tried the method in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="85639418" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/2383" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/2383/hovercard" href="https://github.com/angular/angular/issues/2383">#2383</a> and added <code class="notranslate">moduleId: module.id</code> to my component.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {Component} from 'angular2/core';
import {Hero} from "./hero";
@Component({
selector: 'my-hero-detail',
inputs: ['hero'],
moduleId: module.id,
templateUrl:'heroes.html'
})"><pre class="notranslate"><code class="notranslate">import {Component} from 'angular2/core';
import {Hero} from "./hero";
@Component({
selector: 'my-hero-detail',
inputs: ['hero'],
moduleId: module.id,
templateUrl:'heroes.html'
})
</code></pre></div>
<p dir="auto">However, doing so and then running the app, makes the html stuck at 'Loading...' with no errors in the console.</p>
<p dir="auto">Screenshot:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3190176/12008390/1caf5b36-abec-11e5-90df-f4b07bd1e39e.png"><img width="232" alt="angular_2_quickstart" src="https://cloud.githubusercontent.com/assets/3190176/12008390/1caf5b36-abec-11e5-90df-f4b07bd1e39e.png" style="max-width: 100%;"></a></p> | <p dir="auto">As mention on <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="85639418" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/2383" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/2383/hovercard" href="https://github.com/angular/angular/issues/2383">#2383</a> we could use Relative TemplateUrl just setting the property "module" inside component decoration.</p>
<p dir="auto">Actually we are unable to use this feature because we use systemjs as described in "5 Min Quickstart - ts" sample....so we don't have any "module.id" set by the loader.</p>
<p dir="auto">The question is just simple...how to use Relative TemplateUrl with SystemJS?</p> | 1 |
<p dir="auto">I'm moving this issue here from codeplex:<br>
<a href="https://typescript.codeplex.com/workitem/1414" rel="nofollow">https://typescript.codeplex.com/workitem/1414</a></p>
<p dir="auto">This feature would help to use "library projects" in a way that you only have to specify the actual path once (eg. with a compiler flag).</p>
<p dir="auto">I'd love to see this implemented in the official compiler. I think it's small work and adds huge value.<br>
I can have a try at adding this but I'd value some guidelines on how to edit the compiler and how it would make it's way to be part of the official compiler.</p> | <p dir="auto">I'm using <code class="notranslate">core-js</code> with its correspond <a href="https://github.com/borisyankov/DefinitelyTyped/blob/master/core-js/core-js.d.ts">d.ts</a> from <code class="notranslate">DefinitelyTyped</code>, but fails when I want compile my project. This only happen with <code class="notranslate">typescript@next</code>, with the last stable version compiles fine.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/usr/local/lib/node_modules/typescript/lib/lib.d.ts(1202,5): error TS2300: Duplicate identifier 'length'.
ts/lib/core-js.d.ts(73,5): error TS2300: Duplicate identifier 'length'.
ts/lib/core-js.d.ts(74,5): error TS2375: Duplicate number index signature."><pre class="notranslate"><code class="notranslate">/usr/local/lib/node_modules/typescript/lib/lib.d.ts(1202,5): error TS2300: Duplicate identifier 'length'.
ts/lib/core-js.d.ts(73,5): error TS2300: Duplicate identifier 'length'.
ts/lib/core-js.d.ts(74,5): error TS2375: Duplicate number index signature.
</code></pre></div> | 0 |
<p dir="auto">For completeness, we should add a polyfill for <a href="https://nodejs.org/api/vm.html" rel="nofollow">Node's vm module</a>.</p> | <p dir="auto">"moduleResolution" is <a href="https://github.com/denoland/deno/blob/main/cli/config_file.rs#L115">listed as an ignored</a> compiler option, but why is this necessary? Ie. why does it fall under...</p>
<blockquote>
<p dir="auto">there are lots of parts of a TypeScript configuration file that are meaningless in a Deno context or would cause Deno to not function properly if they were applied.</p>
</blockquote>
<p dir="auto">... from <a href="https://deno.land/manual/typescript/configuration#how-deno-uses-a-configuration-file" rel="nofollow">https://deno.land/manual/typescript/configuration#how-deno-uses-a-configuration-file</a></p>
<p dir="auto"><code class="notranslate">compilerOptions.moduleResolution</code> is <strong>meaningful</strong> (as it relates to loading third-party code) but I fail to see how it causes Deno to function improperly.</p>
<p dir="auto">Typescript itself says that the "classic" strategy (which is what Deno uses) <a href="https://www.typescriptlang.org/docs/handbook/module-resolution.html#classic" rel="nofollow">should only exist for backwards-compatability</a> which means that a lot of projects written in Typescript are bound to use Node's strategy where importing a directory will look (by default) for an <code class="notranslate">index.ts</code> file.</p> | 0 |
<p dir="auto">Code is Repeated twice leading to a second button.<br>
This happens in "Target the Parent of an Element Using jQuery" (This might not be the only location)</p>
<p dir="auto">HOW TO REPRODUCE:</p>
<ol dir="auto">
<li>use this link (only the code is necessary): <a href="http://goo.gl/6U2rQC" rel="nofollow">http://goo.gl/6U2rQC</a></li>
<li>reload the page<br>
(see how #target5 is in #left-well twice?, this shouldn't be the case)</li>
</ol>
<p dir="auto">Browser: Chrome & MicrosoftEdge<br>
Windows 10</p>
<h4 dir="auto">Your Code</h4>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
$("#target1").parent().css("background-color","blue");
});
</script>
<!-- Only change code above this line. -->
<body>
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
</body>
"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">script</span><span class="pl-c1">></span>
$(document).ready(function() <span class="pl-kos">{</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</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">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">parent</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"background-color"</span><span class="pl-kos">,</span><span class="pl-s">"blue"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>);
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">script</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-c1">!</span><span class="pl-c1">--</span> <span class="pl-v">Only</span> <span class="pl-s1">change</span> <span class="pl-s1">code</span> <span class="pl-s1">above</span> <span class="pl-s1">this</span> <span class="pl-s1">line</span><span class="pl-kos">.</span> <span class="pl-c1">--</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">body</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">h3</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>jQuery Playground<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">h3</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-6"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">h4</span><span class="pl-c1">></span>#left-well<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">h4</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">"well"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"left-well"</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-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target1"</span><span class="pl-c1">></span>#target1<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-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target2"</span><span class="pl-c1">></span>#target2<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-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target3"</span><span class="pl-c1">></span>#target3<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">div</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"col-xs-6"</span><span class="pl-c1">></span>
<span class="pl-c1"><</span><span class="pl-ent">h4</span><span class="pl-c1">></span>#right-well<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">h4</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">"well"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"right-well"</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-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target4"</span><span class="pl-c1">></span>#target4<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-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target5"</span><span class="pl-c1">></span>#target5<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-ent">button</span> <span class="pl-c1">class</span><span class="pl-c1">=</span><span class="pl-s">"btn btn-default target"</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"target6"</span><span class="pl-c1">></span>#target6<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-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-c1">/</span><span class="pl-ent">body</span><span class="pl-c1">></span></pre></div>
<p dir="auto">Screenshot:<br>
<a href="https://www.dropbox.com/s/k53mljbfdyfbyq1/target%205.PNG?dl=0" rel="nofollow">https://www.dropbox.com/s/k53mljbfdyfbyq1/target%205.PNG?dl=0</a></p> | <p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-clone-an-element-using-jquery#?solution=fccss%0A%20%20%24%28document%29.ready%28function%28%29%20%7B%0A%20%20%20%20%24%28%22%23target1%22%29.css%28%22color%22%2C%20%22red%22%29%3B%0A%20%20%20%20%24%28%22%23target1%22%29.prop%28%22disabled%22%2C%20true%29%3B%0A%20%20%20%20%24%28%22%23target4%22%29.remove%28%29%3B%0A%20%20%20%20%24%28%22%23target2%22%29.appendTo%28%22%23right-well%22%29%3B%0A%20%20%20%20%24%28%22%23target5%22%29.clone%28%29.appendTo%28%22%23left-well%22%29%3B%0A%20%20%7D%29%3B%0Afcces%0A%0A%3C!--%20Only%20change%20code%20above%20this%20line.%20--%3E%0A%0A%3Cdiv%20class%3D%22container-fluid%22%3E%0A%20%20%3Ch3%20class%3D%22text-primary%20text-center%22%3EjQuery%20Playground%3C%2Fh3%3E%0A%20%20%3Cdiv%20class%3D%22row%22%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23left-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22left-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target1%22%3E%23target1%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target2%22%3E%23target2%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target3%22%3E%23target3%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3Cdiv%20class%3D%22col-xs-6%22%3E%0A%20%20%20%20%20%20%3Ch4%3E%23right-well%3C%2Fh4%3E%0A%20%20%20%20%20%20%3Cdiv%20class%3D%22well%22%20id%3D%22right-well%22%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target4%22%3E%23target4%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target5%22%3E%23target5%3C%2Fbutton%3E%0A%20%20%20%20%20%20%20%20%3Cbutton%20class%3D%22btn%20btn-default%20target%22%20id%3D%22target6%22%3E%23target6%3C%2Fbutton%3E%0A%20%20%20%20%20%20%3C%2Fdiv%3E%0A%20%20%20%20%3C%2Fdiv%3E%0A%20%20%3C%2Fdiv%3E%0A%3C%2Fdiv%3E%0A" rel="nofollow">Waypoint: Clone an Element Using jQuery</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.73 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<h2 dir="auto">Issue</h2>
<p dir="auto">I believe I've found bug in the phone simulation in <strong>Waypoint: Clone an Element Using jQuery</strong>:</p>
<p dir="auto">I entered the code to clone <code class="notranslate">target5</code> and append it to <code class="notranslate">left-well</code>, and now I see three <strong>target5</strong> buttons in the phone simulator. FCC says my code is correct and advances me to the next challenge. The following challenges also show three target5 buttons:</p>
<ul dir="auto">
<li>Waypoint: Target the Parent of an Element Using jQuery</li>
<li>Waypoint: Target the Children of an Element Using jQuery</li>
</ul>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/qualitymanifest/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/qualitymanifest">@qualitymanifest</a> confirms this issue on his <strong>Linux</strong> box.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5673126/11647398/76751658-9d35-11e5-8fcf-112ab89c6920.png"><img src="https://cloud.githubusercontent.com/assets/5673126/11647398/76751658-9d35-11e5-8fcf-112ab89c6920.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">My code:</h2>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<script>
$(document).ready(function() {
$("#target1").css("color", "red");
$("#target1").prop("disabled", true);
$("#target4").remove();
$("#target2").appendTo("#right-well");
$("#target5").clone().appendTo("#left-well");
});
</script>
<!-- Only change code above this line. -->
<div class="container-fluid">
<h3 class="text-primary text-center">jQuery Playground</h3>
<div class="row">
<div class="col-xs-6">
<h4>#left-well</h4>
<div class="well" id="left-well">
<button class="btn btn-default target" id="target1">#target1</button>
<button class="btn btn-default target" id="target2">#target2</button>
<button class="btn btn-default target" id="target3">#target3</button>
</div>
</div>
<div class="col-xs-6">
<h4>#right-well</h4>
<div class="well" id="right-well">
<button class="btn btn-default target" id="target4">#target4</button>
<button class="btn btn-default target" id="target5">#target5</button>
<button class="btn btn-default target" id="target6">#target6</button>
</div>
</div>
</div>
</div>
"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">script</span><span class="pl-kos">></span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">ready</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">"color"</span><span class="pl-kos">,</span> <span class="pl-s">"red"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target1"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">prop</span><span class="pl-kos">(</span><span class="pl-s">"disabled"</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">$</span><span class="pl-kos">(</span><span class="pl-s">"#target4"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target2"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#right-well"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">"#target5"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">appendTo</span><span class="pl-kos">(</span><span class="pl-s">"#left-well"</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-ent">script</span><span class="pl-kos">></span>
<span class="pl-c"><!-- Only change code above this line. --></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">container-fluid</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h3</span> <span class="pl-c1">class</span>="<span class="pl-s">text-primary text-center</span>"<span class="pl-kos">></span>jQuery Playground<span class="pl-kos"></</span><span class="pl-ent">h3</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">row</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">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#left-well<span class="pl-kos"></</span><span class="pl-ent">h4</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">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">left-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target1</span>"<span class="pl-kos">></span>#target1<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target2</span>"<span class="pl-kos">></span>#target2<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target3</span>"<span class="pl-kos">></span>#target3<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">div</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">col-xs-6</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">h4</span><span class="pl-kos">></span>#right-well<span class="pl-kos"></</span><span class="pl-ent">h4</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">well</span>" <span class="pl-c1">id</span>="<span class="pl-s">right-well</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target4</span>"<span class="pl-kos">></span>#target4<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target5</span>"<span class="pl-kos">></span>#target5<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">button</span> <span class="pl-c1">class</span>="<span class="pl-s">btn btn-default target</span>" <span class="pl-c1">id</span>="<span class="pl-s">target6</span>"<span class="pl-kos">></span>#target6<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">div</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-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span></pre></div> | 1 |
<p dir="auto">It should be possible to assign a module to a domain. Currently you can only set subdomain.</p> | <ol dir="auto">
<li>File structure:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="project -
- templates \
- a \
search.html
- b \
search.html
- start.py
- myapplication \
- test.py "><pre class="notranslate"><code class="notranslate">project -
- templates \
- a \
search.html
- b \
search.html
- start.py
- myapplication \
- test.py
</code></pre></div>
<ol dir="auto">
<li>Start file:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# start.py
from flask import Flask
from myapplication.test import test_blueprint
app = Flask(__name__)
app.register_blueprint(test_blueprint)"><pre class="notranslate"><code class="notranslate"># start.py
from flask import Flask
from myapplication.test import test_blueprint
app = Flask(__name__)
app.register_blueprint(test_blueprint)
</code></pre></div>
<ol dir="auto">
<li>my application</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# test.py
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound
test_blueprint = Blueprint('test_blueprint', __name__,
template_folder='absolute_path_to_project/templates/a')
# YES, I specified the absolute path to the template a
@test_blueprint.route('/test')
def show():
try:
return render_template(''search.html") # HERE is the problem
except TemplateNotFound:
abort(404)"><pre class="notranslate"><code class="notranslate"># test.py
from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound
test_blueprint = Blueprint('test_blueprint', __name__,
template_folder='absolute_path_to_project/templates/a')
# YES, I specified the absolute path to the template a
@test_blueprint.route('/test')
def show():
try:
return render_template(''search.html") # HERE is the problem
except TemplateNotFound:
abort(404)
</code></pre></div>
<p dir="auto">Is this a problem?<br>
# Actually, I want to render <strong>a/search.html</strong><br>
# But, <code class="notranslate">render_template()</code> does not use <strong>test_blueprint's template_folder</strong><br>
# <code class="notranslate">render_template()</code> search the <strong>template list</strong>, find the first <strong>search.html</strong>, then render<br>
# So, maybe render <strong>a/search.html</strong> or <strong>b/search.html</strong><br>
# This depend on the sequence of the <strong>template list</strong></p> | 0 |
<p dir="auto">Please try compiling this file:<br>
<a href="https://github.com/tomchentw/react-google-maps/blob/master/src/Polygon.js">https://github.com/tomchentw/react-google-maps/blob/master/src/Polygon.js</a></p>
<p dir="auto">I think the problematic part is this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default class Polygon extends Component {
static propTypes = {
// Uncontrolled default[props] - used only in componentDidMount
...polygonDefaultPropTypes,
// Controlled [props] - used in componentDidMount/componentDidUpdate
...polygonControlledPropTypes,
// Event [onEventName]
...polygonEventPropTypes,
}
// .......
}"><pre class="notranslate"><code class="notranslate">export default class Polygon extends Component {
static propTypes = {
// Uncontrolled default[props] - used only in componentDidMount
...polygonDefaultPropTypes,
// Controlled [props] - used in componentDidMount/componentDidUpdate
...polygonControlledPropTypes,
// Event [onEventName]
...polygonEventPropTypes,
}
// .......
}
</code></pre></div>
<p dir="auto">I use --presets es2015,react,stage-2 --plugins transform-class-properties to compile and get this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SyntaxError: react-google-maps/Polygon.js: 'super.*' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined"><pre class="notranslate"><code class="notranslate">SyntaxError: react-google-maps/Polygon.js: 'super.*' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined
</code></pre></div> | <p dir="auto"><strong>Input:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class MyClass extends ParentClass {
property = foo;
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">MyClass</span> <span class="pl-k">extends</span> <span class="pl-v">ParentClass</span> <span class="pl-kos">{</span>
<span class="pl-c1">property</span> <span class="pl-c1">=</span> <span class="pl-s1">foo</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Error:</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="SyntaxError: index.js: 'super.*' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined"><pre class="notranslate"><span class="pl-v">SyntaxError</span>: <span class="pl-s1">index</span><span class="pl-kos">.</span><span class="pl-c1">js</span>: '<span class="pl-smi">super</span><span class="pl-kos">.</span><span class="pl-c1">*</span>' is not allowed before super() (This is an error on an internal node. Probably an internal error)
undefined</pre></div>
<p dir="auto"><strong>Notes:</strong></p>
<ul dir="auto">
<li>Doesn't happen with <code class="notranslate">constructor() { super() }</code></li>
<li>Needs <code class="notranslate">ParentClass</code> to occur</li>
<li>Doesn't matter what the value of the class property is.</li>
</ul>
<p dir="auto">Example repo: <a href="https://github.com/thejameskyle/__babel-bug-2942">https://github.com/thejameskyle/__babel-bug-2942</a></p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">I observed a strange effect comparing Timings for an Asian Pricer implementation in Julia 1.4.2 and 1.5 Beta 1.<br>
For the vectorized implementation, Julia 1.5 is significantly faster than Julia 1.4.2 (which is great!).<br>
However, for the loop implementation, it is the other way around - Julia 1.5 took nearly twice as long.</p>
<p dir="auto">Could you please check? Or am I missing something obvious?</p>
<p dir="auto">Thanks and Best Regards<br>
Benjamin</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="using BenchmarkTools
using Random
using Statistics
T, r, K, s, Xo = promote(1.0, 0.05, 55.0, 0.3, 50) # align types for performance
m, mc = 1000, 10_000
# Source: https://gist.github.com/bkamins/7ecb8bf493cac8d6f6f3c141eedbaf4b
function asian_sample_julia(T, r, K, σ, X₀, m::Integer)
X = X₀
x̂ = zero(X)
Δ = T/m
for i in 1:m
X *= exp((r-σ^2/2)*Δ + σ*√Δ*randn())
x̂ += X
end
exp(-r*T)*max(x̂/m - K, 0)
end
function asian_sample_vec_julia(T, r, K, σ, X₀, m::Integer; rng=randn)
Δ = T/m
X = rng(typeof(X₀), m)
X .*= σ*√Δ
X .+= (r-σ^2/2)*Δ
X .= exp.(cumsum!(X, X))
exp(-r*T)*max(mean(X)*X₀ - K, 0)
end
asian_loop_julia(T, r, K, σ, X₀, m::Integer, mc:: Integer, f; kwargs...) = mean(f(T, r, K, σ, X₀, m; kwargs...) for _ in 1:mc)
versioninfo()
println("Loop implementation:")
@btime asian_loop_julia($T, $r, $K, $s, $Xo, $m, $mc, $asian_sample_julia)
println("Vectorized implementation:")
@btime asian_loop_julia($T, $r, $K, $s, $Xo, $m, $mc, $asian_sample_vec_julia)"><pre class="notranslate"><code class="notranslate">using BenchmarkTools
using Random
using Statistics
T, r, K, s, Xo = promote(1.0, 0.05, 55.0, 0.3, 50) # align types for performance
m, mc = 1000, 10_000
# Source: https://gist.github.com/bkamins/7ecb8bf493cac8d6f6f3c141eedbaf4b
function asian_sample_julia(T, r, K, σ, X₀, m::Integer)
X = X₀
x̂ = zero(X)
Δ = T/m
for i in 1:m
X *= exp((r-σ^2/2)*Δ + σ*√Δ*randn())
x̂ += X
end
exp(-r*T)*max(x̂/m - K, 0)
end
function asian_sample_vec_julia(T, r, K, σ, X₀, m::Integer; rng=randn)
Δ = T/m
X = rng(typeof(X₀), m)
X .*= σ*√Δ
X .+= (r-σ^2/2)*Δ
X .= exp.(cumsum!(X, X))
exp(-r*T)*max(mean(X)*X₀ - K, 0)
end
asian_loop_julia(T, r, K, σ, X₀, m::Integer, mc:: Integer, f; kwargs...) = mean(f(T, r, K, σ, X₀, m; kwargs...) for _ in 1:mc)
versioninfo()
println("Loop implementation:")
@btime asian_loop_julia($T, $r, $K, $s, $Xo, $m, $mc, $asian_sample_julia)
println("Vectorized implementation:")
@btime asian_loop_julia($T, $r, $K, $s, $Xo, $m, $mc, $asian_sample_vec_julia)
</code></pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
Loop implementation:
103.978 ms (0 allocations: 0 bytes)
Vectorized implementation:
165.363 ms (10000 allocations: 77.51 MiB)
2.0182973558431843
Julia Version 1.5.0-beta1.0
Commit 6443f6c95a (2020-05-28 17:42 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
Loop implementation:
191.175 ms (0 allocations: 0 bytes)
Vectorized implementation:
115.469 ms (10000 allocations: 77.51 MiB)
2.0806637302421787"><pre class="notranslate"><code class="notranslate">Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
Loop implementation:
103.978 ms (0 allocations: 0 bytes)
Vectorized implementation:
165.363 ms (10000 allocations: 77.51 MiB)
2.0182973558431843
Julia Version 1.5.0-beta1.0
Commit 6443f6c95a (2020-05-28 17:42 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-8650U CPU @ 1.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
Loop implementation:
191.175 ms (0 allocations: 0 bytes)
Vectorized implementation:
115.469 ms (10000 allocations: 77.51 MiB)
2.0806637302421787
</code></pre></div> | <p dir="auto">This may be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="17816749" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/3988" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/3988/hovercard" href="https://github.com/JuliaLang/julia/issues/3988">#3988</a>, but this will never be something that users will be able to extend.</p>
<p dir="auto">I'd like to be able to do:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="help?> while
The while loop evaluates the condition expression, and as long it remains true, keeps also evaluating the body of the while loop. If the condition expression is false when the while loop is first reached, the body is never evaluated."><pre class="notranslate"><code class="notranslate">help?> while
The while loop evaluates the condition expression, and as long it remains true, keeps also evaluating the body of the while loop. If the condition expression is false when the while loop is first reached, the body is never evaluated.
</code></pre></div> | 0 |
<p dir="auto">by <strong>sam.falvo</strong>:</p>
<pre class="notranslate">What does 'go version' print?
go version go1.2 darwin/amd64
What steps reproduce the problem?
If possible, include a link to a program on play.golang.org.
0. export GOPATH=$(pwd)
1. go get github.com/mailgun/mailgun-go
2. (cd src/github.com/mailgun/mailgun-go && git checkout
create-acceptance-tests)
3. go fmt github.com/mailgun/mailgun-go/acceptance
What happened?
It prints:
"""
can't load package: package github.com/mailgun/mailgun-go/acceptance: no buildable Go
source files in /Users/sfalvo/go/mailgun-go/src/github.com/mailgun/mailgun-go/acceptance
"""
What should have happened instead?
It should have reformatted the sources, printing the list of filenames it affected;
otherwise, it should have just returned to the shell with no output, indicating no
changes have been made, just as it does for 'normal' sources.</pre> | <pre class="notranslate">This issue serves as a catch-all for the currently known issues with go/types so that
they don't get forgotten.
Known bugs (in addition to already filed bugs):
- Corner-case legal recursive structs and interface types may not be accepted. The
type-checker must not rely on those types' structure before the types are completely
defined.
Missing features:
- Some built-ins don't check parameters fully, yet (e.g. append).
- Use of labels is only partially checked.
- Unused variables and imports are not reported.
- Interface vs non-interface comparisons are not correctly implemented.
- Switch statements don't check duplicate cases for all types for which it is required.
- Some built-ins may not be callable if in statement-context.
- The reported signature for builtin "expressions" should be a *Signature
specialized for the given arguments.
API:
- Type and Method factory functions need to revisited and all properly documented. There
is a balance between external need and desire to protect internal invariants in case of
API misuse.
- Decide if gcimporter should be in separate package.
Optimizations:
- Method sets should always compute the sets for both pointer and value receiver types
and cache them. Will avoid repeated and expensive method set computation.
- Method sets should be used for some of the assignment checks where
"implements" functionality is needed.
Cleanups:
- Type-checking of expressions should be cleaned up. There is duplication in the code
that can be avoided. See the relevant TODOs.</pre> | 0 |
<p dir="auto">Using TensorFlow backend.</p>
<hr>
<p dir="auto">ImportError Traceback (most recent call last)<br>
C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()<br>
17 try:<br>
---> 18 return importlib.import_module(mname)<br>
19 except ImportError:</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_<em>init</em>_.py in import_module(name, package)<br>
125 level += 1<br>
--> 126 return _bootstrap._gcd_import(name[level:], package, level)<br>
127</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in _gcd_import(name, package, level)</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in <em>find_and_load(name, import</em>)</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in <em>find_and_load_unlocked(name, import</em>)</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in _load_unlocked(spec)</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in module_from_spec(spec)</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_bootstrap_external.py in create_module(self, spec)</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_bootstrap.py in _call_with_frames_removed(f, *args, **kwds)</p>
<p dir="auto">ImportError: DLL load failed: No se puede encontrar el módulo especificado.</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">ModuleNotFoundError Traceback (most recent call last)<br>
C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()<br>
57<br>
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *<br>
59 from tensorflow.python.pywrap_tensorflow_internal import <strong>version</strong></p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in ()<br>
20 return importlib.import_module('_pywrap_tensorflow_internal')<br>
---> 21 _pywrap_tensorflow_internal = swig_import_helper()<br>
22 del swig_import_helper</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()<br>
19 except ImportError:<br>
---> 20 return importlib.import_module('_pywrap_tensorflow_internal')<br>
21 _pywrap_tensorflow_internal = swig_import_helper()</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\importlib_<em>init</em>_.py in import_module(name, package)<br>
125 level += 1<br>
--> 126 return _bootstrap._gcd_import(name[level:], package, level)<br>
127</p>
<p dir="auto">ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">ImportError Traceback (most recent call last)<br>
in ()<br>
----> 1 from keras.models import Sequential, Model<br>
2 from keras.layers import *<br>
3 from keras.layers.advanced_activations import LeakyReLU<br>
4 from keras.activations import relu<br>
5 from keras.initializers import RandomNormal</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\keras_<em>init</em>_.py in ()<br>
1 from <strong>future</strong> import absolute_import<br>
2<br>
----> 3 from . import utils<br>
4 from . import activations<br>
5 from . import applications</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\keras\utils_<em>init</em>_.py in ()<br>
4 from . import data_utils<br>
5 from . import io_utils<br>
----> 6 from . import conv_utils<br>
7<br>
8 # Globally-importable utils.</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\keras\utils\conv_utils.py in ()<br>
1 from six.moves import range<br>
2 import numpy as np<br>
----> 3 from .. import backend as K<br>
4<br>
5</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\keras\backend_<em>init</em>_.py in ()<br>
81 elif _BACKEND == 'tensorflow':<br>
82 sys.stderr.write('Using TensorFlow backend.\n')<br>
---> 83 from .tensorflow_backend import *<br>
84 else:<br>
85 raise ValueError('Unknown backend: ' + str(_BACKEND))</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\keras\backend\tensorflow_backend.py in ()<br>
----> 1 import tensorflow as tf<br>
2 from tensorflow.python.training import moving_averages<br>
3 from tensorflow.python.ops import tensor_array_ops<br>
4 from tensorflow.python.ops import control_flow_ops<br>
5 from tensorflow.python.ops import functional_ops</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\tensorflow_<em>init</em>_.py in ()<br>
22<br>
23 # pylint: disable=wildcard-import<br>
---> 24 from tensorflow.python import *<br>
25 # pylint: enable=wildcard-import<br>
26</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python_<em>init</em>_.py in ()<br>
47 import numpy as np<br>
48<br>
---> 49 from tensorflow.python import pywrap_tensorflow<br>
50<br>
51 # Protocol buffers</p>
<p dir="auto">C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in ()<br>
70 for some common reasons and solutions. Include the entire stack trace<br>
71 above this error message when asking for help.""" % traceback.format_exc()<br>
---> 72 raise ImportError(msg)<br>
73<br>
74 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long</p>
<p dir="auto">ImportError: Traceback (most recent call last):<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper<br>
return importlib.import_module(mname)<br>
File "C:\ProgramData\Anaconda3\lib\importlib_<em>init</em>_.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
File "", line 994, in _gcd_import<br>
File "", line 971, in _find_and_load<br>
File "", line 955, in _find_and_load_unlocked<br>
File "", line 658, in _load_unlocked<br>
File "", line 571, in module_from_spec<br>
File "", line 922, in create_module<br>
File "", line 219, in _call_with_frames_removed<br>
ImportError: DLL load failed: No se puede encontrar el módulo especificado.</p>
<p dir="auto">During handling of the above exception, another exception occurred:</p>
<p dir="auto">Traceback (most recent call last):<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <br>
_pywrap_tensorflow_internal = swig_import_helper()<br>
File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper<br>
return importlib.import_module('<em>pywrap_tensorflow_internal')<br>
File "C:\ProgramData\Anaconda3\lib\importlib_<em>init</em></em>.py", line 126, in import_module<br>
return _bootstrap._gcd_import(name[level:], package, level)<br>
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'</p>
<p dir="auto">Failed to load the native TensorFlow runtime.</p>
<p dir="auto">See <a href="https://www.tensorflow.org/install/install_sources#common_installation_problems" rel="nofollow">https://www.tensorflow.org/install/install_sources#common_installation_problems</a></p>
<p dir="auto">for some common reasons and solutions. Include the entire stack trace<br>
above this error message when asking for help.</p>
<p dir="auto">I'm in a anaconda environment.</p>
<p dir="auto"><strong>CONDA LIST:</strong></p>
<p dir="auto">(gan) C:\Users\ZeroCool22\faceswap-GAN>conda list<br>
packages in environment at C:\ProgramData\Anaconda3\envs\gan:</p>
<p dir="auto">Name Version Build Channel<br>
absl-py 0.1.10 <br>
backports 1.0 py36h81696a8_1<br>
backports.weakref 1.0rc1 py36_0<br>
bleach 1.5.0 py36_0 conda-forge<br>
boost 1.64.0 py36_vc14_4 [vc14] conda-forge<br>
boost-cpp 1.64.0 vc14_1 [vc14] conda-forge<br>
bzip2 1.0.6 vc14_1 [vc14] conda-forge<br>
ca-certificates 2017.08.26 h94faf87_0<br>
certifi 2018.1.18 py36_0<br>
click 6.7 <br>
cudatoolkit 8.0 3 anaconda<br>
cudnn 6.0 0 anaconda<br>
decorator 4.0.11 py36_0 conda-forge<br>
dlib 19.4 np112py36_201 conda-forge<br>
dlib 19.9.0 <br>
face-recognition 1.2.1 <br>
face-recognition-models 0.3.0 <br>
ffmpeg 3.4.1 1 conda-forge<br>
freetype 2.8.1 vc14_0 [vc14] conda-forge<br>
h5py 2.7.1 py36_2 conda-forge<br>
hdf5 1.10.1 vc14_1 [vc14] conda-forge<br>
html5lib 0.9999999 py36_0 conda-forge<br>
icc_rt 2017.0.4 h97af966_0<br>
icu 58.2 vc14_0 [vc14] conda-forge<br>
imageio 2.1.2 py36_0 conda-forge<br>
intel-openmp 2018.0.0 hd92c6cd_8<br>
jpeg 9b vc14_2 [vc14] conda-forge<br>
keras 2.0.9 py36_0 conda-forge<br>
libgpuarray 0.7.5 vc14_0 [vc14] conda-forge<br>
libiconv 1.14 vc14_4 [vc14] conda-forge<br>
libpng 1.6.34 vc14_0 [vc14] conda-forge<br>
libtiff 4.0.9 vc14_0 [vc14] conda-forge<br>
libwebp 0.5.2 vc14_7 [vc14] conda-forge<br>
libxml2 2.9.3 vc14_9 [vc14] conda-forge<br>
mako 1.0.7 py36_0 conda-forge<br>
Markdown 2.6.11 <br>
markdown 2.6.9 py36_0 conda-forge<br>
markupsafe 1.0 py36_0 conda-forge<br>
mkl 2018.0.1 h2108138_4<br>
moviepy 0.2.3.2 py36_0 conda-forge<br>
numpy 1.14.0 <br>
numpy 1.12.1 py36hf30b8aa_1 anaconda<br>
olefile 0.44 py36_0 conda-forge<br>
opencv 3.3.0 py36_200 conda-forge<br>
openssl 1.0.2n h74b6da3_0<br>
pillow 5.0.0 py36_0 conda-forge<br>
pip 9.0.1 py36_1 conda-forge<br>
protobuf 3.5.1 py36_vc14_3 [vc14] conda-forge<br>
protobuf 3.5.1 <br>
pygpu 0.7.5 py36_0 conda-forge<br>
python 3.6.4 0 conda-forge<br>
pyyaml 3.12 py36_1 conda-forge<br>
qt 5.6.2 vc14_1 [vc14] conda-forge<br>
scipy 1.0.0 py36h1260518_0<br>
setuptools 38.5.1 <br>
setuptools 38.4.0 py36_0 conda-forge<br>
six 1.11.0 py36_1 conda-forge<br>
six 1.11.0 <br>
sqlite 3.20.1 vc14_2 [vc14] conda-forge<br>
tensorboard 0.4.0rc3 py36_2 conda-forge<br>
tensorflow-gpu 1.3.0 <br>
tensorflow-tensorboard 0.1.8 <br>
theano 1.0.1 py36_1 conda-forge<br>
tk 8.6.7 vc14_0 [vc14] conda-forge<br>
tqdm 4.11.2 py36_0 conda-forge<br>
vc 14 0 conda-forge<br>
vs2015_runtime 14.0.25420 0 conda-forge<br>
webencodings 0.5 py36_0 conda-forge<br>
werkzeug 0.14.1 py_0 conda-forge<br>
Werkzeug 0.14.1 <br>
wheel 0.30.0 <br>
wheel 0.30.0 py36_2 conda-forge<br>
wincertstore 0.2 py36_0 conda-forge<br>
yaml 0.1.7 vc14_0 [vc14] conda-forge<br>
zlib 1.2.11 vc14_0 [vc14] conda-forge</p>
<h2 dir="auto">(gan) C:\Users\ZeroCool22\faceswap-GAN></h2>
<p dir="auto"><strong>tensorflow_self_check.py results:</strong></p>
<p dir="auto">(gan) C:\Users\ZeroCool22\Desktop\Nueva carpeta (3)>python tensorflow_self_check.py<br>
ERROR: Failed to import the TensorFlow module.</p>
<ul dir="auto">
<li>
<p dir="auto">Python version is 3.6.</p>
</li>
<li>
<p dir="auto">TensorFlow is installed at: C:\ProgramData\Anaconda3\envs\gan\lib\site-packages\tensorflow</p>
</li>
<li>
<p dir="auto">All required DLLs appear to be present. Please open an issue on the<br>
TensorFlow GitHub page: <a href="https://github.com/tensorflow/tensorflow/issues">https://github.com/tensorflow/tensorflow/issues</a></p>
</li>
</ul>
<p dir="auto"><strong>OS: Windows 10<br>
GPU: 1080TI<br>
CPU: 7700K<br>
RAM: 32gb</strong></p> | <h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No, problem appears on import (import tensorflow as tf).</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Windows 10 x64</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary (pip --no-cache-dir) install --upgrade tensorflow</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.6.0 (install says tensorflow-1.6.0-cp36-cp36m-win_amd64.whl)</li>
<li><strong>Python version</strong>: 3.6.4 x64</li>
<li><strong>Bazel version (if compiling from source)</strong>: n/a</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li>
<li><strong>CUDA/cuDNN version</strong>: n/a</li>
<li><strong>GPU model and memory</strong>: n/a</li>
<li><strong>Exact command to reproduce</strong>: import tensorflow as tf</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture script:</p>
<p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p>
<p dir="auto">You can obtain the TensorFlow version with</p>
<p dir="auto">python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">When installing tensorflow 1.6.0 the import reports problems. See log below. Tried uninstalled r1.6 and reinstalled 1.5.0 to see if something else might be the problem. 1.5.0 works like a charm. Tried a clean install of 1.6.0 without any luck.</p>
<p dir="auto">Ran the 'tensorflow_self_check.py' script. See log below.</p>
<h3 dir="auto">Source code / logs</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
------------------------
When running 'tensorflow_self_check.py' this is what is reported. Supposed to have installed the CPU version so cuda is not installed.
ERROR: Failed to import the TensorFlow module.
- Python version is 3.6.
- TensorFlow is installed at: C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow
- Could not load 'cudart64_80.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Download and install CUDA 8.0 from
this URL: https://developer.nvidia.com/cuda-toolkit
- Could not load 'cudnn64_5.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Note that installing cuDNN is a
separate step from installing CUDA, and it is often found in a
different directory from the CUDA DLLs. You may install the
necessary DLL by downloading cuDNN 5.1 from this URL:
https://developer.nvidia.com/cudnn
- Could not find cuDNN."><pre class="notranslate"><code class="notranslate">Python 3.6.4 (v3.6.4:d48eceb, Dec 19 2017, 06:54:40) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
from tensorflow.python import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\__init__.py", line 49, in <module>
from tensorflow.python import pywrap_tensorflow
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in <module>
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 18, in swig_import_helper
return importlib.import_module(mname)
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 994, in _gcd_import
File "<frozen importlib._bootstrap>", line 971, in _find_and_load
File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 658, in _load_unlocked
File "<frozen importlib._bootstrap>", line 571, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 922, in create_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 21, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 20, in swig_import_helper
return importlib.import_module('_pywrap_tensorflow_internal')
File "C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\importlib\__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_pywrap_tensorflow_internal'
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
------------------------
When running 'tensorflow_self_check.py' this is what is reported. Supposed to have installed the CPU version so cuda is not installed.
ERROR: Failed to import the TensorFlow module.
- Python version is 3.6.
- TensorFlow is installed at: C:\Users\Jonas\AppData\Local\Programs\Python\Python36\lib\site-packages\tensorflow
- Could not load 'cudart64_80.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Download and install CUDA 8.0 from
this URL: https://developer.nvidia.com/cuda-toolkit
- Could not load 'cudnn64_5.dll'. The GPU version of TensorFlow
requires that this DLL be installed in a directory that is named in
your %PATH% environment variable. Note that installing cuDNN is a
separate step from installing CUDA, and it is often found in a
different directory from the CUDA DLLs. You may install the
necessary DLL by downloading cuDNN 5.1 from this URL:
https://developer.nvidia.com/cudnn
- Could not find cuDNN.
</code></pre></div> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.5.4</li>
<li>Language=> python/cpp</li>
<li>Operating System / Platform => Windows</li>
<li>Compiler => MSVC 19.32.31332.0<br>
I am trying to replicate PIL and scikit-image nearest-neighbor o/p in OpenCV but getting INTER_NEAREST o/p.</li>
</ul>
<ul dir="auto">
<li>
<p dir="auto">Original image:<br>
img<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17100687/177693650-83d8d354-2aa7-4680-99f2-ce7206f0aacb.png"><img src="https://user-images.githubusercontent.com/17100687/177693650-83d8d354-2aa7-4680-99f2-ce7206f0aacb.png" alt="temp" style="max-width: 100%;"></a></p>
</li>
<li>
<p dir="auto">OpenCV INTER_NEAREST:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17100687/177693674-5a3dfcef-6b28-45f3-a3b7-72248d2c756e.png"><img src="https://user-images.githubusercontent.com/17100687/177693674-5a3dfcef-6b28-45f3-a3b7-72248d2c756e.png" alt="temp1" style="max-width: 100%;"></a></p>
</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" cv2.resize(x,(0,0),fx=0.5,fy=0.5,interpolation=cv2.INTER_NEAREST)"><pre class="notranslate"> <span class="pl-s1">cv2</span>.<span class="pl-en">resize</span>(<span class="pl-s1">x</span>,(<span class="pl-c1">0</span>,<span class="pl-c1">0</span>),<span class="pl-s1">fx</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>,<span class="pl-s1">fy</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>,<span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">INTER_NEAREST</span>)</pre></div>
<ul dir="auto">
<li>OpenCV INTER_NEAREST_EXACT:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17100687/177693731-f3121c7b-ff99-4efd-9cc6-981c5b595fa9.png"><img src="https://user-images.githubusercontent.com/17100687/177693731-f3121c7b-ff99-4efd-9cc6-981c5b595fa9.png" alt="temp2" style="max-width: 100%;"></a></li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" cv2.resize(x,(0,0),fx=0.5,fy=0.5,interpolation=cv2.INTER_NEAREST)"><pre class="notranslate"> <span class="pl-s1">cv2</span>.<span class="pl-en">resize</span>(<span class="pl-s1">x</span>,(<span class="pl-c1">0</span>,<span class="pl-c1">0</span>),<span class="pl-s1">fx</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>,<span class="pl-s1">fy</span><span class="pl-c1">=</span><span class="pl-c1">0.5</span>,<span class="pl-s1">interpolation</span><span class="pl-c1">=</span><span class="pl-s1">cv2</span>.<span class="pl-v">INTER_NEAREST</span>)</pre></div>
<ul dir="auto">
<li>PIL :<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17100687/177693745-8897be90-3690-403a-be02-43d349dd9beb.png"><img src="https://user-images.githubusercontent.com/17100687/177693745-8897be90-3690-403a-be02-43d349dd9beb.png" alt="temp3" style="max-width: 100%;"></a></li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x1=Image.fromarray(img)
x1.thumbnail((256,256),Image.Resampling.NEAREST) "><pre class="notranslate"><span class="pl-s1">x1</span><span class="pl-c1">=</span><span class="pl-v">Image</span>.<span class="pl-en">fromarray</span>(<span class="pl-s1">img</span>)
<span class="pl-s1">x1</span>.<span class="pl-en">thumbnail</span>((<span class="pl-c1">256</span>,<span class="pl-c1">256</span>),<span class="pl-v">Image</span>.<span class="pl-v">Resampling</span>.<span class="pl-v">NEAREST</span>) </pre></div>
<ul dir="auto">
<li>scikit-image :<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17100687/177693760-fc64e5be-4215-4d2a-bf2e-c39beb35130a.png"><img src="https://user-images.githubusercontent.com/17100687/177693760-fc64e5be-4215-4d2a-bf2e-c39beb35130a.png" alt="temp5" style="max-width: 100%;"></a></li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="rescale(x,0.5,order=0,preserve_range=True, anti_aliasing=False) "><pre class="notranslate"><span class="pl-en">rescale</span>(<span class="pl-s1">x</span>,<span class="pl-c1">0.5</span>,<span class="pl-s1">order</span><span class="pl-c1">=</span><span class="pl-c1">0</span>,<span class="pl-s1">preserve_range</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">anti_aliasing</span><span class="pl-c1">=</span><span class="pl-c1">False</span>) </pre></div>
<p dir="auto">As it can be seen, OpenCV INTER_NEAREST and OpenCV INTER_NEAREST_EXACT are matching, which is not expected.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17100687/177694208-ae66b04d-2319-4e60-a4fb-2f06b1e1380b.png"><img src="https://user-images.githubusercontent.com/17100687/177694208-ae66b04d-2319-4e60-a4fb-2f06b1e1380b.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The expected was that the OpenCV INTER_NEAREST_EXACT should match PIL and scikit-image o/p, but I am getting this difference:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17100687/177694183-90234e99-eb3b-4ce3-acb3-f7c3785d9cdc.png"><img src="https://user-images.githubusercontent.com/17100687/177694183-90234e99-eb3b-4ce3-acb3-f7c3785d9cdc.png" alt="image" style="max-width: 100%;"></a></p>
<h5 dir="auto">Issue submission checklist</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues,<br>
forum.opencv.org, Stack Overflow, etc and have not found any solution</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I updated to the latest OpenCV version and the issue is still there</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files: videos, images, onnx, etc</li>
</ul> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 2.4.9</li>
<li>Operating System / Platform => Ubuntu 16.04</li>
<li>Compiler => gcc 5.4.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Nearest neighbor interpolation using cv2.resize does not give expected results.</p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import cv2
import numpy as np
a = np.array([[0, 1, 2, 3, 4]], dtype=np.uint8)
print 'nearest', cv2.resize(a, dsize=(3, 1), interpolation=cv2.INTER_NEAREST)"><pre class="notranslate"><code class="notranslate">import cv2
import numpy as np
a = np.array([[0, 1, 2, 3, 4]], dtype=np.uint8)
print 'nearest', cv2.resize(a, dsize=(3, 1), interpolation=cv2.INTER_NEAREST)
</code></pre></div>
<p dir="auto">gives</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nearest [[0 1 3]]"><pre class="notranslate"><code class="notranslate">nearest [[0 1 3]]
</code></pre></div>
<p dir="auto">expected</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nearest [[0 2 4]]"><pre class="notranslate"><code class="notranslate">nearest [[0 2 4]]
</code></pre></div> | 1 |
<p dir="auto">As discussed in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="994167887" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/42222" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/42222/hovercard" href="https://github.com/JuliaLang/julia/issues/42222">#42222</a>, it is often useful to require a vararg to be non-empty. However, a generalization of that idea is that one often wants to dispatch on vararg where <em>at least one</em> of the vararg entries is a <em>narrower</em> type, in order to avoid type piracy. (See e.g. <a href="https://github.com/JuliaDiff/ChainRulesCore.jl/pull/473#discussion_r718908483" data-hovercard-type="pull_request" data-hovercard-url="/JuliaDiff/ChainRulesCore.jl/pull/473/hovercard">this example</a> in ChainRulesCore, cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/oxinabox/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/oxinabox">@oxinabox</a>.)</p>
<p dir="auto">For example, suppose that <code class="notranslate">Base</code> defines a function <code class="notranslate">foo(x::Number...) = 1</code>. Now, in my own package I want to define a more specialized version of <code class="notranslate">foo</code> when <code class="notranslate">x...</code> includes at least one element of <code class="notranslate">MyNumber</code>:</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="foo(x::Union{Number,MyNumber}...) = 2"><pre class="notranslate"><span class="pl-en">foo</span>(x<span class="pl-k">::</span><span class="pl-c1">Union{Number,MyNumber}</span>...) <span class="pl-k">=</span> <span class="pl-c1">2</span></pre></div>
<p dir="auto">Unfortunately, the second method is type piracy, and overrides the <code class="notranslate">Base</code> method in <em>all</em> cases.</p>
<p dir="auto">If we had a syntax to declare that at least one of the arguments was a <code class="notranslate">MyNumber</code>, and corresponding support in the dispatch system, that would allow us to obtain the desired dispatch behavior.</p>
<p dir="auto">Syntactically, my suggestion would be to define a new variant of <code class="notranslate">Vararg{T,N}</code>, e.g. <code class="notranslate">VarargOne{T1, T, N}</code>, to denote a tuple of <code class="notranslate">N > 0</code> elements of type <code class="notranslate">Union{T,T1}</code>, at least one of which is of type <code class="notranslate">T1</code>. This would allow e.g.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="foo(x::VarargOne{MyNumber,Number,N}) where {N} = 2"><pre class="notranslate"><span class="pl-en">foo</span>(x<span class="pl-k">::</span><span class="pl-c1">VarargOne{MyNumber,Number,N}</span>) <span class="pl-k">where</span> {N} <span class="pl-k">=</span> <span class="pl-c1">2</span></pre></div> | <p dir="auto">Okay, so this is a bit of a weird feature request, but there are some circumstances, for example when writing a CAS, where you want to dispatch on whether some type <code class="notranslate">T</code> occurs <em>anywhere</em> in an args list. Currently, the only real way to do this is with a trait like mechanism, e.g.</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="struct T end
struct HasT end
struct DoesntHaveT end
has_T(::Tup) where {Tup <: Tuple} = T ∈ Tup.parameters ? HasT() : DoesntHaveT();
f(args...) = f(has_T(args), args...)
f(::HasT, args...) = 1;
f(::DoesntHaveT, args...) = 2;"><pre class="notranslate"><span class="pl-k">struct</span> T <span class="pl-k">end</span>
<span class="pl-k">struct</span> HasT <span class="pl-k">end</span>
<span class="pl-k">struct</span> DoesntHaveT <span class="pl-k">end</span>
<span class="pl-en">has_T</span>(<span class="pl-k">::</span><span class="pl-c1">Tup</span>) <span class="pl-k">where</span> {Tup <span class="pl-k"><:</span> <span class="pl-c1">Tuple</span>} <span class="pl-k">=</span> T <span class="pl-k">∈</span> Tup<span class="pl-k">.</span>parameters <span class="pl-k">?</span> <span class="pl-c1">HasT</span>() <span class="pl-k">:</span> <span class="pl-c1">DoesntHaveT</span>();
<span class="pl-en">f</span>(args<span class="pl-k">...</span>) <span class="pl-k">=</span> <span class="pl-c1">f</span>(<span class="pl-c1">has_T</span>(args), args<span class="pl-k">...</span>)
<span class="pl-en">f</span>(<span class="pl-k">::</span><span class="pl-c1">HasT</span>, args<span class="pl-k">...</span>) <span class="pl-k">=</span> <span class="pl-c1">1</span>;
<span class="pl-en">f</span>(<span class="pl-k">::</span><span class="pl-c1">DoesntHaveT</span>, args<span class="pl-k">...</span>) <span class="pl-k">=</span> <span class="pl-c1">2</span>;</pre></div>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="julia> f(1, 2, 3, T(), 4)
1
julia> f(1, 2, 3, 4)
2"><pre class="notranslate">julia<span class="pl-k">></span> <span class="pl-c1">f</span>(<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">T</span>(), <span class="pl-c1">4</span>)
<span class="pl-c1">1</span>
julia<span class="pl-k">></span> <span class="pl-c1">f</span>(<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>, <span class="pl-c1">4</span>)
<span class="pl-c1">2</span></pre></div>
<p dir="auto">I think it would be quite useful if there was a built-in dispatch mechanism for this. Perhaps a syntax like</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="f(args::Tup) where {Tup <: Tuple, T ∈ Tup} = ..."><pre class="notranslate"><span class="pl-en">f</span>(args<span class="pl-k">::</span><span class="pl-c1">Tup</span>) <span class="pl-k">where</span> {Tup <span class="pl-k"><:</span> <span class="pl-c1">Tuple</span>, T <span class="pl-k">∈</span> Tup} <span class="pl-k">=</span> <span class="pl-k">...</span></pre></div>
<p dir="auto">or even</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="f(args_left..., ::T, args_right...) = ..."><pre class="notranslate"><span class="pl-en">f</span>(args_left<span class="pl-k">...</span>, <span class="pl-k">::</span><span class="pl-c1">T</span>, args_right<span class="pl-k">...</span>) <span class="pl-k">=</span> <span class="pl-k">...</span></pre></div>
<p dir="auto">where <code class="notranslate">args_right</code> is allowed to have instances of <code class="notranslate">T</code> in it?</p>
<p dir="auto">I get that this is probably too complicated and niche a thing to put in the dispatch system, but I figured I should bring it up in case anyone else and thoughts on this and I didn't see an issue for it.</p> | 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">For people who use numpy.datetime64() arrays with pcolormesh, a DeprecationWarning has been appearing prompting users to specify a shading kwarg 'nearest', 'auto' or 'gouraud' since shading='flat' is being deprecated. However, passing 'nearest' results in a UFuncTypeError when using 'nearest' due to a casting issue in _axes.py from _interp_grid()</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 numpy as np
import matplotlib.pyplot as plt
times = np.arange(np.datetime64('2020-12-01'), np.datetime64('2020-12-31'))
yaxis = np.arange(0, 20)
caxis = np.random.normal(0.0, 1.0, (times.shape[0], yaxis.shape[0]))
plt.pcolormesh(times, yaxis, caxis.T, shading='nearest')
plt.show()"><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">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">times</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-s1">np</span>.<span class="pl-en">datetime64</span>(<span class="pl-s">'2020-12-01'</span>), <span class="pl-s1">np</span>.<span class="pl-en">datetime64</span>(<span class="pl-s">'2020-12-31'</span>))
<span class="pl-s1">yaxis</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">20</span>)
<span class="pl-s1">caxis</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-c1">0.0</span>, <span class="pl-c1">1.0</span>, (<span class="pl-s1">times</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>], <span class="pl-s1">yaxis</span>.<span class="pl-s1">shape</span>[<span class="pl-c1">0</span>]))
<span class="pl-s1">plt</span>.<span class="pl-en">pcolormesh</span>(<span class="pl-s1">times</span>, <span class="pl-s1">yaxis</span>, <span class="pl-s1">caxis</span>.<span class="pl-v">T</span>, <span class="pl-s1">shading</span><span class="pl-c1">=</span><span class="pl-s">'nearest'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "..\test.py", line 15, in <module>
plt.pcolormesh(times, yaxis, caxis.T, shading='nearest')
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\pyplot.py", line 2801, in pcolormesh
__ret = gca().pcolormesh(
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\__init__.py", line 1438, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 6093, in pcolormesh
X, Y, C, shading = self._pcolorargs('pcolormesh', *args,
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 5651, in _pcolorargs
X = _interp_grid(X)
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 5633, in _interp_grid
if not (np.all(dX >= 0) or np.all(dX <= 0)):
UFuncTypeError: Cannot cast ufunc 'greater_equal' input 0 from dtype('<m8[D]') to dtype('<m8') with casting rule 'same_kind'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "..\test.py", line 15, in <module>
plt.pcolormesh(times, yaxis, caxis.T, shading='nearest')
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\pyplot.py", line 2801, in pcolormesh
__ret = gca().pcolormesh(
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\__init__.py", line 1438, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 6093, in pcolormesh
X, Y, C, shading = self._pcolorargs('pcolormesh', *args,
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 5651, in _pcolorargs
X = _interp_grid(X)
File "C:\Users\iarey\anaconda3\lib\site-packages\matplotlib\axes\_axes.py", line 5633, in _interp_grid
if not (np.all(dX >= 0) or np.all(dX <= 0)):
UFuncTypeError: Cannot cast ufunc 'greater_equal' input 0 from dtype('<m8[D]') to dtype('<m8') with casting rule 'same_kind'
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong><br>
A pcolormesh timeseries plot with random data and a np.datetime64() x-axis.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 10</li>
<li>Matplotlib version: 3.3.2 via standard conda</li>
<li>Matplotlib backend: Qt5Agg</li>
<li>Python version: 3.8.5</li>
<li>Jupyter version (if applicable):</li>
<li>Other libraries: numpy-1.19.2</li>
</ul> | <h3 dir="auto">Bug report</h3>
<p dir="auto"><strong>Bug summary</strong></p>
<p dir="auto">When using a datetime x-axis in a pcolormesh, and nearest shading,</p>
<blockquote>
<p dir="auto">TypeError: '>=' not supported between instances of 'datetime.timedelta' and 'int'</p>
</blockquote>
<p dir="auto">is raised.</p>
<p dir="auto">From what I can tell, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="691462784" data-permission-text="Title is private" data-url="https://github.com/matplotlib/matplotlib/issues/18398" data-hovercard-type="pull_request" data-hovercard-url="/matplotlib/matplotlib/pull/18398/hovercard" href="https://github.com/matplotlib/matplotlib/pull/18398">#18398</a> assumed comparison with 0 would always be possible, but this isn't the case for <code class="notranslate">datetime.timedelta</code>.</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="from datetime import datetime
from matplotlib import pyplot as plt
x_coords = [datetime.fromtimestamp(x * 3600) for x in range(24)]
y_coords = [*range(0, 10)]
plt.pcolormesh(x_coords,
y_coords, [[*range(24)] for _ in range(10)],
shading="nearest")"><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">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">x_coords</span> <span class="pl-c1">=</span> [<span class="pl-s1">datetime</span>.<span class="pl-en">fromtimestamp</span>(<span class="pl-s1">x</span> <span class="pl-c1">*</span> <span class="pl-c1">3600</span>) <span class="pl-k">for</span> <span class="pl-s1">x</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">24</span>)]
<span class="pl-s1">y_coords</span> <span class="pl-c1">=</span> [<span class="pl-c1">*</span><span class="pl-en">range</span>(<span class="pl-c1">0</span>, <span class="pl-c1">10</span>)]
<span class="pl-s1">plt</span>.<span class="pl-en">pcolormesh</span>(<span class="pl-s1">x_coords</span>,
<span class="pl-s1">y_coords</span>, [[<span class="pl-c1">*</span><span class="pl-en">range</span>(<span class="pl-c1">24</span>)] <span class="pl-k">for</span> <span class="pl-s1">_</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-c1">10</span>)],
<span class="pl-s1">shading</span><span class="pl-c1">=</span><span class="pl-s">"nearest"</span>)</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 2801, in pcolormesh
__ret = gca().pcolormesh(
File ".local/lib/python3.8/site-packages/matplotlib/__init__.py", line 1438, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File ".local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 6093, in pcolormesh
X, Y, C, shading = self._pcolorargs('pcolormesh', *args,
File ".local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 5651, in _pcolorargs
X = _interp_grid(X)
File ".local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 5633, in _interp_grid
if not (np.all(dX >= 0) or np.all(dX <= 0)):
TypeError: '>=' not supported between instances of 'datetime.timedelta' and 'int'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".local/lib/python3.8/site-packages/matplotlib/pyplot.py", line 2801, in pcolormesh
__ret = gca().pcolormesh(
File ".local/lib/python3.8/site-packages/matplotlib/__init__.py", line 1438, in inner
return func(ax, *map(sanitize_sequence, args), **kwargs)
File ".local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 6093, in pcolormesh
X, Y, C, shading = self._pcolorargs('pcolormesh', *args,
File ".local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 5651, in _pcolorargs
X = _interp_grid(X)
File ".local/lib/python3.8/site-packages/matplotlib/axes/_axes.py", line 5633, in _interp_grid
if not (np.all(dX >= 0) or np.all(dX <= 0)):
TypeError: '>=' not supported between instances of 'datetime.timedelta' and 'int'
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">None</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Matplotlib version: 3.3.2</li>
<li>Python version: 3.8</li>
</ul>
<p dir="auto">works with <code class="notranslate">pip3 install matplotlib==3.3.1</code>, fails with <code class="notranslate">pip3 install matplotlib==3.3.2</code></p> | 1 |
<blockquote>
<p dir="auto">From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="156520370" data-permission-text="Title is private" data-url="https://github.com/dotnet/vscode-csharp/issues/370" data-hovercard-type="issue" data-hovercard-url="/dotnet/vscode-csharp/issues/370/hovercard" href="https://github.com/dotnet/vscode-csharp/issues/370">dotnet/vscode-csharp#370</a> as part of <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/gregg-miskelly/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/gregg-miskelly">@gregg-miskelly</a>'s request.</p>
</blockquote>
<p dir="auto">When you hover over a variable and expand some variables on debug mode, you see the text is not fitting the box:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/328122/15507248/bb6c7d2a-21c2-11e6-84ca-b34feaa7e22e.png"><img src="https://cloud.githubusercontent.com/assets/328122/15507248/bb6c7d2a-21c2-11e6-84ca-b34feaa7e22e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">VS Code Info:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Version 1.1.1
Commit def9e32467ad6e4f48787d38caf190acbfee5880
Date 2016-05-13T13:38:00.094Z
Shell 0.37.6
Renderer 49.0.2623.75
Node 5.10.0"><pre class="notranslate"><code class="notranslate">Version 1.1.1
Commit def9e32467ad6e4f48787d38caf190acbfee5880
Date 2016-05-13T13:38:00.094Z
Shell 0.37.6
Renderer 49.0.2623.75
Node 5.10.0
</code></pre></div>
<p dir="auto">dotnet CLI info:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=".NET Command Line Tools (1.0.0-preview1-002702)
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: ubuntu
OS Version: 14.04
OS Platform: Linux
RID: ubuntu.14.04-x64"><pre class="notranslate"><code class="notranslate">.NET Command Line Tools (1.0.0-preview1-002702)
Product Information:
Version: 1.0.0-preview1-002702
Commit Sha: 6cde21225e
Runtime Environment:
OS Name: ubuntu
OS Version: 14.04
OS Platform: Linux
RID: ubuntu.14.04-x64
</code></pre></div> | <p dir="auto">If a data hover shows the attributes of an object, in many cases string attribute values are not completely visible because the data hover window is too narrow.<br>
It would be great if the data hover could automatically try to fit all values.</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Specifying <code class="notranslate">label</code> class should not cause warning:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Warning: Material-UI: the key `label` provided to the classes property is not implemented in Tab.
You can only override one of the following: root"><pre class="notranslate"><code class="notranslate">Warning: Material-UI: the key `label` provided to the classes property is not implemented in Tab.
You can only override one of the following: root
</code></pre></div>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Warning above is shown in console<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1477317/34833042-7a523c96-f6bc-11e7-8286-12301d5068c6.png"><img width="1440" alt="screen shot 2018-01-11 at 10 44 23 am" src="https://user-images.githubusercontent.com/1477317/34833042-7a523c96-f6bc-11e7-8286-12301d5068c6.png" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/14k2jny23q" rel="nofollow">https://codesandbox.io/s/14k2jny23q</a></p>
<h2 dir="auto">Context</h2>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>next</td>
</tr>
<tr>
<td>React</td>
<td>16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | <ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Button should be styled according to override specified for it in createMuiTheme. As per example here <a href="https://material-ui.com/customization/themes/#customizing-all-instances-of-a-component-type" rel="nofollow">https://material-ui.com/customization/themes/#customizing-all-instances-of-a-component-type</a></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Nothing changes, stays as it was</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">My implementation:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import React from "react";
import { MuiThemeProvider, createMuiTheme } from "material-ui/styles";
const theme = createMuiTheme({
palette: {
primary: {
50: "#eaf6f8",
100: "#cae9ed",
200: "#a6dbe1",
300: "#82cdd5",
400: "#68c2cc",
500: "#4db7c3",
600: "#46b0bd",
700: "#3da7b5",
800: "#349fae",
900: "#2590a1",
A100: "#68c2cc",
A200: "#4db7c3",
A400: "#3da7b5",
A700: "#4db7c3",
contrastDefaultColor: "light"
},
secondary: {
50: "#fef9e9",
100: "#fcefc8",
200: "#fbe5a3",
300: "#f9db7e",
400: "#f7d363",
500: "#f6cb47",
600: "#f5c640",
700: "#f3be37",
800: "#f2b82f",
900: "#efac20",
A100: "#f7d363",
A200: "#f6cb47",
A400: "#f2b82f",
A700: "#efac20",
contrastDefaultColor: "dark"
},
error: {
50: "#fbeeee",
100: "#f4d4d4",
200: "#edb7b7",
300: "#e59a9a",
400: "#e08484",
500: "#da6e6e",
600: "#d66666",
700: "#d05b5b",
800: "#cb5151",
900: "#c23f3f",
A100: "#e08484",
A200: "#da6e6e",
A400: "#d66666",
A700: "#cb5151",
contrastDefaultColor: "dark"
},
overrides: {
MuiButton: {
// Name of the styleSheet
root: {
// Name of the rule
background: "linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",
borderRadius: 3,
border: 0,
color: "white",
height: 48,
padding: "0 30px",
boxShadow: "0 3px 5px 2px rgba(255, 105, 135, .30)"
}
}
}
}
});
const Theme = ({ children }) => <MuiThemeProvider theme={theme}>{children}</MuiThemeProvider>;
export default Theme;"><pre class="notranslate"><code class="notranslate">import React from "react";
import { MuiThemeProvider, createMuiTheme } from "material-ui/styles";
const theme = createMuiTheme({
palette: {
primary: {
50: "#eaf6f8",
100: "#cae9ed",
200: "#a6dbe1",
300: "#82cdd5",
400: "#68c2cc",
500: "#4db7c3",
600: "#46b0bd",
700: "#3da7b5",
800: "#349fae",
900: "#2590a1",
A100: "#68c2cc",
A200: "#4db7c3",
A400: "#3da7b5",
A700: "#4db7c3",
contrastDefaultColor: "light"
},
secondary: {
50: "#fef9e9",
100: "#fcefc8",
200: "#fbe5a3",
300: "#f9db7e",
400: "#f7d363",
500: "#f6cb47",
600: "#f5c640",
700: "#f3be37",
800: "#f2b82f",
900: "#efac20",
A100: "#f7d363",
A200: "#f6cb47",
A400: "#f2b82f",
A700: "#efac20",
contrastDefaultColor: "dark"
},
error: {
50: "#fbeeee",
100: "#f4d4d4",
200: "#edb7b7",
300: "#e59a9a",
400: "#e08484",
500: "#da6e6e",
600: "#d66666",
700: "#d05b5b",
800: "#cb5151",
900: "#c23f3f",
A100: "#e08484",
A200: "#da6e6e",
A400: "#d66666",
A700: "#cb5151",
contrastDefaultColor: "dark"
},
overrides: {
MuiButton: {
// Name of the styleSheet
root: {
// Name of the rule
background: "linear-gradient(45deg, #FE6B8B 30%, #FF8E53 90%)",
borderRadius: 3,
border: 0,
color: "white",
height: 48,
padding: "0 30px",
boxShadow: "0 3px 5px 2px rgba(255, 105, 135, .30)"
}
}
}
}
});
const Theme = ({ children }) => <MuiThemeProvider theme={theme}>{children}</MuiThemeProvider>;
export default Theme;
</code></pre></div>
<p dir="auto">Buttons are children of <code class="notranslate">Theme</code>. Palette changes took effect, but nothing related to overrides did :/</p>
<h2 dir="auto">Context</h2>
<p dir="auto">Ideally I want to overwrite all my custom styles in one place.</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>beta.26</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">I writing the fron-end code from Sublime Text3 to Visual Studio Code. But I only open one instance of vscode one times, sometimes, I should open another project at same time. Now the vscode on windows only support one intance one time?</p> | <p dir="auto">Ubuntu 12.04, vscode 0.10.1</p>
<p dir="auto">Currently when you run <code class="notranslate">Code</code> if there is an instances already running (or shift clicking the app icon in Windows/Ubuntu) it will activate the currently opened window. This should open a new instance, the same goes for opening a new instance of <code class="notranslate">Code</code> with a folder as an argument when an instance is already open.</p>
<p dir="auto">It's a very common use case for many developers to have multiple editors with the same folder open.</p>
<p dir="auto"><strong>Repro:</strong></p>
<ol dir="auto">
<li><code class="notranslate">Code</code> (open instance of vscode)</li>
<li><code class="notranslate">Code</code></li>
</ol>
<p dir="auto"><strong>Expected:</strong><br>
A new instance of vscode is opened</p>
<p dir="auto"><strong>Actual:</strong><br>
The current instance of vscode is activated</p> | 1 |
<p dir="auto">The version 1.0.1 exectuable and the <code class="notranslate">deno types</code> command is missing types for <code class="notranslate">Deno.kill</code>, <code class="notranslate">Deno.Signal</code> and other units.</p>
<p dir="auto">Windows version: 10.0.18363<br>
PowerShell version: 7.0.1<br>
Deno version: 1.0.1</p>
<p dir="auto">Ubuntu version: 18.04 LTS<br>
Bash version: 4.4.20(1)-release<br>
Deno version: 1.0.1</p>
<p dir="auto">Missing types:</p>
<ul dir="auto">
<li><code class="notranslate">Deno.dir</code></li>
<li><code class="notranslate">Deno.hostname</code></li>
<li><code class="notranslate">Deno.kill</code></li>
<li><code class="notranslate">Deno.link</code></li>
<li><code class="notranslate">Deno.linkSync</code></li>
<li><code class="notranslate">Deno.loadavg</code></li>
<li><code class="notranslate">Deno.osRelease</code></li>
<li><code class="notranslate">Deno.permissions</code></li>
<li><code class="notranslate">Deno.PermissionDescriptor</code></li>
<li><code class="notranslate">Deno.Signal</code></li>
<li><code class="notranslate">Deno.symlink</code></li>
<li><code class="notranslate">Deno.symlinkSync</code></li>
<li><code class="notranslate">Deno.utime</code></li>
<li><code class="notranslate">Deno.utimeSync</code></li>
</ul>
<details>
<summary>Output of the <code class="notranslate">deno types</code> command</summary>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
declare namespace Deno {
/** A set of error constructors that are raised by Deno APIs. */
export const errors: {
NotFound: ErrorConstructor;
PermissionDenied: ErrorConstructor;
ConnectionRefused: ErrorConstructor;
ConnectionReset: ErrorConstructor;
ConnectionAborted: ErrorConstructor;
NotConnected: ErrorConstructor;
AddrInUse: ErrorConstructor;
AddrNotAvailable: ErrorConstructor;
BrokenPipe: ErrorConstructor;
AlreadyExists: ErrorConstructor;
InvalidData: ErrorConstructor;
TimedOut: ErrorConstructor;
Interrupted: ErrorConstructor;
WriteZero: ErrorConstructor;
UnexpectedEof: ErrorConstructor;
BadResource: ErrorConstructor;
Http: ErrorConstructor;
Busy: ErrorConstructor;
};
/** The current process id of the runtime. */
export const pid: number;
/** Reflects the `NO_COLOR` environment variable.
*
* See: https://no-color.org/ */
export const noColor: boolean;
export interface TestDefinition {
fn: () => void | Promise<void>;
name: string;
ignore?: boolean;
/** Check that the number of async completed ops after the test is the same
* as number of dispatched ops. Defaults to true.*/
sanitizeOps?: boolean;
/** Ensure the test case does not "leak" resources - ie. the resource table
* after the test has exactly the same contents as before the test. Defaults
* to true. */
sanitizeResources?: boolean;
}
/** Register a test which will be run when `deno test` is used on the command
* line and the containing module looks like a test module.
* `fn` can be async if required.
* ```ts
* import {assert, fail, assertEquals} from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test({
* name: "example test",
* fn(): void {
* assertEquals("world", "world");
* },
* });
*
* Deno.test({
* name: "example ignored test",
* ignore: Deno.build.os === "windows"
* fn(): void {
* // This test is ignored only on Windows machines
* },
* });
*
* Deno.test({
* name: "example async test",
* async fn() {
* const decoder = new TextDecoder("utf-8");
* const data = await Deno.readFile("hello_world.txt");
* assertEquals(decoder.decode(data), "Hello world")
* }
* });
* ```
*/
export function test(t: TestDefinition): void;
/** Register a test which will be run when `deno test` is used on the command
* line and the containing module looks like a test module.
* `fn` can be async if required.
*
* ```ts
* import {assert, fail, assertEquals} from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test("My test description", ():void => {
* assertEquals("hello", "hello");
* });
*
* Deno.test("My async test description", async ():Promise<void> => {
* const decoder = new TextDecoder("utf-8");
* const data = await Deno.readFile("hello_world.txt");
* assertEquals(decoder.decode(data), "Hello world")
* });
* ```
* */
export function test(name: string, fn: () => void | Promise<void>): void;
/** Exit the Deno process with optional exit code. If no exit code is supplied
* then Deno will exit with return code of 0.
*
* ```ts
* Deno.exit(5);
* ```
*/
export function exit(code?: number): never;
export const env: {
/** Retrieve the value of an environment variable. Returns undefined if that
* key doesn't exist.
*
* ```ts
* console.log(Deno.env.get("HOME")); // e.g. outputs "/home/alice"
* console.log(Deno.env.get("MADE_UP_VAR")); // outputs "Undefined"
* ```
* Requires `allow-env` permission. */
get(key: string): string | undefined;
/** Set the value of an environment variable.
*
* ```ts
* Deno.env.set("SOME_VAR", "Value"));
* Deno.env.get("SOME_VAR"); // outputs "Value"
* ```
*
* Requires `allow-env` permission. */
set(key: string, value: string): void;
/** Returns a snapshot of the environment variables at invocation.
*
* ```ts
* Deno.env.set("TEST_VAR", "A");
* const myEnv = Deno.env.toObject();
* console.log(myEnv.SHELL);
* Deno.env.set("TEST_VAR", "B");
* console.log(myEnv.TEST_VAR); // outputs "A"
* ```
*
* Requires `allow-env` permission. */
toObject(): { [index: string]: string };
};
/**
* Returns the path to the current deno executable.
*
* ```ts
* console.log(Deno.execPath()); // e.g. "/home/alice/.local/bin/deno"
* ```
*
* Requires `allow-read` permission.
*/
export function execPath(): string;
/**
* Change the current working directory to the specified path.
*
* ```ts
* Deno.chdir("/home/userA");
* Deno.chdir("../userB");
* Deno.chdir("C:\\Program Files (x86)\\Java");
* ```
*
* Throws `Deno.errors.NotFound` if directory not found.
* Throws `Deno.errors.PermissionDenied` if the user does not have access
* rights
*
* Requires --allow-read.
*/
export function chdir(directory: string): void;
/**
* Return a string representing the current working directory.
*
* If the current directory can be reached via multiple paths (due to symbolic
* links), `cwd()` may return any one of them.
*
* ```ts
* const currentWorkingDirectory = Deno.cwd();
* ```
*
* Throws `Deno.errors.NotFound` if directory not available.
*
* Requires --allow-read
*/
export function cwd(): string;
export enum SeekMode {
Start = 0,
Current = 1,
End = 2,
}
export interface Reader {
/** Reads up to `p.byteLength` bytes into `p`. It resolves to the number of
* bytes read (`0` < `n` <= `p.byteLength`) and rejects if any error
* encountered. Even if `read()` resolves to `n` < `p.byteLength`, it may
* use all of `p` as scratch space during the call. If some data is
* available but not `p.byteLength` bytes, `read()` conventionally resolves
* to what is available instead of waiting for more.
*
* When `read()` encounters end-of-file condition, it resolves to EOF
* (`null`).
*
* When `read()` encounters an error, it rejects with an error.
*
* Callers should always process the `n` > `0` bytes returned before
* considering the EOF (`null`). Doing so correctly handles I/O errors that
* happen after reading some bytes and also both of the allowed EOF
* behaviors.
*
* Implementations should not retain a reference to `p`.
*
* Use Deno.iter() to turn a Reader into an AsyncIterator.
*/
read(p: Uint8Array): Promise<number | null>;
}
export interface ReaderSync {
/** Reads up to `p.byteLength` bytes into `p`. It resolves to the number
* of bytes read (`0` < `n` <= `p.byteLength`) and rejects if any error
* encountered. Even if `read()` returns `n` < `p.byteLength`, it may use
* all of `p` as scratch space during the call. If some data is available
* but not `p.byteLength` bytes, `read()` conventionally returns what is
* available instead of waiting for more.
*
* When `readSync()` encounters end-of-file condition, it returns EOF
* (`null`).
*
* When `readSync()` encounters an error, it throws with an error.
*
* Callers should always process the `n` > `0` bytes returned before
* considering the EOF (`null`). Doing so correctly handles I/O errors that happen
* after reading some bytes and also both of the allowed EOF behaviors.
*
* Implementations should not retain a reference to `p`.
*
* Use Deno.iterSync() to turn a ReaderSync into an Iterator.
*/
readSync(p: Uint8Array): number | null;
}
export interface Writer {
/** Writes `p.byteLength` bytes from `p` to the underlying data stream. It
* resolves to the number of bytes written from `p` (`0` <= `n` <=
* `p.byteLength`) or reject with the error encountered that caused the
* write to stop early. `write()` must reject with a non-null error if
* would resolve to `n` < `p.byteLength`. `write()` must not modify the
* slice data, even temporarily.
*
* Implementations should not retain a reference to `p`.
*/
write(p: Uint8Array): Promise<number>;
}
export interface WriterSync {
/** Writes `p.byteLength` bytes from `p` to the underlying data
* stream. It returns the number of bytes written from `p` (`0` <= `n`
* <= `p.byteLength`) and any error encountered that caused the write to
* stop early. `writeSync()` must throw a non-null error if it returns `n` <
* `p.byteLength`. `writeSync()` must not modify the slice data, even
* temporarily.
*
* Implementations should not retain a reference to `p`.
*/
writeSync(p: Uint8Array): number;
}
export interface Closer {
close(): void;
}
export interface Seeker {
/** Seek sets the offset for the next `read()` or `write()` to offset,
* interpreted according to `whence`: `Start` means relative to the
* start of the file, `Current` means relative to the current offset,
* and `End` means relative to the end. Seek resolves to the new offset
* relative to the start of the file.
*
* Seeking to an offset before the start of the file is an error. Seeking to
* any positive offset is legal, but the behavior of subsequent I/O
* operations on the underlying object is implementation-dependent.
* It returns the number of cursor position.
*/
seek(offset: number, whence: SeekMode): Promise<number>;
}
export interface SeekerSync {
/** Seek sets the offset for the next `readSync()` or `writeSync()` to
* offset, interpreted according to `whence`: `Start` means relative
* to the start of the file, `Current` means relative to the current
* offset, and `End` means relative to the end.
*
* Seeking to an offset before the start of the file is an error. Seeking to
* any positive offset is legal, but the behavior of subsequent I/O
* operations on the underlying object is implementation-dependent.
*/
seekSync(offset: number, whence: SeekMode): number;
}
/** Copies from `src` to `dst` until either EOF (`null`) is read from `src` or
* an error occurs. It resolves to the number of bytes copied or rejects with
* the first error encountered while copying.
*
* ```ts
* const source = await Deno.open("my_file.txt");
* const buffer = new Deno.Buffer()
* const bytesCopied1 = await Deno.copy(source, Deno.stdout);
* const bytesCopied2 = await Deno.copy(source, buffer);
* ```
*
* @param src The source to copy from
* @param dst The destination to copy to
* @param options Can be used to tune size of the buffer. Default size is 32kB
*/
export function copy(
src: Reader,
dst: Writer,
options?: {
bufSize?: number;
}
): Promise<number>;
/** Turns a Reader, `r`, into an async iterator.
*
* ```ts
* let f = await Deno.open("/etc/passwd");
* for await (const chunk of Deno.iter(f)) {
* console.log(chunk);
* }
* f.close();
* ```
*
* Second argument can be used to tune size of a buffer.
* Default size of the buffer is 32kB.
*
* ```ts
* let f = await Deno.open("/etc/passwd");
* const iter = Deno.iter(f, {
* bufSize: 1024 * 1024
* });
* for await (const chunk of iter) {
* console.log(chunk);
* }
* f.close();
* ```
*
* Iterator uses an internal buffer of fixed size for efficiency; it returns
* a view on that buffer on each iteration. It is therefore caller's
* responsibility to copy contents of the buffer if needed; otherwise the
* next iteration will overwrite contents of previously returned chunk.
*/
export function iter(
r: Reader,
options?: {
bufSize?: number;
}
): AsyncIterableIterator<Uint8Array>;
/** Turns a ReaderSync, `r`, into an iterator.
*
* ```ts
* let f = Deno.openSync("/etc/passwd");
* for (const chunk of Deno.iterSync(reader)) {
* console.log(chunk);
* }
* f.close();
* ```
*
* Second argument can be used to tune size of a buffer.
* Default size of the buffer is 32kB.
*
* ```ts
* let f = await Deno.open("/etc/passwd");
* const iter = Deno.iterSync(f, {
* bufSize: 1024 * 1024
* });
* for (const chunk of iter) {
* console.log(chunk);
* }
* f.close();
* ```
*
* Iterator uses an internal buffer of fixed size for efficiency; it returns
* a view on that buffer on each iteration. It is therefore caller's
* responsibility to copy contents of the buffer if needed; otherwise the
* next iteration will overwrite contents of previously returned chunk.
*/
export function iterSync(
r: ReaderSync,
options?: {
bufSize?: number;
}
): IterableIterator<Uint8Array>;
/** Synchronously open a file and return an instance of `Deno.File`. The
* file does not need to previously exist if using the `create` or `createNew`
* open options. It is the callers responsibility to close the file when finished
* with it.
*
* ```ts
* const file = Deno.openSync("/foo/bar.txt", { read: true, write: true });
* // Do work with file
* Deno.close(file.rid);
* ```
*
* Requires `allow-read` and/or `allow-write` permissions depending on options.
*/
export function openSync(path: string, options?: OpenOptions): File;
/** Open a file and resolve to an instance of `Deno.File`. The
* file does not need to previously exist if using the `create` or `createNew`
* open options. It is the callers responsibility to close the file when finished
* with it.
*
* ```ts
* const file = await Deno.open("/foo/bar.txt", { read: true, write: true });
* // Do work with file
* Deno.close(file.rid);
* ```
*
* Requires `allow-read` and/or `allow-write` permissions depending on options.
*/
export function open(path: string, options?: OpenOptions): Promise<File>;
/** Creates a file if none exists or truncates an existing file and returns
* an instance of `Deno.File`.
*
* ```ts
* const file = Deno.createSync("/foo/bar.txt");
* ```
*
* Requires `allow-read` and `allow-write` permissions.
*/
export function createSync(path: string): File;
/** Creates a file if none exists or truncates an existing file and resolves to
* an instance of `Deno.File`.
*
* ```ts
* const file = await Deno.create("/foo/bar.txt");
* ```
*
* Requires `allow-read` and `allow-write` permissions.
*/
export function create(path: string): Promise<File>;
/** Synchronously read from a resource ID (`rid`) into an array buffer (`buffer`).
*
* Returns either the number of bytes read during the operation or EOF
* (`null`) if there was nothing more to read.
*
* It is possible for a read to successfully return with `0` bytes. This does
* not indicate EOF.
*
* ```ts
* // if "/foo/bar.txt" contains the text "hello world":
* const file = Deno.openSync("/foo/bar.txt");
* const buf = new Uint8Array(100);
* const numberOfBytesRead = Deno.readSync(file.rid, buf); // 11 bytes
* const text = new TextDecoder().decode(buf); // "hello world"
* Deno.close(file.rid);
* ```
*/
export function readSync(rid: number, buffer: Uint8Array): number | null;
/** Read from a resource ID (`rid`) into an array buffer (`buffer`).
*
* Resolves to either the number of bytes read during the operation or EOF
* (`null`) if there was nothing more to read.
*
* It is possible for a read to successfully return with `0` bytes. This does
* not indicate EOF.
*
* ```ts
* // if "/foo/bar.txt" contains the text "hello world":
* const file = await Deno.open("/foo/bar.txt");
* const buf = new Uint8Array(100);
* const numberOfBytesRead = await Deno.read(file.rid, buf); // 11 bytes
* const text = new TextDecoder().decode(buf); // "hello world"
* Deno.close(file.rid);
* ```
*/
export function read(rid: number, buffer: Uint8Array): Promise<number | null>;
/** Synchronously write to the resource ID (`rid`) the contents of the array
* buffer (`data`).
*
* Returns the number of bytes written.
*
* ```ts
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world");
* const file = Deno.openSync("/foo/bar.txt");
* const bytesWritten = Deno.writeSync(file.rid, data); // 11
* Deno.close(file.rid);
* ```
*/
export function writeSync(rid: number, data: Uint8Array): number;
/** Write to the resource ID (`rid`) the contents of the array buffer (`data`).
*
* Resolves to the number of bytes written.
*
* ```ts
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world");
* const file = await Deno.open("/foo/bar.txt");
* const bytesWritten = await Deno.write(file.rid, data); // 11
* Deno.close(file.rid);
* ```
*/
export function write(rid: number, data: Uint8Array): Promise<number>;
/** Synchronously seek a resource ID (`rid`) to the given `offset` under mode
* given by `whence`. The new position within the resource (bytes from the
* start) is returned.
*
* ```ts
* const file = Deno.openSync('hello.txt', {read: true, write: true, truncate: true, create: true});
* Deno.writeSync(file.rid, new TextEncoder().encode("Hello world"));
* // advance cursor 6 bytes
* const cursorPosition = Deno.seekSync(file.rid, 6, Deno.SeekMode.Start);
* console.log(cursorPosition); // 6
* const buf = new Uint8Array(100);
* file.readSync(buf);
* console.log(new TextDecoder().decode(buf)); // "world"
* ```
*
* The seek modes work as follows:
*
* ```ts
* // Given file.rid pointing to file with "Hello world", which is 11 bytes long:
* // Seek 6 bytes from the start of the file
* console.log(Deno.seekSync(file.rid, 6, Deno.SeekMode.Start)); // "6"
* // Seek 2 more bytes from the current position
* console.log(Deno.seekSync(file.rid, 2, Deno.SeekMode.Current)); // "8"
* // Seek backwards 2 bytes from the end of the file
* console.log(Deno.seekSync(file.rid, -2, Deno.SeekMode.End)); // "9" (e.g. 11-2)
* ```
*/
export function seekSync(
rid: number,
offset: number,
whence: SeekMode
): number;
/** Seek a resource ID (`rid`) to the given `offset` under mode given by `whence`.
* The call resolves to the new position within the resource (bytes from the start).
*
* ```ts
* const file = await Deno.open('hello.txt', {read: true, write: true, truncate: true, create: true});
* await Deno.write(file.rid, new TextEncoder().encode("Hello world"));
* // advance cursor 6 bytes
* const cursorPosition = await Deno.seek(file.rid, 6, Deno.SeekMode.Start);
* console.log(cursorPosition); // 6
* const buf = new Uint8Array(100);
* await file.read(buf);
* console.log(new TextDecoder().decode(buf)); // "world"
* ```
*
* The seek modes work as follows:
*
* ```ts
* // Given file.rid pointing to file with "Hello world", which is 11 bytes long:
* // Seek 6 bytes from the start of the file
* console.log(await Deno.seek(file.rid, 6, Deno.SeekMode.Start)); // "6"
* // Seek 2 more bytes from the current position
* console.log(await Deno.seek(file.rid, 2, Deno.SeekMode.Current)); // "8"
* // Seek backwards 2 bytes from the end of the file
* console.log(await Deno.seek(file.rid, -2, Deno.SeekMode.End)); // "9" (e.g. 11-2)
* ```
*/
export function seek(
rid: number,
offset: number,
whence: SeekMode
): Promise<number>;
/** Close the given resource ID (rid) which has been previously opened, such
* as via opening or creating a file. Closing a file when you are finished
* with it is important to avoid leaking resources.
*
* ```ts
* const file = await Deno.open("my_file.txt");
* // do work with "file" object
* Deno.close(file.rid);
* ````
*/
export function close(rid: number): void;
/** The Deno abstraction for reading and writing files. */
export class File
implements
Reader,
ReaderSync,
Writer,
WriterSync,
Seeker,
SeekerSync,
Closer {
readonly rid: number;
constructor(rid: number);
write(p: Uint8Array): Promise<number>;
writeSync(p: Uint8Array): number;
read(p: Uint8Array): Promise<number | null>;
readSync(p: Uint8Array): number | null;
seek(offset: number, whence: SeekMode): Promise<number>;
seekSync(offset: number, whence: SeekMode): number;
close(): void;
}
/** A handle for `stdin`. */
export const stdin: Reader & ReaderSync & Closer & { rid: number };
/** A handle for `stdout`. */
export const stdout: Writer & WriterSync & Closer & { rid: number };
/** A handle for `stderr`. */
export const stderr: Writer & WriterSync & Closer & { rid: number };
export interface OpenOptions {
/** Sets the option for read access. This option, when `true`, means that the
* file should be read-able if opened. */
read?: boolean;
/** Sets the option for write access. This option, when `true`, means that
* the file should be write-able if opened. If the file already exists,
* any write calls on it will overwrite its contents, by default without
* truncating it. */
write?: boolean;
/**Sets the option for the append mode. This option, when `true`, means that
* writes will append to a file instead of overwriting previous contents.
* Note that setting `{ write: true, append: true }` has the same effect as
* setting only `{ append: true }`. */
append?: boolean;
/** Sets the option for truncating a previous file. If a file is
* successfully opened with this option set it will truncate the file to `0`
* size if it already exists. The file must be opened with write access
* for truncate to work. */
truncate?: boolean;
/** Sets the option to allow creating a new file, if one doesn't already
* exist at the specified path. Requires write or append access to be
* used. */
create?: boolean;
/** Defaults to `false`. If set to `true`, no file, directory, or symlink is
* allowed to exist at the target location. Requires write or append
* access to be used. When createNew is set to `true`, create and truncate
* are ignored. */
createNew?: boolean;
/** Permissions to use if creating the file (defaults to `0o666`, before
* the process's umask).
* Ignored on Windows. */
mode?: number;
}
/**
*
* Check if a given resource id (`rid`) is a TTY.
*
* ```ts
* // This example is system and context specific
* const nonTTYRid = Deno.openSync("my_file.txt").rid;
* const ttyRid = Deno.openSync("/dev/tty6").rid;
* console.log(Deno.isatty(nonTTYRid)); // false
* console.log(Deno.isatty(ttyRid)); // true
* Deno.close(nonTTYRid);
* Deno.close(ttyRid);
* ```
*/
export function isatty(rid: number): boolean;
/** A variable-sized buffer of bytes with `read()` and `write()` methods.
*
* Deno.Buffer is almost always used with some I/O like files and sockets. It
* allows one to buffer up a download from a socket. Buffer grows and shrinks
* as necessary.
*
* Deno.Buffer is NOT the same thing as Node's Buffer. Node's Buffer was
* created in 2009 before JavaScript had the concept of ArrayBuffers. It's
* simply a non-standard ArrayBuffer.
*
* ArrayBuffer is a fixed memory allocation. Deno.Buffer is implemented on top
* of ArrayBuffer.
*
* Based on [Go Buffer](https://golang.org/pkg/bytes/#Buffer). */
export class Buffer implements Reader, ReaderSync, Writer, WriterSync {
constructor(ab?: ArrayBuffer);
/** Returns a slice holding the unread portion of the buffer.
*
* The slice is valid for use only until the next buffer modification (that
* is, only until the next call to a method like `read()`, `write()`,
* `reset()`, or `truncate()`). The slice aliases the buffer content at
* least until the next buffer modification, so immediate changes to the
* slice will affect the result of future reads. */
bytes(): Uint8Array;
/** Returns whether the unread portion of the buffer is empty. */
empty(): boolean;
/** A read only number of bytes of the unread portion of the buffer. */
readonly length: number;
/** The read only capacity of the buffer's underlying byte slice, that is,
* the total space allocated for the buffer's data. */
readonly capacity: number;
/** Discards all but the first `n` unread bytes from the buffer but
* continues to use the same allocated storage. It throws if `n` is
* negative or greater than the length of the buffer. */
truncate(n: number): void;
/** Resets the buffer to be empty, but it retains the underlying storage for
* use by future writes. `.reset()` is the same as `.truncate(0)`. */
reset(): void;
/** Reads the next `p.length` bytes from the buffer or until the buffer is
* drained. Returns the number of bytes read. If the buffer has no data to
* return, the return is EOF (`null`). */
readSync(p: Uint8Array): number | null;
/** Reads the next `p.length` bytes from the buffer or until the buffer is
* drained. Resolves to the number of bytes read. If the buffer has no
* data to return, resolves to EOF (`null`).
*
* NOTE: This methods reads bytes sychronously; it's provided for
* compatibility with `Reader` interfaces.
*/
read(p: Uint8Array): Promise<number | null>;
writeSync(p: Uint8Array): number;
/** NOTE: This methods writes bytes sychronously; it's provided for
* compatibility with `Writer` interface. */
write(p: Uint8Array): Promise<number>;
/** Grows the buffer's capacity, if necessary, to guarantee space for
* another `n` bytes. After `.grow(n)`, at least `n` bytes can be written to
* the buffer without another allocation. If `n` is negative, `.grow()` will
* throw. If the buffer can't grow it will throw an error.
*
* Based on Go Lang's
* [Buffer.Grow](https://golang.org/pkg/bytes/#Buffer.Grow). */
grow(n: number): void;
/** Reads data from `r` until EOF (`null`) and appends it to the buffer,
* growing the buffer as needed. It resolves to the number of bytes read.
* If the buffer becomes too large, `.readFrom()` will reject with an error.
*
* Based on Go Lang's
* [Buffer.ReadFrom](https://golang.org/pkg/bytes/#Buffer.ReadFrom). */
readFrom(r: Reader): Promise<number>;
/** Reads data from `r` until EOF (`null`) and appends it to the buffer,
* growing the buffer as needed. It returns the number of bytes read. If the
* buffer becomes too large, `.readFromSync()` will throw an error.
*
* Based on Go Lang's
* [Buffer.ReadFrom](https://golang.org/pkg/bytes/#Buffer.ReadFrom). */
readFromSync(r: ReaderSync): number;
}
/** Read Reader `r` until EOF (`null`) and resolve to the content as
* Uint8Array`.
*
* ```ts
* // Example from stdin
* const stdinContent = await Deno.readAll(Deno.stdin);
*
* // Example from file
* const file = await Deno.open("my_file.txt", {read: true});
* const myFileContent = await Deno.readAll(file);
* Deno.close(file.rid);
*
* // Example from buffer
* const myData = new Uint8Array(100);
* // ... fill myData array with data
* const reader = new Deno.Buffer(myData.buffer as ArrayBuffer);
* const bufferContent = await Deno.readAll(reader);
* ```
*/
export function readAll(r: Reader): Promise<Uint8Array>;
/** Synchronously reads Reader `r` until EOF (`null`) and returns the content
* as `Uint8Array`.
*
* ```ts
* // Example from stdin
* const stdinContent = Deno.readAllSync(Deno.stdin);
*
* // Example from file
* const file = Deno.openSync("my_file.txt", {read: true});
* const myFileContent = Deno.readAllSync(file);
* Deno.close(file.rid);
*
* // Example from buffer
* const myData = new Uint8Array(100);
* // ... fill myData array with data
* const reader = new Deno.Buffer(myData.buffer as ArrayBuffer);
* const bufferContent = Deno.readAllSync(reader);
* ```
*/
export function readAllSync(r: ReaderSync): Uint8Array;
/** Write all the content of the array buffer (`arr`) to the writer (`w`).
*
* ```ts
* // Example writing to stdout
* const contentBytes = new TextEncoder().encode("Hello World");
* await Deno.writeAll(Deno.stdout, contentBytes);
*
* // Example writing to file
* const contentBytes = new TextEncoder().encode("Hello World");
* const file = await Deno.open('test.file', {write: true});
* await Deno.writeAll(file, contentBytes);
* Deno.close(file.rid);
*
* // Example writing to buffer
* const contentBytes = new TextEncoder().encode("Hello World");
* const writer = new Deno.Buffer();
* await Deno.writeAll(writer, contentBytes);
* console.log(writer.bytes().length); // 11
* ```
*/
export function writeAll(w: Writer, arr: Uint8Array): Promise<void>;
/** Synchronously write all the content of the array buffer (`arr`) to the
* writer (`w`).
*
* ```ts
* // Example writing to stdout
* const contentBytes = new TextEncoder().encode("Hello World");
* Deno.writeAllSync(Deno.stdout, contentBytes);
*
* // Example writing to file
* const contentBytes = new TextEncoder().encode("Hello World");
* const file = Deno.openSync('test.file', {write: true});
* Deno.writeAllSync(file, contentBytes);
* Deno.close(file.rid);
*
* // Example writing to buffer
* const contentBytes = new TextEncoder().encode("Hello World");
* const writer = new Deno.Buffer();
* Deno.writeAllSync(writer, contentBytes);
* console.log(writer.bytes().length); // 11
* ```
*/
export function writeAllSync(w: WriterSync, arr: Uint8Array): void;
export interface MkdirOptions {
/** Defaults to `false`. If set to `true`, means that any intermediate
* directories will also be created (as with the shell command `mkdir -p`).
* Intermediate directories are created with the same permissions.
* When recursive is set to `true`, succeeds silently (without changing any
* permissions) if a directory already exists at the path, or if the path
* is a symlink to an existing directory. */
recursive?: boolean;
/** Permissions to use when creating the directory (defaults to `0o777`,
* before the process's umask).
* Ignored on Windows. */
mode?: number;
}
/** Synchronously creates a new directory with the specified path.
*
* ```ts
* Deno.mkdirSync("new_dir");
* Deno.mkdirSync("nested/directories", { recursive: true });
* Deno.mkdirSync("restricted_access_dir", { mode: 0o700 });
* ```
*
* Defaults to throwing error if the directory already exists.
*
* Requires `allow-write` permission. */
export function mkdirSync(path: string, options?: MkdirOptions): void;
/** Creates a new directory with the specified path.
*
* ```ts
* await Deno.mkdir("new_dir");
* await Deno.mkdir("nested/directories", { recursive: true });
* await Deno.mkdir("restricted_access_dir", { mode: 0o700 });
* ```
*
* Defaults to throwing error if the directory already exists.
*
* Requires `allow-write` permission. */
export function mkdir(path: string, options?: MkdirOptions): Promise<void>;
export interface MakeTempOptions {
/** Directory where the temporary directory should be created (defaults to
* the env variable TMPDIR, or the system's default, usually /tmp). */
dir?: string;
/** String that should precede the random portion of the temporary
* directory's name. */
prefix?: string;
/** String that should follow the random portion of the temporary
* directory's name. */
suffix?: string;
}
/** Synchronously creates a new temporary directory in the default directory
* for temporary files (see also `Deno.dir("temp")`), unless `dir` is specified.
* Other optional options include prefixing and suffixing the directory name
* with `prefix` and `suffix` respectively.
*
* The full path to the newly created directory is returned.
*
* Multiple programs calling this function simultaneously will create different
* directories. It is the caller's responsibility to remove the directory when
* no longer needed.
*
* ```ts
* const tempDirName0 = Deno.makeTempDirSync(); // e.g. /tmp/2894ea76
* const tempDirName1 = Deno.makeTempDirSync({ prefix: 'my_temp' }); // e.g. /tmp/my_temp339c944d
* ```
*
* Requires `allow-write` permission. */
// TODO(ry) Doesn't check permissions.
export function makeTempDirSync(options?: MakeTempOptions): string;
/** Creates a new temporary directory in the default directory for temporary
* files (see also `Deno.dir("temp")`), unless `dir` is specified. Other
* optional options include prefixing and suffixing the directory name with
* `prefix` and `suffix` respectively.
*
* This call resolves to the full path to the newly created directory.
*
* Multiple programs calling this function simultaneously will create different
* directories. It is the caller's responsibility to remove the directory when
* no longer needed.
*
* ```ts
* const tempDirName0 = await Deno.makeTempDir(); // e.g. /tmp/2894ea76
* const tempDirName1 = await Deno.makeTempDir({ prefix: 'my_temp' }); // e.g. /tmp/my_temp339c944d
* ```
*
* Requires `allow-write` permission. */
// TODO(ry) Doesn't check permissions.
export function makeTempDir(options?: MakeTempOptions): Promise<string>;
/** Synchronously creates a new temporary file in the default directory for
* temporary files (see also `Deno.dir("temp")`), unless `dir` is specified.
* Other optional options include prefixing and suffixing the directory name
* with `prefix` and `suffix` respectively.
*
* The full path to the newly created file is returned.
*
* Multiple programs calling this function simultaneously will create different
* files. It is the caller's responsibility to remove the file when no longer
* needed.
*
* ```ts
* const tempFileName0 = Deno.makeTempFileSync(); // e.g. /tmp/419e0bf2
* const tempFileName1 = Deno.makeTempFileSync({ prefix: 'my_temp' }); // e.g. /tmp/my_temp754d3098
* ```
*
* Requires `allow-write` permission. */
export function makeTempFileSync(options?: MakeTempOptions): string;
/** Creates a new temporary file in the default directory for temporary
* files (see also `Deno.dir("temp")`), unless `dir` is specified. Other
* optional options include prefixing and suffixing the directory name with
* `prefix` and `suffix` respectively.
*
* This call resolves to the full path to the newly created file.
*
* Multiple programs calling this function simultaneously will create different
* files. It is the caller's responsibility to remove the file when no longer
* needed.
*
* ```ts
* const tmpFileName0 = await Deno.makeTempFile(); // e.g. /tmp/419e0bf2
* const tmpFileName1 = await Deno.makeTempFile({ prefix: 'my_temp' }); // e.g. /tmp/my_temp754d3098
* ```
*
* Requires `allow-write` permission. */
export function makeTempFile(options?: MakeTempOptions): Promise<string>;
/** Synchronously changes the permission of a specific file/directory of
* specified path. Ignores the process's umask.
*
* ```ts
* Deno.chmodSync("/path/to/file", 0o666);
* ```
*
* For a full description, see [chmod](#chmod)
*
* NOTE: This API currently throws on Windows
*
* Requires `allow-write` permission. */
export function chmodSync(path: string, mode: number): void;
/** Changes the permission of a specific file/directory of specified path.
* Ignores the process's umask.
*
* ```ts
* await Deno.chmod("/path/to/file", 0o666);
* ```
*
* The mode is a sequence of 3 octal numbers. The first/left-most number
* specifies the permissions for the owner. The second number specifies the
* permissions for the group. The last/right-most number specifies the
* permissions for others. For example, with a mode of 0o764, the owner (7) can
* read/write/execute, the group (6) can read/write and everyone else (4) can
* read only.
*
* | Number | Description |
* | ------ | ----------- |
* | 7 | read, write, and execute |
* | 6 | read and write |
* | 5 | read and execute |
* | 4 | read only |
* | 3 | write and execute |
* | 2 | write only |
* | 1 | execute only |
* | 0 | no permission |
*
* NOTE: This API currently throws on Windows
*
* Requires `allow-write` permission. */
export function chmod(path: string, mode: number): Promise<void>;
/** Synchronously change owner of a regular file or directory. This functionality
* is not available on Windows.
*
* ```ts
* Deno.chownSync("myFile.txt", 1000, 1002);
* ```
*
* Requires `allow-write` permission.
*
* Throws Error (not implemented) if executed on Windows
*
* @param path path to the file
* @param uid user id (UID) of the new owner
* @param gid group id (GID) of the new owner
*/
export function chownSync(path: string, uid: number, gid: number): void;
/** Change owner of a regular file or directory. This functionality
* is not available on Windows.
*
* ```ts
* await Deno.chown("myFile.txt", 1000, 1002);
* ```
*
* Requires `allow-write` permission.
*
* Throws Error (not implemented) if executed on Windows
*
* @param path path to the file
* @param uid user id (UID) of the new owner
* @param gid group id (GID) of the new owner
*/
export function chown(path: string, uid: number, gid: number): Promise<void>;
export interface RemoveOptions {
/** Defaults to `false`. If set to `true`, path will be removed even if
* it's a non-empty directory. */
recursive?: boolean;
}
/** Synchronously removes the named file or directory.
*
* ```ts
* Deno.removeSync("/path/to/empty_dir/or/file");
* Deno.removeSync("/path/to/populated_dir/or/file", { recursive: true });
* ```
*
* Throws error if permission denied, path not found, or path is a non-empty
* directory and the `recursive` option isn't set to `true`.
*
* Requires `allow-write` permission. */
export function removeSync(path: string, options?: RemoveOptions): void;
/** Removes the named file or directory.
*
* ```ts
* await Deno.remove("/path/to/empty_dir/or/file");
* await Deno.remove("/path/to/populated_dir/or/file", { recursive: true });
* ```
*
* Throws error if permission denied, path not found, or path is a non-empty
* directory and the `recursive` option isn't set to `true`.
*
* Requires `allow-write` permission. */
export function remove(path: string, options?: RemoveOptions): Promise<void>;
/** Synchronously renames (moves) `oldpath` to `newpath`. Paths may be files or
* directories. If `newpath` already exists and is not a directory,
* `renameSync()` replaces it. OS-specific restrictions may apply when
* `oldpath` and `newpath` are in different directories.
*
* ```ts
* Deno.renameSync("old/path", "new/path");
* ```
*
* On Unix, this operation does not follow symlinks at either path.
*
* It varies between platforms when the operation throws errors, and if so what
* they are. It's always an error to rename anything to a non-empty directory.
*
* Requires `allow-read` and `allow-write` permissions. */
export function renameSync(oldpath: string, newpath: string): void;
/** Renames (moves) `oldpath` to `newpath`. Paths may be files or directories.
* If `newpath` already exists and is not a directory, `rename()` replaces it.
* OS-specific restrictions may apply when `oldpath` and `newpath` are in
* different directories.
*
* ```ts
* await Deno.rename("old/path", "new/path");
* ```
*
* On Unix, this operation does not follow symlinks at either path.
*
* It varies between platforms when the operation throws errors, and if so what
* they are. It's always an error to rename anything to a non-empty directory.
*
* Requires `allow-read` and `allow-write` permission. */
export function rename(oldpath: string, newpath: string): Promise<void>;
/** Synchronously reads and returns the entire contents of a file as utf8 encoded string
* encoded string. Reading a directory returns an empty string.
*
* ```ts
* const data = Deno.readTextFileSync("hello.txt");
* console.log(data);
* ```
*
* Requires `allow-read` permission. */
export function readTextFileSync(path: string): string;
/** Asynchronously reads and returns the entire contents of a file as a utf8
* encoded string. Reading a directory returns an empty data array.
*
* ```ts
* const data = await Deno.readTextFile("hello.txt");
* console.log(data);
* ```
*
* Requires `allow-read` permission. */
export function readTextFile(path: string): Promise<string>;
/** Synchronously reads and returns the entire contents of a file as an array
* of bytes. `TextDecoder` can be used to transform the bytes to string if
* required. Reading a directory returns an empty data array.
*
* ```ts
* const decoder = new TextDecoder("utf-8");
* const data = Deno.readFileSync("hello.txt");
* console.log(decoder.decode(data));
* ```
*
* Requires `allow-read` permission. */
export function readFileSync(path: string): Uint8Array;
/** Reads and resolves to the entire contents of a file as an array of bytes.
* `TextDecoder` can be used to transform the bytes to string if required.
* Reading a directory returns an empty data array.
*
* ```ts
* const decoder = new TextDecoder("utf-8");
* const data = await Deno.readFile("hello.txt");
* console.log(decoder.decode(data));
* ```
*
* Requires `allow-read` permission. */
export function readFile(path: string): Promise<Uint8Array>;
/** A FileInfo describes a file and is returned by `stat`, `lstat`,
* `statSync`, `lstatSync`. */
export interface FileInfo {
/** True if this is info for a regular file. Mutually exclusive to
* `FileInfo.isDirectory` and `FileInfo.isSymlink`. */
isFile: boolean;
/** True if this is info for a regular directory. Mutually exclusive to
* `FileInfo.isFile` and `FileInfo.isSymlink`. */
isDirectory: boolean;
/** True if this is info for a symlink. Mutually exclusive to
* `FileInfo.isFile` and `FileInfo.isDirectory`. */
isSymlink: boolean;
/** The size of the file, in bytes. */
size: number;
/** The last modification time of the file. This corresponds to the `mtime`
* field from `stat` on Linux/Mac OS and `ftLastWriteTime` on Windows. This
* may not be available on all platforms. */
mtime: Date | null;
/** The last access time of the file. This corresponds to the `atime`
* field from `stat` on Unix and `ftLastAccessTime` on Windows. This may not
* be available on all platforms. */
atime: Date | null;
/** The creation time of the file. This corresponds to the `birthtime`
* field from `stat` on Mac/BSD and `ftCreationTime` on Windows. This may
* not be available on all platforms. */
birthtime: Date | null;
/** ID of the device containing the file.
*
* _Linux/Mac OS only._ */
dev: number | null;
/** Inode number.
*
* _Linux/Mac OS only._ */
ino: number | null;
/** **UNSTABLE**: Match behavior with Go on Windows for `mode`.
*
* The underlying raw `st_mode` bits that contain the standard Unix
* permissions for this file/directory. */
mode: number | null;
/** Number of hard links pointing to this file.
*
* _Linux/Mac OS only._ */
nlink: number | null;
/** User ID of the owner of this file.
*
* _Linux/Mac OS only._ */
uid: number | null;
/** Group ID of the owner of this file.
*
* _Linux/Mac OS only._ */
gid: number | null;
/** Device ID of this file.
*
* _Linux/Mac OS only._ */
rdev: number | null;
/** Blocksize for filesystem I/O.
*
* _Linux/Mac OS only._ */
blksize: number | null;
/** Number of blocks allocated to the file, in 512-byte units.
*
* _Linux/Mac OS only._ */
blocks: number | null;
}
/** Returns absolute normalized path, with symbolic links resolved.
*
* ```ts
* // e.g. given /home/alice/file.txt and current directory /home/alice
* Deno.symlinkSync("file.txt", "symlink_file.txt");
* const realPath = Deno.realPathSync("./file.txt");
* const realSymLinkPath = Deno.realPathSync("./symlink_file.txt");
* console.log(realPath); // outputs "/home/alice/file.txt"
* console.log(realSymLinkPath); // outputs "/home/alice/file.txt"
* ```
*
* Requires `allow-read` permission. */
export function realPathSync(path: string): string;
/** Resolves to the absolute normalized path, with symbolic links resolved.
*
* ```ts
* // e.g. given /home/alice/file.txt and current directory /home/alice
* await Deno.symlink("file.txt", "symlink_file.txt");
* const realPath = await Deno.realPath("./file.txt");
* const realSymLinkPath = await Deno.realPath("./symlink_file.txt");
* console.log(realPath); // outputs "/home/alice/file.txt"
* console.log(realSymLinkPath); // outputs "/home/alice/file.txt"
* ```
*
* Requires `allow-read` permission. */
export function realPath(path: string): Promise<string>;
export interface DirEntry {
name: string;
isFile: boolean;
isDirectory: boolean;
isSymlink: boolean;
}
/** Synchronously reads the directory given by `path` and returns an iterable
* of `Deno.DirEntry`.
*
* ```ts
* for (const dirEntry of Deno.readDirSync("/")) {
* console.log(dirEntry.name);
* }
* ```
*
* Throws error if `path` is not a directory.
*
* Requires `allow-read` permission. */
export function readDirSync(path: string): Iterable<DirEntry>;
/** Reads the directory given by `path` and returns an async iterable of
* `Deno.DirEntry`.
*
* ```ts
* for await (const dirEntry of Deno.readDir("/")) {
* console.log(dirEntry.name);
* }
* ```
*
* Throws error if `path` is not a directory.
*
* Requires `allow-read` permission. */
export function readDir(path: string): AsyncIterable<DirEntry>;
/** Synchronously copies the contents and permissions of one file to another
* specified path, by default creating a new file if needed, else overwriting.
* Fails if target path is a directory or is unwritable.
*
* ```ts
* Deno.copyFileSync("from.txt", "to.txt");
* ```
*
* Requires `allow-read` permission on fromPath.
* Requires `allow-write` permission on toPath. */
export function copyFileSync(fromPath: string, toPath: string): void;
/** Copies the contents and permissions of one file to another specified path,
* by default creating a new file if needed, else overwriting. Fails if target
* path is a directory or is unwritable.
*
* ```ts
* await Deno.copyFile("from.txt", "to.txt");
* ```
*
* Requires `allow-read` permission on fromPath.
* Requires `allow-write` permission on toPath. */
export function copyFile(fromPath: string, toPath: string): Promise<void>;
/** Returns the full path destination of the named symbolic link.
*
* ```ts
* Deno.symlinkSync("./test.txt", "./test_link.txt");
* const target = Deno.readLinkSync("./test_link.txt"); // full path of ./test.txt
* ```
*
* Throws TypeError if called with a hard link
*
* Requires `allow-read` permission. */
export function readLinkSync(path: string): string;
/** Resolves to the full path destination of the named symbolic link.
*
* ```ts
* await Deno.symlink("./test.txt", "./test_link.txt");
* const target = await Deno.readLink("./test_link.txt"); // full path of ./test.txt
* ```
*
* Throws TypeError if called with a hard link
*
* Requires `allow-read` permission. */
export function readLink(path: string): Promise<string>;
/** Resolves to a `Deno.FileInfo` for the specified `path`. If `path` is a
* symlink, information for the symlink will be returned instead of what it
* points to.
*
* ```ts
* const fileInfo = await Deno.lstat("hello.txt");
* assert(fileInfo.isFile);
* ```
*
* Requires `allow-read` permission. */
export function lstat(path: string): Promise<FileInfo>;
/** Synchronously returns a `Deno.FileInfo` for the specified `path`. If
* `path` is a symlink, information for the symlink will be returned instead of
* what it points to..
*
* ```ts
* const fileInfo = Deno.lstatSync("hello.txt");
* assert(fileInfo.isFile);
* ```
*
* Requires `allow-read` permission. */
export function lstatSync(path: string): FileInfo;
/** Resolves to a `Deno.FileInfo` for the specified `path`. Will always
* follow symlinks.
*
* ```ts
* const fileInfo = await Deno.stat("hello.txt");
* assert(fileInfo.isFile);
* ```
*
* Requires `allow-read` permission. */
export function stat(path: string): Promise<FileInfo>;
/** Synchronously returns a `Deno.FileInfo` for the specified `path`. Will
* always follow symlinks.
*
* ```ts
* const fileInfo = Deno.statSync("hello.txt");
* assert(fileInfo.isFile);
* ```
*
* Requires `allow-read` permission. */
export function statSync(path: string): FileInfo;
/** Options for writing to a file. */
export interface WriteFileOptions {
/** Defaults to `false`. If set to `true`, will append to a file instead of
* overwriting previous contents. */
append?: boolean;
/** Sets the option to allow creating a new file, if one doesn't already
* exist at the specified path (defaults to `true`). */
create?: boolean;
/** Permissions always applied to file. */
mode?: number;
}
/** Synchronously write `data` to the given `path`, by default creating a new
* file if needed, else overwriting.
*
* ```ts
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world\n");
* Deno.writeFileSync("hello1.txt", data); // overwrite "hello1.txt" or create it
* Deno.writeFileSync("hello2.txt", data, {create: false}); // only works if "hello2.txt" exists
* Deno.writeFileSync("hello3.txt", data, {mode: 0o777}); // set permissions on new file
* Deno.writeFileSync("hello4.txt", data, {append: true}); // add data to the end of the file
* ```
*
* Requires `allow-write` permission, and `allow-read` if `options.create` is
* `false`.
*/
export function writeFileSync(
path: string,
data: Uint8Array,
options?: WriteFileOptions
): void;
/** Write `data` to the given `path`, by default creating a new file if needed,
* else overwriting.
*
* ```ts
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world\n");
* await Deno.writeFile("hello1.txt", data); // overwrite "hello1.txt" or create it
* await Deno.writeFile("hello2.txt", data, {create: false}); // only works if "hello2.txt" exists
* await Deno.writeFile("hello3.txt", data, {mode: 0o777}); // set permissions on new file
* await Deno.writeFile("hello4.txt", data, {append: true}); // add data to the end of the file
* ```
*
* Requires `allow-write` permission, and `allow-read` if `options.create` is `false`.
*/
export function writeFile(
path: string,
data: Uint8Array,
options?: WriteFileOptions
): Promise<void>;
/** Synchronously write string `data` to the given `path`, by default creating a new file if needed,
* else overwriting.
*
* ```ts
* await Deno.writeTextFileSync("hello1.txt", "Hello world\n"); // overwrite "hello1.txt" or create it
* ```
*
* Requires `allow-write` permission, and `allow-read` if `options.create` is `false`.
*/
export function writeTextFileSync(path: string, data: string): void;
/** Asynchronously write string `data` to the given `path`, by default creating a new file if needed,
* else overwriting.
*
* ```ts
* await Deno.writeTextFile("hello1.txt", "Hello world\n"); // overwrite "hello1.txt" or create it
* ```
*
* Requires `allow-write` permission, and `allow-read` if `options.create` is `false`.
*/
export function writeTextFile(path: string, data: string): Promise<void>;
/** Synchronously truncates or extends the specified file, to reach the
* specified `len`. If `len` is not specified then the entire file contents
* are truncated.
*
* ```ts
* // truncate the entire file
* Deno.truncateSync("my_file.txt");
*
* // truncate part of the file
* const file = Deno.makeTempFileSync();
* Deno.writeFileSync(file, new TextEncoder().encode("Hello World"));
* Deno.truncateSync(file, 7);
* const data = Deno.readFileSync(file);
* console.log(new TextDecoder().decode(data));
* ```
*
* Requires `allow-write` permission. */
export function truncateSync(name: string, len?: number): void;
/** Truncates or extends the specified file, to reach the specified `len`. If
* `len` is not specified then the entire file contents are truncated.
*
* ```ts
* // truncate the entire file
* await Deno.truncate("my_file.txt");
*
* // truncate part of the file
* const file = await Deno.makeTempFile();
* await Deno.writeFile(file, new TextEncoder().encode("Hello World"));
* await Deno.truncate(file, 7);
* const data = await Deno.readFile(file);
* console.log(new TextDecoder().decode(data)); // "Hello W"
* ```
*
* Requires `allow-write` permission. */
export function truncate(name: string, len?: number): Promise<void>;
export interface NetAddr {
transport: "tcp" | "udp";
hostname: string;
port: number;
}
export interface UnixAddr {
transport: "unix" | "unixpacket";
path: string;
}
export type Addr = NetAddr | UnixAddr;
/** A generic network listener for stream-oriented protocols. */
export interface Listener extends AsyncIterable<Conn> {
/** Waits for and resolves to the next connection to the `Listener`. */
accept(): Promise<Conn>;
/** Close closes the listener. Any pending accept promises will be rejected
* with errors. */
close(): void;
/** Return the address of the `Listener`. */
readonly addr: Addr;
[Symbol.asyncIterator](): AsyncIterableIterator<Conn>;
}
export interface Conn extends Reader, Writer, Closer {
/** The local address of the connection. */
readonly localAddr: Addr;
/** The remote address of the connection. */
readonly remoteAddr: Addr;
/** The resource ID of the connection. */
readonly rid: number;
/** Shuts down (`shutdown(2)`) the writing side of the TCP connection. Most
* callers should just use `close()`.
*
* **Unstable** because of lack of testing and because Deno.shutdown is also
* unstable.
* */
closeWrite(): void;
}
export interface ListenOptions {
/** The port to listen on. */
port: number;
/** A literal IP address or host name that can be resolved to an IP address.
* If not specified, defaults to `0.0.0.0`. */
hostname?: string;
}
/** Listen announces on the local transport address.
*
* ```ts
* const listener1 = Deno.listen({ port: 80 })
* const listener2 = Deno.listen({ hostname: "192.0.2.1", port: 80 })
* const listener3 = Deno.listen({ hostname: "[2001:db8::1]", port: 80 });
* const listener4 = Deno.listen({ hostname: "golang.org", port: 80, transport: "tcp" });
* ```
*
* Requires `allow-net` permission. */
export function listen(
options: ListenOptions & { transport?: "tcp" }
): Listener;
export interface ListenTlsOptions extends ListenOptions {
/** Server certificate file. */
certFile: string;
/** Server public key file. */
keyFile: string;
transport?: "tcp";
}
/** Listen announces on the local transport address over TLS (transport layer
* security).
*
* ```ts
* const lstnr = Deno.listenTls({ port: 443, certFile: "./server.crt", keyFile: "./server.key" });
* ```
*
* Requires `allow-net` permission. */
export function listenTls(options: ListenTlsOptions): Listener;
export interface ConnectOptions {
/** The port to connect to. */
port: number;
/** A literal IP address or host name that can be resolved to an IP address.
* If not specified, defaults to `127.0.0.1`. */
hostname?: string;
transport?: "tcp";
}
/**
* Connects to the hostname (default is "127.0.0.1") and port on the named
* transport (default is "tcp"), and resolves to the connection (`Conn`).
*
* ```ts
* const conn1 = await Deno.connect({ port: 80 });
* const conn2 = await Deno.connect({ hostname: "192.0.2.1", port: 80 });
* const conn3 = await Deno.connect({ hostname: "[2001:db8::1]", port: 80 });
* const conn4 = await Deno.connect({ hostname: "golang.org", port: 80, transport: "tcp" });
* const conn5 = await Deno.connect({ path: "/foo/bar.sock", transport: "unix" });
* ```
*
* Requires `allow-net` permission for "tcp" and `allow-read` for unix. */
export function connect(options: ConnectOptions): Promise<Conn>;
export interface ConnectTlsOptions {
/** The port to connect to. */
port: number;
/** A literal IP address or host name that can be resolved to an IP address.
* If not specified, defaults to `127.0.0.1`. */
hostname?: string;
/** Server certificate file. */
certFile?: string;
}
/** Establishes a secure connection over TLS (transport layer security) using
* an optional cert file, hostname (default is "127.0.0.1") and port. The
* cert file is optional and if not included Mozilla's root certificates will
* be used (see also https://github.com/ctz/webpki-roots for specifics)
*
* ```ts
* const conn1 = await Deno.connectTls({ port: 80 });
* const conn2 = await Deno.connectTls({ certFile: "./certs/my_custom_root_CA.pem", hostname: "192.0.2.1", port: 80 });
* const conn3 = await Deno.connectTls({ hostname: "[2001:db8::1]", port: 80 });
* const conn4 = await Deno.connectTls({ certFile: "./certs/my_custom_root_CA.pem", hostname: "golang.org", port: 80});
* ```
*
* Requires `allow-net` permission.
*/
export function connectTls(options: ConnectTlsOptions): Promise<Conn>;
export interface Metrics {
opsDispatched: number;
opsDispatchedSync: number;
opsDispatchedAsync: number;
opsDispatchedAsyncUnref: number;
opsCompleted: number;
opsCompletedSync: number;
opsCompletedAsync: number;
opsCompletedAsyncUnref: number;
bytesSentControl: number;
bytesSentData: number;
bytesReceived: number;
}
/** Receive metrics from the privileged side of Deno. This is primarily used
* in the development of Deno. 'Ops', also called 'bindings', are the go-between
* between Deno JavaScript and Deno Rust.
*
* > console.table(Deno.metrics())
* ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
* Γöé (index) Γöé Values Γöé
* Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
* Γöé opsDispatched Γöé 3 Γöé
* Γöé opsDispatchedSync Γöé 2 Γöé
* Γöé opsDispatchedAsync Γöé 1 Γöé
* Γöé opsDispatchedAsyncUnref Γöé 0 Γöé
* Γöé opsCompleted Γöé 3 Γöé
* Γöé opsCompletedSync Γöé 2 Γöé
* Γöé opsCompletedAsync Γöé 1 Γöé
* Γöé opsCompletedAsyncUnref Γöé 0 Γöé
* Γöé bytesSentControl Γöé 73 Γöé
* Γöé bytesSentData Γöé 0 Γöé
* Γöé bytesReceived Γöé 375 Γöé
* ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
*/
export function metrics(): Metrics;
interface ResourceMap {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[rid: number]: any;
}
/** Returns a map of open resource ids (rid) along with their string
* representations. This is an internal API and as such resource
* representation has `any` type; that means it can change any time.
*
* ```ts
* console.log(Deno.resources());
* // { 0: "stdin", 1: "stdout", 2: "stderr" }
* Deno.openSync('../test.file');
* console.log(Deno.resources());
* // { 0: "stdin", 1: "stdout", 2: "stderr", 3: "fsFile" }
* ```
*/
export function resources(): ResourceMap;
export interface FsEvent {
kind: "any" | "access" | "create" | "modify" | "remove";
paths: string[];
}
/** Watch for file system events against one or more `paths`, which can be files
* or directories. These paths must exist already. One user action (e.g.
* `touch test.file`) can generate multiple file system events. Likewise,
* one user action can result in multiple file paths in one event (e.g. `mv
* old_name.txt new_name.txt`). Recursive option is `true` by default and,
* for directories, will watch the specified directory and all sub directories.
* Note that the exact ordering of the events can vary between operating systems.
*
* ```ts
* const watcher = Deno.watchFs("/");
* for await (const event of watcher) {
* console.log(">>>> event", event);
* // { kind: "create", paths: [ "/foo.txt" ] }
* }
*```
*
* Requires `allow-read` permission.
*/
export function watchFs(
paths: string | string[],
options?: { recursive: boolean }
): AsyncIterableIterator<FsEvent>;
export class Process {
readonly rid: number;
readonly pid: number;
readonly stdin?: Writer & Closer;
readonly stdout?: Reader & Closer;
readonly stderr?: Reader & Closer;
/** Resolves to the current status of the process. */
status(): Promise<ProcessStatus>;
/** Buffer the stdout until EOF and return it as `Uint8Array`.
*
* You must set stdout to `"piped"` when creating the process.
*
* This calls `close()` on stdout after its done. */
output(): Promise<Uint8Array>;
/** Buffer the stderr until EOF and return it as `Uint8Array`.
*
* You must set stderr to `"piped"` when creating the process.
*
* This calls `close()` on stderr after its done. */
stderrOutput(): Promise<Uint8Array>;
close(): void;
/** **UNSTABLE**: The `signo` argument may change to require the Deno.Signal
* enum.
*
* Send a signal to process. This functionality currently only works on
* Linux and Mac OS.
*/
kill(signo: number): void;
}
export type ProcessStatus =
| {
success: true;
code: 0;
signal?: undefined;
}
| {
success: false;
code: number;
signal?: number;
};
export interface RunOptions {
/** Arguments to pass. Note, the first element needs to be a path to the
* binary */
cmd: string[];
cwd?: string;
env?: {
[key: string]: string;
};
stdout?: "inherit" | "piped" | "null" | number;
stderr?: "inherit" | "piped" | "null" | number;
stdin?: "inherit" | "piped" | "null" | number;
}
/** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
* an array of program arguments, the first of which is the binary.
*
* ```ts
* const p = Deno.run({
* cmd: ["echo", "hello"],
* });
* ```
*
* Subprocess uses same working directory as parent process unless `opt.cwd`
* is specified.
*
* Environmental variables for subprocess can be specified using `opt.env`
* mapping.
*
* By default subprocess inherits stdio of parent process. To change that
* `opt.stdout`, `opt.stderr` and `opt.stdin` can be specified independently -
* they can be set to either an rid of open file or set to "inherit" "piped"
* or "null":
*
* `"inherit"` The default if unspecified. The child inherits from the
* corresponding parent descriptor.
*
* `"piped"` A new pipe should be arranged to connect the parent and child
* sub-processes.
*
* `"null"` This stream will be ignored. This is the equivalent of attaching
* the stream to `/dev/null`.
*
* Details of the spawned process are returned.
*
* Requires `allow-run` permission. */
export function run(opt: RunOptions): Process;
interface InspectOptions {
depth?: number;
}
/** Converts the input into a string that has the same format as printed by
* `console.log()`.
*
* ```ts
* const obj = {};
* obj.propA = 10;
* obj.propB = "hello"
* const objAsString = Deno.inspect(obj); // { propA: 10, propB: "hello" }
* console.log(obj); // prints same value as objAsString, e.g. { propA: 10, propB: "hello" }
* ```
*
* You can also register custom inspect functions, via the `customInspect` Deno
* symbol on objects, to control and customize the output.
*
* ```ts
* class A {
* x = 10;
* y = "hello";
* [Deno.customInspect](): string {
* return "x=" + this.x + ", y=" + this.y;
* }
* }
* ```
*
* const inStringFormat = Deno.inspect(new A()); // "x=10, y=hello"
* console.log(inStringFormat); // prints "x=10, y=hello"
*
* Finally, a number of output options are also available.
*
* const out = Deno.inspect(obj, {showHidden: true, depth: 4, colors: true, indentLevel: 2});
*
*/
export function inspect(value: unknown, options?: InspectOptions): string;
/** Build related information. */
export const build: {
/** The LLVM target triple */
target: string;
/** Instruction set architecture */
arch: "x86_64";
/** Operating system */
os: "darwin" | "linux" | "windows";
/** Computer vendor */
vendor: string;
/** Optional environment */
env?: string;
};
interface Version {
deno: string;
v8: string;
typescript: string;
}
/** Version related information. */
export const version: Version;
/** Returns the script arguments to the program. If for example we run a
* program:
*
* deno run --allow-read https://deno.land/std/examples/cat.ts /etc/passwd
*
* Then `Deno.args` will contain:
*
* [ "/etc/passwd" ]
*/
export const args: string[];
/** A symbol which can be used as a key for a custom method which will be
* called when `Deno.inspect()` is called, or when the object is logged to
* the console. */
export const customInspect: unique symbol;
}
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, no-var */
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
// This follows the WebIDL at: https://webassembly.github.io/spec/js-api/
// and: https://webassembly.github.io/spec/web-api/
declare namespace WebAssembly {
interface WebAssemblyInstantiatedSource {
module: Module;
instance: Instance;
}
/** Compiles a `WebAssembly.Module` from WebAssembly binary code. This
* function is useful if it is necessary to a compile a module before it can
* be instantiated (otherwise, the `WebAssembly.instantiate()` function
* should be used). */
function compile(bufferSource: BufferSource): Promise<Module>;
/** Compiles a `WebAssembly.Module` directly from a streamed underlying
* source. This function is useful if it is necessary to a compile a module
* before it can be instantiated (otherwise, the
* `WebAssembly.instantiateStreaming()` function should be used). */
function compileStreaming(source: Promise<Response>): Promise<Module>;
/** Takes the WebAssembly binary code, in the form of a typed array or
* `ArrayBuffer`, and performs both compilation and instantiation in one step.
* The returned `Promise` resolves to both a compiled `WebAssembly.Module` and
* its first `WebAssembly.Instance`. */
function instantiate(
bufferSource: BufferSource,
importObject?: object
): Promise<WebAssemblyInstantiatedSource>;
/** Takes an already-compiled `WebAssembly.Module` and returns a `Promise`
* that resolves to an `Instance` of that `Module`. This overload is useful if
* the `Module` has already been compiled. */
function instantiate(
module: Module,
importObject?: object
): Promise<Instance>;
/** Compiles and instantiates a WebAssembly module directly from a streamed
* underlying source. This is the most efficient, optimized way to load wasm
* code. */
function instantiateStreaming(
source: Promise<Response>,
importObject?: object
): Promise<WebAssemblyInstantiatedSource>;
/** Validates a given typed array of WebAssembly binary code, returning
* whether the bytes form a valid wasm module (`true`) or not (`false`). */
function validate(bufferSource: BufferSource): boolean;
type ImportExportKind = "function" | "table" | "memory" | "global";
interface ModuleExportDescriptor {
name: string;
kind: ImportExportKind;
}
interface ModuleImportDescriptor {
module: string;
name: string;
kind: ImportExportKind;
}
class Module {
constructor(bufferSource: BufferSource);
/** Given a `Module` and string, returns a copy of the contents of all
* custom sections in the module with the given string name. */
static customSections(
moduleObject: Module,
sectionName: string
): ArrayBuffer;
/** Given a `Module`, returns an array containing descriptions of all the
* declared exports. */
static exports(moduleObject: Module): ModuleExportDescriptor[];
/** Given a `Module`, returns an array containing descriptions of all the
* declared imports. */
static imports(moduleObject: Module): ModuleImportDescriptor[];
}
class Instance<T extends object = { [key: string]: any }> {
constructor(module: Module, importObject?: object);
/** An object containing as its members all the functions exported from the
* WebAssembly module instance, to allow them to be accessed and used by
* JavaScript. */
readonly exports: T;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
}
class Memory {
constructor(descriptor: MemoryDescriptor);
/** An accessor property that returns the buffer contained in the memory. */
readonly buffer: ArrayBuffer;
/** Increases the size of the memory instance by a specified number of
* WebAssembly pages (each one is 64KB in size). */
grow(delta: number): number;
}
type TableKind = "anyfunc";
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
class Table {
constructor(descriptor: TableDescriptor);
/** Returns the length of the table, i.e. the number of elements. */
readonly length: number;
/** Accessor function ΓÇö gets the element stored at a given index. */
get(index: number): (...args: any[]) => any;
/** Increases the size of the Table instance by a specified number of
* elements. */
grow(delta: number): number;
/** Sets an element stored at a given index to a given value. */
set(index: number, value: (...args: any[]) => any): void;
}
type ValueType = "i32" | "i64" | "f32" | "f64";
interface GlobalDescriptor {
value: ValueType;
mutable?: boolean;
}
/** Represents a global variable instance, accessible from both JavaScript and
* importable/exportable across one or more `WebAssembly.Module` instances.
* This allows dynamic linking of multiple modules. */
class Global {
constructor(descriptor: GlobalDescriptor, value?: any);
/** Old-style method that returns the value contained inside the global
* variable. */
valueOf(): any;
/** The value contained inside the global variable ΓÇö this can be used to
* directly set and get the global's value. */
value: any;
}
/** Indicates an error during WebAssembly decoding or validation */
class CompileError extends Error {
constructor(message: string, fileName?: string, lineNumber?: string);
}
/** Indicates an error during module instantiation (besides traps from the
* start function). */
class LinkError extends Error {
constructor(message: string, fileName?: string, lineNumber?: string);
}
/** Is thrown whenever WebAssembly specifies a trap. */
class RuntimeError extends Error {
constructor(message: string, fileName?: string, lineNumber?: string);
}
}
/** Sets a timer which executes a function once after the timer expires. */
declare function setTimeout(
cb: (...args: any[]) => void,
delay?: number,
...args: any[]
): number;
/** Repeatedly calls a function , with a fixed time delay between each call. */
declare function setInterval(
cb: (...args: any[]) => void,
delay?: number,
...args: any[]
): number;
declare function clearTimeout(id?: number): void;
declare function clearInterval(id?: number): void;
declare function queueMicrotask(func: Function): void;
declare var console: Console;
declare var crypto: Crypto;
declare function addEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
options?: boolean | AddEventListenerOptions | undefined
): void;
declare function dispatchEvent(event: Event): boolean;
declare function removeEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
options?: boolean | EventListenerOptions | undefined
): void;
declare interface ImportMeta {
url: string;
main: boolean;
}
interface DomIterable<K, V> {
keys(): IterableIterator<K>;
values(): IterableIterator<V>;
entries(): IterableIterator<[K, V]>;
[Symbol.iterator](): IterableIterator<[K, V]>;
forEach(
callback: (value: V, key: K, parent: this) => void,
thisArg?: any
): void;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
type ReadableStreamReadResult<T> =
| ReadableStreamReadValueResult<T>
| ReadableStreamReadDoneResult<T>;
interface ReadableStreamDefaultReader<R = any> {
readonly closed: Promise<void>;
cancel(reason?: any): Promise<void>;
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
interface ReadableStreamReader<R = any> {
cancel(): Promise<void>;
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
interface ReadableByteStreamControllerCallback {
(controller: ReadableByteStreamController): void | PromiseLike<void>;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: ReadableStreamErrorCallback;
pull?: ReadableByteStreamControllerCallback;
start?: ReadableByteStreamControllerCallback;
type: "bytes";
}
interface UnderlyingSource<R = any> {
cancel?: ReadableStreamErrorCallback;
pull?: ReadableStreamDefaultControllerCallback<R>;
start?: ReadableStreamDefaultControllerCallback<R>;
type?: undefined;
}
interface ReadableStreamErrorCallback {
(reason: any): void | PromiseLike<void>;
}
interface ReadableStreamDefaultControllerCallback<R> {
(controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>;
}
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: R): void;
error(error?: any): void;
}
interface ReadableByteStreamController {
readonly byobRequest: undefined;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: ArrayBufferView): void;
error(error?: any): void;
}
interface PipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
preventClose?: boolean;
signal?: AbortSignal;
}
interface QueuingStrategySizeCallback<T = any> {
(chunk: T): number;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySizeCallback<T>;
}
/** This Streams API interface provides a built-in byte length queuing strategy
* that can be used when constructing streams. */
declare class CountQueuingStrategy implements QueuingStrategy {
constructor(options: { highWaterMark: number });
highWaterMark: number;
size(chunk: any): 1;
}
declare class ByteLengthQueuingStrategy
implements QueuingStrategy<ArrayBufferView> {
constructor(options: { highWaterMark: number });
highWaterMark: number;
size(chunk: ArrayBufferView): number;
}
/** This Streams API interface represents a readable stream of byte data. The
* Fetch API offers a concrete instance of a ReadableStream through the body
* property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getIterator(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
// getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
pipeThrough<T>(
{
writable,
readable,
}: {
writable: WritableStream<R>;
readable: ReadableStream<T>;
},
options?: PipeOptions
): ReadableStream<T>;
pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
[Symbol.asyncIterator](options?: {
preventCancel?: boolean;
}): AsyncIterableIterator<R>;
}
declare var ReadableStream: {
prototype: ReadableStream;
new (
underlyingSource: UnderlyingByteSource,
strategy?: { highWaterMark?: number; size?: undefined }
): ReadableStream<Uint8Array>;
new <R = any>(
underlyingSource?: UnderlyingSource<R>,
strategy?: QueuingStrategy<R>
): ReadableStream<R>;
};
interface WritableStreamDefaultControllerCloseCallback {
(): void | PromiseLike<void>;
}
interface WritableStreamDefaultControllerStartCallback {
(controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface WritableStreamDefaultControllerWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<
void
>;
}
interface WritableStreamErrorCallback {
(reason: any): void | PromiseLike<void>;
}
interface UnderlyingSink<W = any> {
abort?: WritableStreamErrorCallback;
close?: WritableStreamDefaultControllerCloseCallback;
start?: WritableStreamDefaultControllerStartCallback;
type?: undefined;
write?: WritableStreamDefaultControllerWriteCallback<W>;
}
/** This Streams API interface provides a standard abstraction for writing
* streaming data to a destination, known as a sink. This object comes with
* built-in backpressure and queuing. */
declare class WritableStream<W = any> {
constructor(
underlyingSink?: UnderlyingSink<W>,
strategy?: QueuingStrategy<W>
);
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
/** This Streams API interface represents a controller allowing control of a
* WritableStream's state. When constructing a WritableStream, the underlying
* sink is given a corresponding WritableStreamDefaultController instance to
* manipulate. */
interface WritableStreamDefaultController {
error(error?: any): void;
}
/** This Streams API interface is the object returned by
* WritableStream.getWriter() and once created locks the < writer to the
* WritableStream ensuring that no other streams can write to the underlying
* sink. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<void>;
readonly desiredSize: number | null;
readonly ready: Promise<void>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk: W): Promise<void>;
}
declare class TransformStream<I = any, O = any> {
constructor(
transformer?: Transformer<I, O>,
writableStrategy?: QueuingStrategy<I>,
readableStrategy?: QueuingStrategy<O>
);
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk: O): void;
error(reason?: any): void;
terminate(): void;
}
interface Transformer<I = any, O = any> {
flush?: TransformStreamDefaultControllerCallback<O>;
readableType?: undefined;
start?: TransformStreamDefaultControllerCallback<O>;
transform?: TransformStreamDefaultControllerTransformCallback<I, O>;
writableType?: undefined;
}
interface TransformStreamDefaultControllerCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformStreamDefaultControllerTransformCallback<I, O> {
(
chunk: I,
controller: TransformStreamDefaultController<O>
): void | PromiseLike<void>;
}
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
/** Returns true if strings contains string, and false otherwise. */
contains(string: string): boolean;
/** Returns the string with index index from strings. */
item(index: number): string | null;
[index: number]: string;
}
declare class DOMException extends Error {
constructor(message?: string, name?: string);
readonly name: string;
readonly message: string;
}
type BufferSource = ArrayBufferView | ArrayBuffer;
type BlobPart = BufferSource | Blob | string;
interface BlobPropertyBag {
type?: string;
ending?: "transparent" | "native";
}
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream;
text(): Promise<string>;
}
declare const Blob: {
prototype: Blob;
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
/** Provides information about files and allows JavaScript in a web page to
* access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
}
declare const File: {
prototype: File;
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
declare const isConsoleInstance: unique symbol;
declare class Console {
indentLevel: number;
[isConsoleInstance]: boolean;
/** Writes the arguments to stdout */
log: (...args: unknown[]) => void;
/** Writes the arguments to stdout */
debug: (...args: unknown[]) => void;
/** Writes the arguments to stdout */
info: (...args: unknown[]) => void;
/** Writes the properties of the supplied `obj` to stdout */
dir: (
obj: unknown,
options?: Partial<{
depth: number;
indentLevel: number;
}>
) => void;
/** From MDN:
* Displays an interactive tree of the descendant elements of
* the specified XML/HTML element. If it is not possible to display
* as an element the JavaScript Object view is shown instead.
* The output is presented as a hierarchical listing of expandable
* nodes that let you see the contents of child nodes.
*
* Since we write to stdout, we can't display anything interactive
* we just fall back to `console.dir`.
*/
dirxml: (
obj: unknown,
options?: Partial<{
showHidden: boolean;
depth: number;
colors: boolean;
indentLevel: number;
}>
) => void;
/** Writes the arguments to stdout */
warn: (...args: unknown[]) => void;
/** Writes the arguments to stdout */
error: (...args: unknown[]) => void;
/** Writes an error message to stdout if the assertion is `false`. If the
* assertion is `true`, nothing happens.
*
* ref: https://console.spec.whatwg.org/#assert
*/
assert: (condition?: boolean, ...args: unknown[]) => void;
count: (label?: string) => void;
countReset: (label?: string) => void;
table: (data: unknown, properties?: string[] | undefined) => void;
time: (label?: string) => void;
timeLog: (label?: string, ...args: unknown[]) => void;
timeEnd: (label?: string) => void;
group: (...label: unknown[]) => void;
groupCollapsed: (...label: unknown[]) => void;
groupEnd: () => void;
clear: () => void;
trace: (...args: unknown[]) => void;
static [Symbol.hasInstance](instance: Console): boolean;
}
declare interface Crypto {
readonly subtle: null;
getRandomValues<
T extends
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| null
>(
array: T
): T;
}
type FormDataEntryValue = File | string;
/** Provides a way to easily construct a set of key/value pairs representing
* form fields and their values, which can then be easily sent using the
* XMLHttpRequest.send() method. It uses the same format a form would use if the
* encoding type were set to "multipart/form-data". */
interface FormData extends DomIterable<string, FormDataEntryValue> {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
}
declare const FormData: {
prototype: FormData;
// TODO(ry) FormData constructor is non-standard.
// new(form?: HTMLFormElement): FormData;
new (): FormData;
};
interface Body {
/** A simple getter used to expose a `ReadableStream` of the body contents. */
readonly body: ReadableStream<Uint8Array> | null;
/** Stores a `Boolean` that declares whether the body has been used in a
* response yet.
*/
readonly bodyUsed: boolean;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with an `ArrayBuffer`.
*/
arrayBuffer(): Promise<ArrayBuffer>;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with a `Blob`.
*/
blob(): Promise<Blob>;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with a `FormData` object.
*/
formData(): Promise<FormData>;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with the result of parsing the body text as JSON.
*/
json(): Promise<any>;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with a `USVString` (text).
*/
text(): Promise<string>;
}
type HeadersInit = Headers | string[][] | Record<string, string>;
/** This Fetch API interface allows you to perform various actions on HTTP
* request and response headers. These actions include retrieving, setting,
* adding to, and removing. A Headers object has an associated header list,
* which is initially empty and consists of zero or more name and value pairs.
*  You can add to this using methods like append() (see Examples.) In all
* methods of this interface, header names are matched by case-insensitive byte
* sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(
callbackfn: (value: string, key: string, parent: Headers) => void,
thisArg?: any
): void;
}
interface Headers extends DomIterable<string, string> {
/** Appends a new value onto an existing header inside a `Headers` object, or
* adds the header if it does not already exist.
*/
append(name: string, value: string): void;
/** Deletes a header from a `Headers` object. */
delete(name: string): void;
/** Returns an iterator allowing to go through all key/value pairs
* contained in this Headers object. The both the key and value of each pairs
* are ByteString objects.
*/
entries(): IterableIterator<[string, string]>;
/** Returns a `ByteString` sequence of all the values of a header within a
* `Headers` object with a given name.
*/
get(name: string): string | null;
/** Returns a boolean stating whether a `Headers` object contains a certain
* header.
*/
has(name: string): boolean;
/** Returns an iterator allowing to go through all keys contained in
* this Headers object. The keys are ByteString objects.
*/
keys(): IterableIterator<string>;
/** Sets a new value for an existing header inside a Headers object, or adds
* the header if it does not already exist.
*/
set(name: string, value: string): void;
/** Returns an iterator allowing to go through all values contained in
* this Headers object. The values are ByteString objects.
*/
values(): IterableIterator<string>;
forEach(
callbackfn: (value: string, key: string, parent: this) => void,
thisArg?: any
): void;
/** The Symbol.iterator well-known symbol specifies the default
* iterator for this Headers object
*/
[Symbol.iterator](): IterableIterator<[string, string]>;
}
declare const Headers: {
prototype: Headers;
new (init?: HeadersInit): Headers;
};
type RequestInfo = Request | string;
type RequestCache =
| "default"
| "force-cache"
| "no-cache"
| "no-store"
| "only-if-cached"
| "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ReferrerPolicy =
| ""
| "no-referrer"
| "no-referrer-when-downgrade"
| "origin"
| "origin-when-cross-origin"
| "same-origin"
| "strict-origin"
| "strict-origin-when-cross-origin"
| "unsafe-url";
type BodyInit =
| Blob
| BufferSource
| FormData
| URLSearchParams
| ReadableStream<Uint8Array>
| string;
type RequestDestination =
| ""
| "audio"
| "audioworklet"
| "document"
| "embed"
| "font"
| "image"
| "manifest"
| "object"
| "paintworklet"
| "report"
| "script"
| "sharedworker"
| "style"
| "track"
| "video"
| "worker"
| "xslt";
interface RequestInit {
/**
* A BodyInit object or null to set request's body.
*/
body?: BodyInit | null;
/**
* A string indicating how the request will interact with the browser's cache
* to set request's cache.
*/
cache?: RequestCache;
/**
* A string indicating whether credentials will be sent with the request
* always, never, or only when sent to a same-origin URL. Sets request's
* credentials.
*/
credentials?: RequestCredentials;
/**
* A Headers object, an object literal, or an array of two-item arrays to set
* request's headers.
*/
headers?: HeadersInit;
/**
* A cryptographic hash of the resource to be fetched by request. Sets
* request's integrity.
*/
integrity?: string;
/**
* A boolean to set request's keepalive.
*/
keepalive?: boolean;
/**
* A string to set request's method.
*/
method?: string;
/**
* A string to indicate whether the request will use CORS, or will be
* restricted to same-origin URLs. Sets request's mode.
*/
mode?: RequestMode;
/**
* A string indicating whether request follows redirects, results in an error
* upon encountering a redirect, or returns the redirect (in an opaque
* fashion). Sets request's redirect.
*/
redirect?: RequestRedirect;
/**
* A string whose value is a same-origin URL, "about:client", or the empty
* string, to set request's referrer.
*/
referrer?: string;
/**
* A referrer policy to set request's referrerPolicy.
*/
referrerPolicy?: ReferrerPolicy;
/**
* An AbortSignal to set request's signal.
*/
signal?: AbortSignal | null;
/**
* Can only be null. Used to disassociate request from any Window.
*/
window?: any;
}
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string
* indicating how the request will interact with the browser's cache when
* fetching.
*/
readonly cache: RequestCache;
/**
* Returns the credentials mode associated with request, which is a string
* indicating whether credentials will be sent with the request always, never,
* or only when sent to a same-origin URL.
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*/
readonly destination: RequestDestination;
/**
* Returns a Headers object consisting of the headers associated with request.
* Note that headers added in the network layer by the user agent will not be
* accounted for in this object, e.g., the "Host" header.
*/
readonly headers: Headers;
/**
* Returns request's subresource integrity metadata, which is a cryptographic
* hash of the resource being fetched. Its value consists of multiple hashes
* separated by whitespace. [SRI]
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request is for a history
* navigation (a.k.a. back-forward navigation).
*/
readonly isHistoryNavigation: boolean;
/**
* Returns a boolean indicating whether or not request is for a reload
* navigation.
*/
readonly isReloadNavigation: boolean;
/**
* Returns a boolean indicating whether or not request can outlive the global
* in which it was created.
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*/
readonly method: string;
/**
* Returns the mode associated with request, which is a string indicating
* whether the request will use CORS, or will be restricted to same-origin
* URLs.
*/
readonly mode: RequestMode;
/**
* Returns the redirect mode associated with request, which is a string
* indicating how redirects for the request will be handled during fetching. A
* request will follow redirects by default.
*/
readonly redirect: RequestRedirect;
/**
* Returns the referrer of request. Its value can be a same-origin URL if
* explicitly set in init, the empty string to indicate no referrer, and
* "about:client" when defaulting to the global's default. This is used during
* fetching to determine the value of the `Referer` header of the request
* being made.
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during
* fetching to compute the value of the request's referrer.
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* Returns the signal associated with request, which is an AbortSignal object
* indicating whether or not request has been aborted, and its abort event
* handler.
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*/
readonly url: string;
clone(): Request;
}
declare const Request: {
prototype: Request;
new (input: RequestInfo, init?: RequestInit): Request;
};
type ResponseType =
| "basic"
| "cors"
| "default"
| "error"
| "opaque"
| "opaqueredirect";
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly trailer: Promise<Headers>;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare const Response: {
prototype: Response;
// TODO(#4667) Response constructor is non-standard.
// new(body?: BodyInit | null, init?: ResponseInit): Response;
new (
url: string,
status: number,
statusText: string,
headersList: Array<[string, string]>,
rid: number,
redirected_: boolean,
type_?: null | ResponseType,
body_?: null | Body
): Response;
error(): Response;
redirect(url: string, status?: number): Response;
};
/** Fetch a resource from the network. */
declare function fetch(
input: Request | URL | string,
init?: RequestInit
): Promise<Response>;
declare function atob(s: string): string;
/** Creates a base-64 ASCII string from the input string. */
declare function btoa(s: string): string;
declare class TextDecoder {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
/** Returns `true` if error mode is "fatal", and `false` otherwise. */
readonly fatal: boolean;
/** Returns `true` if ignore BOM flag is set, and `false` otherwise. */
readonly ignoreBOM = false;
constructor(
label?: string,
options?: { fatal?: boolean; ignoreBOM?: boolean }
);
/** Returns the result of running encoding's decoder. */
decode(input?: BufferSource, options?: { stream?: false }): string;
readonly [Symbol.toStringTag]: string;
}
declare class TextEncoder {
/** Returns "utf-8". */
readonly encoding = "utf-8";
/** Returns the result of running UTF-8's encoder. */
encode(input?: string): Uint8Array;
encodeInto(
input: string,
dest: Uint8Array
): { read: number; written: number };
readonly [Symbol.toStringTag]: string;
}
interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter.
*
* ```ts
* let searchParams = new URLSearchParams();
* searchParams.append('name', 'first');
* searchParams.append('name', 'second');
* ```
*/
append(name: string, value: string): void;
/** Deletes the given search parameter and its associated value,
* from the list of all search parameters.
*
* ```ts
* let searchParams = new URLSearchParams([['name', 'value']]);
* searchParams.delete('name');
* ```
*/
delete(name: string): void;
/** Returns all the values associated with a given search parameter
* as an array.
*
* ```ts
* searchParams.getAll('name');
* ```
*/
getAll(name: string): string[];
/** Returns the first value associated to the given search parameter.
*
* ```ts
* searchParams.get('name');
* ```
*/
get(name: string): string | null;
/** Returns a Boolean that indicates whether a parameter with the
* specified name exists.
*
* ```ts
* searchParams.has('name');
* ```
*/
has(name: string): boolean;
/** Sets the value associated with a given search parameter to the
* given value. If there were several matching values, this method
* deletes the others. If the search parameter doesn't exist, this
* method creates it.
*
* ```ts
* searchParams.set('name', 'value');
* ```
*/
set(name: string, value: string): void;
/** Sort all key/value pairs contained in this object in place and
* return undefined. The sort order is according to Unicode code
* points of the keys.
*
* ```ts
* searchParams.sort();
* ```
*/
sort(): void;
/** Calls a function for each element contained in this object in
* place and return undefined. Optionally accepts an object to use
* as this when executing callback as second argument.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* params.forEach((value, key, parent) => {
* console.log(value, key, parent);
* });
* ```
*
*/
forEach(
callbackfn: (value: string, key: string, parent: this) => void,
thisArg?: any
): void;
/** Returns an iterator allowing to go through all keys contained
* in this object.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* for (const key of params.keys()) {
* console.log(key);
* }
* ```
*/
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values contained
* in this object.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* for (const value of params.values()) {
* console.log(value);
* }
* ```
*/
values(): IterableIterator<string>;
/** Returns an iterator allowing to go through all key/value
* pairs contained in this object.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* for (const [key, value] of params.entries()) {
* console.log(key, value);
* }
* ```
*/
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value
* pairs contained in this object.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* for (const [key, value] of params) {
* console.log(key, value);
* }
* ```
*/
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns a query string suitable for use in a URL.
*
* ```ts
* searchParams.toString();
* ```
*/
toString(): string;
}
declare const URLSearchParams: {
prototype: URLSearchParams;
new (
init?: string[][] | Record<string, string> | string | URLSearchParams
): URLSearchParams;
toString(): string;
};
/** The URL interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare const URL: {
prototype: URL;
new (url: string | URL, base?: string | URL): URL;
createObjectURL(object: any): string;
revokeObjectURL(url: string): void;
};
interface MessageEventInit extends EventInit {
data?: any;
origin?: string;
lastEventId?: string;
}
declare class MessageEvent extends Event {
readonly data: any;
readonly origin: string;
readonly lastEventId: string;
constructor(type: string, eventInitDict?: MessageEventInit);
}
interface ErrorEventInit extends EventInit {
message?: string;
filename?: string;
lineno?: number;
colno?: number;
error?: any;
}
declare class ErrorEvent extends Event {
readonly message: string;
readonly filename: string;
readonly lineno: number;
readonly colno: number;
readonly error: any;
constructor(type: string, eventInitDict?: ErrorEventInit);
}
interface PostMessageOptions {
transfer?: any[];
}
declare class Worker extends EventTarget {
onerror?: (e: ErrorEvent) => void;
onmessage?: (e: MessageEvent) => void;
onmessageerror?: (e: MessageEvent) => void;
constructor(
specifier: string,
options?: {
type?: "classic" | "module";
name?: string;
/** UNSTABLE: New API. Expect many changes; most likely this
* field will be made into an object for more granular
* configuration of worker thread (permissions, import map, etc.).
*
* Set to `true` to make `Deno` namespace and all of its methods
* available to worker thread.
*
* Currently worker inherits permissions from main thread (permissions
* given using `--allow-*` flags).
* Configurable permissions are on the roadmap to be implemented.
*
* Example:
*
* ```ts
* // mod.ts
* const worker = new Worker("./deno_worker.ts", { type: "module", deno: true });
* worker.postMessage({ cmd: "readFile", fileName: "./log.txt" });
*
* // deno_worker.ts
*
*
* self.onmessage = async function (e) {
* const { cmd, fileName } = e.data;
* if (cmd !== "readFile") {
* throw new Error("Invalid command");
* }
* const buf = await Deno.readFile(fileName);
* const fileContents = new TextDecoder().decode(buf);
* console.log(fileContents);
* }
* ```
*
* // log.txt
* hello world
* hello world 2
*
* // run program
* $ deno run --allow-read mod.ts
* hello world
* hello world2
*
*/
deno?: boolean;
}
);
postMessage(message: any, transfer: ArrayBuffer[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
terminate(): void;
}
declare namespace performance {
/** Returns a current time from Deno's start in milliseconds.
*
* Use the flag --allow-hrtime return a precise value.
*
* ```ts
* const t = performance.now();
* console.log(`${t} ms since start!`);
* ```
*/
export function now(): number;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
/** An event which takes place in the DOM. */
declare class Event {
constructor(type: string, eventInitDict?: EventInit);
/** Returns true or false depending on how event was initialized. True if
* event goes through its target's ancestors in reverse tree order, and
* false otherwise. */
readonly bubbles: boolean;
cancelBubble: boolean;
/** Returns true or false depending on how event was initialized. Its return
* value does not always carry meaning, but true can indicate that part of the
* operation during which event was dispatched, can be canceled by invoking
* the preventDefault() method. */
readonly cancelable: boolean;
/** Returns true or false depending on how event was initialized. True if
* event invokes listeners past a ShadowRoot node that is the root of its
* target, and false otherwise. */
readonly composed: boolean;
/** Returns the object whose event listener's callback is currently being
* invoked. */
readonly currentTarget: EventTarget | null;
/** Returns true if preventDefault() was invoked successfully to indicate
* cancellation, and false otherwise. */
readonly defaultPrevented: boolean;
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE,
* AT_TARGET, and BUBBLING_PHASE. */
readonly eventPhase: number;
/** Returns true if event was dispatched by the user agent, and false
* otherwise. */
readonly isTrusted: boolean;
/** Returns the object to which event is dispatched (its target). */
readonly target: EventTarget | null;
/** Returns the event's timestamp as the number of milliseconds measured
* relative to the time origin. */
readonly timeStamp: number;
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
readonly type: string;
/** Returns the invocation target objects of event's path (objects on which
* listeners will be invoked), except for any nodes in shadow trees of which
* the shadow root's mode is "closed" that are not reachable from event's
* currentTarget. */
composedPath(): EventTarget[];
/** If invoked when the cancelable attribute value is true, and while
* executing a listener for the event with passive set to false, signals to
* the operation that caused event to be dispatched that it needs to be
* canceled. */
preventDefault(): void;
/** Invoking this method prevents event from reaching any registered event
* listeners after the current one finishes running and, when dispatched in a
* tree, also prevents event from reaching any other objects. */
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from
* reaching any objects other than the current object. */
stopPropagation(): void;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
static readonly AT_TARGET: number;
static readonly BUBBLING_PHASE: number;
static readonly CAPTURING_PHASE: number;
static readonly NONE: number;
}
/**
* EventTarget is a DOM interface implemented by objects that can receive events
* and may have listeners for them.
*/
declare class EventTarget {
/** Appends an event listener for events whose type attribute value is type.
* The callback argument sets the callback that will be invoked when the event
* is dispatched.
*
* The options argument sets listener-specific options. For compatibility this
* can be a boolean, in which case the method behaves exactly as if the value
* was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked
* when the event's eventPhase attribute value is BUBBLING_PHASE. When false
* (or not present), callback will not be invoked when event's eventPhase
* attribute value is CAPTURING_PHASE. Either way, callback will be invoked if
* event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not
* cancel the event by invoking preventDefault(). This is used to enable
* performance optimizations described in § 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be
* invoked once after which the event listener will be removed.
*
* The event listener is appended to target's event listener list and is not
* appended if it has the same type, callback, and capture. */
addEventListener(
type: string,
listener: EventListenerOrEventListenerObject | null,
options?: boolean | AddEventListenerOptions
): void;
/** Dispatches a synthetic event event to target and returns true if either
* event's cancelable attribute value is false or its preventDefault() method
* was not invoked, and false otherwise. */
dispatchEvent(event: Event): boolean;
/** Removes the event listener in target's event listener list with the same
* type, callback, and options. */
removeEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
options?: EventListenerOptions | boolean
): void;
[Symbol.toStringTag]: string;
}
interface EventListener {
(evt: Event): void | Promise<void>;
}
interface EventListenerObject {
handleEvent(evt: Event): void | Promise<void>;
}
declare type EventListenerOrEventListenerObject =
| EventListener
| EventListenerObject;
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
/** Events measuring progress of an underlying process, like an HTTP request
* (for an XMLHttpRequest, or the loading of the underlying resource of an
* <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
declare class CustomEvent<T = any> extends Event {
constructor(typeArg: string, eventInitDict?: CustomEventInit<T>);
/** Returns any custom data event was created with. Typically used for
* synthetic events. */
readonly detail: T;
}
/** A controller object that allows you to abort one or more DOM requests as and
* when desired. */
declare class AbortController {
/** Returns the AbortSignal object associated with this object. */
readonly signal: AbortSignal;
/** Invoking this method will set this object's AbortSignal's aborted flag and
* signal to any observers that the associated activity is to be aborted. */
abort(): void;
}
interface AbortSignalEventMap {
abort: Event;
}
/** A signal object that allows you to communicate with a DOM request (such as a
* Fetch) and abort it if required via an AbortController object. */
interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort,
* and false otherwise. */
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
addEventListener<K extends keyof AbortSignalEventMap>(
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | AddEventListenerOptions
): void;
addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions
): void;
removeEventListener<K extends keyof AbortSignalEventMap>(
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | EventListenerOptions
): void;
removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions
): void;
}
declare const AbortSignal: {
prototype: AbortSignal;
new (): AbortSignal;
};
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* eslint-disable @typescript-eslint/no-explicit-any */
/// <reference no-default-lib="true" />
/// <reference lib="deno.ns" />
/// <reference lib="deno.shared_globals" />
/// <reference lib="esnext" />
declare interface Window extends EventTarget {
readonly window: Window & typeof globalThis;
readonly self: Window & typeof globalThis;
onload: ((this: Window, ev: Event) => any) | null;
onunload: ((this: Window, ev: Event) => any) | null;
close: () => void;
readonly closed: boolean;
Deno: typeof Deno;
}
declare const window: Window & typeof globalThis;
declare const self: Window & typeof globalThis;
declare const onload: ((this: Window, ev: Event) => any) | null;
declare const onunload: ((this: Window, ev: Event) => any) | null;
/* eslint-enable @typescript-eslint/no-explicit-any */
"><pre class="notranslate"><code class="notranslate">// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
declare namespace Deno {
/** A set of error constructors that are raised by Deno APIs. */
export const errors: {
NotFound: ErrorConstructor;
PermissionDenied: ErrorConstructor;
ConnectionRefused: ErrorConstructor;
ConnectionReset: ErrorConstructor;
ConnectionAborted: ErrorConstructor;
NotConnected: ErrorConstructor;
AddrInUse: ErrorConstructor;
AddrNotAvailable: ErrorConstructor;
BrokenPipe: ErrorConstructor;
AlreadyExists: ErrorConstructor;
InvalidData: ErrorConstructor;
TimedOut: ErrorConstructor;
Interrupted: ErrorConstructor;
WriteZero: ErrorConstructor;
UnexpectedEof: ErrorConstructor;
BadResource: ErrorConstructor;
Http: ErrorConstructor;
Busy: ErrorConstructor;
};
/** The current process id of the runtime. */
export const pid: number;
/** Reflects the `NO_COLOR` environment variable.
*
* See: https://no-color.org/ */
export const noColor: boolean;
export interface TestDefinition {
fn: () => void | Promise<void>;
name: string;
ignore?: boolean;
/** Check that the number of async completed ops after the test is the same
* as number of dispatched ops. Defaults to true.*/
sanitizeOps?: boolean;
/** Ensure the test case does not "leak" resources - ie. the resource table
* after the test has exactly the same contents as before the test. Defaults
* to true. */
sanitizeResources?: boolean;
}
/** Register a test which will be run when `deno test` is used on the command
* line and the containing module looks like a test module.
* `fn` can be async if required.
* ```ts
* import {assert, fail, assertEquals} from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test({
* name: "example test",
* fn(): void {
* assertEquals("world", "world");
* },
* });
*
* Deno.test({
* name: "example ignored test",
* ignore: Deno.build.os === "windows"
* fn(): void {
* // This test is ignored only on Windows machines
* },
* });
*
* Deno.test({
* name: "example async test",
* async fn() {
* const decoder = new TextDecoder("utf-8");
* const data = await Deno.readFile("hello_world.txt");
* assertEquals(decoder.decode(data), "Hello world")
* }
* });
* ```
*/
export function test(t: TestDefinition): void;
/** Register a test which will be run when `deno test` is used on the command
* line and the containing module looks like a test module.
* `fn` can be async if required.
*
* ```ts
* import {assert, fail, assertEquals} from "https://deno.land/std/testing/asserts.ts";
*
* Deno.test("My test description", ():void => {
* assertEquals("hello", "hello");
* });
*
* Deno.test("My async test description", async ():Promise<void> => {
* const decoder = new TextDecoder("utf-8");
* const data = await Deno.readFile("hello_world.txt");
* assertEquals(decoder.decode(data), "Hello world")
* });
* ```
* */
export function test(name: string, fn: () => void | Promise<void>): void;
/** Exit the Deno process with optional exit code. If no exit code is supplied
* then Deno will exit with return code of 0.
*
* ```ts
* Deno.exit(5);
* ```
*/
export function exit(code?: number): never;
export const env: {
/** Retrieve the value of an environment variable. Returns undefined if that
* key doesn't exist.
*
* ```ts
* console.log(Deno.env.get("HOME")); // e.g. outputs "/home/alice"
* console.log(Deno.env.get("MADE_UP_VAR")); // outputs "Undefined"
* ```
* Requires `allow-env` permission. */
get(key: string): string | undefined;
/** Set the value of an environment variable.
*
* ```ts
* Deno.env.set("SOME_VAR", "Value"));
* Deno.env.get("SOME_VAR"); // outputs "Value"
* ```
*
* Requires `allow-env` permission. */
set(key: string, value: string): void;
/** Returns a snapshot of the environment variables at invocation.
*
* ```ts
* Deno.env.set("TEST_VAR", "A");
* const myEnv = Deno.env.toObject();
* console.log(myEnv.SHELL);
* Deno.env.set("TEST_VAR", "B");
* console.log(myEnv.TEST_VAR); // outputs "A"
* ```
*
* Requires `allow-env` permission. */
toObject(): { [index: string]: string };
};
/**
* Returns the path to the current deno executable.
*
* ```ts
* console.log(Deno.execPath()); // e.g. "/home/alice/.local/bin/deno"
* ```
*
* Requires `allow-read` permission.
*/
export function execPath(): string;
/**
* Change the current working directory to the specified path.
*
* ```ts
* Deno.chdir("/home/userA");
* Deno.chdir("../userB");
* Deno.chdir("C:\\Program Files (x86)\\Java");
* ```
*
* Throws `Deno.errors.NotFound` if directory not found.
* Throws `Deno.errors.PermissionDenied` if the user does not have access
* rights
*
* Requires --allow-read.
*/
export function chdir(directory: string): void;
/**
* Return a string representing the current working directory.
*
* If the current directory can be reached via multiple paths (due to symbolic
* links), `cwd()` may return any one of them.
*
* ```ts
* const currentWorkingDirectory = Deno.cwd();
* ```
*
* Throws `Deno.errors.NotFound` if directory not available.
*
* Requires --allow-read
*/
export function cwd(): string;
export enum SeekMode {
Start = 0,
Current = 1,
End = 2,
}
export interface Reader {
/** Reads up to `p.byteLength` bytes into `p`. It resolves to the number of
* bytes read (`0` < `n` <= `p.byteLength`) and rejects if any error
* encountered. Even if `read()` resolves to `n` < `p.byteLength`, it may
* use all of `p` as scratch space during the call. If some data is
* available but not `p.byteLength` bytes, `read()` conventionally resolves
* to what is available instead of waiting for more.
*
* When `read()` encounters end-of-file condition, it resolves to EOF
* (`null`).
*
* When `read()` encounters an error, it rejects with an error.
*
* Callers should always process the `n` > `0` bytes returned before
* considering the EOF (`null`). Doing so correctly handles I/O errors that
* happen after reading some bytes and also both of the allowed EOF
* behaviors.
*
* Implementations should not retain a reference to `p`.
*
* Use Deno.iter() to turn a Reader into an AsyncIterator.
*/
read(p: Uint8Array): Promise<number | null>;
}
export interface ReaderSync {
/** Reads up to `p.byteLength` bytes into `p`. It resolves to the number
* of bytes read (`0` < `n` <= `p.byteLength`) and rejects if any error
* encountered. Even if `read()` returns `n` < `p.byteLength`, it may use
* all of `p` as scratch space during the call. If some data is available
* but not `p.byteLength` bytes, `read()` conventionally returns what is
* available instead of waiting for more.
*
* When `readSync()` encounters end-of-file condition, it returns EOF
* (`null`).
*
* When `readSync()` encounters an error, it throws with an error.
*
* Callers should always process the `n` > `0` bytes returned before
* considering the EOF (`null`). Doing so correctly handles I/O errors that happen
* after reading some bytes and also both of the allowed EOF behaviors.
*
* Implementations should not retain a reference to `p`.
*
* Use Deno.iterSync() to turn a ReaderSync into an Iterator.
*/
readSync(p: Uint8Array): number | null;
}
export interface Writer {
/** Writes `p.byteLength` bytes from `p` to the underlying data stream. It
* resolves to the number of bytes written from `p` (`0` <= `n` <=
* `p.byteLength`) or reject with the error encountered that caused the
* write to stop early. `write()` must reject with a non-null error if
* would resolve to `n` < `p.byteLength`. `write()` must not modify the
* slice data, even temporarily.
*
* Implementations should not retain a reference to `p`.
*/
write(p: Uint8Array): Promise<number>;
}
export interface WriterSync {
/** Writes `p.byteLength` bytes from `p` to the underlying data
* stream. It returns the number of bytes written from `p` (`0` <= `n`
* <= `p.byteLength`) and any error encountered that caused the write to
* stop early. `writeSync()` must throw a non-null error if it returns `n` <
* `p.byteLength`. `writeSync()` must not modify the slice data, even
* temporarily.
*
* Implementations should not retain a reference to `p`.
*/
writeSync(p: Uint8Array): number;
}
export interface Closer {
close(): void;
}
export interface Seeker {
/** Seek sets the offset for the next `read()` or `write()` to offset,
* interpreted according to `whence`: `Start` means relative to the
* start of the file, `Current` means relative to the current offset,
* and `End` means relative to the end. Seek resolves to the new offset
* relative to the start of the file.
*
* Seeking to an offset before the start of the file is an error. Seeking to
* any positive offset is legal, but the behavior of subsequent I/O
* operations on the underlying object is implementation-dependent.
* It returns the number of cursor position.
*/
seek(offset: number, whence: SeekMode): Promise<number>;
}
export interface SeekerSync {
/** Seek sets the offset for the next `readSync()` or `writeSync()` to
* offset, interpreted according to `whence`: `Start` means relative
* to the start of the file, `Current` means relative to the current
* offset, and `End` means relative to the end.
*
* Seeking to an offset before the start of the file is an error. Seeking to
* any positive offset is legal, but the behavior of subsequent I/O
* operations on the underlying object is implementation-dependent.
*/
seekSync(offset: number, whence: SeekMode): number;
}
/** Copies from `src` to `dst` until either EOF (`null`) is read from `src` or
* an error occurs. It resolves to the number of bytes copied or rejects with
* the first error encountered while copying.
*
* ```ts
* const source = await Deno.open("my_file.txt");
* const buffer = new Deno.Buffer()
* const bytesCopied1 = await Deno.copy(source, Deno.stdout);
* const bytesCopied2 = await Deno.copy(source, buffer);
* ```
*
* @param src The source to copy from
* @param dst The destination to copy to
* @param options Can be used to tune size of the buffer. Default size is 32kB
*/
export function copy(
src: Reader,
dst: Writer,
options?: {
bufSize?: number;
}
): Promise<number>;
/** Turns a Reader, `r`, into an async iterator.
*
* ```ts
* let f = await Deno.open("/etc/passwd");
* for await (const chunk of Deno.iter(f)) {
* console.log(chunk);
* }
* f.close();
* ```
*
* Second argument can be used to tune size of a buffer.
* Default size of the buffer is 32kB.
*
* ```ts
* let f = await Deno.open("/etc/passwd");
* const iter = Deno.iter(f, {
* bufSize: 1024 * 1024
* });
* for await (const chunk of iter) {
* console.log(chunk);
* }
* f.close();
* ```
*
* Iterator uses an internal buffer of fixed size for efficiency; it returns
* a view on that buffer on each iteration. It is therefore caller's
* responsibility to copy contents of the buffer if needed; otherwise the
* next iteration will overwrite contents of previously returned chunk.
*/
export function iter(
r: Reader,
options?: {
bufSize?: number;
}
): AsyncIterableIterator<Uint8Array>;
/** Turns a ReaderSync, `r`, into an iterator.
*
* ```ts
* let f = Deno.openSync("/etc/passwd");
* for (const chunk of Deno.iterSync(reader)) {
* console.log(chunk);
* }
* f.close();
* ```
*
* Second argument can be used to tune size of a buffer.
* Default size of the buffer is 32kB.
*
* ```ts
* let f = await Deno.open("/etc/passwd");
* const iter = Deno.iterSync(f, {
* bufSize: 1024 * 1024
* });
* for (const chunk of iter) {
* console.log(chunk);
* }
* f.close();
* ```
*
* Iterator uses an internal buffer of fixed size for efficiency; it returns
* a view on that buffer on each iteration. It is therefore caller's
* responsibility to copy contents of the buffer if needed; otherwise the
* next iteration will overwrite contents of previously returned chunk.
*/
export function iterSync(
r: ReaderSync,
options?: {
bufSize?: number;
}
): IterableIterator<Uint8Array>;
/** Synchronously open a file and return an instance of `Deno.File`. The
* file does not need to previously exist if using the `create` or `createNew`
* open options. It is the callers responsibility to close the file when finished
* with it.
*
* ```ts
* const file = Deno.openSync("/foo/bar.txt", { read: true, write: true });
* // Do work with file
* Deno.close(file.rid);
* ```
*
* Requires `allow-read` and/or `allow-write` permissions depending on options.
*/
export function openSync(path: string, options?: OpenOptions): File;
/** Open a file and resolve to an instance of `Deno.File`. The
* file does not need to previously exist if using the `create` or `createNew`
* open options. It is the callers responsibility to close the file when finished
* with it.
*
* ```ts
* const file = await Deno.open("/foo/bar.txt", { read: true, write: true });
* // Do work with file
* Deno.close(file.rid);
* ```
*
* Requires `allow-read` and/or `allow-write` permissions depending on options.
*/
export function open(path: string, options?: OpenOptions): Promise<File>;
/** Creates a file if none exists or truncates an existing file and returns
* an instance of `Deno.File`.
*
* ```ts
* const file = Deno.createSync("/foo/bar.txt");
* ```
*
* Requires `allow-read` and `allow-write` permissions.
*/
export function createSync(path: string): File;
/** Creates a file if none exists or truncates an existing file and resolves to
* an instance of `Deno.File`.
*
* ```ts
* const file = await Deno.create("/foo/bar.txt");
* ```
*
* Requires `allow-read` and `allow-write` permissions.
*/
export function create(path: string): Promise<File>;
/** Synchronously read from a resource ID (`rid`) into an array buffer (`buffer`).
*
* Returns either the number of bytes read during the operation or EOF
* (`null`) if there was nothing more to read.
*
* It is possible for a read to successfully return with `0` bytes. This does
* not indicate EOF.
*
* ```ts
* // if "/foo/bar.txt" contains the text "hello world":
* const file = Deno.openSync("/foo/bar.txt");
* const buf = new Uint8Array(100);
* const numberOfBytesRead = Deno.readSync(file.rid, buf); // 11 bytes
* const text = new TextDecoder().decode(buf); // "hello world"
* Deno.close(file.rid);
* ```
*/
export function readSync(rid: number, buffer: Uint8Array): number | null;
/** Read from a resource ID (`rid`) into an array buffer (`buffer`).
*
* Resolves to either the number of bytes read during the operation or EOF
* (`null`) if there was nothing more to read.
*
* It is possible for a read to successfully return with `0` bytes. This does
* not indicate EOF.
*
* ```ts
* // if "/foo/bar.txt" contains the text "hello world":
* const file = await Deno.open("/foo/bar.txt");
* const buf = new Uint8Array(100);
* const numberOfBytesRead = await Deno.read(file.rid, buf); // 11 bytes
* const text = new TextDecoder().decode(buf); // "hello world"
* Deno.close(file.rid);
* ```
*/
export function read(rid: number, buffer: Uint8Array): Promise<number | null>;
/** Synchronously write to the resource ID (`rid`) the contents of the array
* buffer (`data`).
*
* Returns the number of bytes written.
*
* ```ts
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world");
* const file = Deno.openSync("/foo/bar.txt");
* const bytesWritten = Deno.writeSync(file.rid, data); // 11
* Deno.close(file.rid);
* ```
*/
export function writeSync(rid: number, data: Uint8Array): number;
/** Write to the resource ID (`rid`) the contents of the array buffer (`data`).
*
* Resolves to the number of bytes written.
*
* ```ts
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world");
* const file = await Deno.open("/foo/bar.txt");
* const bytesWritten = await Deno.write(file.rid, data); // 11
* Deno.close(file.rid);
* ```
*/
export function write(rid: number, data: Uint8Array): Promise<number>;
/** Synchronously seek a resource ID (`rid`) to the given `offset` under mode
* given by `whence`. The new position within the resource (bytes from the
* start) is returned.
*
* ```ts
* const file = Deno.openSync('hello.txt', {read: true, write: true, truncate: true, create: true});
* Deno.writeSync(file.rid, new TextEncoder().encode("Hello world"));
* // advance cursor 6 bytes
* const cursorPosition = Deno.seekSync(file.rid, 6, Deno.SeekMode.Start);
* console.log(cursorPosition); // 6
* const buf = new Uint8Array(100);
* file.readSync(buf);
* console.log(new TextDecoder().decode(buf)); // "world"
* ```
*
* The seek modes work as follows:
*
* ```ts
* // Given file.rid pointing to file with "Hello world", which is 11 bytes long:
* // Seek 6 bytes from the start of the file
* console.log(Deno.seekSync(file.rid, 6, Deno.SeekMode.Start)); // "6"
* // Seek 2 more bytes from the current position
* console.log(Deno.seekSync(file.rid, 2, Deno.SeekMode.Current)); // "8"
* // Seek backwards 2 bytes from the end of the file
* console.log(Deno.seekSync(file.rid, -2, Deno.SeekMode.End)); // "9" (e.g. 11-2)
* ```
*/
export function seekSync(
rid: number,
offset: number,
whence: SeekMode
): number;
/** Seek a resource ID (`rid`) to the given `offset` under mode given by `whence`.
* The call resolves to the new position within the resource (bytes from the start).
*
* ```ts
* const file = await Deno.open('hello.txt', {read: true, write: true, truncate: true, create: true});
* await Deno.write(file.rid, new TextEncoder().encode("Hello world"));
* // advance cursor 6 bytes
* const cursorPosition = await Deno.seek(file.rid, 6, Deno.SeekMode.Start);
* console.log(cursorPosition); // 6
* const buf = new Uint8Array(100);
* await file.read(buf);
* console.log(new TextDecoder().decode(buf)); // "world"
* ```
*
* The seek modes work as follows:
*
* ```ts
* // Given file.rid pointing to file with "Hello world", which is 11 bytes long:
* // Seek 6 bytes from the start of the file
* console.log(await Deno.seek(file.rid, 6, Deno.SeekMode.Start)); // "6"
* // Seek 2 more bytes from the current position
* console.log(await Deno.seek(file.rid, 2, Deno.SeekMode.Current)); // "8"
* // Seek backwards 2 bytes from the end of the file
* console.log(await Deno.seek(file.rid, -2, Deno.SeekMode.End)); // "9" (e.g. 11-2)
* ```
*/
export function seek(
rid: number,
offset: number,
whence: SeekMode
): Promise<number>;
/** Close the given resource ID (rid) which has been previously opened, such
* as via opening or creating a file. Closing a file when you are finished
* with it is important to avoid leaking resources.
*
* ```ts
* const file = await Deno.open("my_file.txt");
* // do work with "file" object
* Deno.close(file.rid);
* ````
*/
export function close(rid: number): void;
/** The Deno abstraction for reading and writing files. */
export class File
implements
Reader,
ReaderSync,
Writer,
WriterSync,
Seeker,
SeekerSync,
Closer {
readonly rid: number;
constructor(rid: number);
write(p: Uint8Array): Promise<number>;
writeSync(p: Uint8Array): number;
read(p: Uint8Array): Promise<number | null>;
readSync(p: Uint8Array): number | null;
seek(offset: number, whence: SeekMode): Promise<number>;
seekSync(offset: number, whence: SeekMode): number;
close(): void;
}
/** A handle for `stdin`. */
export const stdin: Reader & ReaderSync & Closer & { rid: number };
/** A handle for `stdout`. */
export const stdout: Writer & WriterSync & Closer & { rid: number };
/** A handle for `stderr`. */
export const stderr: Writer & WriterSync & Closer & { rid: number };
export interface OpenOptions {
/** Sets the option for read access. This option, when `true`, means that the
* file should be read-able if opened. */
read?: boolean;
/** Sets the option for write access. This option, when `true`, means that
* the file should be write-able if opened. If the file already exists,
* any write calls on it will overwrite its contents, by default without
* truncating it. */
write?: boolean;
/**Sets the option for the append mode. This option, when `true`, means that
* writes will append to a file instead of overwriting previous contents.
* Note that setting `{ write: true, append: true }` has the same effect as
* setting only `{ append: true }`. */
append?: boolean;
/** Sets the option for truncating a previous file. If a file is
* successfully opened with this option set it will truncate the file to `0`
* size if it already exists. The file must be opened with write access
* for truncate to work. */
truncate?: boolean;
/** Sets the option to allow creating a new file, if one doesn't already
* exist at the specified path. Requires write or append access to be
* used. */
create?: boolean;
/** Defaults to `false`. If set to `true`, no file, directory, or symlink is
* allowed to exist at the target location. Requires write or append
* access to be used. When createNew is set to `true`, create and truncate
* are ignored. */
createNew?: boolean;
/** Permissions to use if creating the file (defaults to `0o666`, before
* the process's umask).
* Ignored on Windows. */
mode?: number;
}
/**
*
* Check if a given resource id (`rid`) is a TTY.
*
* ```ts
* // This example is system and context specific
* const nonTTYRid = Deno.openSync("my_file.txt").rid;
* const ttyRid = Deno.openSync("/dev/tty6").rid;
* console.log(Deno.isatty(nonTTYRid)); // false
* console.log(Deno.isatty(ttyRid)); // true
* Deno.close(nonTTYRid);
* Deno.close(ttyRid);
* ```
*/
export function isatty(rid: number): boolean;
/** A variable-sized buffer of bytes with `read()` and `write()` methods.
*
* Deno.Buffer is almost always used with some I/O like files and sockets. It
* allows one to buffer up a download from a socket. Buffer grows and shrinks
* as necessary.
*
* Deno.Buffer is NOT the same thing as Node's Buffer. Node's Buffer was
* created in 2009 before JavaScript had the concept of ArrayBuffers. It's
* simply a non-standard ArrayBuffer.
*
* ArrayBuffer is a fixed memory allocation. Deno.Buffer is implemented on top
* of ArrayBuffer.
*
* Based on [Go Buffer](https://golang.org/pkg/bytes/#Buffer). */
export class Buffer implements Reader, ReaderSync, Writer, WriterSync {
constructor(ab?: ArrayBuffer);
/** Returns a slice holding the unread portion of the buffer.
*
* The slice is valid for use only until the next buffer modification (that
* is, only until the next call to a method like `read()`, `write()`,
* `reset()`, or `truncate()`). The slice aliases the buffer content at
* least until the next buffer modification, so immediate changes to the
* slice will affect the result of future reads. */
bytes(): Uint8Array;
/** Returns whether the unread portion of the buffer is empty. */
empty(): boolean;
/** A read only number of bytes of the unread portion of the buffer. */
readonly length: number;
/** The read only capacity of the buffer's underlying byte slice, that is,
* the total space allocated for the buffer's data. */
readonly capacity: number;
/** Discards all but the first `n` unread bytes from the buffer but
* continues to use the same allocated storage. It throws if `n` is
* negative or greater than the length of the buffer. */
truncate(n: number): void;
/** Resets the buffer to be empty, but it retains the underlying storage for
* use by future writes. `.reset()` is the same as `.truncate(0)`. */
reset(): void;
/** Reads the next `p.length` bytes from the buffer or until the buffer is
* drained. Returns the number of bytes read. If the buffer has no data to
* return, the return is EOF (`null`). */
readSync(p: Uint8Array): number | null;
/** Reads the next `p.length` bytes from the buffer or until the buffer is
* drained. Resolves to the number of bytes read. If the buffer has no
* data to return, resolves to EOF (`null`).
*
* NOTE: This methods reads bytes sychronously; it's provided for
* compatibility with `Reader` interfaces.
*/
read(p: Uint8Array): Promise<number | null>;
writeSync(p: Uint8Array): number;
/** NOTE: This methods writes bytes sychronously; it's provided for
* compatibility with `Writer` interface. */
write(p: Uint8Array): Promise<number>;
/** Grows the buffer's capacity, if necessary, to guarantee space for
* another `n` bytes. After `.grow(n)`, at least `n` bytes can be written to
* the buffer without another allocation. If `n` is negative, `.grow()` will
* throw. If the buffer can't grow it will throw an error.
*
* Based on Go Lang's
* [Buffer.Grow](https://golang.org/pkg/bytes/#Buffer.Grow). */
grow(n: number): void;
/** Reads data from `r` until EOF (`null`) and appends it to the buffer,
* growing the buffer as needed. It resolves to the number of bytes read.
* If the buffer becomes too large, `.readFrom()` will reject with an error.
*
* Based on Go Lang's
* [Buffer.ReadFrom](https://golang.org/pkg/bytes/#Buffer.ReadFrom). */
readFrom(r: Reader): Promise<number>;
/** Reads data from `r` until EOF (`null`) and appends it to the buffer,
* growing the buffer as needed. It returns the number of bytes read. If the
* buffer becomes too large, `.readFromSync()` will throw an error.
*
* Based on Go Lang's
* [Buffer.ReadFrom](https://golang.org/pkg/bytes/#Buffer.ReadFrom). */
readFromSync(r: ReaderSync): number;
}
/** Read Reader `r` until EOF (`null`) and resolve to the content as
* Uint8Array`.
*
* ```ts
* // Example from stdin
* const stdinContent = await Deno.readAll(Deno.stdin);
*
* // Example from file
* const file = await Deno.open("my_file.txt", {read: true});
* const myFileContent = await Deno.readAll(file);
* Deno.close(file.rid);
*
* // Example from buffer
* const myData = new Uint8Array(100);
* // ... fill myData array with data
* const reader = new Deno.Buffer(myData.buffer as ArrayBuffer);
* const bufferContent = await Deno.readAll(reader);
* ```
*/
export function readAll(r: Reader): Promise<Uint8Array>;
/** Synchronously reads Reader `r` until EOF (`null`) and returns the content
* as `Uint8Array`.
*
* ```ts
* // Example from stdin
* const stdinContent = Deno.readAllSync(Deno.stdin);
*
* // Example from file
* const file = Deno.openSync("my_file.txt", {read: true});
* const myFileContent = Deno.readAllSync(file);
* Deno.close(file.rid);
*
* // Example from buffer
* const myData = new Uint8Array(100);
* // ... fill myData array with data
* const reader = new Deno.Buffer(myData.buffer as ArrayBuffer);
* const bufferContent = Deno.readAllSync(reader);
* ```
*/
export function readAllSync(r: ReaderSync): Uint8Array;
/** Write all the content of the array buffer (`arr`) to the writer (`w`).
*
* ```ts
* // Example writing to stdout
* const contentBytes = new TextEncoder().encode("Hello World");
* await Deno.writeAll(Deno.stdout, contentBytes);
*
* // Example writing to file
* const contentBytes = new TextEncoder().encode("Hello World");
* const file = await Deno.open('test.file', {write: true});
* await Deno.writeAll(file, contentBytes);
* Deno.close(file.rid);
*
* // Example writing to buffer
* const contentBytes = new TextEncoder().encode("Hello World");
* const writer = new Deno.Buffer();
* await Deno.writeAll(writer, contentBytes);
* console.log(writer.bytes().length); // 11
* ```
*/
export function writeAll(w: Writer, arr: Uint8Array): Promise<void>;
/** Synchronously write all the content of the array buffer (`arr`) to the
* writer (`w`).
*
* ```ts
* // Example writing to stdout
* const contentBytes = new TextEncoder().encode("Hello World");
* Deno.writeAllSync(Deno.stdout, contentBytes);
*
* // Example writing to file
* const contentBytes = new TextEncoder().encode("Hello World");
* const file = Deno.openSync('test.file', {write: true});
* Deno.writeAllSync(file, contentBytes);
* Deno.close(file.rid);
*
* // Example writing to buffer
* const contentBytes = new TextEncoder().encode("Hello World");
* const writer = new Deno.Buffer();
* Deno.writeAllSync(writer, contentBytes);
* console.log(writer.bytes().length); // 11
* ```
*/
export function writeAllSync(w: WriterSync, arr: Uint8Array): void;
export interface MkdirOptions {
/** Defaults to `false`. If set to `true`, means that any intermediate
* directories will also be created (as with the shell command `mkdir -p`).
* Intermediate directories are created with the same permissions.
* When recursive is set to `true`, succeeds silently (without changing any
* permissions) if a directory already exists at the path, or if the path
* is a symlink to an existing directory. */
recursive?: boolean;
/** Permissions to use when creating the directory (defaults to `0o777`,
* before the process's umask).
* Ignored on Windows. */
mode?: number;
}
/** Synchronously creates a new directory with the specified path.
*
* ```ts
* Deno.mkdirSync("new_dir");
* Deno.mkdirSync("nested/directories", { recursive: true });
* Deno.mkdirSync("restricted_access_dir", { mode: 0o700 });
* ```
*
* Defaults to throwing error if the directory already exists.
*
* Requires `allow-write` permission. */
export function mkdirSync(path: string, options?: MkdirOptions): void;
/** Creates a new directory with the specified path.
*
* ```ts
* await Deno.mkdir("new_dir");
* await Deno.mkdir("nested/directories", { recursive: true });
* await Deno.mkdir("restricted_access_dir", { mode: 0o700 });
* ```
*
* Defaults to throwing error if the directory already exists.
*
* Requires `allow-write` permission. */
export function mkdir(path: string, options?: MkdirOptions): Promise<void>;
export interface MakeTempOptions {
/** Directory where the temporary directory should be created (defaults to
* the env variable TMPDIR, or the system's default, usually /tmp). */
dir?: string;
/** String that should precede the random portion of the temporary
* directory's name. */
prefix?: string;
/** String that should follow the random portion of the temporary
* directory's name. */
suffix?: string;
}
/** Synchronously creates a new temporary directory in the default directory
* for temporary files (see also `Deno.dir("temp")`), unless `dir` is specified.
* Other optional options include prefixing and suffixing the directory name
* with `prefix` and `suffix` respectively.
*
* The full path to the newly created directory is returned.
*
* Multiple programs calling this function simultaneously will create different
* directories. It is the caller's responsibility to remove the directory when
* no longer needed.
*
* ```ts
* const tempDirName0 = Deno.makeTempDirSync(); // e.g. /tmp/2894ea76
* const tempDirName1 = Deno.makeTempDirSync({ prefix: 'my_temp' }); // e.g. /tmp/my_temp339c944d
* ```
*
* Requires `allow-write` permission. */
// TODO(ry) Doesn't check permissions.
export function makeTempDirSync(options?: MakeTempOptions): string;
/** Creates a new temporary directory in the default directory for temporary
* files (see also `Deno.dir("temp")`), unless `dir` is specified. Other
* optional options include prefixing and suffixing the directory name with
* `prefix` and `suffix` respectively.
*
* This call resolves to the full path to the newly created directory.
*
* Multiple programs calling this function simultaneously will create different
* directories. It is the caller's responsibility to remove the directory when
* no longer needed.
*
* ```ts
* const tempDirName0 = await Deno.makeTempDir(); // e.g. /tmp/2894ea76
* const tempDirName1 = await Deno.makeTempDir({ prefix: 'my_temp' }); // e.g. /tmp/my_temp339c944d
* ```
*
* Requires `allow-write` permission. */
// TODO(ry) Doesn't check permissions.
export function makeTempDir(options?: MakeTempOptions): Promise<string>;
/** Synchronously creates a new temporary file in the default directory for
* temporary files (see also `Deno.dir("temp")`), unless `dir` is specified.
* Other optional options include prefixing and suffixing the directory name
* with `prefix` and `suffix` respectively.
*
* The full path to the newly created file is returned.
*
* Multiple programs calling this function simultaneously will create different
* files. It is the caller's responsibility to remove the file when no longer
* needed.
*
* ```ts
* const tempFileName0 = Deno.makeTempFileSync(); // e.g. /tmp/419e0bf2
* const tempFileName1 = Deno.makeTempFileSync({ prefix: 'my_temp' }); // e.g. /tmp/my_temp754d3098
* ```
*
* Requires `allow-write` permission. */
export function makeTempFileSync(options?: MakeTempOptions): string;
/** Creates a new temporary file in the default directory for temporary
* files (see also `Deno.dir("temp")`), unless `dir` is specified. Other
* optional options include prefixing and suffixing the directory name with
* `prefix` and `suffix` respectively.
*
* This call resolves to the full path to the newly created file.
*
* Multiple programs calling this function simultaneously will create different
* files. It is the caller's responsibility to remove the file when no longer
* needed.
*
* ```ts
* const tmpFileName0 = await Deno.makeTempFile(); // e.g. /tmp/419e0bf2
* const tmpFileName1 = await Deno.makeTempFile({ prefix: 'my_temp' }); // e.g. /tmp/my_temp754d3098
* ```
*
* Requires `allow-write` permission. */
export function makeTempFile(options?: MakeTempOptions): Promise<string>;
/** Synchronously changes the permission of a specific file/directory of
* specified path. Ignores the process's umask.
*
* ```ts
* Deno.chmodSync("/path/to/file", 0o666);
* ```
*
* For a full description, see [chmod](#chmod)
*
* NOTE: This API currently throws on Windows
*
* Requires `allow-write` permission. */
export function chmodSync(path: string, mode: number): void;
/** Changes the permission of a specific file/directory of specified path.
* Ignores the process's umask.
*
* ```ts
* await Deno.chmod("/path/to/file", 0o666);
* ```
*
* The mode is a sequence of 3 octal numbers. The first/left-most number
* specifies the permissions for the owner. The second number specifies the
* permissions for the group. The last/right-most number specifies the
* permissions for others. For example, with a mode of 0o764, the owner (7) can
* read/write/execute, the group (6) can read/write and everyone else (4) can
* read only.
*
* | Number | Description |
* | ------ | ----------- |
* | 7 | read, write, and execute |
* | 6 | read and write |
* | 5 | read and execute |
* | 4 | read only |
* | 3 | write and execute |
* | 2 | write only |
* | 1 | execute only |
* | 0 | no permission |
*
* NOTE: This API currently throws on Windows
*
* Requires `allow-write` permission. */
export function chmod(path: string, mode: number): Promise<void>;
/** Synchronously change owner of a regular file or directory. This functionality
* is not available on Windows.
*
* ```ts
* Deno.chownSync("myFile.txt", 1000, 1002);
* ```
*
* Requires `allow-write` permission.
*
* Throws Error (not implemented) if executed on Windows
*
* @param path path to the file
* @param uid user id (UID) of the new owner
* @param gid group id (GID) of the new owner
*/
export function chownSync(path: string, uid: number, gid: number): void;
/** Change owner of a regular file or directory. This functionality
* is not available on Windows.
*
* ```ts
* await Deno.chown("myFile.txt", 1000, 1002);
* ```
*
* Requires `allow-write` permission.
*
* Throws Error (not implemented) if executed on Windows
*
* @param path path to the file
* @param uid user id (UID) of the new owner
* @param gid group id (GID) of the new owner
*/
export function chown(path: string, uid: number, gid: number): Promise<void>;
export interface RemoveOptions {
/** Defaults to `false`. If set to `true`, path will be removed even if
* it's a non-empty directory. */
recursive?: boolean;
}
/** Synchronously removes the named file or directory.
*
* ```ts
* Deno.removeSync("/path/to/empty_dir/or/file");
* Deno.removeSync("/path/to/populated_dir/or/file", { recursive: true });
* ```
*
* Throws error if permission denied, path not found, or path is a non-empty
* directory and the `recursive` option isn't set to `true`.
*
* Requires `allow-write` permission. */
export function removeSync(path: string, options?: RemoveOptions): void;
/** Removes the named file or directory.
*
* ```ts
* await Deno.remove("/path/to/empty_dir/or/file");
* await Deno.remove("/path/to/populated_dir/or/file", { recursive: true });
* ```
*
* Throws error if permission denied, path not found, or path is a non-empty
* directory and the `recursive` option isn't set to `true`.
*
* Requires `allow-write` permission. */
export function remove(path: string, options?: RemoveOptions): Promise<void>;
/** Synchronously renames (moves) `oldpath` to `newpath`. Paths may be files or
* directories. If `newpath` already exists and is not a directory,
* `renameSync()` replaces it. OS-specific restrictions may apply when
* `oldpath` and `newpath` are in different directories.
*
* ```ts
* Deno.renameSync("old/path", "new/path");
* ```
*
* On Unix, this operation does not follow symlinks at either path.
*
* It varies between platforms when the operation throws errors, and if so what
* they are. It's always an error to rename anything to a non-empty directory.
*
* Requires `allow-read` and `allow-write` permissions. */
export function renameSync(oldpath: string, newpath: string): void;
/** Renames (moves) `oldpath` to `newpath`. Paths may be files or directories.
* If `newpath` already exists and is not a directory, `rename()` replaces it.
* OS-specific restrictions may apply when `oldpath` and `newpath` are in
* different directories.
*
* ```ts
* await Deno.rename("old/path", "new/path");
* ```
*
* On Unix, this operation does not follow symlinks at either path.
*
* It varies between platforms when the operation throws errors, and if so what
* they are. It's always an error to rename anything to a non-empty directory.
*
* Requires `allow-read` and `allow-write` permission. */
export function rename(oldpath: string, newpath: string): Promise<void>;
/** Synchronously reads and returns the entire contents of a file as utf8 encoded string
* encoded string. Reading a directory returns an empty string.
*
* ```ts
* const data = Deno.readTextFileSync("hello.txt");
* console.log(data);
* ```
*
* Requires `allow-read` permission. */
export function readTextFileSync(path: string): string;
/** Asynchronously reads and returns the entire contents of a file as a utf8
* encoded string. Reading a directory returns an empty data array.
*
* ```ts
* const data = await Deno.readTextFile("hello.txt");
* console.log(data);
* ```
*
* Requires `allow-read` permission. */
export function readTextFile(path: string): Promise<string>;
/** Synchronously reads and returns the entire contents of a file as an array
* of bytes. `TextDecoder` can be used to transform the bytes to string if
* required. Reading a directory returns an empty data array.
*
* ```ts
* const decoder = new TextDecoder("utf-8");
* const data = Deno.readFileSync("hello.txt");
* console.log(decoder.decode(data));
* ```
*
* Requires `allow-read` permission. */
export function readFileSync(path: string): Uint8Array;
/** Reads and resolves to the entire contents of a file as an array of bytes.
* `TextDecoder` can be used to transform the bytes to string if required.
* Reading a directory returns an empty data array.
*
* ```ts
* const decoder = new TextDecoder("utf-8");
* const data = await Deno.readFile("hello.txt");
* console.log(decoder.decode(data));
* ```
*
* Requires `allow-read` permission. */
export function readFile(path: string): Promise<Uint8Array>;
/** A FileInfo describes a file and is returned by `stat`, `lstat`,
* `statSync`, `lstatSync`. */
export interface FileInfo {
/** True if this is info for a regular file. Mutually exclusive to
* `FileInfo.isDirectory` and `FileInfo.isSymlink`. */
isFile: boolean;
/** True if this is info for a regular directory. Mutually exclusive to
* `FileInfo.isFile` and `FileInfo.isSymlink`. */
isDirectory: boolean;
/** True if this is info for a symlink. Mutually exclusive to
* `FileInfo.isFile` and `FileInfo.isDirectory`. */
isSymlink: boolean;
/** The size of the file, in bytes. */
size: number;
/** The last modification time of the file. This corresponds to the `mtime`
* field from `stat` on Linux/Mac OS and `ftLastWriteTime` on Windows. This
* may not be available on all platforms. */
mtime: Date | null;
/** The last access time of the file. This corresponds to the `atime`
* field from `stat` on Unix and `ftLastAccessTime` on Windows. This may not
* be available on all platforms. */
atime: Date | null;
/** The creation time of the file. This corresponds to the `birthtime`
* field from `stat` on Mac/BSD and `ftCreationTime` on Windows. This may
* not be available on all platforms. */
birthtime: Date | null;
/** ID of the device containing the file.
*
* _Linux/Mac OS only._ */
dev: number | null;
/** Inode number.
*
* _Linux/Mac OS only._ */
ino: number | null;
/** **UNSTABLE**: Match behavior with Go on Windows for `mode`.
*
* The underlying raw `st_mode` bits that contain the standard Unix
* permissions for this file/directory. */
mode: number | null;
/** Number of hard links pointing to this file.
*
* _Linux/Mac OS only._ */
nlink: number | null;
/** User ID of the owner of this file.
*
* _Linux/Mac OS only._ */
uid: number | null;
/** Group ID of the owner of this file.
*
* _Linux/Mac OS only._ */
gid: number | null;
/** Device ID of this file.
*
* _Linux/Mac OS only._ */
rdev: number | null;
/** Blocksize for filesystem I/O.
*
* _Linux/Mac OS only._ */
blksize: number | null;
/** Number of blocks allocated to the file, in 512-byte units.
*
* _Linux/Mac OS only._ */
blocks: number | null;
}
/** Returns absolute normalized path, with symbolic links resolved.
*
* ```ts
* // e.g. given /home/alice/file.txt and current directory /home/alice
* Deno.symlinkSync("file.txt", "symlink_file.txt");
* const realPath = Deno.realPathSync("./file.txt");
* const realSymLinkPath = Deno.realPathSync("./symlink_file.txt");
* console.log(realPath); // outputs "/home/alice/file.txt"
* console.log(realSymLinkPath); // outputs "/home/alice/file.txt"
* ```
*
* Requires `allow-read` permission. */
export function realPathSync(path: string): string;
/** Resolves to the absolute normalized path, with symbolic links resolved.
*
* ```ts
* // e.g. given /home/alice/file.txt and current directory /home/alice
* await Deno.symlink("file.txt", "symlink_file.txt");
* const realPath = await Deno.realPath("./file.txt");
* const realSymLinkPath = await Deno.realPath("./symlink_file.txt");
* console.log(realPath); // outputs "/home/alice/file.txt"
* console.log(realSymLinkPath); // outputs "/home/alice/file.txt"
* ```
*
* Requires `allow-read` permission. */
export function realPath(path: string): Promise<string>;
export interface DirEntry {
name: string;
isFile: boolean;
isDirectory: boolean;
isSymlink: boolean;
}
/** Synchronously reads the directory given by `path` and returns an iterable
* of `Deno.DirEntry`.
*
* ```ts
* for (const dirEntry of Deno.readDirSync("/")) {
* console.log(dirEntry.name);
* }
* ```
*
* Throws error if `path` is not a directory.
*
* Requires `allow-read` permission. */
export function readDirSync(path: string): Iterable<DirEntry>;
/** Reads the directory given by `path` and returns an async iterable of
* `Deno.DirEntry`.
*
* ```ts
* for await (const dirEntry of Deno.readDir("/")) {
* console.log(dirEntry.name);
* }
* ```
*
* Throws error if `path` is not a directory.
*
* Requires `allow-read` permission. */
export function readDir(path: string): AsyncIterable<DirEntry>;
/** Synchronously copies the contents and permissions of one file to another
* specified path, by default creating a new file if needed, else overwriting.
* Fails if target path is a directory or is unwritable.
*
* ```ts
* Deno.copyFileSync("from.txt", "to.txt");
* ```
*
* Requires `allow-read` permission on fromPath.
* Requires `allow-write` permission on toPath. */
export function copyFileSync(fromPath: string, toPath: string): void;
/** Copies the contents and permissions of one file to another specified path,
* by default creating a new file if needed, else overwriting. Fails if target
* path is a directory or is unwritable.
*
* ```ts
* await Deno.copyFile("from.txt", "to.txt");
* ```
*
* Requires `allow-read` permission on fromPath.
* Requires `allow-write` permission on toPath. */
export function copyFile(fromPath: string, toPath: string): Promise<void>;
/** Returns the full path destination of the named symbolic link.
*
* ```ts
* Deno.symlinkSync("./test.txt", "./test_link.txt");
* const target = Deno.readLinkSync("./test_link.txt"); // full path of ./test.txt
* ```
*
* Throws TypeError if called with a hard link
*
* Requires `allow-read` permission. */
export function readLinkSync(path: string): string;
/** Resolves to the full path destination of the named symbolic link.
*
* ```ts
* await Deno.symlink("./test.txt", "./test_link.txt");
* const target = await Deno.readLink("./test_link.txt"); // full path of ./test.txt
* ```
*
* Throws TypeError if called with a hard link
*
* Requires `allow-read` permission. */
export function readLink(path: string): Promise<string>;
/** Resolves to a `Deno.FileInfo` for the specified `path`. If `path` is a
* symlink, information for the symlink will be returned instead of what it
* points to.
*
* ```ts
* const fileInfo = await Deno.lstat("hello.txt");
* assert(fileInfo.isFile);
* ```
*
* Requires `allow-read` permission. */
export function lstat(path: string): Promise<FileInfo>;
/** Synchronously returns a `Deno.FileInfo` for the specified `path`. If
* `path` is a symlink, information for the symlink will be returned instead of
* what it points to..
*
* ```ts
* const fileInfo = Deno.lstatSync("hello.txt");
* assert(fileInfo.isFile);
* ```
*
* Requires `allow-read` permission. */
export function lstatSync(path: string): FileInfo;
/** Resolves to a `Deno.FileInfo` for the specified `path`. Will always
* follow symlinks.
*
* ```ts
* const fileInfo = await Deno.stat("hello.txt");
* assert(fileInfo.isFile);
* ```
*
* Requires `allow-read` permission. */
export function stat(path: string): Promise<FileInfo>;
/** Synchronously returns a `Deno.FileInfo` for the specified `path`. Will
* always follow symlinks.
*
* ```ts
* const fileInfo = Deno.statSync("hello.txt");
* assert(fileInfo.isFile);
* ```
*
* Requires `allow-read` permission. */
export function statSync(path: string): FileInfo;
/** Options for writing to a file. */
export interface WriteFileOptions {
/** Defaults to `false`. If set to `true`, will append to a file instead of
* overwriting previous contents. */
append?: boolean;
/** Sets the option to allow creating a new file, if one doesn't already
* exist at the specified path (defaults to `true`). */
create?: boolean;
/** Permissions always applied to file. */
mode?: number;
}
/** Synchronously write `data` to the given `path`, by default creating a new
* file if needed, else overwriting.
*
* ```ts
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world\n");
* Deno.writeFileSync("hello1.txt", data); // overwrite "hello1.txt" or create it
* Deno.writeFileSync("hello2.txt", data, {create: false}); // only works if "hello2.txt" exists
* Deno.writeFileSync("hello3.txt", data, {mode: 0o777}); // set permissions on new file
* Deno.writeFileSync("hello4.txt", data, {append: true}); // add data to the end of the file
* ```
*
* Requires `allow-write` permission, and `allow-read` if `options.create` is
* `false`.
*/
export function writeFileSync(
path: string,
data: Uint8Array,
options?: WriteFileOptions
): void;
/** Write `data` to the given `path`, by default creating a new file if needed,
* else overwriting.
*
* ```ts
* const encoder = new TextEncoder();
* const data = encoder.encode("Hello world\n");
* await Deno.writeFile("hello1.txt", data); // overwrite "hello1.txt" or create it
* await Deno.writeFile("hello2.txt", data, {create: false}); // only works if "hello2.txt" exists
* await Deno.writeFile("hello3.txt", data, {mode: 0o777}); // set permissions on new file
* await Deno.writeFile("hello4.txt", data, {append: true}); // add data to the end of the file
* ```
*
* Requires `allow-write` permission, and `allow-read` if `options.create` is `false`.
*/
export function writeFile(
path: string,
data: Uint8Array,
options?: WriteFileOptions
): Promise<void>;
/** Synchronously write string `data` to the given `path`, by default creating a new file if needed,
* else overwriting.
*
* ```ts
* await Deno.writeTextFileSync("hello1.txt", "Hello world\n"); // overwrite "hello1.txt" or create it
* ```
*
* Requires `allow-write` permission, and `allow-read` if `options.create` is `false`.
*/
export function writeTextFileSync(path: string, data: string): void;
/** Asynchronously write string `data` to the given `path`, by default creating a new file if needed,
* else overwriting.
*
* ```ts
* await Deno.writeTextFile("hello1.txt", "Hello world\n"); // overwrite "hello1.txt" or create it
* ```
*
* Requires `allow-write` permission, and `allow-read` if `options.create` is `false`.
*/
export function writeTextFile(path: string, data: string): Promise<void>;
/** Synchronously truncates or extends the specified file, to reach the
* specified `len`. If `len` is not specified then the entire file contents
* are truncated.
*
* ```ts
* // truncate the entire file
* Deno.truncateSync("my_file.txt");
*
* // truncate part of the file
* const file = Deno.makeTempFileSync();
* Deno.writeFileSync(file, new TextEncoder().encode("Hello World"));
* Deno.truncateSync(file, 7);
* const data = Deno.readFileSync(file);
* console.log(new TextDecoder().decode(data));
* ```
*
* Requires `allow-write` permission. */
export function truncateSync(name: string, len?: number): void;
/** Truncates or extends the specified file, to reach the specified `len`. If
* `len` is not specified then the entire file contents are truncated.
*
* ```ts
* // truncate the entire file
* await Deno.truncate("my_file.txt");
*
* // truncate part of the file
* const file = await Deno.makeTempFile();
* await Deno.writeFile(file, new TextEncoder().encode("Hello World"));
* await Deno.truncate(file, 7);
* const data = await Deno.readFile(file);
* console.log(new TextDecoder().decode(data)); // "Hello W"
* ```
*
* Requires `allow-write` permission. */
export function truncate(name: string, len?: number): Promise<void>;
export interface NetAddr {
transport: "tcp" | "udp";
hostname: string;
port: number;
}
export interface UnixAddr {
transport: "unix" | "unixpacket";
path: string;
}
export type Addr = NetAddr | UnixAddr;
/** A generic network listener for stream-oriented protocols. */
export interface Listener extends AsyncIterable<Conn> {
/** Waits for and resolves to the next connection to the `Listener`. */
accept(): Promise<Conn>;
/** Close closes the listener. Any pending accept promises will be rejected
* with errors. */
close(): void;
/** Return the address of the `Listener`. */
readonly addr: Addr;
[Symbol.asyncIterator](): AsyncIterableIterator<Conn>;
}
export interface Conn extends Reader, Writer, Closer {
/** The local address of the connection. */
readonly localAddr: Addr;
/** The remote address of the connection. */
readonly remoteAddr: Addr;
/** The resource ID of the connection. */
readonly rid: number;
/** Shuts down (`shutdown(2)`) the writing side of the TCP connection. Most
* callers should just use `close()`.
*
* **Unstable** because of lack of testing and because Deno.shutdown is also
* unstable.
* */
closeWrite(): void;
}
export interface ListenOptions {
/** The port to listen on. */
port: number;
/** A literal IP address or host name that can be resolved to an IP address.
* If not specified, defaults to `0.0.0.0`. */
hostname?: string;
}
/** Listen announces on the local transport address.
*
* ```ts
* const listener1 = Deno.listen({ port: 80 })
* const listener2 = Deno.listen({ hostname: "192.0.2.1", port: 80 })
* const listener3 = Deno.listen({ hostname: "[2001:db8::1]", port: 80 });
* const listener4 = Deno.listen({ hostname: "golang.org", port: 80, transport: "tcp" });
* ```
*
* Requires `allow-net` permission. */
export function listen(
options: ListenOptions & { transport?: "tcp" }
): Listener;
export interface ListenTlsOptions extends ListenOptions {
/** Server certificate file. */
certFile: string;
/** Server public key file. */
keyFile: string;
transport?: "tcp";
}
/** Listen announces on the local transport address over TLS (transport layer
* security).
*
* ```ts
* const lstnr = Deno.listenTls({ port: 443, certFile: "./server.crt", keyFile: "./server.key" });
* ```
*
* Requires `allow-net` permission. */
export function listenTls(options: ListenTlsOptions): Listener;
export interface ConnectOptions {
/** The port to connect to. */
port: number;
/** A literal IP address or host name that can be resolved to an IP address.
* If not specified, defaults to `127.0.0.1`. */
hostname?: string;
transport?: "tcp";
}
/**
* Connects to the hostname (default is "127.0.0.1") and port on the named
* transport (default is "tcp"), and resolves to the connection (`Conn`).
*
* ```ts
* const conn1 = await Deno.connect({ port: 80 });
* const conn2 = await Deno.connect({ hostname: "192.0.2.1", port: 80 });
* const conn3 = await Deno.connect({ hostname: "[2001:db8::1]", port: 80 });
* const conn4 = await Deno.connect({ hostname: "golang.org", port: 80, transport: "tcp" });
* const conn5 = await Deno.connect({ path: "/foo/bar.sock", transport: "unix" });
* ```
*
* Requires `allow-net` permission for "tcp" and `allow-read` for unix. */
export function connect(options: ConnectOptions): Promise<Conn>;
export interface ConnectTlsOptions {
/** The port to connect to. */
port: number;
/** A literal IP address or host name that can be resolved to an IP address.
* If not specified, defaults to `127.0.0.1`. */
hostname?: string;
/** Server certificate file. */
certFile?: string;
}
/** Establishes a secure connection over TLS (transport layer security) using
* an optional cert file, hostname (default is "127.0.0.1") and port. The
* cert file is optional and if not included Mozilla's root certificates will
* be used (see also https://github.com/ctz/webpki-roots for specifics)
*
* ```ts
* const conn1 = await Deno.connectTls({ port: 80 });
* const conn2 = await Deno.connectTls({ certFile: "./certs/my_custom_root_CA.pem", hostname: "192.0.2.1", port: 80 });
* const conn3 = await Deno.connectTls({ hostname: "[2001:db8::1]", port: 80 });
* const conn4 = await Deno.connectTls({ certFile: "./certs/my_custom_root_CA.pem", hostname: "golang.org", port: 80});
* ```
*
* Requires `allow-net` permission.
*/
export function connectTls(options: ConnectTlsOptions): Promise<Conn>;
export interface Metrics {
opsDispatched: number;
opsDispatchedSync: number;
opsDispatchedAsync: number;
opsDispatchedAsyncUnref: number;
opsCompleted: number;
opsCompletedSync: number;
opsCompletedAsync: number;
opsCompletedAsyncUnref: number;
bytesSentControl: number;
bytesSentData: number;
bytesReceived: number;
}
/** Receive metrics from the privileged side of Deno. This is primarily used
* in the development of Deno. 'Ops', also called 'bindings', are the go-between
* between Deno JavaScript and Deno Rust.
*
* > console.table(Deno.metrics())
* ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö¼ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
* Γöé (index) Γöé Values Γöé
* Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö╝ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
* Γöé opsDispatched Γöé 3 Γöé
* Γöé opsDispatchedSync Γöé 2 Γöé
* Γöé opsDispatchedAsync Γöé 1 Γöé
* Γöé opsDispatchedAsyncUnref Γöé 0 Γöé
* Γöé opsCompleted Γöé 3 Γöé
* Γöé opsCompletedSync Γöé 2 Γöé
* Γöé opsCompletedAsync Γöé 1 Γöé
* Γöé opsCompletedAsyncUnref Γöé 0 Γöé
* Γöé bytesSentControl Γöé 73 Γöé
* Γöé bytesSentData Γöé 0 Γöé
* Γöé bytesReceived Γöé 375 Γöé
* ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓö┤ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
*/
export function metrics(): Metrics;
interface ResourceMap {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[rid: number]: any;
}
/** Returns a map of open resource ids (rid) along with their string
* representations. This is an internal API and as such resource
* representation has `any` type; that means it can change any time.
*
* ```ts
* console.log(Deno.resources());
* // { 0: "stdin", 1: "stdout", 2: "stderr" }
* Deno.openSync('../test.file');
* console.log(Deno.resources());
* // { 0: "stdin", 1: "stdout", 2: "stderr", 3: "fsFile" }
* ```
*/
export function resources(): ResourceMap;
export interface FsEvent {
kind: "any" | "access" | "create" | "modify" | "remove";
paths: string[];
}
/** Watch for file system events against one or more `paths`, which can be files
* or directories. These paths must exist already. One user action (e.g.
* `touch test.file`) can generate multiple file system events. Likewise,
* one user action can result in multiple file paths in one event (e.g. `mv
* old_name.txt new_name.txt`). Recursive option is `true` by default and,
* for directories, will watch the specified directory and all sub directories.
* Note that the exact ordering of the events can vary between operating systems.
*
* ```ts
* const watcher = Deno.watchFs("/");
* for await (const event of watcher) {
* console.log(">>>> event", event);
* // { kind: "create", paths: [ "/foo.txt" ] }
* }
*```
*
* Requires `allow-read` permission.
*/
export function watchFs(
paths: string | string[],
options?: { recursive: boolean }
): AsyncIterableIterator<FsEvent>;
export class Process {
readonly rid: number;
readonly pid: number;
readonly stdin?: Writer & Closer;
readonly stdout?: Reader & Closer;
readonly stderr?: Reader & Closer;
/** Resolves to the current status of the process. */
status(): Promise<ProcessStatus>;
/** Buffer the stdout until EOF and return it as `Uint8Array`.
*
* You must set stdout to `"piped"` when creating the process.
*
* This calls `close()` on stdout after its done. */
output(): Promise<Uint8Array>;
/** Buffer the stderr until EOF and return it as `Uint8Array`.
*
* You must set stderr to `"piped"` when creating the process.
*
* This calls `close()` on stderr after its done. */
stderrOutput(): Promise<Uint8Array>;
close(): void;
/** **UNSTABLE**: The `signo` argument may change to require the Deno.Signal
* enum.
*
* Send a signal to process. This functionality currently only works on
* Linux and Mac OS.
*/
kill(signo: number): void;
}
export type ProcessStatus =
| {
success: true;
code: 0;
signal?: undefined;
}
| {
success: false;
code: number;
signal?: number;
};
export interface RunOptions {
/** Arguments to pass. Note, the first element needs to be a path to the
* binary */
cmd: string[];
cwd?: string;
env?: {
[key: string]: string;
};
stdout?: "inherit" | "piped" | "null" | number;
stderr?: "inherit" | "piped" | "null" | number;
stdin?: "inherit" | "piped" | "null" | number;
}
/** Spawns new subprocess. RunOptions must contain at a minimum the `opt.cmd`,
* an array of program arguments, the first of which is the binary.
*
* ```ts
* const p = Deno.run({
* cmd: ["echo", "hello"],
* });
* ```
*
* Subprocess uses same working directory as parent process unless `opt.cwd`
* is specified.
*
* Environmental variables for subprocess can be specified using `opt.env`
* mapping.
*
* By default subprocess inherits stdio of parent process. To change that
* `opt.stdout`, `opt.stderr` and `opt.stdin` can be specified independently -
* they can be set to either an rid of open file or set to "inherit" "piped"
* or "null":
*
* `"inherit"` The default if unspecified. The child inherits from the
* corresponding parent descriptor.
*
* `"piped"` A new pipe should be arranged to connect the parent and child
* sub-processes.
*
* `"null"` This stream will be ignored. This is the equivalent of attaching
* the stream to `/dev/null`.
*
* Details of the spawned process are returned.
*
* Requires `allow-run` permission. */
export function run(opt: RunOptions): Process;
interface InspectOptions {
depth?: number;
}
/** Converts the input into a string that has the same format as printed by
* `console.log()`.
*
* ```ts
* const obj = {};
* obj.propA = 10;
* obj.propB = "hello"
* const objAsString = Deno.inspect(obj); // { propA: 10, propB: "hello" }
* console.log(obj); // prints same value as objAsString, e.g. { propA: 10, propB: "hello" }
* ```
*
* You can also register custom inspect functions, via the `customInspect` Deno
* symbol on objects, to control and customize the output.
*
* ```ts
* class A {
* x = 10;
* y = "hello";
* [Deno.customInspect](): string {
* return "x=" + this.x + ", y=" + this.y;
* }
* }
* ```
*
* const inStringFormat = Deno.inspect(new A()); // "x=10, y=hello"
* console.log(inStringFormat); // prints "x=10, y=hello"
*
* Finally, a number of output options are also available.
*
* const out = Deno.inspect(obj, {showHidden: true, depth: 4, colors: true, indentLevel: 2});
*
*/
export function inspect(value: unknown, options?: InspectOptions): string;
/** Build related information. */
export const build: {
/** The LLVM target triple */
target: string;
/** Instruction set architecture */
arch: "x86_64";
/** Operating system */
os: "darwin" | "linux" | "windows";
/** Computer vendor */
vendor: string;
/** Optional environment */
env?: string;
};
interface Version {
deno: string;
v8: string;
typescript: string;
}
/** Version related information. */
export const version: Version;
/** Returns the script arguments to the program. If for example we run a
* program:
*
* deno run --allow-read https://deno.land/std/examples/cat.ts /etc/passwd
*
* Then `Deno.args` will contain:
*
* [ "/etc/passwd" ]
*/
export const args: string[];
/** A symbol which can be used as a key for a custom method which will be
* called when `Deno.inspect()` is called, or when the object is logged to
* the console. */
export const customInspect: unique symbol;
}
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, no-var */
/// <reference no-default-lib="true" />
/// <reference lib="esnext" />
// This follows the WebIDL at: https://webassembly.github.io/spec/js-api/
// and: https://webassembly.github.io/spec/web-api/
declare namespace WebAssembly {
interface WebAssemblyInstantiatedSource {
module: Module;
instance: Instance;
}
/** Compiles a `WebAssembly.Module` from WebAssembly binary code. This
* function is useful if it is necessary to a compile a module before it can
* be instantiated (otherwise, the `WebAssembly.instantiate()` function
* should be used). */
function compile(bufferSource: BufferSource): Promise<Module>;
/** Compiles a `WebAssembly.Module` directly from a streamed underlying
* source. This function is useful if it is necessary to a compile a module
* before it can be instantiated (otherwise, the
* `WebAssembly.instantiateStreaming()` function should be used). */
function compileStreaming(source: Promise<Response>): Promise<Module>;
/** Takes the WebAssembly binary code, in the form of a typed array or
* `ArrayBuffer`, and performs both compilation and instantiation in one step.
* The returned `Promise` resolves to both a compiled `WebAssembly.Module` and
* its first `WebAssembly.Instance`. */
function instantiate(
bufferSource: BufferSource,
importObject?: object
): Promise<WebAssemblyInstantiatedSource>;
/** Takes an already-compiled `WebAssembly.Module` and returns a `Promise`
* that resolves to an `Instance` of that `Module`. This overload is useful if
* the `Module` has already been compiled. */
function instantiate(
module: Module,
importObject?: object
): Promise<Instance>;
/** Compiles and instantiates a WebAssembly module directly from a streamed
* underlying source. This is the most efficient, optimized way to load wasm
* code. */
function instantiateStreaming(
source: Promise<Response>,
importObject?: object
): Promise<WebAssemblyInstantiatedSource>;
/** Validates a given typed array of WebAssembly binary code, returning
* whether the bytes form a valid wasm module (`true`) or not (`false`). */
function validate(bufferSource: BufferSource): boolean;
type ImportExportKind = "function" | "table" | "memory" | "global";
interface ModuleExportDescriptor {
name: string;
kind: ImportExportKind;
}
interface ModuleImportDescriptor {
module: string;
name: string;
kind: ImportExportKind;
}
class Module {
constructor(bufferSource: BufferSource);
/** Given a `Module` and string, returns a copy of the contents of all
* custom sections in the module with the given string name. */
static customSections(
moduleObject: Module,
sectionName: string
): ArrayBuffer;
/** Given a `Module`, returns an array containing descriptions of all the
* declared exports. */
static exports(moduleObject: Module): ModuleExportDescriptor[];
/** Given a `Module`, returns an array containing descriptions of all the
* declared imports. */
static imports(moduleObject: Module): ModuleImportDescriptor[];
}
class Instance<T extends object = { [key: string]: any }> {
constructor(module: Module, importObject?: object);
/** An object containing as its members all the functions exported from the
* WebAssembly module instance, to allow them to be accessed and used by
* JavaScript. */
readonly exports: T;
}
interface MemoryDescriptor {
initial: number;
maximum?: number;
}
class Memory {
constructor(descriptor: MemoryDescriptor);
/** An accessor property that returns the buffer contained in the memory. */
readonly buffer: ArrayBuffer;
/** Increases the size of the memory instance by a specified number of
* WebAssembly pages (each one is 64KB in size). */
grow(delta: number): number;
}
type TableKind = "anyfunc";
interface TableDescriptor {
element: TableKind;
initial: number;
maximum?: number;
}
class Table {
constructor(descriptor: TableDescriptor);
/** Returns the length of the table, i.e. the number of elements. */
readonly length: number;
/** Accessor function ΓÇö gets the element stored at a given index. */
get(index: number): (...args: any[]) => any;
/** Increases the size of the Table instance by a specified number of
* elements. */
grow(delta: number): number;
/** Sets an element stored at a given index to a given value. */
set(index: number, value: (...args: any[]) => any): void;
}
type ValueType = "i32" | "i64" | "f32" | "f64";
interface GlobalDescriptor {
value: ValueType;
mutable?: boolean;
}
/** Represents a global variable instance, accessible from both JavaScript and
* importable/exportable across one or more `WebAssembly.Module` instances.
* This allows dynamic linking of multiple modules. */
class Global {
constructor(descriptor: GlobalDescriptor, value?: any);
/** Old-style method that returns the value contained inside the global
* variable. */
valueOf(): any;
/** The value contained inside the global variable ΓÇö this can be used to
* directly set and get the global's value. */
value: any;
}
/** Indicates an error during WebAssembly decoding or validation */
class CompileError extends Error {
constructor(message: string, fileName?: string, lineNumber?: string);
}
/** Indicates an error during module instantiation (besides traps from the
* start function). */
class LinkError extends Error {
constructor(message: string, fileName?: string, lineNumber?: string);
}
/** Is thrown whenever WebAssembly specifies a trap. */
class RuntimeError extends Error {
constructor(message: string, fileName?: string, lineNumber?: string);
}
}
/** Sets a timer which executes a function once after the timer expires. */
declare function setTimeout(
cb: (...args: any[]) => void,
delay?: number,
...args: any[]
): number;
/** Repeatedly calls a function , with a fixed time delay between each call. */
declare function setInterval(
cb: (...args: any[]) => void,
delay?: number,
...args: any[]
): number;
declare function clearTimeout(id?: number): void;
declare function clearInterval(id?: number): void;
declare function queueMicrotask(func: Function): void;
declare var console: Console;
declare var crypto: Crypto;
declare function addEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
options?: boolean | AddEventListenerOptions | undefined
): void;
declare function dispatchEvent(event: Event): boolean;
declare function removeEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
options?: boolean | EventListenerOptions | undefined
): void;
declare interface ImportMeta {
url: string;
main: boolean;
}
interface DomIterable<K, V> {
keys(): IterableIterator<K>;
values(): IterableIterator<V>;
entries(): IterableIterator<[K, V]>;
[Symbol.iterator](): IterableIterator<[K, V]>;
forEach(
callback: (value: V, key: K, parent: this) => void,
thisArg?: any
): void;
}
interface ReadableStreamReadDoneResult<T> {
done: true;
value?: T;
}
interface ReadableStreamReadValueResult<T> {
done: false;
value: T;
}
type ReadableStreamReadResult<T> =
| ReadableStreamReadValueResult<T>
| ReadableStreamReadDoneResult<T>;
interface ReadableStreamDefaultReader<R = any> {
readonly closed: Promise<void>;
cancel(reason?: any): Promise<void>;
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
interface ReadableStreamReader<R = any> {
cancel(): Promise<void>;
read(): Promise<ReadableStreamReadResult<R>>;
releaseLock(): void;
}
interface ReadableByteStreamControllerCallback {
(controller: ReadableByteStreamController): void | PromiseLike<void>;
}
interface UnderlyingByteSource {
autoAllocateChunkSize?: number;
cancel?: ReadableStreamErrorCallback;
pull?: ReadableByteStreamControllerCallback;
start?: ReadableByteStreamControllerCallback;
type: "bytes";
}
interface UnderlyingSource<R = any> {
cancel?: ReadableStreamErrorCallback;
pull?: ReadableStreamDefaultControllerCallback<R>;
start?: ReadableStreamDefaultControllerCallback<R>;
type?: undefined;
}
interface ReadableStreamErrorCallback {
(reason: any): void | PromiseLike<void>;
}
interface ReadableStreamDefaultControllerCallback<R> {
(controller: ReadableStreamDefaultController<R>): void | PromiseLike<void>;
}
interface ReadableStreamDefaultController<R = any> {
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: R): void;
error(error?: any): void;
}
interface ReadableByteStreamController {
readonly byobRequest: undefined;
readonly desiredSize: number | null;
close(): void;
enqueue(chunk: ArrayBufferView): void;
error(error?: any): void;
}
interface PipeOptions {
preventAbort?: boolean;
preventCancel?: boolean;
preventClose?: boolean;
signal?: AbortSignal;
}
interface QueuingStrategySizeCallback<T = any> {
(chunk: T): number;
}
interface QueuingStrategy<T = any> {
highWaterMark?: number;
size?: QueuingStrategySizeCallback<T>;
}
/** This Streams API interface provides a built-in byte length queuing strategy
* that can be used when constructing streams. */
declare class CountQueuingStrategy implements QueuingStrategy {
constructor(options: { highWaterMark: number });
highWaterMark: number;
size(chunk: any): 1;
}
declare class ByteLengthQueuingStrategy
implements QueuingStrategy<ArrayBufferView> {
constructor(options: { highWaterMark: number });
highWaterMark: number;
size(chunk: ArrayBufferView): number;
}
/** This Streams API interface represents a readable stream of byte data. The
* Fetch API offers a concrete instance of a ReadableStream through the body
* property of a Response object. */
interface ReadableStream<R = any> {
readonly locked: boolean;
cancel(reason?: any): Promise<void>;
getIterator(options?: { preventCancel?: boolean }): AsyncIterableIterator<R>;
// getReader(options: { mode: "byob" }): ReadableStreamBYOBReader;
getReader(): ReadableStreamDefaultReader<R>;
pipeThrough<T>(
{
writable,
readable,
}: {
writable: WritableStream<R>;
readable: ReadableStream<T>;
},
options?: PipeOptions
): ReadableStream<T>;
pipeTo(dest: WritableStream<R>, options?: PipeOptions): Promise<void>;
tee(): [ReadableStream<R>, ReadableStream<R>];
[Symbol.asyncIterator](options?: {
preventCancel?: boolean;
}): AsyncIterableIterator<R>;
}
declare var ReadableStream: {
prototype: ReadableStream;
new (
underlyingSource: UnderlyingByteSource,
strategy?: { highWaterMark?: number; size?: undefined }
): ReadableStream<Uint8Array>;
new <R = any>(
underlyingSource?: UnderlyingSource<R>,
strategy?: QueuingStrategy<R>
): ReadableStream<R>;
};
interface WritableStreamDefaultControllerCloseCallback {
(): void | PromiseLike<void>;
}
interface WritableStreamDefaultControllerStartCallback {
(controller: WritableStreamDefaultController): void | PromiseLike<void>;
}
interface WritableStreamDefaultControllerWriteCallback<W> {
(chunk: W, controller: WritableStreamDefaultController): void | PromiseLike<
void
>;
}
interface WritableStreamErrorCallback {
(reason: any): void | PromiseLike<void>;
}
interface UnderlyingSink<W = any> {
abort?: WritableStreamErrorCallback;
close?: WritableStreamDefaultControllerCloseCallback;
start?: WritableStreamDefaultControllerStartCallback;
type?: undefined;
write?: WritableStreamDefaultControllerWriteCallback<W>;
}
/** This Streams API interface provides a standard abstraction for writing
* streaming data to a destination, known as a sink. This object comes with
* built-in backpressure and queuing. */
declare class WritableStream<W = any> {
constructor(
underlyingSink?: UnderlyingSink<W>,
strategy?: QueuingStrategy<W>
);
readonly locked: boolean;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
getWriter(): WritableStreamDefaultWriter<W>;
}
/** This Streams API interface represents a controller allowing control of a
* WritableStream's state. When constructing a WritableStream, the underlying
* sink is given a corresponding WritableStreamDefaultController instance to
* manipulate. */
interface WritableStreamDefaultController {
error(error?: any): void;
}
/** This Streams API interface is the object returned by
* WritableStream.getWriter() and once created locks the < writer to the
* WritableStream ensuring that no other streams can write to the underlying
* sink. */
interface WritableStreamDefaultWriter<W = any> {
readonly closed: Promise<void>;
readonly desiredSize: number | null;
readonly ready: Promise<void>;
abort(reason?: any): Promise<void>;
close(): Promise<void>;
releaseLock(): void;
write(chunk: W): Promise<void>;
}
declare class TransformStream<I = any, O = any> {
constructor(
transformer?: Transformer<I, O>,
writableStrategy?: QueuingStrategy<I>,
readableStrategy?: QueuingStrategy<O>
);
readonly readable: ReadableStream<O>;
readonly writable: WritableStream<I>;
}
interface TransformStreamDefaultController<O = any> {
readonly desiredSize: number | null;
enqueue(chunk: O): void;
error(reason?: any): void;
terminate(): void;
}
interface Transformer<I = any, O = any> {
flush?: TransformStreamDefaultControllerCallback<O>;
readableType?: undefined;
start?: TransformStreamDefaultControllerCallback<O>;
transform?: TransformStreamDefaultControllerTransformCallback<I, O>;
writableType?: undefined;
}
interface TransformStreamDefaultControllerCallback<O> {
(controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
}
interface TransformStreamDefaultControllerTransformCallback<I, O> {
(
chunk: I,
controller: TransformStreamDefaultController<O>
): void | PromiseLike<void>;
}
interface DOMStringList {
/** Returns the number of strings in strings. */
readonly length: number;
/** Returns true if strings contains string, and false otherwise. */
contains(string: string): boolean;
/** Returns the string with index index from strings. */
item(index: number): string | null;
[index: number]: string;
}
declare class DOMException extends Error {
constructor(message?: string, name?: string);
readonly name: string;
readonly message: string;
}
type BufferSource = ArrayBufferView | ArrayBuffer;
type BlobPart = BufferSource | Blob | string;
interface BlobPropertyBag {
type?: string;
ending?: "transparent" | "native";
}
/** A file-like object of immutable, raw data. Blobs represent data that isn't necessarily in a JavaScript-native format. The File interface is based on Blob, inheriting blob functionality and expanding it to support files on the user's system. */
interface Blob {
readonly size: number;
readonly type: string;
arrayBuffer(): Promise<ArrayBuffer>;
slice(start?: number, end?: number, contentType?: string): Blob;
stream(): ReadableStream;
text(): Promise<string>;
}
declare const Blob: {
prototype: Blob;
new (blobParts?: BlobPart[], options?: BlobPropertyBag): Blob;
};
interface FilePropertyBag extends BlobPropertyBag {
lastModified?: number;
}
/** Provides information about files and allows JavaScript in a web page to
* access their content. */
interface File extends Blob {
readonly lastModified: number;
readonly name: string;
}
declare const File: {
prototype: File;
new (fileBits: BlobPart[], fileName: string, options?: FilePropertyBag): File;
};
declare const isConsoleInstance: unique symbol;
declare class Console {
indentLevel: number;
[isConsoleInstance]: boolean;
/** Writes the arguments to stdout */
log: (...args: unknown[]) => void;
/** Writes the arguments to stdout */
debug: (...args: unknown[]) => void;
/** Writes the arguments to stdout */
info: (...args: unknown[]) => void;
/** Writes the properties of the supplied `obj` to stdout */
dir: (
obj: unknown,
options?: Partial<{
depth: number;
indentLevel: number;
}>
) => void;
/** From MDN:
* Displays an interactive tree of the descendant elements of
* the specified XML/HTML element. If it is not possible to display
* as an element the JavaScript Object view is shown instead.
* The output is presented as a hierarchical listing of expandable
* nodes that let you see the contents of child nodes.
*
* Since we write to stdout, we can't display anything interactive
* we just fall back to `console.dir`.
*/
dirxml: (
obj: unknown,
options?: Partial<{
showHidden: boolean;
depth: number;
colors: boolean;
indentLevel: number;
}>
) => void;
/** Writes the arguments to stdout */
warn: (...args: unknown[]) => void;
/** Writes the arguments to stdout */
error: (...args: unknown[]) => void;
/** Writes an error message to stdout if the assertion is `false`. If the
* assertion is `true`, nothing happens.
*
* ref: https://console.spec.whatwg.org/#assert
*/
assert: (condition?: boolean, ...args: unknown[]) => void;
count: (label?: string) => void;
countReset: (label?: string) => void;
table: (data: unknown, properties?: string[] | undefined) => void;
time: (label?: string) => void;
timeLog: (label?: string, ...args: unknown[]) => void;
timeEnd: (label?: string) => void;
group: (...label: unknown[]) => void;
groupCollapsed: (...label: unknown[]) => void;
groupEnd: () => void;
clear: () => void;
trace: (...args: unknown[]) => void;
static [Symbol.hasInstance](instance: Console): boolean;
}
declare interface Crypto {
readonly subtle: null;
getRandomValues<
T extends
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| null
>(
array: T
): T;
}
type FormDataEntryValue = File | string;
/** Provides a way to easily construct a set of key/value pairs representing
* form fields and their values, which can then be easily sent using the
* XMLHttpRequest.send() method. It uses the same format a form would use if the
* encoding type were set to "multipart/form-data". */
interface FormData extends DomIterable<string, FormDataEntryValue> {
append(name: string, value: string | Blob, fileName?: string): void;
delete(name: string): void;
get(name: string): FormDataEntryValue | null;
getAll(name: string): FormDataEntryValue[];
has(name: string): boolean;
set(name: string, value: string | Blob, fileName?: string): void;
}
declare const FormData: {
prototype: FormData;
// TODO(ry) FormData constructor is non-standard.
// new(form?: HTMLFormElement): FormData;
new (): FormData;
};
interface Body {
/** A simple getter used to expose a `ReadableStream` of the body contents. */
readonly body: ReadableStream<Uint8Array> | null;
/** Stores a `Boolean` that declares whether the body has been used in a
* response yet.
*/
readonly bodyUsed: boolean;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with an `ArrayBuffer`.
*/
arrayBuffer(): Promise<ArrayBuffer>;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with a `Blob`.
*/
blob(): Promise<Blob>;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with a `FormData` object.
*/
formData(): Promise<FormData>;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with the result of parsing the body text as JSON.
*/
json(): Promise<any>;
/** Takes a `Response` stream and reads it to completion. It returns a promise
* that resolves with a `USVString` (text).
*/
text(): Promise<string>;
}
type HeadersInit = Headers | string[][] | Record<string, string>;
/** This Fetch API interface allows you to perform various actions on HTTP
* request and response headers. These actions include retrieving, setting,
* adding to, and removing. A Headers object has an associated header list,
* which is initially empty and consists of zero or more name and value pairs.
*  You can add to this using methods like append() (see Examples.) In all
* methods of this interface, header names are matched by case-insensitive byte
* sequence. */
interface Headers {
append(name: string, value: string): void;
delete(name: string): void;
get(name: string): string | null;
has(name: string): boolean;
set(name: string, value: string): void;
forEach(
callbackfn: (value: string, key: string, parent: Headers) => void,
thisArg?: any
): void;
}
interface Headers extends DomIterable<string, string> {
/** Appends a new value onto an existing header inside a `Headers` object, or
* adds the header if it does not already exist.
*/
append(name: string, value: string): void;
/** Deletes a header from a `Headers` object. */
delete(name: string): void;
/** Returns an iterator allowing to go through all key/value pairs
* contained in this Headers object. The both the key and value of each pairs
* are ByteString objects.
*/
entries(): IterableIterator<[string, string]>;
/** Returns a `ByteString` sequence of all the values of a header within a
* `Headers` object with a given name.
*/
get(name: string): string | null;
/** Returns a boolean stating whether a `Headers` object contains a certain
* header.
*/
has(name: string): boolean;
/** Returns an iterator allowing to go through all keys contained in
* this Headers object. The keys are ByteString objects.
*/
keys(): IterableIterator<string>;
/** Sets a new value for an existing header inside a Headers object, or adds
* the header if it does not already exist.
*/
set(name: string, value: string): void;
/** Returns an iterator allowing to go through all values contained in
* this Headers object. The values are ByteString objects.
*/
values(): IterableIterator<string>;
forEach(
callbackfn: (value: string, key: string, parent: this) => void,
thisArg?: any
): void;
/** The Symbol.iterator well-known symbol specifies the default
* iterator for this Headers object
*/
[Symbol.iterator](): IterableIterator<[string, string]>;
}
declare const Headers: {
prototype: Headers;
new (init?: HeadersInit): Headers;
};
type RequestInfo = Request | string;
type RequestCache =
| "default"
| "force-cache"
| "no-cache"
| "no-store"
| "only-if-cached"
| "reload";
type RequestCredentials = "include" | "omit" | "same-origin";
type RequestMode = "cors" | "navigate" | "no-cors" | "same-origin";
type RequestRedirect = "error" | "follow" | "manual";
type ReferrerPolicy =
| ""
| "no-referrer"
| "no-referrer-when-downgrade"
| "origin"
| "origin-when-cross-origin"
| "same-origin"
| "strict-origin"
| "strict-origin-when-cross-origin"
| "unsafe-url";
type BodyInit =
| Blob
| BufferSource
| FormData
| URLSearchParams
| ReadableStream<Uint8Array>
| string;
type RequestDestination =
| ""
| "audio"
| "audioworklet"
| "document"
| "embed"
| "font"
| "image"
| "manifest"
| "object"
| "paintworklet"
| "report"
| "script"
| "sharedworker"
| "style"
| "track"
| "video"
| "worker"
| "xslt";
interface RequestInit {
/**
* A BodyInit object or null to set request's body.
*/
body?: BodyInit | null;
/**
* A string indicating how the request will interact with the browser's cache
* to set request's cache.
*/
cache?: RequestCache;
/**
* A string indicating whether credentials will be sent with the request
* always, never, or only when sent to a same-origin URL. Sets request's
* credentials.
*/
credentials?: RequestCredentials;
/**
* A Headers object, an object literal, or an array of two-item arrays to set
* request's headers.
*/
headers?: HeadersInit;
/**
* A cryptographic hash of the resource to be fetched by request. Sets
* request's integrity.
*/
integrity?: string;
/**
* A boolean to set request's keepalive.
*/
keepalive?: boolean;
/**
* A string to set request's method.
*/
method?: string;
/**
* A string to indicate whether the request will use CORS, or will be
* restricted to same-origin URLs. Sets request's mode.
*/
mode?: RequestMode;
/**
* A string indicating whether request follows redirects, results in an error
* upon encountering a redirect, or returns the redirect (in an opaque
* fashion). Sets request's redirect.
*/
redirect?: RequestRedirect;
/**
* A string whose value is a same-origin URL, "about:client", or the empty
* string, to set request's referrer.
*/
referrer?: string;
/**
* A referrer policy to set request's referrerPolicy.
*/
referrerPolicy?: ReferrerPolicy;
/**
* An AbortSignal to set request's signal.
*/
signal?: AbortSignal | null;
/**
* Can only be null. Used to disassociate request from any Window.
*/
window?: any;
}
/** This Fetch API interface represents a resource request. */
interface Request extends Body {
/**
* Returns the cache mode associated with request, which is a string
* indicating how the request will interact with the browser's cache when
* fetching.
*/
readonly cache: RequestCache;
/**
* Returns the credentials mode associated with request, which is a string
* indicating whether credentials will be sent with the request always, never,
* or only when sent to a same-origin URL.
*/
readonly credentials: RequestCredentials;
/**
* Returns the kind of resource requested by request, e.g., "document" or "script".
*/
readonly destination: RequestDestination;
/**
* Returns a Headers object consisting of the headers associated with request.
* Note that headers added in the network layer by the user agent will not be
* accounted for in this object, e.g., the "Host" header.
*/
readonly headers: Headers;
/**
* Returns request's subresource integrity metadata, which is a cryptographic
* hash of the resource being fetched. Its value consists of multiple hashes
* separated by whitespace. [SRI]
*/
readonly integrity: string;
/**
* Returns a boolean indicating whether or not request is for a history
* navigation (a.k.a. back-forward navigation).
*/
readonly isHistoryNavigation: boolean;
/**
* Returns a boolean indicating whether or not request is for a reload
* navigation.
*/
readonly isReloadNavigation: boolean;
/**
* Returns a boolean indicating whether or not request can outlive the global
* in which it was created.
*/
readonly keepalive: boolean;
/**
* Returns request's HTTP method, which is "GET" by default.
*/
readonly method: string;
/**
* Returns the mode associated with request, which is a string indicating
* whether the request will use CORS, or will be restricted to same-origin
* URLs.
*/
readonly mode: RequestMode;
/**
* Returns the redirect mode associated with request, which is a string
* indicating how redirects for the request will be handled during fetching. A
* request will follow redirects by default.
*/
readonly redirect: RequestRedirect;
/**
* Returns the referrer of request. Its value can be a same-origin URL if
* explicitly set in init, the empty string to indicate no referrer, and
* "about:client" when defaulting to the global's default. This is used during
* fetching to determine the value of the `Referer` header of the request
* being made.
*/
readonly referrer: string;
/**
* Returns the referrer policy associated with request. This is used during
* fetching to compute the value of the request's referrer.
*/
readonly referrerPolicy: ReferrerPolicy;
/**
* Returns the signal associated with request, which is an AbortSignal object
* indicating whether or not request has been aborted, and its abort event
* handler.
*/
readonly signal: AbortSignal;
/**
* Returns the URL of request as a string.
*/
readonly url: string;
clone(): Request;
}
declare const Request: {
prototype: Request;
new (input: RequestInfo, init?: RequestInit): Request;
};
type ResponseType =
| "basic"
| "cors"
| "default"
| "error"
| "opaque"
| "opaqueredirect";
/** This Fetch API interface represents the response to a request. */
interface Response extends Body {
readonly headers: Headers;
readonly ok: boolean;
readonly redirected: boolean;
readonly status: number;
readonly statusText: string;
readonly trailer: Promise<Headers>;
readonly type: ResponseType;
readonly url: string;
clone(): Response;
}
declare const Response: {
prototype: Response;
// TODO(#4667) Response constructor is non-standard.
// new(body?: BodyInit | null, init?: ResponseInit): Response;
new (
url: string,
status: number,
statusText: string,
headersList: Array<[string, string]>,
rid: number,
redirected_: boolean,
type_?: null | ResponseType,
body_?: null | Body
): Response;
error(): Response;
redirect(url: string, status?: number): Response;
};
/** Fetch a resource from the network. */
declare function fetch(
input: Request | URL | string,
init?: RequestInit
): Promise<Response>;
declare function atob(s: string): string;
/** Creates a base-64 ASCII string from the input string. */
declare function btoa(s: string): string;
declare class TextDecoder {
/** Returns encoding's name, lowercased. */
readonly encoding: string;
/** Returns `true` if error mode is "fatal", and `false` otherwise. */
readonly fatal: boolean;
/** Returns `true` if ignore BOM flag is set, and `false` otherwise. */
readonly ignoreBOM = false;
constructor(
label?: string,
options?: { fatal?: boolean; ignoreBOM?: boolean }
);
/** Returns the result of running encoding's decoder. */
decode(input?: BufferSource, options?: { stream?: false }): string;
readonly [Symbol.toStringTag]: string;
}
declare class TextEncoder {
/** Returns "utf-8". */
readonly encoding = "utf-8";
/** Returns the result of running UTF-8's encoder. */
encode(input?: string): Uint8Array;
encodeInto(
input: string,
dest: Uint8Array
): { read: number; written: number };
readonly [Symbol.toStringTag]: string;
}
interface URLSearchParams {
/** Appends a specified key/value pair as a new search parameter.
*
* ```ts
* let searchParams = new URLSearchParams();
* searchParams.append('name', 'first');
* searchParams.append('name', 'second');
* ```
*/
append(name: string, value: string): void;
/** Deletes the given search parameter and its associated value,
* from the list of all search parameters.
*
* ```ts
* let searchParams = new URLSearchParams([['name', 'value']]);
* searchParams.delete('name');
* ```
*/
delete(name: string): void;
/** Returns all the values associated with a given search parameter
* as an array.
*
* ```ts
* searchParams.getAll('name');
* ```
*/
getAll(name: string): string[];
/** Returns the first value associated to the given search parameter.
*
* ```ts
* searchParams.get('name');
* ```
*/
get(name: string): string | null;
/** Returns a Boolean that indicates whether a parameter with the
* specified name exists.
*
* ```ts
* searchParams.has('name');
* ```
*/
has(name: string): boolean;
/** Sets the value associated with a given search parameter to the
* given value. If there were several matching values, this method
* deletes the others. If the search parameter doesn't exist, this
* method creates it.
*
* ```ts
* searchParams.set('name', 'value');
* ```
*/
set(name: string, value: string): void;
/** Sort all key/value pairs contained in this object in place and
* return undefined. The sort order is according to Unicode code
* points of the keys.
*
* ```ts
* searchParams.sort();
* ```
*/
sort(): void;
/** Calls a function for each element contained in this object in
* place and return undefined. Optionally accepts an object to use
* as this when executing callback as second argument.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* params.forEach((value, key, parent) => {
* console.log(value, key, parent);
* });
* ```
*
*/
forEach(
callbackfn: (value: string, key: string, parent: this) => void,
thisArg?: any
): void;
/** Returns an iterator allowing to go through all keys contained
* in this object.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* for (const key of params.keys()) {
* console.log(key);
* }
* ```
*/
keys(): IterableIterator<string>;
/** Returns an iterator allowing to go through all values contained
* in this object.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* for (const value of params.values()) {
* console.log(value);
* }
* ```
*/
values(): IterableIterator<string>;
/** Returns an iterator allowing to go through all key/value
* pairs contained in this object.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* for (const [key, value] of params.entries()) {
* console.log(key, value);
* }
* ```
*/
entries(): IterableIterator<[string, string]>;
/** Returns an iterator allowing to go through all key/value
* pairs contained in this object.
*
* ```ts
* const params = new URLSearchParams([["a", "b"], ["c", "d"]]);
* for (const [key, value] of params) {
* console.log(key, value);
* }
* ```
*/
[Symbol.iterator](): IterableIterator<[string, string]>;
/** Returns a query string suitable for use in a URL.
*
* ```ts
* searchParams.toString();
* ```
*/
toString(): string;
}
declare const URLSearchParams: {
prototype: URLSearchParams;
new (
init?: string[][] | Record<string, string> | string | URLSearchParams
): URLSearchParams;
toString(): string;
};
/** The URL interface represents an object providing static methods used for creating object URLs. */
interface URL {
hash: string;
host: string;
hostname: string;
href: string;
toString(): string;
readonly origin: string;
password: string;
pathname: string;
port: string;
protocol: string;
search: string;
readonly searchParams: URLSearchParams;
username: string;
toJSON(): string;
}
declare const URL: {
prototype: URL;
new (url: string | URL, base?: string | URL): URL;
createObjectURL(object: any): string;
revokeObjectURL(url: string): void;
};
interface MessageEventInit extends EventInit {
data?: any;
origin?: string;
lastEventId?: string;
}
declare class MessageEvent extends Event {
readonly data: any;
readonly origin: string;
readonly lastEventId: string;
constructor(type: string, eventInitDict?: MessageEventInit);
}
interface ErrorEventInit extends EventInit {
message?: string;
filename?: string;
lineno?: number;
colno?: number;
error?: any;
}
declare class ErrorEvent extends Event {
readonly message: string;
readonly filename: string;
readonly lineno: number;
readonly colno: number;
readonly error: any;
constructor(type: string, eventInitDict?: ErrorEventInit);
}
interface PostMessageOptions {
transfer?: any[];
}
declare class Worker extends EventTarget {
onerror?: (e: ErrorEvent) => void;
onmessage?: (e: MessageEvent) => void;
onmessageerror?: (e: MessageEvent) => void;
constructor(
specifier: string,
options?: {
type?: "classic" | "module";
name?: string;
/** UNSTABLE: New API. Expect many changes; most likely this
* field will be made into an object for more granular
* configuration of worker thread (permissions, import map, etc.).
*
* Set to `true` to make `Deno` namespace and all of its methods
* available to worker thread.
*
* Currently worker inherits permissions from main thread (permissions
* given using `--allow-*` flags).
* Configurable permissions are on the roadmap to be implemented.
*
* Example:
*
* ```ts
* // mod.ts
* const worker = new Worker("./deno_worker.ts", { type: "module", deno: true });
* worker.postMessage({ cmd: "readFile", fileName: "./log.txt" });
*
* // deno_worker.ts
*
*
* self.onmessage = async function (e) {
* const { cmd, fileName } = e.data;
* if (cmd !== "readFile") {
* throw new Error("Invalid command");
* }
* const buf = await Deno.readFile(fileName);
* const fileContents = new TextDecoder().decode(buf);
* console.log(fileContents);
* }
* ```
*
* // log.txt
* hello world
* hello world 2
*
* // run program
* $ deno run --allow-read mod.ts
* hello world
* hello world2
*
*/
deno?: boolean;
}
);
postMessage(message: any, transfer: ArrayBuffer[]): void;
postMessage(message: any, options?: PostMessageOptions): void;
terminate(): void;
}
declare namespace performance {
/** Returns a current time from Deno's start in milliseconds.
*
* Use the flag --allow-hrtime return a precise value.
*
* ```ts
* const t = performance.now();
* console.log(`${t} ms since start!`);
* ```
*/
export function now(): number;
}
interface EventInit {
bubbles?: boolean;
cancelable?: boolean;
composed?: boolean;
}
/** An event which takes place in the DOM. */
declare class Event {
constructor(type: string, eventInitDict?: EventInit);
/** Returns true or false depending on how event was initialized. True if
* event goes through its target's ancestors in reverse tree order, and
* false otherwise. */
readonly bubbles: boolean;
cancelBubble: boolean;
/** Returns true or false depending on how event was initialized. Its return
* value does not always carry meaning, but true can indicate that part of the
* operation during which event was dispatched, can be canceled by invoking
* the preventDefault() method. */
readonly cancelable: boolean;
/** Returns true or false depending on how event was initialized. True if
* event invokes listeners past a ShadowRoot node that is the root of its
* target, and false otherwise. */
readonly composed: boolean;
/** Returns the object whose event listener's callback is currently being
* invoked. */
readonly currentTarget: EventTarget | null;
/** Returns true if preventDefault() was invoked successfully to indicate
* cancellation, and false otherwise. */
readonly defaultPrevented: boolean;
/** Returns the event's phase, which is one of NONE, CAPTURING_PHASE,
* AT_TARGET, and BUBBLING_PHASE. */
readonly eventPhase: number;
/** Returns true if event was dispatched by the user agent, and false
* otherwise. */
readonly isTrusted: boolean;
/** Returns the object to which event is dispatched (its target). */
readonly target: EventTarget | null;
/** Returns the event's timestamp as the number of milliseconds measured
* relative to the time origin. */
readonly timeStamp: number;
/** Returns the type of event, e.g. "click", "hashchange", or "submit". */
readonly type: string;
/** Returns the invocation target objects of event's path (objects on which
* listeners will be invoked), except for any nodes in shadow trees of which
* the shadow root's mode is "closed" that are not reachable from event's
* currentTarget. */
composedPath(): EventTarget[];
/** If invoked when the cancelable attribute value is true, and while
* executing a listener for the event with passive set to false, signals to
* the operation that caused event to be dispatched that it needs to be
* canceled. */
preventDefault(): void;
/** Invoking this method prevents event from reaching any registered event
* listeners after the current one finishes running and, when dispatched in a
* tree, also prevents event from reaching any other objects. */
stopImmediatePropagation(): void;
/** When dispatched in a tree, invoking this method prevents event from
* reaching any objects other than the current object. */
stopPropagation(): void;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
static readonly AT_TARGET: number;
static readonly BUBBLING_PHASE: number;
static readonly CAPTURING_PHASE: number;
static readonly NONE: number;
}
/**
* EventTarget is a DOM interface implemented by objects that can receive events
* and may have listeners for them.
*/
declare class EventTarget {
/** Appends an event listener for events whose type attribute value is type.
* The callback argument sets the callback that will be invoked when the event
* is dispatched.
*
* The options argument sets listener-specific options. For compatibility this
* can be a boolean, in which case the method behaves exactly as if the value
* was specified as options's capture.
*
* When set to true, options's capture prevents callback from being invoked
* when the event's eventPhase attribute value is BUBBLING_PHASE. When false
* (or not present), callback will not be invoked when event's eventPhase
* attribute value is CAPTURING_PHASE. Either way, callback will be invoked if
* event's eventPhase attribute value is AT_TARGET.
*
* When set to true, options's passive indicates that the callback will not
* cancel the event by invoking preventDefault(). This is used to enable
* performance optimizations described in § 2.8 Observing event listeners.
*
* When set to true, options's once indicates that the callback will only be
* invoked once after which the event listener will be removed.
*
* The event listener is appended to target's event listener list and is not
* appended if it has the same type, callback, and capture. */
addEventListener(
type: string,
listener: EventListenerOrEventListenerObject | null,
options?: boolean | AddEventListenerOptions
): void;
/** Dispatches a synthetic event event to target and returns true if either
* event's cancelable attribute value is false or its preventDefault() method
* was not invoked, and false otherwise. */
dispatchEvent(event: Event): boolean;
/** Removes the event listener in target's event listener list with the same
* type, callback, and options. */
removeEventListener(
type: string,
callback: EventListenerOrEventListenerObject | null,
options?: EventListenerOptions | boolean
): void;
[Symbol.toStringTag]: string;
}
interface EventListener {
(evt: Event): void | Promise<void>;
}
interface EventListenerObject {
handleEvent(evt: Event): void | Promise<void>;
}
declare type EventListenerOrEventListenerObject =
| EventListener
| EventListenerObject;
interface AddEventListenerOptions extends EventListenerOptions {
once?: boolean;
passive?: boolean;
}
interface EventListenerOptions {
capture?: boolean;
}
/** Events measuring progress of an underlying process, like an HTTP request
* (for an XMLHttpRequest, or the loading of the underlying resource of an
* <img>, <audio>, <video>, <style> or <link>). */
interface ProgressEvent<T extends EventTarget = EventTarget> extends Event {
readonly lengthComputable: boolean;
readonly loaded: number;
readonly target: T | null;
readonly total: number;
}
interface CustomEventInit<T = any> extends EventInit {
detail?: T;
}
declare class CustomEvent<T = any> extends Event {
constructor(typeArg: string, eventInitDict?: CustomEventInit<T>);
/** Returns any custom data event was created with. Typically used for
* synthetic events. */
readonly detail: T;
}
/** A controller object that allows you to abort one or more DOM requests as and
* when desired. */
declare class AbortController {
/** Returns the AbortSignal object associated with this object. */
readonly signal: AbortSignal;
/** Invoking this method will set this object's AbortSignal's aborted flag and
* signal to any observers that the associated activity is to be aborted. */
abort(): void;
}
interface AbortSignalEventMap {
abort: Event;
}
/** A signal object that allows you to communicate with a DOM request (such as a
* Fetch) and abort it if required via an AbortController object. */
interface AbortSignal extends EventTarget {
/** Returns true if this AbortSignal's AbortController has signaled to abort,
* and false otherwise. */
readonly aborted: boolean;
onabort: ((this: AbortSignal, ev: Event) => any) | null;
addEventListener<K extends keyof AbortSignalEventMap>(
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | AddEventListenerOptions
): void;
addEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | AddEventListenerOptions
): void;
removeEventListener<K extends keyof AbortSignalEventMap>(
type: K,
listener: (this: AbortSignal, ev: AbortSignalEventMap[K]) => any,
options?: boolean | EventListenerOptions
): void;
removeEventListener(
type: string,
listener: EventListenerOrEventListenerObject,
options?: boolean | EventListenerOptions
): void;
}
declare const AbortSignal: {
prototype: AbortSignal;
new (): AbortSignal;
};
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
/* eslint-disable @typescript-eslint/no-explicit-any */
/// <reference no-default-lib="true" />
/// <reference lib="deno.ns" />
/// <reference lib="deno.shared_globals" />
/// <reference lib="esnext" />
declare interface Window extends EventTarget {
readonly window: Window & typeof globalThis;
readonly self: Window & typeof globalThis;
onload: ((this: Window, ev: Event) => any) | null;
onunload: ((this: Window, ev: Event) => any) | null;
close: () => void;
readonly closed: boolean;
Deno: typeof Deno;
}
declare const window: Window & typeof globalThis;
declare const self: Window & typeof globalThis;
declare const onload: ((this: Window, ev: Event) => any) | null;
declare const onunload: ((this: Window, ev: Event) => any) | null;
/* eslint-enable @typescript-eslint/no-explicit-any */
</code></pre></div>
</details> | <p dir="auto">I'm trying the following script and I get a few errors.</p>
<p dir="auto">index.ts</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { exists } from "https://deno.land/std/fs/mod.ts";
const found = await exists('/folder');
console.log('Found:', found);"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">exists</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"https://deno.land/std/fs/mod.ts"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">found</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-en">exists</span><span class="pl-kos">(</span><span class="pl-s">'/folder'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Found:'</span><span class="pl-kos">,</span> <span class="pl-s1">found</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Error:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error TS2339: Property 'utime' does not exist on type 'typeof Deno'.
await Deno.utime(dest, statInfo.atime, statInfo.mtime);
~~~~~
at https://deno.land/std/fs/copy.ts:90:16
error TS2339: Property 'utimeSync' does not exist on type 'typeof Deno'.
Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
~~~~~~~~~
at https://deno.land/std/fs/copy.ts:101:10
error TS2339: Property 'symlink' does not exist on type 'typeof Deno'.
await Deno.symlink(originSrcFilePath, dest, type);
~~~~~~~
at https://deno.land/std/fs/copy.ts:114:14
error TS2339: Property 'utime' does not exist on type 'typeof Deno'.
await Deno.utime(dest, statInfo.atime, statInfo.mtime);
~~~~~
at https://deno.land/std/fs/copy.ts:119:16
error TS2339: Property 'symlinkSync' does not exist on type 'typeof Deno'.
Deno.symlinkSync(originSrcFilePath, dest, type);
~~~~~~~~~~~
at https://deno.land/std/fs/copy.ts:132:8
error TS2339: Property 'utimeSync' does not exist on type 'typeof Deno'.
Deno.utimeSync(dest, statInfo.atime, statInfo.mtime);
~~~~~~~~~
at https://deno.land/std/fs/copy.ts:137:10
error TS2339: Property 'utime' does not exist on type 'typeof Deno'.
await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime);
~~~~~
at https://deno.land/std/fs/copy.ts:157:16
error TS2339: Property 'utimeSync' does not exist on type 'typeof Deno'.
Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime);
~~~~~~~~~
at https://deno.land/std/fs/copy.ts:185:10
error TS2339: Property 'link' does not exist on type 'typeof Deno'.
await Deno.link(src, dest);
~~~~
at https://deno.land/std/fs/ensure_link.ts:28:14
error TS2339: Property 'linkSync' does not exist on type 'typeof Deno'.
Deno.linkSync(src, dest);
~~~~~~~~
at https://deno.land/std/fs/ensure_link.ts:52:8
error TS2339: Property 'symlink' does not exist on type 'typeof Deno'.
await Deno.symlink(src, dest, srcFilePathType);
~~~~~~~
at https://deno.land/std/fs/ensure_symlink.ts:31:14
error TS2339: Property 'symlinkSync' does not exist on type 'typeof Deno'.
Deno.symlinkSync(src, dest, srcFilePathType);
~~~~~~~~~~~
at https://deno.land/std/fs/ensure_symlink.ts:58:8
Found 12 errors."><pre class="notranslate">error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utime<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
await Deno.utime(dest, statInfo.atime, statInfo.mtime)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~
at https://deno.land/std/fs/copy.ts:90:16
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utimeSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
Deno.utimeSync(dest, statInfo.atime, statInfo.mtime)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~~~~~
at https://deno.land/std/fs/copy.ts:101:10
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>symlink<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
await Deno.symlink(originSrcFilePath, dest, type)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~~~
at https://deno.land/std/fs/copy.ts:114:14
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utime<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
await Deno.utime(dest, statInfo.atime, statInfo.mtime)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~
at https://deno.land/std/fs/copy.ts:119:16
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>symlinkSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
Deno.symlinkSync(originSrcFilePath, dest, type)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~~~~~~~
at https://deno.land/std/fs/copy.ts:132:8
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utimeSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
Deno.utimeSync(dest, statInfo.atime, statInfo.mtime)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~~~~~
at https://deno.land/std/fs/copy.ts:137:10
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utime<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
await Deno.utime(dest, srcStatInfo.atime, srcStatInfo.mtime)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~
at https://deno.land/std/fs/copy.ts:157:16
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>utimeSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
Deno.utimeSync(dest, srcStatInfo.atime, srcStatInfo.mtime)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~~~~~
at https://deno.land/std/fs/copy.ts:185:10
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>link<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
await Deno.link(src, dest)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~
at https://deno.land/std/fs/ensure_link.ts:28:14
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>linkSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
Deno.linkSync(src, dest)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~~~~
at https://deno.land/std/fs/ensure_link.ts:52:8
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>symlink<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
await Deno.symlink(src, dest, srcFilePathType)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~~~
at https://deno.land/std/fs/ensure_symlink.ts:31:14
error TS2339: Property <span class="pl-s"><span class="pl-pds">'</span>symlinkSync<span class="pl-pds">'</span></span> does not exist on <span class="pl-c1">type</span> <span class="pl-s"><span class="pl-pds">'</span>typeof Deno<span class="pl-pds">'</span></span>.
Deno.symlinkSync(src, dest, srcFilePathType)<span class="pl-k">;</span>
<span class="pl-k">~</span>~~~~~~~~~~
at https://deno.land/std/fs/ensure_symlink.ts:58:8
Found 12 errors.</pre></div>
<p dir="auto">deno 1.0.0-rc1<br>
v8 8.2.308<br>
typescript 3.8.3</p> | 1 |
<ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I think there is no actual page behind the component demo's and the link should probably just open the sub navigation</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">As there is no actual page for the sub menu header, the link results in a 404.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Navigate to <a href="https://material-ui-1dab0.firebaseapp.com/getting-started/usage/" rel="nofollow">https://material-ui-1dab0.firebaseapp.com/getting-started/usage/</a></li>
<li>In the bottom paragraph there is a link to the components demo's</li>
<li><a href="https://material-ui-1dab0.firebaseapp.com/component-demos" rel="nofollow">https://material-ui-1dab0.firebaseapp.com/component-demos</a></li>
<li>404</li>
</ol> | <ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">That the Popover content will adjust to the dynamically loaded/delayed content</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The popover initially loads. You see a tiny little div because the data has not yet loaded in. Once it does come in, half of the div is now off screen.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19170080/34237467-d295d5fa-e5ca-11e7-97a2-58866662f53c.gif"><img src="https://user-images.githubusercontent.com/19170080/34237467-d295d5fa-e5ca-11e7-97a2-58866662f53c.gif" alt="popover-notworking" data-animated-image="" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Create a simple component that has a delayed render like so</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
class DelayedComponent extends React.Component {
state = {
isSet: false
};
componentDidMount() {
setTimeout(() => {
this.setState({
isSet: true
});
}, 1000);
}
render() {
if (!this.state.isSet)
return <div></div>
else
return (
<div>
this is some really long text to test the Popover component with
<FormControl component="fieldset">
<FormLabel component="legend">anchorReference</FormLabel>
<RadioGroup
row
aria-label="anchorReference"
name="anchorReference"
value={this.state.anchorReference}
>
<FormControlLabel value="anchorEl" control={<Radio />} label="anchorEl" />
<FormControlLabel
value="anchorPosition"
control={<Radio />}
label="anchorPosition"
/>
</RadioGroup>
</FormControl>
</div>
);
}
}"><pre class="notranslate"><code class="notranslate">
class DelayedComponent extends React.Component {
state = {
isSet: false
};
componentDidMount() {
setTimeout(() => {
this.setState({
isSet: true
});
}, 1000);
}
render() {
if (!this.state.isSet)
return <div></div>
else
return (
<div>
this is some really long text to test the Popover component with
<FormControl component="fieldset">
<FormLabel component="legend">anchorReference</FormLabel>
<RadioGroup
row
aria-label="anchorReference"
name="anchorReference"
value={this.state.anchorReference}
>
<FormControlLabel value="anchorEl" control={<Radio />} label="anchorEl" />
<FormControlLabel
value="anchorPosition"
control={<Radio />}
label="anchorPosition"
/>
</RadioGroup>
</FormControl>
</div>
);
}
}
</code></pre></div>
<p dir="auto">And use the Popover like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="render() {
...
<Popover
open={open}
anchorEl={anchorEl}
anchorReference={anchorReference}
anchorPosition={{ top: positionTop, left: positionLeft }}
onClose={this.handleClose}
anchorOrigin={{
vertical: anchorOriginVertical,
horizontal: anchorOriginHorizontal,
}}
transformOrigin={{
vertical: transformOriginVertical,
horizontal: transformOriginHorizontal,
}}
>
<DelayedComponent />
</Popover>
...
}"><pre class="notranslate"><code class="notranslate">render() {
...
<Popover
open={open}
anchorEl={anchorEl}
anchorReference={anchorReference}
anchorPosition={{ top: positionTop, left: positionLeft }}
onClose={this.handleClose}
anchorOrigin={{
vertical: anchorOriginVertical,
horizontal: anchorOriginHorizontal,
}}
transformOrigin={{
vertical: transformOriginVertical,
horizontal: transformOriginHorizontal,
}}
>
<DelayedComponent />
</Popover>
...
}
</code></pre></div>
<ol start="2" dir="auto">
<li>Position a button to trigger the Popover flush right</li>
<li>Open the popover</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">When using Popover with content that could load in delayed I would hope the Popover could adjust for the change or a method could be provided. If there were access to the positioning method used inside Popover then it would allow for updating of delayed content. From what I see that would be setPositioningStyles() inside of Popover.</p>
<p dir="auto">With that access provided I can then fire off that setPositioningStyles from outside the Popover and give it the proper positioning. If this were approved I would not mind taking on the work.</p>
<p dir="auto">Thanks</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.23</td>
</tr>
<tr>
<td>React</td>
<td>16</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.7</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import "reflect-metadata";
function dec(target: Object, propertyKey: string) {
}
it("Check emitted design types", () => {
class B {
}
class A {
@dec
b: B;
}
// Works as expected
expect(Reflect.getMetadata("design:type", A.prototype, "b")).toBeDefined();
});
it("Check emitted design types - reverse order", () => {
class A {
@dec
b: B;
}
class B {
}
// Fails!!!
expect(Reflect.getMetadata("design:type", A.prototype, "b")).toBeDefined();
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">"reflect-metadata"</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">dec</span><span class="pl-kos">(</span><span class="pl-s1">target</span>: <span class="pl-smi">Object</span><span class="pl-kos">,</span> <span class="pl-s1">propertyKey</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">"Check emitted design types"</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">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
@<span class="pl-s1">dec</span>
<span class="pl-c1">b</span>: <span class="pl-smi">B</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-c">// Works as expected</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-smi">Reflect</span><span class="pl-kos">.</span><span class="pl-en">getMetadata</span><span class="pl-kos">(</span><span class="pl-s">"design:type"</span><span class="pl-kos">,</span> <span class="pl-smi">A</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-s">"b"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeDefined</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">it</span><span class="pl-kos">(</span><span class="pl-s">"Check emitted design types - reverse order"</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">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
@<span class="pl-s1">dec</span>
<span class="pl-c1">b</span>: <span class="pl-smi">B</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">class</span> <span class="pl-smi">B</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span>
<span class="pl-c">// Fails!!!</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-smi">Reflect</span><span class="pl-kos">.</span><span class="pl-en">getMetadata</span><span class="pl-kos">(</span><span class="pl-s">"design:type"</span><span class="pl-kos">,</span> <span class="pl-smi">A</span><span class="pl-kos">.</span><span class="pl-c1">prototype</span><span class="pl-kos">,</span> <span class="pl-s">"b"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeDefined</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong> I'd expect design type metadata to be defined in both cases</p>
<p dir="auto"><strong>Actual behavior:</strong> Only first case works as expected</p> | <p dir="auto">I have the following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@decorator
class A {
constructor(param : B) {
}
}
class B {
}
function decorator(target: any) {
return target;
}
console.log(Reflect.getMetadata("design:paramtypes", A));"><pre class="notranslate"><code class="notranslate">@decorator
class A {
constructor(param : B) {
}
}
class B {
}
function decorator(target: any) {
return target;
}
console.log(Reflect.getMetadata("design:paramtypes", A));
</code></pre></div>
<p dir="auto">The expected output should be: <code class="notranslate">[function B()]</code>, but the actual output is <code class="notranslate">[undefined]</code>. The issue is related to the definition order in the resulting js file, in which there is the following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var A = (function () {
function A(param) {
}
A = __decorate([
decorator,
__metadata('design:paramtypes', [B])
], A);
return A;
})();
var B = (function () {
function B() {
}
return B;
})();"><pre class="notranslate"><code class="notranslate">var A = (function () {
function A(param) {
}
A = __decorate([
decorator,
__metadata('design:paramtypes', [B])
], A);
return A;
})();
var B = (function () {
function B() {
}
return B;
})();
</code></pre></div>
<p dir="auto">Since A is defined by a IIFE, in its execution scope B is not yet defined, so the generated metadata is incorrectly set to undefined. The only workaround I can use now is to declare B before A.</p> | 1 |
<p dir="auto">The Docs archive/pdf download url on the website give a 404, but the 404 page looks very nice!!!</p> | 1 |
|
<p dir="auto">See <a href="https://github.com/scrapy/scrapy/pull/4543/files/4c12a234ae65d49678a9840708ff5e7b9d6dcecc#diff-04eeb72b0ac2a03d00f2b1dcc3268ebc">https://github.com/scrapy/scrapy/pull/4543/files/4c12a234ae65d49678a9840708ff5e7b9d6dcecc#diff-04eeb72b0ac2a03d00f2b1dcc3268ebc</a></p> | <p dir="auto">We should add support for following FTP links like:<br>
ftp://www.example.com/somedir/somefile.xml</p>
<p dir="auto">I suppose Requests will only use the URL attribute (and perhaps some data in meta, if it's needed).</p>
<p dir="auto">As for Responses, they will contain the file contents in the body, as one would expect.<br>
here should be a flag to enable/disable passive FTP, perhaps even per spider.</p> | 0 |
<p dir="auto">It's pretty unexpected that the behavior of <code class="notranslate">x <= pd.Series(...)</code> depends on whether <code class="notranslate">x</code> is a python float or a <code class="notranslate">np.float64</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import pandas as pd
>>> import numpy as np
>>> 5 <= pd.Series(range(10))
0 False
1 False
2 False
3 False
4 False
5 True
6 True
7 True
8 True
9 True
dtype: bool
>>> np.float64(5) <= pd.Series(range(10))
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/pandas/core/ops.py", line 588, in wrapper
if len(self) != len(other):
TypeError: len() of unsized object
>>> pd.show_versions()
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.3.final.0
python-bits: 64
OS: Linux
OS-release: 3.2.0-54-virtual
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
pandas: 0.16.2
nose: 1.3.3
Cython: None
numpy: 1.9.2
scipy: 0.14.0
statsmodels: 0.5.0
IPython: 0.12.1
sphinx: None
patsy: 0.3.0
dateutil: 2.2
pytz: 2014.4
bottleneck: None
tables: None
numexpr: None
matplotlib: 1.3.1
openpyxl: 1.8.6
xlrd: 0.9.3
xlwt: None
xlsxwriter: None
lxml: 3.3.2
bs4: None
html5lib: None
httplib2: 0.7.2
apiclient: None
sqlalchemy: None
pymysql: None
psycopg2: 2.5.2 (dt dec pq3 ext)
>>>"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></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-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-c1">5</span> <span class="pl-c1"><=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>))
<span class="pl-c1">0</span> <span class="pl-c1">False</span>
<span class="pl-c1">1</span> <span class="pl-c1">False</span>
<span class="pl-c1">2</span> <span class="pl-c1">False</span>
<span class="pl-c1">3</span> <span class="pl-c1">False</span>
<span class="pl-c1">4</span> <span class="pl-c1">False</span>
<span class="pl-c1">5</span> <span class="pl-c1">True</span>
<span class="pl-c1">6</span> <span class="pl-c1">True</span>
<span class="pl-c1">7</span> <span class="pl-c1">True</span>
<span class="pl-c1">8</span> <span class="pl-c1">True</span>
<span class="pl-c1">9</span> <span class="pl-c1">True</span>
<span class="pl-s1">dtype</span>: <span class="pl-s1">bool</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">np</span>.<span class="pl-en">float64</span>(<span class="pl-c1">5</span>) <span class="pl-c1"><=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-en">range</span>(<span class="pl-c1">10</span>))
<span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>):
<span class="pl-v">File</span> <span class="pl-s">"<stdin>"</span>, <span class="pl-s1">line</span> <span class="pl-c1">1</span>, <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>
<span class="pl-v">File</span> <span class="pl-s">"/usr/local/lib/python2.7/dist-packages/pandas/core/ops.py"</span>, <span class="pl-s1">line</span> <span class="pl-c1">588</span>, <span class="pl-s1">in</span> <span class="pl-s1">wrapper</span>
<span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">self</span>) <span class="pl-c1">!=</span> <span class="pl-en">len</span>(<span class="pl-s1">other</span>):
<span class="pl-v">TypeError</span>: <span class="pl-en">len</span>() <span class="pl-s1">of</span> <span class="pl-s1">unsized</span> <span class="pl-s1">object</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-s1">pd</span>.<span class="pl-en">show_versions</span>()
<span class="pl-v">INSTALLED</span> <span class="pl-v">VERSIONS</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-s1">commit</span>: <span class="pl-c1">None</span>
<span class="pl-s1">python</span>: <span class="pl-c1">2.7</span>.<span class="pl-c1">3.</span><span class="pl-s1">final</span>.<span class="pl-c1">0</span>
<span class="pl-s1">python</span><span class="pl-c1">-</span><span class="pl-s1">bits</span>: <span class="pl-c1">64</span>
<span class="pl-v">OS</span>: <span class="pl-v">Linux</span>
<span class="pl-v">OS</span><span class="pl-c1">-</span><span class="pl-s1">release</span>: <span class="pl-c1">3.2</span><span class="pl-c1">.0</span><span class="pl-c1">-</span><span class="pl-c1">54</span><span class="pl-c1">-</span><span class="pl-s1">virtual</span>
<span class="pl-s1">machine</span>: <span class="pl-s1">x86_64</span>
<span class="pl-s1">processor</span>: <span class="pl-s1">x86_64</span>
<span class="pl-s1">byteorder</span>: <span class="pl-s1">little</span>
<span class="pl-v">LC_ALL</span>: <span class="pl-c1">None</span>
<span class="pl-v">LANG</span>: <span class="pl-s1">en_US</span>.<span class="pl-v">UTF</span><span class="pl-c1">-</span><span class="pl-c1">8</span>
<span class="pl-s1">pandas</span>: <span class="pl-c1">0.16</span>.<span class="pl-c1">2</span>
<span class="pl-s1">nose</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">3</span>
<span class="pl-v">Cython</span>: <span class="pl-c1">None</span>
<span class="pl-s1">numpy</span>: <span class="pl-c1">1.9</span>.<span class="pl-c1">2</span>
<span class="pl-s1">scipy</span>: <span class="pl-c1">0.14</span>.<span class="pl-c1">0</span>
<span class="pl-s1">statsmodels</span>: <span class="pl-c1">0.5</span>.<span class="pl-c1">0</span>
<span class="pl-v">IPython</span>: <span class="pl-c1">0.12</span>.<span class="pl-c1">1</span>
<span class="pl-s1">sphinx</span>: <span class="pl-c1">None</span>
<span class="pl-s1">patsy</span>: <span class="pl-c1">0.3</span>.<span class="pl-c1">0</span>
<span class="pl-s1">dateutil</span>: <span class="pl-c1">2.2</span>
<span class="pl-s1">pytz</span>: <span class="pl-c1">2014.4</span>
<span class="pl-s1">bottleneck</span>: <span class="pl-c1">None</span>
<span class="pl-s1">tables</span>: <span class="pl-c1">None</span>
<span class="pl-s1">numexpr</span>: <span class="pl-c1">None</span>
<span class="pl-s1">matplotlib</span>: <span class="pl-c1">1.3</span>.<span class="pl-c1">1</span>
<span class="pl-s1">openpyxl</span>: <span class="pl-c1">1.8</span>.<span class="pl-c1">6</span>
<span class="pl-s1">xlrd</span>: <span class="pl-c1">0.9</span>.<span class="pl-c1">3</span>
<span class="pl-s1">xlwt</span>: <span class="pl-c1">None</span>
<span class="pl-s1">xlsxwriter</span>: <span class="pl-c1">None</span>
<span class="pl-s1">lxml</span>: <span class="pl-c1">3.3</span>.<span class="pl-c1">2</span>
<span class="pl-s1">bs4</span>: <span class="pl-c1">None</span>
<span class="pl-s1">html5lib</span>: <span class="pl-c1">None</span>
<span class="pl-s1">httplib2</span>: <span class="pl-c1">0.7</span>.<span class="pl-c1">2</span>
<span class="pl-s1">apiclient</span>: <span class="pl-c1">None</span>
<span class="pl-s1">sqlalchemy</span>: <span class="pl-c1">None</span>
<span class="pl-s1">pymysql</span>: <span class="pl-c1">None</span>
<span class="pl-s1">psycopg2</span>: <span class="pl-c1">2.5</span>.<span class="pl-c1">2</span> (<span class="pl-s1">dt</span> <span class="pl-s1">dec</span> <span class="pl-s1">pq3</span> <span class="pl-s1">ext</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span></pre></div> | <h4 dir="auto">Problem description</h4>
<p dir="auto">I have the following .csv file:</p>
<table role="table">
<thead>
<tr>
<th>A</th>
<th>A</th>
<th>B</th>
</tr>
</thead>
<tbody>
<tr>
<td>one</td>
<td>one</td>
<td>two</td>
</tr>
<tr>
<td>0</td>
<td>34</td>
<td>0.1</td>
</tr>
</tbody>
</table>
<p dir="auto">I want to use the first two rows to create MultiIndex columns. However, the first and second columns are duplicated and pandas is handling that in a weird way.</p>
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="print(pd.read_csv('test.csv',header=[0,1]).columns)
>> Index([('A', 'one'), '('A', 'one').1', ('B', 'two')], dtype='object')"><pre class="notranslate"><span class="pl-en">print</span>(<span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-s">'test.csv'</span>,<span class="pl-s1">header</span><span class="pl-c1">=</span>[<span class="pl-c1">0</span>,<span class="pl-c1">1</span>]).<span class="pl-s1">columns</span>)
<span class="pl-c1">>></span> <span class="pl-v">Index</span>([(<span class="pl-s">'A'</span>, <span class="pl-s">'one'</span>), <span class="pl-s">'('</span><span class="pl-v">A</span><span class="pl-s">', '</span><span class="pl-s1">one</span><span class="pl-s">').1'</span>, (<span class="pl-s">'B'</span>, <span class="pl-s">'two'</span>)], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>)</pre></div>
<p dir="auto">This output is a total mess, the first column and last are tuples while the second column is a string. Also, this is not a MultiIndex, it's an Index. Raising an error or having the option to delete the duplicate columns would be a better solution.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.5.2.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.4.0-97-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_GB.UTF-8<br>
LOCALE: en_GB.UTF-8</p>
<p dir="auto">pandas: 0.21.0<br>
pytest: 2.9.2<br>
pip: 9.0.1<br>
setuptools: 27.2.0<br>
Cython: 0.24.1<br>
numpy: 1.13.3<br>
scipy: 0.18.1<br>
pyarrow: None<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: 1.4.6<br>
patsy: 0.4.1<br>
dateutil: 2.6.1<br>
pytz: 2017.3<br>
blosc: None<br>
bottleneck: 1.1.0<br>
tables: 3.2.3.1<br>
numexpr: 2.6.1<br>
feather: None<br>
matplotlib: 1.5.3<br>
openpyxl: 2.3.2<br>
xlrd: 1.0.0<br>
xlwt: 1.1.2<br>
xlsxwriter: 0.9.3<br>
lxml: 3.6.4<br>
bs4: 4.5.1<br>
html5lib: None<br>
sqlalchemy: 1.0.13<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | 0 |
<p dir="auto">Is it possible to have a version number and release tag for the .rpm files.<br>
Makes it easy to keep track and update the versions.</p> | <p dir="auto">As per convention.</p> | 1 |
<p dir="auto">My <code class="notranslate">mod.ts</code> is simply:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" /// <reference lib="dom" />
export function example(): number {
return 42;
}"><pre class="notranslate"><code class="notranslate"> /// <reference lib="dom" />
export function example(): number {
return 42;
}
</code></pre></div>
<p dir="auto">and test file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" import { assertEquals } from "../deps.ts";
import { example } from "../src/mod.ts";
Deno.test({
name: "example test",
fn(): void {
// Arrange
const expectedResult = 42;
// Act
const result = example();
// Assert
assertEquals(result, expectedResult);
},
});"><pre class="notranslate"><code class="notranslate"> import { assertEquals } from "../deps.ts";
import { example } from "../src/mod.ts";
Deno.test({
name: "example test",
fn(): void {
// Arrange
const expectedResult = 42;
// Act
const result = example();
// Assert
assertEquals(result, expectedResult);
},
});
</code></pre></div>
<p dir="auto">Without <code class="notranslate"> /// <reference lib="dom" /></code> it works great, with I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: CompileError, Global, Instance, LinkError, Memory, Module, RuntimeError, Table, ImportExportKind, TableKind, ValueType, ExportValue, Exports, ImportValue, ModuleImports, Imports, BufferSource, MessageEvent, ErrorEvent, Worker, PerformanceEntryList, Performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, CustomEvent
interface Account {
~~~~~~~~~
at asset:///lib.dom.d.ts:25:1
Conflicts are in this file.
declare namespace WebAssembly {
~~~~~~~
at asset:///lib.deno.shared_globals.d.ts:15:1
TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: DOMException, Event, EventTarget, EventListenerOrEventListenerObject, ProgressEvent, TextDecoder, TextEncoder, AbortController
interface Account {
~~~~~~~~~
at asset:///lib.dom.d.ts:25:1
Conflicts are in this file.
declare class DOMException extends Error {
~~~~~~~
at asset:///lib.deno.web.d.ts:8:1
TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: ReadableStreamReader, CountQueuingStrategy, ByteLengthQueuingStrategy, BlobPart, Blob, File, FormDataEntryValue, FormData, HeadersInit, Headers, RequestInfo, RequestCache, RequestCredentials, RequestMode, RequestRedirect, ReferrerPolicy, BodyInit, RequestDestination, Request, ResponseType, Response
interface Account {
~~~~~~~~~
at asset:///lib.dom.d.ts:25:1
Conflicts are in this file.
interface DomIterable<K, V> {
~~~~~~~~~
at asset:///lib.deno.fetch.d.ts:8:1
TS2300 [ERROR]: Duplicate identifier 'CloseEvent'.
interface CloseEvent extends Event {
~~~~~~~~~~
at asset:///lib.dom.d.ts:3642:11
'CloseEvent' was also declared here.
declare class CloseEvent extends Event {
~~~~~~~~~~
at asset:///lib.deno.websocket.d.ts:14:15
TS2300 [ERROR]: Duplicate identifier 'CloseEvent'.
declare var CloseEvent: {
~~~~~~~~~~
at asset:///lib.dom.d.ts:3657:13
'CloseEvent' was also declared here.
declare class CloseEvent extends Event {
~~~~~~~~~~
at asset:///lib.deno.websocket.d.ts:14:15
TS2300 [ERROR]: Duplicate identifier 'Location'.
interface Location {
~~~~~~~~
at asset:///lib.dom.d.ts:9794:11
'Location' was also declared here.
declare class Location {
~~~~~~~~
at asset:///lib.deno.window.d.ts:70:15"><pre class="notranslate"><code class="notranslate">error: TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: CompileError, Global, Instance, LinkError, Memory, Module, RuntimeError, Table, ImportExportKind, TableKind, ValueType, ExportValue, Exports, ImportValue, ModuleImports, Imports, BufferSource, MessageEvent, ErrorEvent, Worker, PerformanceEntryList, Performance, PerformanceEntry, PerformanceMark, PerformanceMeasure, CustomEvent
interface Account {
~~~~~~~~~
at asset:///lib.dom.d.ts:25:1
Conflicts are in this file.
declare namespace WebAssembly {
~~~~~~~
at asset:///lib.deno.shared_globals.d.ts:15:1
TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: DOMException, Event, EventTarget, EventListenerOrEventListenerObject, ProgressEvent, TextDecoder, TextEncoder, AbortController
interface Account {
~~~~~~~~~
at asset:///lib.dom.d.ts:25:1
Conflicts are in this file.
declare class DOMException extends Error {
~~~~~~~
at asset:///lib.deno.web.d.ts:8:1
TS6200 [ERROR]: Definitions of the following identifiers conflict with those in another file: ReadableStreamReader, CountQueuingStrategy, ByteLengthQueuingStrategy, BlobPart, Blob, File, FormDataEntryValue, FormData, HeadersInit, Headers, RequestInfo, RequestCache, RequestCredentials, RequestMode, RequestRedirect, ReferrerPolicy, BodyInit, RequestDestination, Request, ResponseType, Response
interface Account {
~~~~~~~~~
at asset:///lib.dom.d.ts:25:1
Conflicts are in this file.
interface DomIterable<K, V> {
~~~~~~~~~
at asset:///lib.deno.fetch.d.ts:8:1
TS2300 [ERROR]: Duplicate identifier 'CloseEvent'.
interface CloseEvent extends Event {
~~~~~~~~~~
at asset:///lib.dom.d.ts:3642:11
'CloseEvent' was also declared here.
declare class CloseEvent extends Event {
~~~~~~~~~~
at asset:///lib.deno.websocket.d.ts:14:15
TS2300 [ERROR]: Duplicate identifier 'CloseEvent'.
declare var CloseEvent: {
~~~~~~~~~~
at asset:///lib.dom.d.ts:3657:13
'CloseEvent' was also declared here.
declare class CloseEvent extends Event {
~~~~~~~~~~
at asset:///lib.deno.websocket.d.ts:14:15
TS2300 [ERROR]: Duplicate identifier 'Location'.
interface Location {
~~~~~~~~
at asset:///lib.dom.d.ts:9794:11
'Location' was also declared here.
declare class Location {
~~~~~~~~
at asset:///lib.deno.window.d.ts:70:15
</code></pre></div>
<p dir="auto">... and it goes on</p>
<p dir="auto">I don't see why this is not working, <code class="notranslate">mod.ts</code> will be for the browser using the DOM.</p> | <p dir="auto">Any updates?</p>
<p dir="auto">I got a lot of ts errors when I used <code class="notranslate">@deno-types</code> to include type definitions for the <a href="https://github.com/sindresorhus/ky">ky</a> libarry.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="// @deno-types="https://deno.land/x/[email protected]/index.d.ts"
export { default as ky } from "https://deno.land/x/[email protected]/index.js"><pre class="notranslate"><code class="notranslate">// @deno-types="https://deno.land/x/[email protected]/index.d.ts"
export { default as ky } from "https://deno.land/x/[email protected]/index.js
</code></pre></div>
<p dir="auto">From the error message, it is the <code class="notranslate">lib.dom.d.ts</code> which causes conflicts with other definitions.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TS2300 [ERROR]: Duplicate identifier 'Event'.
declare class Event {
~~~~~
at asset:///lib.deno.web.d.ts:21:15
'Event' was also declared here.
interface Event {
~~~~~
at asset:///lib.dom.d.ts:5285:11 and here.
declare var Event: {
~~~~~
at asset:///lib.dom.d.ts:5353:13
..."><pre class="notranslate"><code class="notranslate">TS2300 [ERROR]: Duplicate identifier 'Event'.
declare class Event {
~~~~~
at asset:///lib.deno.web.d.ts:21:15
'Event' was also declared here.
interface Event {
~~~~~
at asset:///lib.dom.d.ts:5285:11 and here.
declare var Event: {
~~~~~
at asset:///lib.dom.d.ts:5353:13
...
</code></pre></div>
<p dir="auto"><em>Originally posted by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/cj1128/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/cj1128">@cj1128</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="552527682" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/3726" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/3726/hovercard?comment_id=714194714&comment_type=issue_comment" href="https://github.com/denoland/deno/issues/3726#issuecomment-714194714">#3726 (comment)</a></em></p> | 1 |
<p dir="auto">If the following app is run with one Foo class definition and then "hot restarted" after a second Foo definition is added, flutter run hangs.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Foo { }
class Foo { }
void main() { print(new Foo()); }"><pre class="notranslate"><code class="notranslate">class Foo { }
class Foo { }
void main() { print(new Foo()); }
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Performing hot restart...
compiler message: lib/main.dart:61:7: Error: Duplicated definition of 'Foo'.
compiler message: class Foo { }
compiler message: ^
compiler message: lib/main.dart:60:11: Error: Duplicated name: Foo
compiler message: class Foo { }
compiler message: ^
E/flutter ( 4573): [ERROR:flutter/shell/common/engine.cc(151)] Could not prepare to run the isolate.
E/flutter ( 4573): [ERROR:flutter/shell/common/engine.cc(116)] Engine not prepare and launch isolate."><pre class="notranslate"><code class="notranslate">Performing hot restart...
compiler message: lib/main.dart:61:7: Error: Duplicated definition of 'Foo'.
compiler message: class Foo { }
compiler message: ^
compiler message: lib/main.dart:60:11: Error: Duplicated name: Foo
compiler message: class Foo { }
compiler message: ^
E/flutter ( 4573): [ERROR:flutter/shell/common/engine.cc(151)] Could not prepare to run the isolate.
E/flutter ( 4573): [ERROR:flutter/shell/common/engine.cc(116)] Engine not prepare and launch isolate.
</code></pre></div> | <p dir="auto">I am trying to scroll the <code class="notranslate">GridView</code> horizontally when screen orientation is portrait and vertically when the screen orientation is landscape. However, I noticed a very strange behavior. What I mean is that when I change device orientation the widget scrolls the way I want, however the touch input stays the same, e.g. I start the app in portrait mode and I scroll the grid from left to right. Then, I change the device orientation and I still have to scroll the grid from left to right instead of from top to bottom.</p>
<p dir="auto">Here's the code gist, if you run it you will get what I mean:</p>
<p dir="auto"><a href="https://gist.github.com/realvotum/b72e03e909e5bf0b47a5cd11e53ef67a">https://gist.github.com/realvotum/b72e03e909e5bf0b47a5cd11e53ef67a</a></p>
<p dir="auto">My observation is that when you uncomment the Appbar line, it works like a charm. Also, when you comment out the padding inside <code class="notranslate">GridView.count</code>, it also works the way I expect. If you delete <code class="notranslate">ScrollController</code>, it works too, yet I want to have <code class="notranslate">GridView</code> scroll callbacks to measure the offset.</p>
<p dir="auto">Is it a bug or am I doing something wrong? If so, how can I swap the scroll direction of the <code class="notranslate">GridView</code> based on the device orientation preserving the given padding and keep the scroll offset between orientation changes (without Appbar) ?</p>
<p dir="auto">I also noticed that <code class="notranslate">ListView.builder</code> behaves the same.</p>
<p dir="auto">Thank you in advance!</p>
<p dir="auto">Doctor summary (to see all details, run flutter doctor -v):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v0.11.3, on Mac OS X 10.14 18A391, locale pl-PL)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.1)
[✓] Connected device (1 available)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v0.11.3, on Mac OS X 10.14 18A391, locale pl-PL)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
[✓] iOS toolchain - develop for iOS devices (Xcode 10.0)
[✓] Android Studio (version 3.1)
[✓] Connected device (1 available)
</code></pre></div> | 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
[ ] 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">When binding the required attribute on an input tag, angular2 applies the required validator through the RequiredValidator directive even if the supplied expression evaluates to false.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">The validator is not added or checks the supplied expression before validation.</p>
<p dir="auto"><strong>Reproduction of the problem</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { Component } from '@angular/core';
@Component({
selector: 'demo-bug',
template: `
<input type="text" [(ngModel)]="value" [required]="isRequired" #spy>
<br>
{{spy.className}}
`
})
export class BugComponent {
value: string;
isRequired = false;
constructor() { }
}"><pre class="notranslate"><code class="notranslate">import { Component } from '@angular/core';
@Component({
selector: 'demo-bug',
template: `
<input type="text" [(ngModel)]="value" [required]="isRequired" #spy>
<br>
{{spy.className}}
`
})
export class BugComponent {
value: string;
isRequired = false;
constructor() { }
}
</code></pre></div>
<p dir="auto"><a href="http://plnkr.co/edit/os4Y1lA2P1wlbpq8ThNt" rel="nofollow">http://plnkr.co/edit/os4Y1lA2P1wlbpq8ThNt</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">ng-invalid is not applied</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto">Correct behavior</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> [all]</li>
<li><strong>Language:</strong> [all]</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[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>
I created a component nav-header which is meant to contain my </p> code. And to ensure that this is maintained across my application. When I use the <code class="notranslate"><router-outlet></router-outlet></code> it duplicates the body of my application component where called.<p dir="auto"></p>
<p dir="auto">For instance if I call the <code class="notranslate"><router-outlet></router-outlet></code> in the nav-header component, it duplicates and inserts the application component in the nav-header component.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
That it doesn't duplicate the code :-)</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
You can have a look at my application here, in particular these files:<br>
<a href="https://github.com/drpain/ThatGuy-Angie/blob/master/app/app.component.ts">Application Component</a><br>
<a href="https://github.com/drpain/ThatGuy-Angie/blob/master/app/app.module.ts">Application Modules</a><br>
<a href="https://github.com/drpain/ThatGuy-Angie/blob/master/app/nav-header.component.ts">Header Navigation Component</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
<code class="notranslate">3.19.0-65-generic #73~14.04.1-Ubuntu SMP</code> AMD64</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0-rc.5</li>
<li><strong>Browser:</strong> [Chrome Latest | Firefox Latest ]</li>
<li><strong>Language:</strong> [TypeScript 1.8.10]</li>
</ul> | 0 |
<p dir="auto">sns.pairplot(credit_data , x_vars = ['Annual Income','Current Credit Balance'],<br>
y_vars = ['Monthly Debt', 'Maximum Open Credit'], aspect = 3)</p> | <p dir="auto">Just updated to seaborn 0.11.0 and matplotlib 3.3.1.</p>
<p dir="auto">Run this code:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="iris = sns.load_dataset("iris")
sns.pairplot(data=iris, hue="species", y_vars='sepal_width');
sns.pairplot(data=iris, hue="species", y_vars='sepal_width', x_vars=['sepal_length', 'petal_length']);"><pre class="notranslate"><span class="pl-s1">iris</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"iris"</span>)
<span class="pl-s1">sns</span>.<span class="pl-en">pairplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">iris</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"species"</span>, <span class="pl-s1">y_vars</span><span class="pl-c1">=</span><span class="pl-s">'sepal_width'</span>);
<span class="pl-s1">sns</span>.<span class="pl-en">pairplot</span>(<span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">iris</span>, <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"species"</span>, <span class="pl-s1">y_vars</span><span class="pl-c1">=</span><span class="pl-s">'sepal_width'</span>, <span class="pl-s1">x_vars</span><span class="pl-c1">=</span>[<span class="pl-s">'sepal_length'</span>, <span class="pl-s">'petal_length'</span>]);</pre></div>
<p dir="auto">And saw it:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24957288/92593736-438e9000-f2aa-11ea-93ac-3fb7b2c94a68.PNG"><img src="https://user-images.githubusercontent.com/24957288/92593736-438e9000-f2aa-11ea-93ac-3fb7b2c94a68.PNG" alt="screen" style="max-width: 100%;"></a></p>
<p dir="auto">And this problem appeared in all previously created pairplots, that have parameter y_vars</p> | 1 |
<h3 dir="auto">Bug report (or feature request)</h3>
<p dir="auto"><strong>Summary</strong></p>
<p dir="auto">In <code class="notranslate">matplotlib</code>, when manually restricting <code class="notranslate">xlim</code>, <code class="notranslate">ylim</code> does not change accordingly.</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 numpy as np
import matplotlib.pyplot as plt
x = np.array([1,2,3,4,5,6,7])
y = x
fig = plt.figure()
ax = plt.axes()
ax.plot(x, y)
print('xlim: %s, ylim: %s' % (ax.get_xlim(), ax.get_ylim()))
fig = plt.figure()
ax = plt.axes()
ax.plot(x, y)
ax.set_xlim(1, 2)
print('xlim: %s, ylim: %s' % (ax.get_xlim(), ax.get_ylim()))"><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">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>,<span class="pl-c1">6</span>,<span class="pl-c1">7</span>])
<span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span>
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">axes</span>()
<span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>)
<span class="pl-en">print</span>(<span class="pl-s">'xlim: %s, ylim: %s'</span> <span class="pl-c1">%</span> (<span class="pl-s1">ax</span>.<span class="pl-en">get_xlim</span>(), <span class="pl-s1">ax</span>.<span class="pl-en">get_ylim</span>()))
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">axes</span>()
<span class="pl-s1">ax</span>.<span class="pl-en">plot</span>(<span class="pl-s1">x</span>, <span class="pl-s1">y</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">set_xlim</span>(<span class="pl-c1">1</span>, <span class="pl-c1">2</span>)
<span class="pl-en">print</span>(<span class="pl-s">'xlim: %s, ylim: %s'</span> <span class="pl-c1">%</span> (<span class="pl-s1">ax</span>.<span class="pl-en">get_xlim</span>(), <span class="pl-s1">ax</span>.<span class="pl-en">get_ylim</span>()))</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="xlim: (0.7, 7.3), ylim: (0.7, 7.3)
xlim: (1.0, 2.0), ylim: (0.7, 7.3)"><pre class="notranslate"><code class="notranslate">xlim: (0.7, 7.3), ylim: (0.7, 7.3)
xlim: (1.0, 2.0), ylim: (0.7, 7.3)
</code></pre></div>
<p dir="auto"><strong>Expected outcome</strong></p>
<p dir="auto">When I change xlim to (1, 2), I expect ylim to change accordingly (because y's value range becomes [1, 2], now that x's range shrinks), but ylim still remains (0.7, 7.3). In fact, in MATLAB xlim and ylim can coordinate with each other.</p>
<p dir="auto">MATLAB codes to reproduce this behavior:</p>
<div class="highlight highlight-source-matlab notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="x = [1,2,3,4,5,6,7];
y = x;
figure; plot(x, y); disp(ylim);
figure; plot(x, y); xlim([1, 2]); disp(ylim);"><pre class="notranslate">x <span class="pl-k">=</span> [<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">5</span>,<span class="pl-c1">6</span>,<span class="pl-c1">7</span>];
y <span class="pl-k">=</span> <span class="pl-smi">x</span>;
<span class="pl-smi">figure</span>; <span class="pl-en">plot</span>(<span class="pl-smi">x</span>, <span class="pl-smi">y</span>); <span class="pl-en">disp</span>(<span class="pl-smi">ylim</span>);
<span class="pl-smi">figure</span>; <span class="pl-en">plot</span>(<span class="pl-smi">x</span>, <span class="pl-smi">y</span>); <span class="pl-en">xlim</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>]); <span class="pl-en">disp</span>(<span class="pl-smi">ylim</span>);</pre></div>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Windows 10</li>
<li>Matplotlib version: 2.2.2</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): <code class="notranslate">module://ipykernel.pylab.backend_inline</code></li>
<li>Python version: 3.6.6</li>
<li>Jupyter version (if applicable): N/A</li>
<li>Other libraries: N/A</li>
</ul> | <p dir="auto">I filed a matplotlib bug report via GitHub: When x-axis limits are overridden via <code class="notranslate">pyplot.xlim</code>, the default y-axis limits may no longer be sensible. If limits are overridden for one axis, new limits should be calculated for the remaining axes. The image at the following URL demonstrates the problem:</p>
<p dir="auto"><a href="http://phillipmfeldman.org/Python/axis_scaling_bug.png" rel="nofollow">http://phillipmfeldman.org/Python/axis_scaling_bug.png</a></p>
<p dir="auto">Phillip</p> | 1 |
<p dir="auto">by <strong>xuxinhua1984</strong>:</p>
<pre class="notranslate">When I read pkg, I want to know the method exists since which golang version?
Like Java: Since: 1.2 Or PHP (PHP 5 >= 5.3.3)</pre> | <p dir="auto">by <strong>mimenarrator</strong>:</p>
<pre class="notranslate">The Go sort library implements quicksort, which has a worst-case runtime of
O(n^2), and not introsort, with a worst case runtime of O(n*log(n)), as,
for example, GNU's libstdc++ does. Introsort almost always uses the same
algorithm as quicksort, but when pathological cases are detected that lead
to O(n^2) runtime of quicksort (by keeping track of the recursion depth),
heapsort is used instead, since it is guaranteed O(n*log(n)), though on
average slower than quicksort. This is obviously not of the highest
priority, especially given the rarity of pathological cases for the
quicksort implementation used in Go, but they do exist, and can, for
example, but exploited in denial of service attacks.</pre> | 0 |
<p dir="auto">Defining <code class="notranslate">flask.test_client()</code> instances using <code class="notranslate">with</code> clause causes them to share context/content of <code class="notranslate">flask.g</code> variable.<br>
This wasn't the case in previous versions of flask.</p>
<h3 dir="auto">How to replicate the bug</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import flask
app = flask.Flask("app")
@app.route("/index")
def index():
if "my_special_data" in flask.g:
print("special data found")
else:
print("no special data")
flask.g.my_special_data = True
return "OK", 200
with app.test_client() as first_client, app.test_client() as second_client:
first_client.get("/index")
second_client.get("/index")"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">flask</span>
<span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">flask</span>.<span class="pl-v">Flask</span>(<span class="pl-s">"app"</span>)
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">"/index"</span>)</span>
<span class="pl-k">def</span> <span class="pl-en">index</span>():
<span class="pl-k">if</span> <span class="pl-s">"my_special_data"</span> <span class="pl-c1">in</span> <span class="pl-s1">flask</span>.<span class="pl-s1">g</span>:
<span class="pl-en">print</span>(<span class="pl-s">"special data found"</span>)
<span class="pl-k">else</span>:
<span class="pl-en">print</span>(<span class="pl-s">"no special data"</span>)
<span class="pl-s1">flask</span>.<span class="pl-s1">g</span>.<span class="pl-s1">my_special_data</span> <span class="pl-c1">=</span> <span class="pl-c1">True</span>
<span class="pl-k">return</span> <span class="pl-s">"OK"</span>, <span class="pl-c1">200</span>
<span class="pl-k">with</span> <span class="pl-s1">app</span>.<span class="pl-en">test_client</span>() <span class="pl-k">as</span> <span class="pl-s1">first_client</span>, <span class="pl-s1">app</span>.<span class="pl-en">test_client</span>() <span class="pl-k">as</span> <span class="pl-s1">second_client</span>:
<span class="pl-s1">first_client</span>.<span class="pl-en">get</span>(<span class="pl-s">"/index"</span>)
<span class="pl-s1">second_client</span>.<span class="pl-en">get</span>(<span class="pl-s">"/index"</span>)</pre></div>
<p dir="auto">In flask==2.2.x running this script prints</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="no special data
special data found"><pre class="notranslate"><code class="notranslate">no special data
special data found
</code></pre></div>
<p dir="auto">showing that second_client shares <code class="notranslate">flask.g</code> with first client.</p>
<h3 dir="auto">Expected behaviour</h3>
<p dir="auto">In flask==2.1.3 this code prints</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="no special data
no special data"><pre class="notranslate"><code class="notranslate">no special data
no special data
</code></pre></div>
<p dir="auto">Additionally in both previous and current (2.2.x) versions of flask, running test clients defined outside of with clause, that is writing</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="first_client = app.test_client()
second_client = app.test_client()
first_client.get("/index")
second_client.get("/index")"><pre class="notranslate"><span class="pl-s1">first_client</span> <span class="pl-c1">=</span> <span class="pl-s1">app</span>.<span class="pl-en">test_client</span>()
<span class="pl-s1">second_client</span> <span class="pl-c1">=</span> <span class="pl-s1">app</span>.<span class="pl-en">test_client</span>()
<span class="pl-s1">first_client</span>.<span class="pl-en">get</span>(<span class="pl-s">"/index"</span>)
<span class="pl-s1">second_client</span>.<span class="pl-en">get</span>(<span class="pl-s">"/index"</span>)</pre></div>
<p dir="auto">produces</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="no special data
no special data"><pre class="notranslate"><code class="notranslate">no special data
no special data
</code></pre></div>
<p dir="auto">Environment:</p>
<ul dir="auto">
<li>Python version: 3.8.13</li>
<li>Flask version: 2.2.2</li>
</ul>
<p dir="auto">I believe this behavior should be considered a bug, and I noticed this behavior breaking some libraries based on flask.</p> | <p dir="auto">When loading my flask module <code class="notranslate">python -m project.modules.flaskhandler.py</code> everything works nicely. Unfortunately, if I enable debug mode and <strong>use_reloader</strong>, the module is loaded, but when reloader restarts the application, it changes my sys.path.</p>
<p dir="auto">sys.path's first value changes from <strong>''</strong> to <strong>'project/modules/'</strong> which prevents absolute imports from other modules in my project.</p>
<p dir="auto">I was able to work around this problem with the following code at the top of my flaskhandler.py file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import sys
import os
# Flask reloader hack
sys.path.append(os.getcwd())"><pre class="notranslate"><code class="notranslate">import sys
import os
# Flask reloader hack
sys.path.append(os.getcwd())
</code></pre></div> | 0 |
<p dir="auto">The link from this page:<br>
<a href="https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.histogram.html" rel="nofollow">https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.histogram.html</a><br>
"Source code" leads to this page:<br>
<a href="https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy-histogram-1.py" rel="nofollow">https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy-histogram-1.py</a><br>
that is 404</p> | <p dir="auto">The (Source code, png, pdf) links on the bottom of <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.normal.html" rel="nofollow">https://docs.scipy.org/doc/numpy/reference/generated/numpy.random.normal.html</a> are pointing to missing files.</p>
<p dir="auto">I hope this is the right place to report this, if not, sorry but I looked around. :)</p> | 1 |
<p dir="auto">This prevents direct user of the generated script to re-create the graph as the newlines are incorrectly interpreted during import.</p> | <p dir="auto">This issue ties together all bugs related to the shell's dump command.</p>
<h2 dir="auto">Schema support</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Constraints using indexes during import: there needs a way to wait for indexes to become available after creating them, otherwise the import takes forever.
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> The shell could be extended with a command to achieve the above, but this functionality might be better introduced in Cypher, some discussion occurred here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34736039" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2491" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2491/hovercard?comment_id=44791266&comment_type=issue_comment" href="https://github.com/neo4j/neo4j/issues/2491#issuecomment-44791266">#2491 (comment)</a>. Edit: there actually already is the <em>schema await</em> command which can be used for that purpose.</li>
</ul>
</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Currently indexes and schema creation statements aren't properly generated, they need to be separate statements. Issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34736039" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2491" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2491/hovercard" href="https://github.com/neo4j/neo4j/issues/2491">#2491</a>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nawroth/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nawroth">@nawroth</a> raised the question whether this change will break the integrated live console in the manual here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35684692" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2576" data-hovercard-type="pull_request" data-hovercard-url="/neo4j/neo4j/pull/2576/hovercard?comment_id=46100875&comment_type=issue_comment" href="https://github.com/neo4j/neo4j/pull/2576#issuecomment-46100875">#2576 (comment)</a> So this needs to be tested.</li>
</ul>
</li>
</ul>
<h2 dir="auto">Robustness</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Newline characters need to be properly escaped (also: tab, ...). Issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35687676" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2577" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2577/hovercard" href="https://github.com/neo4j/neo4j/issues/2577">#2577</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Strings containing <em>&&</em> confuse the shell. There might be more problems if the shell attempts to parse something inside a string. Issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35724768" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2579" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2579/hovercard" href="https://github.com/neo4j/neo4j/issues/2579">#2579</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Byte arrays are exported as int arrays. Does Cypher support byte arrays? Should it? Issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="34736039" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/2491" data-hovercard-type="issue" data-hovercard-url="/neo4j/neo4j/issues/2491/hovercard" href="https://github.com/neo4j/neo4j/issues/2491">#2491</a></li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Maybe (no personal experience with large data sets): scaling to allow inserting more data than fitting a single transaction. This depends on what the goal of the <em>dump</em> command is, whether it shall be usable the same way SQL people dump DBs to SQL scripts to load them into another DB or whether dump is designed for smaller data sets (this should also be documented, so people will know what to expect from the command).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Cosmetics: there shouldn't be a BEGIN/COMMIT pair for schema creation if no schema is created</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Order of dumped statements (esp. index/constrains), discussion: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="68768895" data-permission-text="Title is private" data-url="https://github.com/neo4j/neo4j/issues/4437" data-hovercard-type="pull_request" data-hovercard-url="/neo4j/neo4j/pull/4437/hovercard" href="https://github.com/neo4j/neo4j/pull/4437">#4437</a></li>
</ul> | 1 |
<p dir="auto">Updating to 2.7 breaks a few of my forms that use <code class="notranslate">choice_list</code> with an <code class="notranslate">ObjectChoiceList</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="'choice_list' => new ObjectChoiceList($choices, 'label', array(), null, 'value'),"><pre class="notranslate"><code class="notranslate">'choice_list' => new ObjectChoiceList($choices, 'label', array(), null, 'value'),
</code></pre></div>
<p dir="auto">results in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="LogicException in Form.php line 374:
The form's view data is expected to be an instance of class Acme\Model\Choice, but is a(n) string. You can avoid this error by setting the "data_class" option to null or by adding a view transformer that transforms a(n) string to an instance of Acme\Model\Choice."><pre class="notranslate"><code class="notranslate">LogicException in Form.php line 374:
The form's view data is expected to be an instance of class Acme\Model\Choice, but is a(n) string. You can avoid this error by setting the "data_class" option to null or by adding a view transformer that transforms a(n) string to an instance of Acme\Model\Choice.
</code></pre></div>
<p dir="auto">I understand that <code class="notranslate">choice_list</code> is deprecated, so I've tried using:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" 'choices' => $choices,
'choices_as_values' => true,"><pre class="notranslate"><code class="notranslate"> 'choices' => $choices,
'choices_as_values' => true,
</code></pre></div>
<p dir="auto">as well as using a <code class="notranslate">DefaultChoiceListFactory</code> as described in <a href="https://github.com/symfony/symfony/blob/2.7/UPGRADE-2.7.md">https://github.com/symfony/symfony/blob/2.7/UPGRADE-2.7.md</a>, but I'm not really getting anywhere.</p>
<p dir="auto">Is there documentation anywhere for how to use objects as choices in 2.7?</p> | <p dir="auto">Imagine this form:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder->add('transportType', 'entity',
array(
'class' => 'MyBundle:TransportType',
'property' => 'language.name',
'expanded' => true,
'query_builder' => function (EntityRepository $er) {
return $er->createQueryBuilder('e')
->join('e.language', 'l')
->orderBy('l.name', 'DESC');
},
)
);
}
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
'data_class' => 'BLA\MyBundle\Form\Model\Shipping',
));
}"><pre class="notranslate"><span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">buildForm</span>(<span class="pl-smi"><span class="pl-smi">FormBuilderInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>, <span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>)
{
<span class="pl-s1"><span class="pl-c1">$</span>builder</span>-><span class="pl-en">add</span>(<span class="pl-s">'transportType'</span>, <span class="pl-s">'entity'</span>,
<span class="pl-en">array</span>(
<span class="pl-s">'class'</span> => <span class="pl-s">'MyBundle:TransportType'</span>,
<span class="pl-s">'property'</span> => <span class="pl-s">'language.name'</span>,
<span class="pl-s">'expanded'</span> => <span class="pl-c1">true</span>,
<span class="pl-s">'query_builder'</span> => <span class="pl-k">function</span> (<span class="pl-smi"><span class="pl-smi">EntityRepository</span></span> <span class="pl-s1"><span class="pl-c1">$</span>er</span>) {
<span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span>er</span>-><span class="pl-en">createQueryBuilder</span>(<span class="pl-s">'e'</span>)
-><span class="pl-en">join</span>(<span class="pl-s">'e.language'</span>, <span class="pl-s">'l'</span>)
-><span class="pl-en">orderBy</span>(<span class="pl-s">'l.name'</span>, <span class="pl-s">'DESC'</span>);
},
)
);
}
<span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">setDefaultOptions</span>(<span class="pl-smi"><span class="pl-smi">OptionsResolverInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>resolver</span>)
{
<span class="pl-s1"><span class="pl-c1">$</span>resolver</span>-><span class="pl-en">setDefaults</span>(<span class="pl-en">array</span>(
<span class="pl-s">'data_class'</span> => <span class="pl-s">'BLA\MyBundle\Form\Model\Shipping'</span>,
));
}</pre></div>
<p dir="auto">After upgrading to Symfony 2.7, the form throws the following exception:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="An exception has been thrown during the rendering of a template ("The form's view data is expected to be of type scalar, array or an instance of \ArrayAccess, but is an instance of class Proxies\__CG__\BLA\MyBundle\Entity\TransportType. You can avoid this error by setting the "data_class" option to "Proxies\__CG__\BLA\MyBundle\Entity\TransportType" or by adding a view transformer that transforms an instance of class Proxies\__CG__\BLA\MyBundle\Entity\TransportType to scalar, array or an instance of \ArrayAccess.") in MyBundle:Shipping:form.html.twig at line 8."><pre class="notranslate"><code class="notranslate">An exception has been thrown during the rendering of a template ("The form's view data is expected to be of type scalar, array or an instance of \ArrayAccess, but is an instance of class Proxies\__CG__\BLA\MyBundle\Entity\TransportType. You can avoid this error by setting the "data_class" option to "Proxies\__CG__\BLA\MyBundle\Entity\TransportType" or by adding a view transformer that transforms an instance of class Proxies\__CG__\BLA\MyBundle\Entity\TransportType to scalar, array or an instance of \ArrayAccess.") in MyBundle:Shipping:form.html.twig at line 8.
</code></pre></div>
<p dir="auto">Setting the <code class="notranslate">data_class</code> seems to work but I wonder why this has not been documented in the upgrade file?</p> | 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=rogeriomgatto" rel="nofollow">Rogério Meneguelli Gatto</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2903?redirect=false" rel="nofollow">SPR-2903</a></strong> and commented</p>
<p dir="auto">The standard distribution (spring-framework-2.0.1.zip) does not include API javadocs. There are no downloads in the documentation page either.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.1</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398081135" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8590" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8590/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8590">#8590</a> Spring ZIP file should include Javadoc for Spring (<em><strong>"is duplicated by"</strong></em>)</li>
</ul> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kingd9" rel="nofollow">Dane King</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5957?redirect=false" rel="nofollow">SPR-5957</a></strong> and commented</p>
<p dir="auto">When doing a redirect anything that is not org.springframework.beans.BeanUtils.isSimpleValueType silently gets left off of the redirect query string. We were using UUIDs in the query string and they left off. We had to extend queryProperties, but there was alot of logic that we needed to duplicate. There are a couple of options that I feel would be better, throwing a parameter not supported exception or a provide a better extension point, maybe making isTypeHandled protected.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.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="398102637" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/11462" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/11462/hovercard" href="https://github.com/spring-projects/spring-framework/issues/11462">#11462</a> Provide precise control over the attributes used in a redirect scenario</li>
</ul> | 0 |
<h3 dir="auto">Bug Report or Feature Request (mark with an <code class="notranslate">x</code>)</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- [x ] bug report -> please search issues before submitting
- [ ] feature request"><pre class="notranslate"><code class="notranslate">- [x ] bug report -> please search issues before submitting
- [ ] feature request
</code></pre></div>
<p dir="auto">Output from: <code class="notranslate">ng --version</code>.<br>
"@angular/compiler-cli": "4.0.2",</p>
<p dir="auto">node v7.9.0<br>
macOS ( Sierra?)</p>
<p dir="auto">Simple steps to reproduce this bug.<br>
Please include: commands run, packages added, related code changes.<br>
A link to a sample repo would help too.</p>
<p dir="auto">following the steps here <a href="https://angular.io/docs/ts/latest/cookbook/aot-compiler.html" rel="nofollow">https://angular.io/docs/ts/latest/cookbook/aot-compiler.html</a><br>
this command is run:<br>
node_modules/.bin/ngc -p tsconfig-aot.json</p>
<h3 dir="auto">The log given by the failure.</h3>
<p dir="auto">Error: Expected 'styleUrls' to be an array of strings.<br>
at assertArrayOfStrings (/Users/xxxxx/xxxxx/xxxxx/xxxxx/node_modules/@angular/compiler/bundles/compiler.umd.js:3361:19)<br>
at CompileMetadataResolver.getNonNormalizedDirectiveMetadata (/Users/xxxxx/xxxxx/xxxxx/xxxxx/node_modules/@angular/compiler/bundles/compiler.umd.js:13786:13)<br>
at CompileMetadataResolver._getEntryComponentMetadata (/Users/xxxxx/xxxxx/xxxxx/xxxxx/node_modules/@angular/compiler/bundles/compiler.umd.js:14484:45)<br>
at /Users/xxxxx/xxxxx/xxxxx/xxxxx/node_modules/@angular/compiler/bundles/compiler.umd.js:14470:48<br>
at Array.forEach (native)<br>
at CompileMetadataResolver._getEntryComponentsFromProvider (/Users/xxxxx/xxxxx/xxxxx/xxxxx/node_modules/@angular/compiler/bundles/compiler.umd.js:14469:30)<br>
at /Users/xxxxx/xxxxxx/xxxxx/frontend/node_modules/@angular/compiler/bundles/compiler.umd.js:14433:83<br>
at Array.forEach (native)<br>
at CompileMetadataResolver._getProvidersMetadata (/Users/xxxxxxx/xxxxxx/xxxxxxx/xxxxxx/node_modules/@angular/compiler/bundles/compiler.umd.js:14397:19)<br>
at /Users/xxxxxx/xxxxxxxxx/xxxxxxx/xxxxxx/node_modules/@angular/compiler/bundles/compiler.umd.js:14399:23<br>
Compilation failed</p>
<h3 dir="auto">Desired functionality.</h3>
<p dir="auto">it should work</p>
<h3 dir="auto">Mention any other details that might be useful.</h3>
<p dir="auto">I am using angular 4.0.2 and it's components</p>
<p dir="auto">I posted this here in the repo for angular-cli but I don't think it belongs there.</p>
<p dir="auto"><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="222512165" data-permission-text="Title is private" data-url="https://github.com/angular/angular-cli/issues/6002" data-hovercard-type="issue" data-hovercard-url="/angular/angular-cli/issues/6002/hovercard" href="https://github.com/angular/angular-cli/issues/6002">angular/angular-cli#6002</a></p> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")<br>
[x ] bug report => search github for a similar issue or PR before submitting<br>
[x] feature request</p>
<p dir="auto">I intentionally create a duplicate from my issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="183599206" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12357" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/12357/hovercard" href="https://github.com/angular/angular/issues/12357">#12357</a> , because that one was closed and I didn't get any answer to urgend questions.</p>
<p dir="auto">The problem is, that an input with ngControl in a custom component in a template driven form is not registered to the form.<br>
As Kara adviced, we have to implement ControlValueAccessor interface in the custom component.</p>
<p dir="auto">May be I misundeerstood the concepts, but I have arguments against Karas statement, or at least questions, which are unclear to me:</p>
<ul dir="auto">
<li>We don't talk only about a custom form control. We talk about a custom component in general, which is placed inside a form. Such a component may have nothing to do by itself with model and data, it may only perform structuring tasks or group more then one input elements for a special purpose. Why would I need a controlValueAccessor interface for such a component, if the the component itself is not dealing with data? And how could a controlValueAccessor manage more then one input element in the component?</li>
<li>I thought, the proposal was, to bring full ng1 functionality to forms, when using template driven forms and ngModel. Exiting ng1 applications do not need something like a controlValueAccessor interface - a migration seems to be more complicated as it should be in this point.</li>
</ul> | 0 |
<p dir="auto">Likely caused by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="203181477" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/20655" data-hovercard-type="pull_request" data-hovercard-url="/ansible/ansible/pull/20655/hovercard" href="https://github.com/ansible/ansible/pull/20655">#20655</a>.</p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<ul dir="auto">
<li>filesystem</li>
</ul>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.3.0
config file = /opt/ansible/ansible.cfg
configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.3.0
config file = /opt/ansible/ansible.cfg
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION (default)</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">CentOS Linux release 7.3.1611 (Core)</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">The filesystem module is used in this case to create an ext4 filesystem on a block device previously created with LVM using the 'lvg' and 'lvol' Ansible modules. When the module queries the target block device for its size, the module returns an exception instead of creating the filesystem (if the filesystem does not exist) or returning no change (if the filesystem already exists).</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<p dir="auto">Consider the following task:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- name: create {{ volumes_fstype }} filesystems on LVM logical volumes
filesystem:
fstype: "{{ volumes_fstype }}"
resizefs: yes
dev: /dev/vg{{ item.mount_point | regex_replace('/', '.') }}/lv{{ item.mount_point | regex_replace('/', '.') }}
force: "{{ force | default(omit) }}"
with_items: "{{ launch_volumes }}"
when: ( item.mount_point != '/' ) and
( item.volume_size is defined ) and
( launch_volumes is defined )"><pre class="notranslate">- <span class="pl-ent">name</span>: <span class="pl-s">create {{ volumes_fstype }} filesystems on LVM logical volumes</span>
<span class="pl-ent">filesystem</span>:
<span class="pl-ent">fstype</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ volumes_fstype }}<span class="pl-pds">"</span></span>
<span class="pl-ent">resizefs</span>: <span class="pl-s">yes</span>
<span class="pl-ent">dev</span>: <span class="pl-s">/dev/vg{{ item.mount_point | regex_replace('/', '.') }}/lv{{ item.mount_point | regex_replace('/', '.') }}</span>
<span class="pl-ent">force</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ force | default(omit) }}<span class="pl-pds">"</span></span>
<span class="pl-ent">with_items</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ launch_volumes }}<span class="pl-pds">"</span></span>
<span class="pl-ent">when</span>: <span class="pl-s">( item.mount_point != '/' ) and</span>
<span class="pl-s">( item.volume_size is defined ) and</span>
<span class="pl-s">( launch_volumes is defined )</span></pre></div>
<p dir="auto">The task receives its parameters from the <code class="notranslate">launch_volumes</code> dictionary, containing the following values:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="launch_volumes:
- mount_point: /
device_name: /dev/sda1
device_type: gp2
volume_size: 10
delete_on_termination: True
- mount_point: /localvolume
device_name: /dev/xvdh
device_type: gp2
volume_size: 100
delete_on_termination: True"><pre class="notranslate"><span class="pl-ent">launch_volumes</span>:
- <span class="pl-ent">mount_point</span>: <span class="pl-s">/</span>
<span class="pl-ent">device_name</span>: <span class="pl-s">/dev/sda1</span>
<span class="pl-ent">device_type</span>: <span class="pl-s">gp2</span>
<span class="pl-ent">volume_size</span>: <span class="pl-c1">10</span>
<span class="pl-ent">delete_on_termination</span>: <span class="pl-c1">True</span>
- <span class="pl-ent">mount_point</span>: <span class="pl-s">/localvolume</span>
<span class="pl-ent">device_name</span>: <span class="pl-s">/dev/xvdh</span>
<span class="pl-ent">device_type</span>: <span class="pl-s">gp2</span>
<span class="pl-ent">volume_size</span>: <span class="pl-c1">100</span>
<span class="pl-ent">delete_on_termination</span>: <span class="pl-c1">True</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [ec2-volumes : create ext4 filesystems on LVM logical volumes] ********************************************************************************************
task path: /opt/ansible/roles/ec2-volumes/tasks/main.yml:31
skipping: [10.233.50.122] => (item={u'volume_size': 10, u'mount_point': u'/', u'delete_on_termination': True, u'device_type': u'gp2', u'device_name': u'/dev/sda1'}) => {
"changed": false,
"item": {
"delete_on_termination": true,
"device_name": "/dev/sda1",
"device_type": "gp2",
"mount_point": "/",
"volume_size": 10
},
"skip_reason": "Conditional result was False",
"skipped": true
}
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/filesystem.py
<10.233.50.122> ESTABLISH SSH CONNECTION FOR USER: root
<10.233.50.122> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/mvaughn/.ansible/cp/
9f8854b6f2 10.233.50.122 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [10.233.50.122] => (item={u'volume_size': 100, u'mount_point': u'/localvolume', u'delete_on_termination': True, u'device_type': u'gp2', u'device_name': u'/dev/xvdh'}) => {
"changed": false,
"invocation": {
"module_args": {
"dev": "/dev/vg.localvolume/lv.localvolume",
"force": false,
"fstype": "ext4",
"opts": null,
"resizefs": true
}
},
"item": {
"delete_on_termination": true,
"device_name": "/dev/xvdh",
"device_type": "gp2",
"mount_point": "/localvolume",
"volume_size": 100
},
"msg": "ext4 filesystem is using the whole device /dev/vg.localvolume/lv.localvolume"
}"><pre class="notranslate"><code class="notranslate">TASK [ec2-volumes : create ext4 filesystems on LVM logical volumes] ********************************************************************************************
task path: /opt/ansible/roles/ec2-volumes/tasks/main.yml:31
skipping: [10.233.50.122] => (item={u'volume_size': 10, u'mount_point': u'/', u'delete_on_termination': True, u'device_type': u'gp2', u'device_name': u'/dev/sda1'}) => {
"changed": false,
"item": {
"delete_on_termination": true,
"device_name": "/dev/sda1",
"device_type": "gp2",
"mount_point": "/",
"volume_size": 10
},
"skip_reason": "Conditional result was False",
"skipped": true
}
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/filesystem.py
<10.233.50.122> ESTABLISH SSH CONNECTION FOR USER: root
<10.233.50.122> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/mvaughn/.ansible/cp/
9f8854b6f2 10.233.50.122 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
ok: [10.233.50.122] => (item={u'volume_size': 100, u'mount_point': u'/localvolume', u'delete_on_termination': True, u'device_type': u'gp2', u'device_name': u'/dev/xvdh'}) => {
"changed": false,
"invocation": {
"module_args": {
"dev": "/dev/vg.localvolume/lv.localvolume",
"force": false,
"fstype": "ext4",
"opts": null,
"resizefs": true
}
},
"item": {
"delete_on_termination": true,
"device_name": "/dev/xvdh",
"device_type": "gp2",
"mount_point": "/localvolume",
"volume_size": 100
},
"msg": "ext4 filesystem is using the whole device /dev/vg.localvolume/lv.localvolume"
}
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [ec2-volumes : create ext4 filesystems on LVM logical volumes] ********************************************************************************************
task path: /opt/ansible/roles/ec2-volumes/tasks/main.yml:31
skipping: [10.233.50.122] => (item={u'volume_size': 10, u'mount_point': u'/', u'delete_on_termination': True, u'device_type': u'gp2', u'device_name': u'/dev/sda1'}) => {
"changed": false,
"item": {
"delete_on_termination": true,
"device_name": "/dev/sda1",
"device_type": "gp2",
"mount_point": "/",
"volume_size": 10
},
"skip_reason": "Conditional result was False",
"skipped": true
}
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/filesystem.py
<10.233.50.122> ESTABLISH SSH CONNECTION FOR USER: root
<10.233.50.122> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/mvaughn/.ansible/cp/
9f8854b6f2 10.233.50.122 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
[WARNING]: Removed unexpected internal key in module return: _ansible_parsed = False
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_fL10VJ/ansible_module_filesystem.py", line 267, in <module>
main()
File "/tmp/ansible_fL10VJ/ansible_module_filesystem.py", line 219, in main
devsize_in_bytes = _get_dev_size(dev, module)
File "/tmp/ansible_fL10VJ/ansible_module_filesystem.py", line 83, in _get_dev_size
return int(devsize_in_bytes)
ValueError: invalid literal for int() with base 10: ''
failed: [10.233.50.122] (item={u'volume_size': 100, u'mount_point': u'/localvolume', u'delete_on_termination': True, u'device_type': u'gp2', u'device_name': u'/dev/xvdh'}) => {
"failed": true,
"item": {
"delete_on_termination": true,
"device_name": "/dev/xvdh",
"device_type": "gp2",
"mount_point": "/localvolume",
"volume_size": 100
},
"module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_fL10VJ/ansible_module_filesystem.py\", line 267, in <module>\n main()\n File \"/tmp/ansible_fL10VJ/ansible_module_filesystem.py\", line 219, in main\n devsize_in_bytes = _get_dev_size(dev, module)\n File \"/tmp/ansible_fL10VJ/ansib
le_module_filesystem.py\", line 83, in _get_dev_size\n return int(devsize_in_bytes)\nValueError: invalid literal for int() with base 10: ''\n",
"module_stdout": "",
"msg": "MODULE FAILURE",
"rc": 1
}"><pre class="notranslate"><code class="notranslate">TASK [ec2-volumes : create ext4 filesystems on LVM logical volumes] ********************************************************************************************
task path: /opt/ansible/roles/ec2-volumes/tasks/main.yml:31
skipping: [10.233.50.122] => (item={u'volume_size': 10, u'mount_point': u'/', u'delete_on_termination': True, u'device_type': u'gp2', u'device_name': u'/dev/sda1'}) => {
"changed": false,
"item": {
"delete_on_termination": true,
"device_name": "/dev/sda1",
"device_type": "gp2",
"mount_point": "/",
"volume_size": 10
},
"skip_reason": "Conditional result was False",
"skipped": true
}
Using module file /usr/lib/python2.7/site-packages/ansible/modules/system/filesystem.py
<10.233.50.122> ESTABLISH SSH CONNECTION FOR USER: root
<10.233.50.122> SSH: EXEC ssh -C -o ControlMaster=auto -o ControlPersist=60s -o StrictHostKeyChecking=no -o KbdInteractiveAuthentication=no -o PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey -o PasswordAuthentication=no -o User=root -o ConnectTimeout=10 -o ControlPath=/home/mvaughn/.ansible/cp/
9f8854b6f2 10.233.50.122 '/bin/sh -c '"'"'/usr/bin/python && sleep 0'"'"''
[WARNING]: Removed unexpected internal key in module return: _ansible_parsed = False
An exception occurred during task execution. The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_fL10VJ/ansible_module_filesystem.py", line 267, in <module>
main()
File "/tmp/ansible_fL10VJ/ansible_module_filesystem.py", line 219, in main
devsize_in_bytes = _get_dev_size(dev, module)
File "/tmp/ansible_fL10VJ/ansible_module_filesystem.py", line 83, in _get_dev_size
return int(devsize_in_bytes)
ValueError: invalid literal for int() with base 10: ''
failed: [10.233.50.122] (item={u'volume_size': 100, u'mount_point': u'/localvolume', u'delete_on_termination': True, u'device_type': u'gp2', u'device_name': u'/dev/xvdh'}) => {
"failed": true,
"item": {
"delete_on_termination": true,
"device_name": "/dev/xvdh",
"device_type": "gp2",
"mount_point": "/localvolume",
"volume_size": 100
},
"module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible_fL10VJ/ansible_module_filesystem.py\", line 267, in <module>\n main()\n File \"/tmp/ansible_fL10VJ/ansible_module_filesystem.py\", line 219, in main\n devsize_in_bytes = _get_dev_size(dev, module)\n File \"/tmp/ansible_fL10VJ/ansib
le_module_filesystem.py\", line 83, in _get_dev_size\n return int(devsize_in_bytes)\nValueError: invalid literal for int() with base 10: ''\n",
"module_stdout": "",
"msg": "MODULE FAILURE",
"rc": 1
}
</code></pre></div>
<p dir="auto">Observe that the value <code class="notranslate">devsize_in_bytes</code> evaluates to the empty string, '', which is invalid.</p> | <p dir="auto">That is most likely related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="202409312" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible/issues/20551" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible/issues/20551/hovercard" href="https://github.com/ansible/ansible/issues/20551">#20551</a></p>
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">filesystem</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.0
config file =
configured module search path = Default w/o overrides
"><pre class="notranslate"><code class="notranslate">ansible 2.3.0
config file =
configured module search path = Default w/o overrides
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">Default</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">filesystem module fails on CoreOS with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mke2fs 1.42.13 (17-May-2015)\nThe file [/dev/xvdf] does not exist and no size was specified.\n"><pre class="notranslate"><code class="notranslate">mke2fs 1.42.13 (17-May-2015)\nThe file [/dev/xvdf] does not exist and no size was specified.\n
</code></pre></div>
<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="- filesystem: fstype=ext4 dev=/dev/xvdf force=yes"><pre class="notranslate">- <span class="pl-ent">filesystem</span>: <span class="pl-s">fstype=ext4 dev=/dev/xvdf force=yes</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">Filesystem is created on a given block device.</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Error is thrown.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [35.157.42.174]: FAILED! => {
"changed": false,
"err": "mke2fs 1.42.13 (17-May-2015)\nThe file [/dev/xvdf] does not exist and no size was specified.\n",
"failed": true,
"invocation": {
"module_args": {
"dev": [
"/dev/xvdf"
],
"force": true,
"fstype": "ext4",
"opts": null,
"resizefs": false
}
},
"msg": "Creating filesystem ext4 on device '['/dev/xvdf']' failed",
"rc": 1
}"><pre class="notranslate"><code class="notranslate">fatal: [35.157.42.174]: FAILED! => {
"changed": false,
"err": "mke2fs 1.42.13 (17-May-2015)\nThe file [/dev/xvdf] does not exist and no size was specified.\n",
"failed": true,
"invocation": {
"module_args": {
"dev": [
"/dev/xvdf"
],
"force": true,
"fstype": "ext4",
"opts": null,
"resizefs": false
}
},
"msg": "Creating filesystem ext4 on device '['/dev/xvdf']' failed",
"rc": 1
}
</code></pre></div> | 1 |
<h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">It would be useful to have a shortcut that would cycle all applications that are currently in Fanzy Zones. That is,</p>
<ul dir="auto">
<li>the application that was in zone 1 would move to zone 2</li>
<li>2 -> 3</li>
<li>3 -> 4</li>
<li>4 -> 1</li>
</ul>
<p dir="auto">(This example applies to a 4-zone configuration)</p>
<p dir="auto">The workflow I'm imagining is, if you are multitasking with >3 applications, you could cycle which one of them appears in a larger, "priority" zone, while the rest are delegated to smaller, "standby" zones.</p> | <h1 dir="auto">Summary of the new feature/enhancement</h1>
<p dir="auto">When the user presses a HotKey, FZ should shift Windows one place left or right.<br>
In a Scenario like "Priority Grid". User can cycle and bring into the center focus one of the 3 Windows. Of course, an alternative is to Use Win+Arrow, but that leaves a spot open.</p>
<p dir="auto">Please note, I'm requesting that the Window shift from their original grid positions, not merely shifting the focus (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="492644561" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/358" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/358/hovercard" href="https://github.com/microsoft/PowerToys/issues/358">#358</a> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="489879161" data-permission-text="Title is private" data-url="https://github.com/microsoft/PowerToys/issues/175" data-hovercard-type="issue" data-hovercard-url="/microsoft/PowerToys/issues/175/hovercard" href="https://github.com/microsoft/PowerToys/issues/175">#175</a> )</p>
<p dir="auto">That said, I have not thought about how to deal with overlapping windows.</p> | 1 |
<p dir="auto">There's a playground snippet showing the issue here: <a href="http://is.gd/tYeNHE" rel="nofollow">http://is.gd/tYeNHE</a></p>
<p dir="auto">Here's the gist:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::collections;
static VERSION: &'static str = "rustc 0.13.0-dev (77cd5cc54 2014-12-07 19:02:18 +0000)";
fn main() {
let r = {
// this works fine
let d = collections::HashMap::new();
d.insert("foo", "bar");
// this doesn't
type Header = collections::HashMap<String, Vec<String>>;
let x = Header::new();
};
println!("{}", r)
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>collections<span class="pl-kos">;</span>
<span class="pl-k">static</span> <span class="pl-v">VERSION</span><span class="pl-kos">:</span> <span class="pl-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">static</span> <span class="pl-smi">str</span> = <span class="pl-s">"rustc 0.13.0-dev (77cd5cc54 2014-12-07 19:02:18 +0000)"</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> r = <span class="pl-kos">{</span>
<span class="pl-c">// this works fine</span>
<span class="pl-k">let</span> d = collections<span class="pl-kos">::</span><span class="pl-smi">HashMap</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
d<span class="pl-kos">.</span><span class="pl-en">insert</span><span class="pl-kos">(</span><span class="pl-s">"foo"</span><span class="pl-kos">,</span> <span class="pl-s">"bar"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// this doesn't</span>
<span class="pl-k">type</span> <span class="pl-smi">Header</span> = collections<span class="pl-kos">::</span><span class="pl-smi">HashMap</span><span class="pl-kos"><</span><span class="pl-smi">String</span><span class="pl-kos">,</span> <span class="pl-smi">Vec</span><span class="pl-kos"><</span><span class="pl-smi">String</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-k">let</span> x = <span class="pl-smi">Header</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, r<span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div> | <p dir="auto">Compile this:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="pub mod foo {
pub mod bar {
pub mod baz {
struct Qux;
impl Qux {
pub fn new() {}
}
}
}
}
fn main() {
type Ham = foo::bar::baz::Qux;
let Foo = foo::bar::baz::Qux::new(); // works fine
let Bar = Ham::new(); // oops!
}"><pre class="notranslate"><span class="pl-k">pub</span> <span class="pl-k">mod</span> foo <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">mod</span> bar <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">mod</span> baz <span class="pl-kos">{</span>
<span class="pl-k">struct</span> <span class="pl-smi">Qux</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">Qux</span> <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">type</span> <span class="pl-smi">Ham</span> = foo<span class="pl-kos">::</span>bar<span class="pl-kos">::</span>baz<span class="pl-kos">::</span><span class="pl-smi">Qux</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-v">Foo</span> = foo<span class="pl-kos">::</span>bar<span class="pl-kos">::</span>baz<span class="pl-kos">::</span><span class="pl-smi">Qux</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// works fine</span>
<span class="pl-k">let</span> <span class="pl-v">Bar</span> = <span class="pl-smi">Ham</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// oops!</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc ty.rs
!!! (resolving module in lexical scope) module wasn't actually a module!
ty.rs:16:14: 16:22 error: unresolved name
ty.rs:16 let Bar = Ham::new();
^~~~~~~~
ty.rs:16:14: 16:22 error: use of undeclared module `Ham`
ty.rs:16 let Bar = Ham::new();
^~~~~~~~
!!! (resolving module in lexical scope) module wasn't actually a module!
ty.rs:16:14: 16:22 error: unresolved name `Ham::new`.
ty.rs:16 let Bar = Ham::new();
^~~~~~~~
error: aborting due to 3 previous errors
task 'rustc' failed at 'explicit failure', /root/catacombs/scrap/rust/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /root/catacombs/scrap/rust/src/librustc/lib.rs:392"><pre class="notranslate"><code class="notranslate">$ rustc ty.rs
!!! (resolving module in lexical scope) module wasn't actually a module!
ty.rs:16:14: 16:22 error: unresolved name
ty.rs:16 let Bar = Ham::new();
^~~~~~~~
ty.rs:16:14: 16:22 error: use of undeclared module `Ham`
ty.rs:16 let Bar = Ham::new();
^~~~~~~~
!!! (resolving module in lexical scope) module wasn't actually a module!
ty.rs:16:14: 16:22 error: unresolved name `Ham::new`.
ty.rs:16 let Bar = Ham::new();
^~~~~~~~
error: aborting due to 3 previous errors
task 'rustc' failed at 'explicit failure', /root/catacombs/scrap/rust/src/libsyntax/diagnostic.rs:102
task '<main>' failed at 'explicit failure', /root/catacombs/scrap/rust/src/librustc/lib.rs:392
</code></pre></div>
<p dir="auto">I can't imagine that this is intentional, as it greatly limits the utility of type aliases.</p> | 1 |
<p dir="auto">Enter steps to reproduce below: 1. ... 2. ... <strong>Atom Version</strong>: 0.209.0 <strong>System</strong>: Microsoft Windows 8.1 <strong>Thrown From</strong>: Atom Core ### Stack Trace Uncaught Error: Cannot find module ./cONTEXT-menu Error: Cannot find module ./cONTEXT-menu at FUNCTION.Module._resolveFileNAME module.js:328:15 at FUNCTION.Module._load module.js:270:25 at Module.require module.js:357:17 at require module.js:376:17 at BrowserWindow. anonymous> C: Users Pat AppData Local atom app-0.209.0 resources app.asar src browser atom-window.js:152:27 at emitOne events.js:77:13 at BrowserWindow.emit events.js:166:7 at callFUNCTION C: Users Pat AppData Local atom app-0.209.0 resources atom.asar browser lib rpc-server.js:116:18 at EventEmitter. anonymous> C: Users Pat AppData Local atom app-0.209.0 resources atom.asar browser lib rpc-server.js:208:14 at emitMany events.js:108:13 At C: Users Pat AppData Local atom app-0.209.0 resources atom.asar renderer api lib remote.js:77 Error: Cannot find module ./cONTEXT-menu Error: Cannot find module ./cONTEXT-menu at FUNCTION.Module._resolveFileNAME module.js:328:15 at FUNCTION.Module._load module.js:270:25 at Module.require module.js:357:17 at require module.js:376:17 at BrowserWindow. anonymous> C: Users Pat AppData Local atom app-0.209.0 resources app.asar src browser atom-window.js:152:27 at emitOne events.js:77:13 at BrowserWindow.emit events.js:166:7 at callFUNCTION C: Users Pat AppData Local atom app-0.209.0 resources atom.asar browser lib rpc-server.js:116:18 at EventEmitter. anonymous> C: Users Pat AppData Local atom app-0.209.0 resources atom.asar browser lib rpc-server.js:208:14 at emitMany events.js:108:13 at metaToValue C: Users Pat AppData Local atom app-0.209.0 resources atom.asar renderer api lib remote.js:77:15 at BrowserWindow.RemoteMemberFUNCTION as emit C: Users Pat AppData Local atom app-0.209.0 resources atom.asar renderer api lib remote.js:111:26 at CONTEXTMenuManager.module.exports.CONTEXTMenuManager.showForEvent C: Users Pat AppData Local atom app-0.209.0 resources app.asar src cONTEXT-menu-manager.js:170:31 at HTMLDocument. anonymous> C: Users Pat AppData Local atom app-0.209.0 resources app.asar src window-event-handler.js:148:33 at HTMLDocument.handler C: Users Pat AppData Local atom app-0.209.0 resources app.asar src space-pen-extensions.js:112:34 at HTMLDocument.JQUERY.event.dispatch C: Users Pat AppData Local atom app-0.209.0 resources app.asar node_modules space-pen vendor jquery.js:4681:9 at HTMLDocument.elemData.handle C: Users Pat AppData Local atom app-0.209.0 resources app.asar node_modules space-pen vendor jquery.js:4359:46 ### Commands -2:28.6.0 paredit:OPENBracket atom-text-editor.editor.is-focused -2:28.4.0 paredit:closeBracket atom-text-editor.editor.is-focused -2:27.4.0 paredit:newLineAndIndent atom-text-editor.editor.is-focused -2:18.1.0 core:copy atom-text-editor.editor.is-focused -2:15.5.0 core:paste atom-text-editor.editor.is-focused -2:06.7.0 core:backspace atom-text-editor.editor.is-focused 7x -2:03.8.0 core:move-up atom-text-editor.editor.is-focused 3x -2:01.4.0 core:move-left atom-text-editor.editor.is-focused -2:00.4.0 core:move-right atom-text-editor.editor.is-focused 5x -2:00.3.0 core:move-down atom-text-editor.editor.is-focused -1:59.3.0 core:move-right atom-text-editor.editor.is-focused -1:59.2.0 core:move-down atom-text-editor.editor.is-focused 32x -1:58.4.0 core:move-right atom-text-editor.editor.is-focused -1:52.9.0 core:save atom-text-editor.editor.is-focused.autocomplete-active -0:10.2.0 core:move-up atom-text-editor.editor.is-focused -0:09.6.0 core:move-down atom-text-editor.editor.is-focused ### Config json { core : { disabledPackages : language-ruby-on-rails , language-ruby , language-c , language-coffee-script , language-csharp , language-go , language-less , language-make , language-objective-c , language-perl , language-php , language-sass , language-toml , language-mustache , paredit , themes : atom-dark-ui , atom-dark-syntax , autoHideMenuBar : true }, editor : { invisibles : {}, completions : console.log , showIndentGuide : true, scrollPastEnd : true, autoIndentOnPaste : false, fontSize : 13 } } ### Installed Packages coffee # User atom-paredit, v0.1.0 remember-session, v0.5.1 # Dev No dev packages</p> | <p dir="auto">I right-clicked on a folder in the tree view</p>
<p dir="auto"><strong>Atom Version</strong>: 0.194.0<br>
<strong>System</strong>: Windows 7 Entreprise<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: Cannot find module './context-menu'<br>
Error: Cannot find module './context-menu'<br>
at Function.Module._resolveFilename (module.js:328:15)<br>
at Function.Module._load (module.js:270:25)<br>
at Module.require (module.js:357:17)<br>
at require (module.js:376:17)<br>
at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br>
at emitOne (events.js:77:13)<br>
at BrowserWindow.emit (events.js:166:7)<br>
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br>
at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br>
at emitMany (events.js:108:13)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
"><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77
Error: Cannot find module './context-menu'
Error: Cannot find module './context-menu'
at Function.Module._resolveFilename (module.js:328:15)
at Function.Module._load (module.js:270:25)
at Module.require (module.js:357:17)
at require (module.js:376:17)
at BrowserWindow.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)
at emitOne (events.js:77:13)
at BrowserWindow.emit (events.js:166:7)
at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)
at EventEmitter.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)
at emitMany (events.js:108:13)
at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15)
at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26)
at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31)
at HTMLDocument.<anonymous> (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33)
at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34)
at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9)
at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46)
</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
-3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:38.2.0 core:cut (atom-text-editor.editor)
-2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
-2:26.6.0 core:save (atom-text-editor.editor.is-focused)
-2:20.6.0 core:move-down (atom-text-editor.editor)
-2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
-2:15.8.0 core:save (atom-text-editor.editor)
-2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
-2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:59.7.0 core:save (atom-text-editor.editor.is-focused)
-1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:51.6.0 core:save (atom-text-editor.editor.is-focused)
-1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused)
2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor)
-3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
-2:47.4.0 editor:newline (atom-text-editor.editor.is-focused)
-2:38.2.0 core:cut (atom-text-editor.editor)
-2:36.5.0 core:paste (atom-text-editor.editor.is-focused)
-2:26.6.0 core:save (atom-text-editor.editor.is-focused)
-2:20.6.0 core:move-down (atom-text-editor.editor)
-2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor)
-2:15.8.0 core:save (atom-text-editor.editor)
-2:08.7.0 core:copy (atom-text-editor.editor.is-focused)
-2:01.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:59.7.0 core:save (atom-text-editor.editor.is-focused)
-1:52.2.0 core:paste (atom-text-editor.editor.is-focused)
-1:51.6.0 core:save (atom-text-editor.editor.is-focused)
-1:30.6.0 core:backspace (atom-text-editor.editor)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"core": {
"ignoredNames": [
"node_modules"
],
"themes": [
"atom-dark-ui",
"seti-syntax"
],
"disabledPackages": [
"Tern"
],
"projectHome": "Y:\\app-tfoumax"
},
"editor": {
"invisibles": {},
"softWrap": true,
"showIndentGuide": true
}
}"><pre class="notranslate">{
<span class="pl-ent">"core"</span>: {
<span class="pl-ent">"ignoredNames"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"themes"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"disabledPackages"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"editor"</span>: {
<span class="pl-ent">"invisibles"</span>: {},
<span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span>
}
}</pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
autocomplete-plus, v2.12.0
autocomplete-snippets, v1.2.0
javascript-snippets, v1.0.0
jshint, v1.3.5
language-ejs, v0.1.0
linter, v0.12.1
pretty-json, v0.3.3
save-session, v0.14.0
Search, v0.4.0
seti-syntax, v0.4.0
# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span>
autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span>
language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span>
pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span>
Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span>
<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div> | 1 |
<p dir="auto">Currently, we don't allow in-place operations on views if there are any other live Variables sharing the same data. We should allow in-place operations and compute the gradient correctly. There are a few changes necessary to support this.</p>
<p dir="auto">Viewing operations include <code class="notranslate">view</code>, <code class="notranslate">narrow</code>, <code class="notranslate">select</code>, <code class="notranslate">expand</code>, <code class="notranslate">[un]squeeze</code>, and <code class="notranslate">unfold</code>. By "a view" I mean a Variable that is a view on another Variable.</p>
<ol dir="auto">
<li>Add a field "base" to Variable. Every view has a pointer to a single base Variable. (The base is never a view)</li>
<li>In-place operations on views change the <code class="notranslate">grad_fn</code> of the base, not of the view.</li>
<li>The <code class="notranslate">grad_fn</code> on a view may become stale. So views also store an <code class="notranslate">expected_version</code></li>
</ol>
<h3 dir="auto">In-place operations on views</h3>
<p dir="auto">Every in-place operation on a view inserts three <code class="notranslate">Functions</code> to <code class="notranslate">base.grad_fn</code>. For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="x = base[2]
x.mul_(y)"><pre class="notranslate"><code class="notranslate">x = base[2]
x.mul_(y)
</code></pre></div>
<p dir="auto">becomes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Stride(MulBackward(Unstride(<old base.grad_fn>), <y.grad_fn>))"><pre class="notranslate"><code class="notranslate">Stride(MulBackward(Unstride(<old base.grad_fn>), <y.grad_fn>))
</code></pre></div>
<p dir="auto">Assume, for now, that <code class="notranslate">base</code> is contiguous. The Stride op takes the <code class="notranslate">grad_output</code>, makes it contiguous, and applies the <code class="notranslate">stride</code>, <code class="notranslate">sizes</code>, and <code class="notranslate">storageOffset</code> of the view (<code class="notranslate">x</code>). This performs the identical viewing operation on <code class="notranslate">grad_output</code> that was performed on <code class="notranslate">base</code> to get <code class="notranslate">x</code>. For the above example, this is equivalent to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="grad_input = grad_output[2]"><pre class="notranslate"><code class="notranslate">grad_input = grad_output[2]
</code></pre></div>
<p dir="auto">Unstride performs the reverse operation. It creates a <code class="notranslate">grad_input</code> with the same shape as <code class="notranslate">base</code>, applies the striding of the view <code class="notranslate">x</code> to <code class="notranslate">grad_input</code>, and copies <code class="notranslate">grad_output</code> into that view. For the above example, this is equivalent to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="grad_input = zeros_like(base)
grad_input[2] = grad_output"><pre class="notranslate"><code class="notranslate">grad_input = zeros_like(base)
grad_input[2] = grad_output
</code></pre></div>
<p dir="auto"><code class="notranslate">Stride</code> and <code class="notranslate">Unstride</code> are both implemented in terms of a differentiable restride operation that generalizes all of our viewing operations:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Tensor restride(Tensor self, IntList sizes, IntList strides, int offset);"><pre class="notranslate"><code class="notranslate">Tensor restride(Tensor self, IntList sizes, IntList strides, int offset);
</code></pre></div>
<h3 dir="auto">Stale grad_fn on views</h3>
<p dir="auto">An in-place operation on a view makes the <code class="notranslate">grad_fn</code> of all other views stale. The <code class="notranslate">compute_next_functions</code> needs to be updated to handle views: it should re-create the <code class="notranslate">Function</code> for a view if it's stale before returning it.</p>
<h3 dir="auto">Non-contiguous base Variables</h3>
<p dir="auto">If base is not contiguous, then we also need the strides/sizes of the base in <code class="notranslate">restride</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Tensor restride(Tensor self, IntList sizes, IntList strides, IntList base_sizes, IntList base_strides, int offset) {
Tensor copy = self.type().tensor(base_sizes, base_strides);
copy.copy_(self);
return restride(copy, sizes, strides, offset);
}"><pre class="notranslate"><code class="notranslate">Tensor restride(Tensor self, IntList sizes, IntList strides, IntList base_sizes, IntList base_strides, int offset) {
Tensor copy = self.type().tensor(base_sizes, base_strides);
copy.copy_(self);
return restride(copy, sizes, strides, offset);
}
</code></pre></div> | <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">Torch fails to build (even with <code class="notranslate">BUILD_TEST=0</code>) on <code class="notranslate">/opt/pytorch/torch/csrc/Dtype.cpp</code>; looks like another instance of warning converted to errors:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
�[0mFirst, rewinding head to replay your work on top of it...
Fast-forwarded HEAD to 733fc908874c71a5285043931a1cf80aa923165c.
Building wheel torch-1.0.0a0+1bafa62
running install
setup.py::run()
running build_deps
�[91m+ SYNC_COMMAND=cp
�[0m�[91m++ command -v rsync
�[0m�[91m+ '[' -x /usr/bin/rsync ']'
�[0m�[91m+ SYNC_COMMAND='rsync -lptgoD'
+ CMAKE_COMMAND=cmake
�[0m�[91m++ command -v cmake3
�[0m�[91m+ [[ -x '' ]]
�[0m�[91m+ USE_CUDA=0
+ USE_FBGEMM=0
�[0m�[91m+ USE_ROCM=0
�[0m�[91m+ USE_NNPACK=0
+ USE_MKLDNN=0
+ USE_QNNPACK=0
�[0m�[91m+ USE_GLOO_IBVERBS=0
+ CAFFE2_STATIC_LINK_CUDA=0
+ RERUN_CMAKE=1
�[0m�[91m+ [[ 4 -gt 0 ]]
+ case "$1" in
+ USE_NNPACK=1
+ shift
+ [[ 3 -gt 0 ]]
+ case "$1" in
�[0m�[91m+ USE_MKLDNN=1
+ shift
+ [[ 2 -gt 0 ]]
+ case "$1" in
�[0m�[91m+ USE_QNNPACK=1
+ shift
+ [[ 1 -gt 0 ]]
+ case "$1" in
�[0m�[91m+ break
�[0m�[91m+ CMAKE_INSTALL='make install'
�[0m�[91m+ BUILD_SHARED_LIBS=ON
�[0m�[91m+ USER_CFLAGS=
+ USER_LDFLAGS=
�[0m�[91m+ [[ -n '' ]]
+ [[ -n '' ]]
�[0m�[91m+ [[ -n '' ]]
�[0m�[91m++ uname
�[0m�[91m+ '[' Linux == Darwin ']'
�[0m�[91m+++ dirname ../tools/build_pytorch_libs.sh
�[0m�[91m++ cd ../tools/..
�[0m�[91m+++ pwd
�[0m�[91m++ printf '%q\n' /opt/pytorch
�[0m�[91m+ BASE_DIR=/opt/pytorch
�[0m�[91m+ TORCH_LIB_DIR=/opt/pytorch/torch/lib
+ INSTALL_DIR=/opt/pytorch/torch/lib/tmp_install
+ THIRD_PARTY_DIR=/opt/pytorch/third_party
+ C_FLAGS=
�[0m�[91m+ C_FLAGS=' -DOMPI_SKIP_MPICXX=1'
+ LDFLAGS=
�[0m�[91m+ LD_POSTFIX=.so
�[0m�[91m++ uname
�[0m�[91m+ [[ Linux == \D\a\r\w\i\n ]]
+ [[ 0 -eq 1 ]]
�[0m�[91m+ LDFLAGS=' -Wl,-rpath,$ORIGIN'
�[0m�[91m+ CPP_FLAGS=' -std=c++11 '
+ THD_FLAGS=
+ [[ 0 -eq 1 ]]
�[0m�[91m+ CUDA_NVCC_FLAGS=' -DOMPI_SKIP_MPICXX=1'
�[0m�[91m+ [[ -z '' ]]
+ CUDA_DEVICE_DEBUG=0
�[0m�[91m+ '[' -z '' ']'
�[0m�[91m++ getconf _NPROCESSORS_ONLN
�[0m�[91m+ MAX_JOBS=8
�[0m�[91m+ BUILD_TYPE=Release
�[0m�[91m+ [[ -n '' ]]
+ [[ -n '' ]]
�[0mBuilding in Release mode
�[91m+ echo 'Building in Release mode'
�[0m�[91m+ mkdir -p /opt/pytorch/torch/lib/tmp_install
�[0m�[91m+ for arg in "$@"
�[0m�[91m+ [[ caffe2 == \c\a\f\f\e\2 ]]
+ build_caffe2
�[0m�[91m+ [[ -z '' ]]
�[0m�[91m+ EXTRA_CAFFE2_CMAKE_FLAGS=()
+ [[ -n '' ]]
+ [[ -n /opt/conda/lib/python3.6/site-packages ]]
�[0m�[91m+ EXTRA_CAFFE2_CMAKE_FLAGS+=("-DCMAKE_PREFIX_PATH=$CMAKE_PREFIX_PATH")
+ [[ 1 -eq 1 ]]
�[0m�[91m+ cmake /opt/pytorch -DPYTHON_EXECUTABLE=/opt/conda/bin/python -DPYTHON_LIBRARY=/opt/conda/lib/libpython3.6m.so.1.0 -DPYTHON_INCLUDE_DIR=/opt/conda/include/python3.6m -DBUILDING_WITH_TORCH_LIBS=ON -DTORCH_BUILD_VERSION=1.0.0a0+1bafa62 -DCMAKE_BUILD_TYPE=Release -DBUILD_TORCH=ON -DBUILD_PYTHON=ON -DBUILD_SHARED_LIBS=ON -DBUILD_BINARY=OFF -DBUILD_TEST=OFF -DINSTALL_TEST=OFF -DBUILD_CAFFE2_OPS=ON -DONNX_NAMESPACE=onnx_torch -DUSE_CUDA=0 -DUSE_DISTRIBUTED=ON -DUSE_FBGEMM=0 -DUSE_NUMPY= -DNUMPY_INCLUDE_DIR=/opt/conda/lib/python3.6/site-packages/numpy-1.16.0.dev0+2668b31-py3.6-linux-x86_64.egg/numpy/core/include -DCAFFE2_STATIC_LINK_CUDA=0 -DUSE_ROCM=0 -DUSE_NNPACK=1 -DUSE_LEVELDB=OFF -DUSE_LMDB=OFF -DUSE_OPENCV=OFF -DUSE_QNNPACK=1 -DUSE_FFMPEG=OFF -DUSE_GLOG=OFF -DUSE_GFLAGS=OFF -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DCUDNN_INCLUDE_DIR= -DCUDNN_LIB_DIR= -DCUDNN_LIBRARY= -DUSE_MKLDNN=1 -DNCCL_EXTERNAL=0 -DCMAKE_INSTALL_PREFIX=/opt/pytorch/torch/lib/tmp_install -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= '-DCMAKE_EXE_LINKER_FLAGS= -Wl,-rpath,$ORIGIN ' '-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-rpath,$ORIGIN ' -DTHD_SO_VERSION=1 -DCMAKE_PREFIX_PATH=/opt/conda/lib/python3.6/site-packages
�[0m-- The CXX compiler identification is GNU 8.2.0
-- The C compiler identification is GNU 8.2.0
-- Check for working CXX compiler: /usr/local/bin/c++
-- Check for working CXX compiler: /usr/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/local/bin/gcc
-- Check for working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Not forcing any particular BLAS to be found
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Success
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Success
-- NUMA is available
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Turning off deprecation warning due to glog.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Success
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512F_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512F_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:/opt/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- The BLAS backend of choice:MKL
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Checking for [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
-- Library mkl_intel_lp64: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so
-- Library mkl_gnu_thread: /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so
-- Library mkl_core: /opt/intel/mkl/lib/intel64/libmkl_core.so
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Library gomp: -fopenmp
-- Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so
-- Library m: /usr/lib/x86_64-linux-gnu/libm.so
-- Library dl: /usr/lib/x86_64-linux-gnu/libdl.so
-- Looking for cblas_sgemm
-- Looking for cblas_sgemm - found
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/gcc
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- Brace yourself, we are building NNPACK
-- Found PythonInterp: /opt/conda/bin/python (found version "3.6.5")
-- Found Numa: /usr/include
-- Found Numa (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnuma.so)
-- Using third party subdirectory Eigen.
�[91mPython 3.6.5 :: Anaconda, Inc.
�[0m-- Found PythonInterp: /opt/conda/bin/python (found suitable version "3.6.5", minimum required is "2.7")
-- Found PythonLibs: /opt/conda/lib/libpython3.6m.so.1.0 (found suitable version "3.6.5", minimum required is "2.7")
�[91mCMake Warning at cmake/Dependencies.cmake:583 (find_package):
Could not find a package configuration file provided by "pybind11" with any
of the following names:
pybind11Config.cmake
pybind11-config.cmake
Add the installation prefix of "pybind11" to CMAKE_PREFIX_PATH or set
"pybind11_DIR" to a directory containing one of the above files. If
"pybind11" provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
�[0m-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-- MPI support found
-- MPI compile flags:
-- MPI include path: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include/usr/lib/x86_64-linux-gnu/openmpi/include
-- MPI LINK flags path:
-- MPI libraries: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
�[91mCMake Warning at cmake/Dependencies.cmake:618 (message):
OpenMPI found, but it is not built with CUDA support.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
�[0m-- Adding -fopenmp
�[91mCMake Warning at cmake/Dependencies.cmake:769 (message):
Not using CUDA, so disabling NCCL. Suppress this warning with
-DUSE_NCCL=OFF.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
�[0m-- MPI include path: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include/usr/lib/x86_64-linux-gnu/openmpi/include
-- MPI libraries: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
�[91mCMake Warning at cmake/Dependencies.cmake:847 (message):
mobile opengl is only used in android or ios builds.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
CMake Warning at cmake/Dependencies.cmake:923 (message):
Metal is only used in ios builds.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
�[0m--
-- ******** Summary ********
-- CMake version : 3.7.2
-- CMake command : /usr/bin/cmake
-- System : Linux
-- C++ compiler : /usr/local/bin/c++
-- C++ compiler version : 8.2.0
-- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -fopenmp
-- Build type : Release
-- Compile definitions : TH_BLAS_MKL
-- CMAKE_PREFIX_PATH : /opt/conda/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /opt/pytorch/torch/lib/tmp_install
-- CMAKE_MODULE_PATH : /opt/pytorch/cmake/Modules
--
-- ONNX version : 1.3.0
-- ONNX NAMESPACE : onnx_torch
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_USE_LITE_PROTO : OFF
-- ONNXIFI_DUMMY_BACKEND : OFF
--
-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
-- Found gcc >=5 and CUDA <= 7.5, adding workaround C++ flags
-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- Compiling with OpenMP support
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking for cpuid.h
-- Looking for cpuid.h - found
-- Performing Test HAVE_GCC_GET_CPUID
-- Performing Test HAVE_GCC_GET_CPUID - Success
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Success
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Failed
-- Performing Test C_HAS_AVX_2
-- Performing Test C_HAS_AVX_2 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Success
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Failed
-- Performing Test CXX_HAS_AVX_2
-- Performing Test CXX_HAS_AVX_2 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Success
-- AVX compiler support found
-- AVX2 compiler support found
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Success
-- Atomics: using C11 intrinsics
-- Performing Test BLAS_F2C_DOUBLE_WORKS
-- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed
-- Performing Test BLAS_F2C_FLOAT_WORKS
-- Performing Test BLAS_F2C_FLOAT_WORKS - Success
-- Performing Test BLAS_USE_CBLAS_DOT
-- Performing Test BLAS_USE_CBLAS_DOT - Success
-- Found a library with BLAS API (mkl).
-- Found a library with LAPACK API. (mkl)
�[91mdisabling CUDA because NOT USE_CUDA is set
�[0m�[91mdisabling ROCM because NOT USE_ROCM is set
�[0m-- CuDNN not found. Compiling without CuDNN support
-- MIOpen not found. Compiling without MIOpen support
-- Found MKLDNN: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so;/opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so;/opt/intel/mkl/lib/intel64/libmkl_core.so;-fopenmp;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libm.so;/usr/lib/x86_64-linux-gnu/libdl.so
-- Detecting Intel(R) MKL: trying mklml_intel
-- Detecting Intel(R) MKL: trying mklml_gnu
-- Detecting Intel(R) MKL: trying mklml
-- Detecting Intel(R) MKL: trying mkl_rt
-- Intel(R) MKL: include /opt/intel/compilers_and_libraries/linux/mkl/include
-- Intel(R) MKL: lib /usr/local/lib64/libmkl_rt.so
-- OpenMP lib: -fopenmp
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13")
-- VTune profiling environment is unset
-- Looking for clock_gettime in rt
-- Looking for clock_gettime in rt - found
-- Looking for mmap
-- Looking for mmap - found
-- Looking for shm_open
-- Looking for shm_open - found
-- Looking for shm_unlink
-- Looking for shm_unlink - found
-- Looking for malloc_usable_size
-- Looking for malloc_usable_size - found
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- GCC 8.2.0: Adding gcc and gcc_s libs to link line
-- Using python found in /opt/conda/bin/python
�[91mdisabling CUDA because USE_CUDA is set false
�[0m-- Check size of long double
-- Check size of long double - done
-- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE
-- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE - Success
-- Performing Test COMPILER_SUPPORTS_FLOAT128
-- Performing Test COMPILER_SUPPORTS_FLOAT128 - Success
-- Performing Test COMPILER_SUPPORTS_SSE2
-- Performing Test COMPILER_SUPPORTS_SSE2 - Success
-- Performing Test COMPILER_SUPPORTS_SSE4
-- Performing Test COMPILER_SUPPORTS_SSE4 - Success
-- Performing Test COMPILER_SUPPORTS_AVX
-- Performing Test COMPILER_SUPPORTS_AVX - Success
-- Performing Test COMPILER_SUPPORTS_FMA4
-- Performing Test COMPILER_SUPPORTS_FMA4 - Success
-- Performing Test COMPILER_SUPPORTS_AVX2
-- Performing Test COMPILER_SUPPORTS_AVX2 - Success
-- Performing Test COMPILER_SUPPORTS_SVE
-- Performing Test COMPILER_SUPPORTS_SVE - Failed
-- Performing Test COMPILER_SUPPORTS_AVX512F
-- Performing Test COMPILER_SUPPORTS_AVX512F - Success
-- Performing Test COMPILER_SUPPORTS_OPENMP
-- Performing Test COMPILER_SUPPORTS_OPENMP - Success
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES - Success
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH - Success
-- Configuring build for SLEEF-v3.2
�[91m Target system: Linux-4.4.0-116-generic
�[0m�[91m Target processor: x86_64
Host system: Linux-4.4.0-116-generic
Host processor: x86_64
Detected C compiler: GNU @ /usr/local/bin/gcc�[0m�[91m
�[0m-- Using option `-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math` to compile libsleef
-- Building shared libs : OFF
-- MPFR : /usr/lib/x86_64-linux-gnu/libmpfr.so
-- MPFR header file in /usr/include
-- GMP : /usr/lib/x86_64-linux-gnu/libgmp.so
-- RUNNING_ON_TRAVIS : 0
-- COMPILER_SUPPORTS_OPENMP : 1
-- Using python found in /opt/conda/bin/python
-- /usr/local/bin/c++ /opt/pytorch/torch/abi-check.cpp -o /opt/pytorch/build/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI=1
-- Performing Test HAS_THREAD_LOCAL
-- Performing Test HAS_THREAD_LOCAL - Success
-- ignoring CUDA
-- MPI_LIBRARIES: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-- Building C10D without CUDA support
-- MPI_INCLUDE_PATH: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi;/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent;/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include;/usr/lib/x86_64-linux-gnu/openmpi/include
-- MPI_LIBRARIES: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-- MPIEXEC: /usr/bin/mpiexec
-- NCCL operators skipped due to no CUDA support
-- Including IDEEP operators
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- Include Observer library
-- Using lib/python3.6/site-packages as python relative installation path
-- Automatically generating missing __init__.py files.
�[91mCMake Warning at CMakeLists.txt:389 (message):
Generated cmake files are only fully tested if one builds with system glog,
gflags, and protobuf. Other settings may generate files that are not well
tested.
�[0m--
-- ******** Summary ********
-- General:
-- CMake version : 3.7.2
-- CMake command : /usr/bin/cmake
-- System : Linux
-- C++ compiler : /usr/local/bin/c++
-- C++ compiler version : 8.2.0
-- BLAS : MKL
-- CXX flags : -Wno-deprecated -fvisibility-inlines-hidden -fopenmp -D_FORCE_INLINES -D_MWAITXINTRIN_H_INCLUDED -D__STRICT_ANSI__ -fopenmp -O2 -fPIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error=deprecated-declarations -Wno-stringop-overflow -Wno-error=pedantic -Wno-error=redundant-decls -Wno-error=old-style-cast -faligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-stringop-overflow
-- Build type : Release
-- Compile definitions : TH_BLAS_MKL;ONNX_NAMESPACE=onnx_torch;USE_C11_ATOMICS=1;HAVE_MMAP=1;_FILE_OFFSET_BITS=64;HAVE_SHM_OPEN=1;HAVE_SHM_UNLINK=1;HAVE_MALLOC_USABLE_SIZE=1
-- CMAKE_PREFIX_PATH : /opt/conda/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX : /opt/pytorch/torch/lib/tmp_install
--
-- TORCH_VERSION : 1.0.0
-- CAFFE2_VERSION : 1.0.0
-- BUILD_ATEN_MOBILE : OFF
-- BUILD_ATEN_ONLY : OFF
-- BUILD_BINARY : OFF
-- BUILD_CUSTOM_PROTOBUF : ON
-- Link local protobuf : ON
-- BUILD_DOCS : OFF
-- BUILD_PYTHON : ON
-- Python version : 3.6.5
-- Python executable : /opt/conda/bin/python
-- Pythonlibs version : 3.6.5
-- Python library : /opt/conda/lib/libpython3.6m.so.1.0
-- Python includes : /opt/conda/include/python3.6m
-- Python site-packages: lib/python3.6/site-packages
-- BUILD_CAFFE2_OPS : ON
-- BUILD_SHARED_LIBS : ON
-- BUILD_TEST : OFF
-- USE_ASAN : OFF
-- USE_CUDA : 0
-- USE_ROCM : OFF
-- USE_EIGEN_FOR_BLAS :
-- USE_FBGEMM : 0
-- USE_FFMPEG : OFF
-- USE_GFLAGS : OFF
-- USE_GLOG : OFF
-- USE_LEVELDB : OFF
-- USE_LITE_PROTO : OFF
-- USE_LMDB : OFF
-- USE_METAL : OFF
-- USE_MKL : ON
-- USE_MKLDNN : ON
-- USE_MOBILE_OPENGL : OFF
-- USE_NCCL : OFF
-- USE_NNPACK : 1
-- USE_NUMPY : ON
-- USE_OBSERVERS : ON
-- USE_OPENCL : OFF
-- USE_OPENCV : OFF
-- USE_OPENMP : ON
-- USE_PROF : OFF
-- USE_QNNPACK : 1
-- USE_REDIS : OFF
-- USE_ROCKSDB : OFF
-- USE_ZMQ : OFF
-- USE_DISTRIBUTED : ON
-- USE_MPI : ON
-- USE_GLOO : ON
-- USE_GLOO_IBVERBS : OFF
-- Public Dependencies : Threads::Threads;caffe2::mkl;caffe2::mkldnn
-- Private Dependencies : qnnpack;nnpack;cpuinfo;/usr/lib/x86_64-linux-gnu/libnuma.so;fp16;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so;/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so;gloo;aten_op_header_gen;onnxifi_loader;rt;gcc_s;gcc;dl
-- Configuring done
-- Generating done
�[91mCMake Warning:
Manually-specified variables were not used by the project:
CUDNN_INCLUDE_DIR
CUDNN_LIBRARY
CUDNN_LIB_DIR
THD_SO_VERSION
�[0m-- Build files have been written to: /opt/pytorch/build
�[91m+ make install -j8
�[0mScanning dependencies of target pthreadpool
Scanning dependencies of target clog
Scanning dependencies of target js_embed
Scanning dependencies of target onnxifi_dummy
Scanning dependencies of target onnxifi_loader
[ 0%] Building C object third_party/onnx/CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o
[ 0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/threadpool-pthreads.c.o
[ 1%] Building C object confu-deps/clog/CMakeFiles/clog.dir/src/clog.c.o
[ 1%] Building C object third_party/onnx/CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/js_embed.dir/__/src/google/protobuf/compiler/js/embed.cc.o
Scanning dependencies of target libprotobuf-lite
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arena.cc.o
Scanning dependencies of target libprotobuf
[ 1%] Linking C static library ../../lib/libclog.a
Scanning dependencies of target gloo
[ 1%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/algorithm.cc.o
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arena.cc.o
[ 1%] Linking C static library ../../lib/libonnxifi_loader.a
[ 1%] Built target clog
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arenastring.cc.o
[ 1%] Built target onnxifi_loader
[ 2%] Linking C shared library ../../lib/libonnxifi_dummy.so
[ 2%] Linking C static library ../../lib/libpthreadpool.a
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/extension_set.cc.o
[ 2%] Built target pthreadpool
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.o
[ 2%] Built target onnxifi_dummy
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_util.cc.o
[ 2%] Linking CXX executable ../../../bin/js_embed
[ 2%] Built target js_embed
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arenastring.cc.o
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set.cc.o
[ 2%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allgather.cc.o
[ 2%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce.cc.o
[ 2%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/coded_stream.cc.o
Scanning dependencies of target mkldnn
[ 2%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/batch_normalization.cpp.o
[ 2%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/broadcast.cc.o
Scanning dependencies of target c10
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/Device.cpp.o
Scanning dependencies of target python_copy_files
Scanning dependencies of target ATEN_CPU_FILES_GEN_TARGET
[ 3%] Generating ../aten/src/ATen/CPUByteType.cpp, ../aten/src/ATen/CPUByteType.h, ../aten/src/ATen/CPUCharType.cpp, ../aten/src/ATen/CPUCharType.h, ../aten/src/ATen/CPUCopy.cpp, ../aten/src/ATen/CPUDoubleType.cpp, ../aten/src/ATen/CPUDoubleType.h, ../aten/src/ATen/CPUFloatType.cpp, ../aten/src/ATen/CPUFloatType.h, ../aten/src/ATen/CPUGenerator.h, ../aten/src/ATen/CPUHalfType.cpp, ../aten/src/ATen/CPUHalfType.h, ../aten/src/ATen/CPUIntType.cpp, ../aten/src/ATen/CPUIntType.h, ../aten/src/ATen/CPULongType.cpp, ../aten/src/ATen/CPULongType.h, ../aten/src/ATen/CPUShortType.cpp, ../aten/src/ATen/CPUShortType.h, ../aten/src/ATen/Declarations.yaml, ../aten/src/ATen/Functions.h, ../aten/src/ATen/NativeFunctions.h, ../aten/src/ATen/RegisterCPU.cpp, ../aten/src/ATen/RegisterCPU.h, ../aten/src/ATen/SparseCPUByteType.cpp, ../aten/src/ATen/SparseCPUByteType.h, ../aten/src/ATen/SparseCPUCharType.cpp, ../aten/src/ATen/SparseCPUCharType.h, ../aten/src/ATen/SparseCPUDoubleType.cpp, ../aten/src/ATen/SparseCPUDoubleType.h, ../aten/src/ATen/SparseCPUFloatType.cpp, ../aten/src/ATen/SparseCPUFloatType.h, ../aten/src/ATen/SparseCPUIntType.cpp, ../aten/src/ATen/SparseCPUIntType.h, ../aten/src/ATen/SparseCPULongType.cpp, ../aten/src/ATen/SparseCPULongType.h, ../aten/src/ATen/SparseCPUShortType.cpp, ../aten/src/ATen/SparseCPUShortType.h, ../aten/src/ATen/TypeDefault.cpp, ../aten/src/ATen/TypeDefault.h, ../aten/src/ATen/TypeExtendedInterface.h, ../aten/src/ATen/CUDAByteType.cpp, ../aten/src/ATen/CUDAByteType.h, ../aten/src/ATen/CUDACharType.cpp, ../aten/src/ATen/CUDACharType.h, ../aten/src/ATen/CUDACopy.cpp, ../aten/src/ATen/CUDADoubleType.cpp, ../aten/src/ATen/CUDADoubleType.h, ../aten/src/ATen/CUDAFloatType.cpp, ../aten/src/ATen/CUDAFloatType.h, ../aten/src/ATen/CUDAGenerator.h, ../aten/src/ATen/CUDAHalfType.cpp, ../aten/src/ATen/CUDAHalfType.h, ../aten/src/ATen/CUDAIntType.cpp, ../aten/src/ATen/CUDAIntType.h, ../aten/src/ATen/CUDALongType.cpp, ../aten/src/ATen/CUDALongType.h, ../aten/src/ATen/CUDAShortType.cpp, ../aten/src/ATen/CUDAShortType.h, ../aten/src/ATen/RegisterCUDA.cpp, ../aten/src/ATen/RegisterCUDA.h, ../aten/src/ATen/SparseCUDAByteType.cpp, ../aten/src/ATen/SparseCUDAByteType.h, ../aten/src/ATen/SparseCUDACharType.cpp, ../aten/src/ATen/SparseCUDACharType.h, ../aten/src/ATen/SparseCUDADoubleType.cpp, ../aten/src/ATen/SparseCUDADoubleType.h, ../aten/src/ATen/SparseCUDAFloatType.cpp, ../aten/src/ATen/SparseCUDAFloatType.h, ../aten/src/ATen/SparseCUDAIntType.cpp, ../aten/src/ATen/SparseCUDAIntType.h, ../aten/src/ATen/SparseCUDALongType.cpp, ../aten/src/ATen/SparseCUDALongType.h, ../aten/src/ATen/SparseCUDAShortType.cpp, ../aten/src/ATen/SparseCUDAShortType.h
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream.cc.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution.cpp.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution_relu.cpp.o
[ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/context.cc.o
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/DeviceType.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
[ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/gather.cc.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/deconvolution.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/message_lite.cc.o
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/Half.cpp.o
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/Stream.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_util.cc.o
[ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/reduce.cc.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/eltwise.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/repeated_field.cc.o
[ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/scatter.cc.o
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/DeviceId.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/engine.cpp.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/inner_product.cpp.o
[ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc.o
[ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/coded_stream.cc.o
[ 4%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/DispatchKey.cpp.o
[ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/types.cc.o
[ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/bytestream.cc.o
[ 5%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/DispatchTable.cpp.o
[ 5%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/lrn.cpp.o
[ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream.cc.o
[ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/common.cc.o
[ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/linux.cc.o
[ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/logging.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/memory.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/int128.cc.o
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/Dispatcher.cpp.o
[ 6%] Built target ATEN_CPU_FILES_GEN_TARGET
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/KernelRegistration.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message_lite.cc.o
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/LayoutId.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/io_win32.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/once.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/repeated_field.cc.o
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/memory_desc_wrapper.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/status.cc.o
[ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/mpi/context.cc.o
[ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o
[ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc.o
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/OpSchema.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/statusor.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc.o
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/mkldnn_debug.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringpiece.cc.o
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/pooling.cpp.o
�[91mIn file included from /opt/pytorch/third_party/gloo/gloo/mpi/context.cc:17:
/opt/pytorch/third_party/gloo/gloo/mpi/context.cc: In destructor ‘gloo::mpi::MPIScope::~MPIScope()’:
/opt/pytorch/third_party/gloo/gloo/common/logging.h:142:58: warning: throw will always call terminate() [-Wterminate]
r.get_message_and_free(MakeString(__VA_ARGS__))); \
^
/opt/pytorch/third_party/gloo/gloo/common/logging.h:151:3: note: in expansion of macro ‘GLOO_ENFORCE_THAT_IMPL’
GLOO_ENFORCE_THAT_IMPL(Equals((x), (y)), #x " == " #y, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/third_party/gloo/gloo/mpi/context.cc:44:3: note: in expansion of macro ‘GLOO_ENFORCE_EQ’
GLOO_ENFORCE_EQ(rv, MPI_SUCCESS);
^~~~~~~~~~~~~~~
/opt/pytorch/third_party/gloo/gloo/common/logging.h:142:58: note: in C++11 destructors default to noexcept
r.get_message_and_free(MakeString(__VA_ARGS__))); \
^
/opt/pytorch/third_party/gloo/gloo/common/logging.h:151:3: note: in expansion of macro ‘GLOO_ENFORCE_THAT_IMPL’
GLOO_ENFORCE_THAT_IMPL(Equals((x), (y)), #x " == " #y, __VA_ARGS__)
^~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/third_party/gloo/gloo/mpi/context.cc:44:3: note: in expansion of macro ‘GLOO_ENFORCE_EQ’
GLOO_ENFORCE_EQ(rv, MPI_SUCCESS);
^~~~~~~~~~~~~~~
�[0m[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/bytestream.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringprintf.cc.o
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/OpSchemaRegistration.cpp.o
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive.cpp.o
[ 7%] Building CXX object c10/CMakeFiles/c10.dir/impl/DeviceGuardImplInterface.cpp.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/common.cc.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/int128.cc.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o
[ 7%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/strutil.cc.o
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_attr.cpp.o
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_desc.cpp.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/io_win32.cc.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/once.cc.o
[ 7%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o
[ 7%] Building CXX object c10/CMakeFiles/c10.dir/util/Array.cpp.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/status.cc.o
[ 8%] Building CXX object c10/CMakeFiles/c10.dir/util/Backtrace.cpp.o
[ 8%] Building CXX object c10/CMakeFiles/c10.dir/util/C++17.cpp.o
Scanning dependencies of target common
[ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_iterator.cpp.o
[ 8%] Building C object sleef/src/common/CMakeFiles/common.dir/common.c.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/time.cc.o
[ 8%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/statusor.cc.o
[ 8%] Built target common
[ 8%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/address.cc.o
[ 8%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o
[ 8%] Building CXX object c10/CMakeFiles/c10.dir/util/Exception.cpp.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringprintf.cc.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringpiece.cc.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/wire_format_lite.cc.o
[ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/query.cpp.o
[ 9%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o
[ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/context.cc.o
[ 9%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/reorder.cpp.o
[ 9%] Building CXX object c10/CMakeFiles/c10.dir/util/LeftRight.cpp.o
[ 9%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/strutil.cc.o
[ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/device.cc.o
[ 10%] Linking CXX static library ../../../lib/libprotobuf-lite.a
[ 10%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/pair.cc.o
[ 10%] Built target libprotobuf-lite
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/rnn.cpp.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/Logging.cpp.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/Metaprogramming.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/time.cc.o
[ 11%] Built target python_copy_files
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/scratchpad.cpp.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/shuffle.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format_lite.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.pb.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/api.pb.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/importer.cc.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/softmax.cpp.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/stream.cpp.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/Optional.cpp.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/device.cc.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/pair.cc.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/unbound_buffer.cc.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/utils.cpp.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/SmallVector.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/parser.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/StringUtil.cpp.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/verbose.cpp.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_barrier.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/TensorTypeId.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.pb.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor_database.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/TensorTypeIdRegistration.cpp.o
[ 12%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_batch_normalization_utils.cpp.o
[ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/Type.cpp.o
[ 12%] Linking CXX static library ../../../lib/libgloo.a
[ 12%] Built target gloo
[ 12%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_concat.cpp.o
[ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeList.cpp.o
[ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeTraits.cpp.o
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_gflags.cpp.o
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_no_gflags.cpp.o
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/util/typeid.cpp.o
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/duration.pb.cc.o
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/dynamic_message.cc.o
[ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/empty.pb.cc.o
Scanning dependencies of target mkrename
[ 14%] Building C object sleef/src/libm/CMakeFiles/mkrename.dir/mkrename.c.o
[ 14%] Linking C executable ../../bin/mkrename
Scanning dependencies of target mkdisp
[ 15%] Building C object sleef/src/libm/CMakeFiles/mkdisp.dir/mkdisp.c.o
[ 15%] Built target mkrename
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set_heavy.cc.o
[ 15%] Linking C executable ../../bin/mkdisp
[ 15%] Built target mkdisp
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/field_mask.pb.cc.o
[ 15%] Linking CXX shared library ../lib/libc10.so
[ 15%] Built target c10
Scanning dependencies of target mkalias
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_reflection.cc.o
[ 15%] Building C object sleef/src/libm/CMakeFiles/mkalias.dir/mkalias.c.o
[ 15%] Linking C executable ../../bin/mkalias
Scanning dependencies of target renameAVX512F.h_generated
[ 15%] Generating include/renameavx512f.h
Generating renameavx512f.h: mkrename 8 16 avx512f
[ 15%] Built target mkalias
[ 15%] Built target renameAVX512F.h_generated
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/gzip_stream.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_engine.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_memory.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_reducer.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_reorder.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_sum.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/gemm.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/gemm_utils.cpp.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/printer.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/strtod.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/jit_avx512_common_gemm_f32.cpp.o
Scanning dependencies of target renamedsp128.h_generated
[ 15%] Generating renamedsp128.h
Scanning dependencies of target dispsse.c_generated
[ 15%] Built target renamedsp128.h_generated
[ 15%] Generating dispsse.c
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/jit_avx_gemm_f32.cpp.o
Scanning dependencies of target renameSSE2.h_generated
[ 15%] Generating include/renamesse2.h
[ 15%] Built target dispsse.c_generated
Generating renamesse2.h: mkrename 2 4 sse2
[ 15%] Built target renameSSE2.h_generated
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/tokenizer.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/ref_gemm.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_convolution.cpp.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/map_field.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/reflection_ops.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_convolution_utils.cpp.o
Scanning dependencies of target mkrename_gnuabi
[ 15%] Building C object sleef/src/libm/CMakeFiles/mkrename_gnuabi.dir/mkrename_gnuabi.c.o
[ 15%] Linking C executable ../../bin/mkrename_gnuabi
[ 15%] Built target mkrename_gnuabi
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/service.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_inner_product.cpp.o
[ 16%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/source_context.pb.cc.o
[ 17%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_u8s8s32x_inner_product.cpp.o
Scanning dependencies of target mkmasked_gnuabi
[ 17%] Building C object sleef/src/libm/CMakeFiles/mkmasked_gnuabi.dir/mkmasked_gnuabi.c.o
[ 17%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/struct.pb.cc.o
[ 18%] Linking C executable ../../bin/mkmasked_gnuabi
[ 18%] Built target mkmasked_gnuabi
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/mathlimits.cc.o
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/substitute.cc.o
[ 18%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_x8s8s32x_convolution.cpp.o
Scanning dependencies of target arraymap
[ 18%] Building C object sleef/src/common/CMakeFiles/arraymap.dir/arraymap.c.o
Scanning dependencies of target torch_shm_manager
[ 18%] Building CXX object caffe2/torch/lib/libshm/CMakeFiles/torch_shm_manager.dir/manager.cpp.o
[ 18%] Built target arraymap
[ 18%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_1x1_conv_kernel_f32.cpp.o
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/text_format.cc.o
[ 18%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_1x1_convolution.cpp.o
[ 19%] Linking CXX executable ../../../../bin/torch_shm_manager
[ 19%] Built target torch_shm_manager
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_conv_kernel_f32.cpp.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/timestamp.pb.cc.o
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_convolution.cpp.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/type.pb.cc.o
Scanning dependencies of target c10_utils_gpu
[ 19%] Building CXX object caffe2/utils/CMakeFiles/c10_utils_gpu.dir/dummy.cpp.o
[ 19%] Built target c10_utils_gpu
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_1x1_conv_kernel.cpp.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/unknown_field_set.cc.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/delimited_message_util.cc.o
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_1x1_convolution.cpp.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_comparator.cc.o
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_conv_kernel.cpp.o
Scanning dependencies of target c10_utils_cpu
[ 19%] Building CXX object caffe2/utils/CMakeFiles/c10_utils_cpu.dir/dummy.cpp.o
[ 19%] Built target c10_utils_cpu
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_conv_winograd_kernel_f32.cpp.o
Scanning dependencies of target c10_utils_hip
[ 19%] Building CXX object caffe2/utils/CMakeFiles/c10_utils_hip.dir/dummy.cpp.o
[ 19%] Built target c10_utils_hip
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_mask_util.cc.o
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_convolution.cpp.o
Scanning dependencies of target cpuinfo
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/init.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/init.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/info.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/vendor.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/uarch.c.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/datapiece.cc.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/name.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/topology.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/isa.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/init.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/descriptor.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/deterministic.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/init.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/cpuinfo.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/smallfile.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/multiline.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/current.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/cpulist.c.o
Scanning dependencies of target nnpack_reference_layers
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-output.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/processors.c.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-input-gradient.c.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-kernel.c.o
[ 20%] Linking C static library ../../lib/libcpuinfo.a
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/fully-connected-output.c.o
[ 20%] Built target cpuinfo
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/max-pooling-output.c.o
Scanning dependencies of target gloo_builder
Scanning dependencies of target onnxifi_wrapper
[ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo_builder.dir/allreduce_builder.cc.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/softmax-output.c.o
[ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/default_value_objectwriter.cc.o
[ 20%] Building C object third_party/onnx/CMakeFiles/onnxifi_wrapper.dir/onnx/onnxifi_wrapper.c.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-output.c.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-input-gradient.c.o
[ 20%] Linking C shared module ../../lib/libonnxifi.so
[ 20%] Linking C static library ../../lib/libnnpack_reference_layers.a
[ 20%] Built target onnxifi_wrapper
[ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/error_listener.cc.o
[ 20%] Built target nnpack_reference_layers
[ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo_builder.dir/broadcast_builder.cc.o
Scanning dependencies of target __aten_op_header_gen
[ 20%] Generating contrib/aten/aten_op.h
Scanning dependencies of target headers
[ 20%] Generating ../../../include/sleef.h
Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__
Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ sse2
Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ sse4
Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__
Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__ avx
Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct\ {\ __m128i\ x,\ y;\ } __AVX__ fma4
Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i __m256i __AVX__ avx2
Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ avx2128
Generating sleef.h: mkrename 8 16 __m512d __m512 __m256i __m512i __AVX512F__
Generating sleef.h: mkrename 8 16 __m512d __m512 __m256i __m512i __AVX512F__ avx512f
[ 20%] Generating include/renameavx2.h
Generating renameavx2.h: mkrename 4 8 avx2
[ 21%] Generating include/renameavx2128.h
Generating renameavx2128.h: mkrename 2 4 avx2128
[ 21%] Generating include/renamefma4.h
Generating renamefma4.h: mkrename 4 8 fma4
[ 21%] Generating include/renameavx.h
Generating renameavx.h: mkrename 4 8 avx
[ 21%] Generating include/renamesse4.h
Generating renamesse4.h: mkrename 2 4 sse4
[ 21%] Built target headers
[ 21%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_convolution_winograd.cpp.o
[ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/field_mask_utility.cc.o
Skipping _th_multinomial Because of Arg: Generator * (Generator*)
Skipping _th_normal Because of Arg: Generator * (Generator*)
Skipping _th_normal Because of Arg: Generator * (Generator*)
Skipping _th_normal Because of Arg: Generator * (Generator*)
Skipping _th_tensor Because of Arg: Storage (Storage)
Skipping _th_tensor Because of Arg: Storage (Storage)
Skipping rrelu_with_noise Because of Arg: Generator * (Generator*)
Skipping rrelu_with_noise_forward Because of Arg: Generator * (Generator*)
Skipping thnn_conv_transpose2d_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping thnn_conv_transpose3d_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping thnn_conv2d_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping thnn_conv_depthwise2d_backward Because of Arg: std::array<bool,2> (std::array<bool,2>)
Skipping thnn_conv3d_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping thnn_conv_dilated2d_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping thnn_conv_dilated3d_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping _cudnn_rnn_backward Because of Arg: std::array<bool,4> (std::array<bool,4>)
Skipping _cudnn_init_dropout_state because it is a factory method
Skipping _fused_dropout Because of Arg: Generator * (Generator *)
Skipping arange because it is a factory method
Skipping bartlett_window because it is a factory method
Skipping bernoulli Because of Arg: Generator * (Generator *)
Skipping bernoulli Because of Arg: Generator * (Generator *)
Skipping blackman_window because it is a factory method
Skipping clamp Because of Arg: c10::optional<Scalar> (Scalar)
Skipping clamp Because of Arg: c10::optional<Scalar> (Scalar)
Skipping _convolution_double_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping cudnn_convolution_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping cudnn_convolution_transpose_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping cumsum Because of Arg: ScalarType (ScalarType)
Skipping cumprod Because of Arg: ScalarType (ScalarType)
Skipping einsum Because of Arg: std::string (std::string)
Skipping empty because it is a factory method
Skipping empty_like because it is a factory method
Skipping empty_strided because it is a factory method
Skipping eye because it is a factory method
Skipping full because it is a factory method
Skipping full_like because it is a factory method
Skipping hann_window because it is a factory method
Skipping hamming_window because it is a factory method
Skipping _cufft_set_plan_cache_max_size Because of Ret: void (void)
Skipping _cufft_clear_plan_cache Because of Ret: void (void)
Skipping linspace because it is a factory method
Skipping logspace because it is a factory method
Skipping log_softmax Because of Arg: ScalarType (ScalarType)
Skipping mean Because of Arg: ScalarType (ScalarType)
Skipping mean Because of Arg: ScalarType (ScalarType)
Skipping mean Because of Arg: ScalarType (ScalarType)
Skipping mkldnn_convolution_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping miopen_convolution_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping miopen_convolution_transpose_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping native_batch_norm_backward Because of Arg: std::array<bool,3> (std::array<bool,3>)
Skipping ones because it is a factory method
Skipping ones_like because it is a factory method
Skipping rand because it is a factory method
Skipping rand_like because it is a factory method
Skipping randint because it is a factory method
Skipping randint_like because it is a factory method
Skipping randn because it is a factory method
Skipping randn_like because it is a factory method
Skipping randperm because it is a factory method
Skipping range because it is a factory method
Skipping rrelu Because of Arg: Generator * (Generator *)
Skipping softmax Because of Arg: ScalarType (ScalarType)
Skipping sum Because of Arg: ScalarType (ScalarType)
Skipping sum Because of Arg: ScalarType (ScalarType)
Skipping sum Because of Arg: ScalarType (ScalarType)
Skipping prod Because of Arg: ScalarType (ScalarType)
Skipping prod Because of Arg: ScalarType (ScalarType)
Skipping prod Because of Arg: ScalarType (ScalarType)
Skipping zeros because it is a factory method
Skipping zeros_like because it is a factory method
Skipping _standard_gamma Because of Arg: Generator * (Generator *)
Skipping poisson Because of Arg: Generator * (Generator *)
Skipping sparse_coo_tensor because it is a factory method
Skipping _sparse_coo_tensor_unsafe because it is a factory method
Skipping _sparse_coo_tensor_with_dims because it is a factory method
Skipping _sparse_coo_tensor_with_dims_and_tensors because it is a factory method
Skipping sparse_mask Because of Arg: SparseTensorRef (SparseTensorRef)
Skipping to because it is a factory method
Skipping data_ptr Because of Ret: void* (void*)
Skipping multinomial Because of Arg: Generator * (Generator *)
Skipping normal Because of Arg: Generator * (Generator *)
Skipping normal Because of Arg: Generator * (Generator *)
Skipping normal Because of Arg: Generator * (Generator *)
[ 21%] Built target __aten_op_header_gen
Scanning dependencies of target dispavx.c_generated
[ 21%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_lrn.cpp.o
[ 21%] Generating dispavx.c
[ 21%] Built target dispavx.c_generated
[ 21%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_2x3.cpp.o
Scanning dependencies of target renamedsp256.h_generated
[ 21%] Generating renamedsp256.h
[ 21%] Built target renamedsp256.h_generated
[ 22%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_4x3.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_escaping.cc.o
Scanning dependencies of target renameSSE4.h_generated
[ 23%] Built target renameSSE4.h_generated
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_4x3_kernel.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_objectwriter.cc.o
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_i8i8_pooling.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_stream_parser.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/object_writer.cc.o
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_u8s8s32x_deconvolution.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/proto_writer.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectsource.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectwriter.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info_test_helper.cc.o
[ 23%] Linking CXX static library ../../../lib/libgloo_builder.a
[ 23%] Built target gloo_builder
Scanning dependencies of target renameAVX.h_generated
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/utility.cc.o
[ 23%] Built target renameAVX.h_generated
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp.o
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_1x1_conv_kernel.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/json_util.cc.o
Scanning dependencies of target renameFMA4.h_generated
[ 23%] Built target renameFMA4.h_generated
Scanning dependencies of target renameAVX2128.h_generated
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/message_differencer.cc.o
[ 23%] Built target renameAVX2128.h_generated
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/time_util.cc.o
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_1x1_convolution.cpp.o
Scanning dependencies of target renameAVX2.h_generated
[ 23%] Built target renameAVX2.h_generated
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/type_resolver_util.cc.o
[ 24%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format.cc.o
[ 24%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_conv_kernel.cpp.o
[ 24%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_convolution.cpp.o
Scanning dependencies of target alias_avx512f.h_generated
[ 24%] Generating alias_avx512f.h
[ 24%] Built target alias_avx512f.h_generated
[ 24%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wrappers.pb.cc.o
Scanning dependencies of target dispsse_obj
[ 25%] Building C object sleef/src/libm/CMakeFiles/dispsse_obj.dir/dispsse.c.o
Scanning dependencies of target sleefsse2
[ 25%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimdsp.c.o
[ 25%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimddp.c.o
[ 25%] Built target dispsse_obj
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_1x1_conv_kernel_f32.cpp.o
Scanning dependencies of target qnnpack
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/init.c.o
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/convolution.c.o
[ 25%] Linking CXX static library ../../../lib/libprotobuf.a
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/deconvolution.c.o
[ 25%] Generating src/x86_64-fma/2d-fourier-8x8.py.o
[ 25%] Built target libprotobuf
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_1x1_convolution.cpp.o
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/fully-connected.c.o
[ 25%] Built target sleefsse2
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_conv_kernel_f32.cpp.o
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/sgemm/6x8-psimd.c.o
[ 26%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/2x4c8-sse2.c.o
[ 26%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/4x4c2-sse2.c.o
Scanning dependencies of target dispavx_obj
[ 26%] Building C object sleef/src/libm/CMakeFiles/dispavx_obj.dir/dispavx.c.o
[ 26%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8conv/4x4c2-sse2.c.o
[ 26%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8dw/9c8-sse2.c.o
Scanning dependencies of target sleefsse4
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimdsp.c.o
[ 26%] Linking C static library ../../lib/libqnnpack.a
[ 26%] Built target qnnpack
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimddp.c.o
[ 26%] Built target dispavx_obj
[ 26%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_convolution.cpp.o
Scanning dependencies of target sleefavx
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimdsp.c.o
Scanning dependencies of target sleeffma4
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimdsp.c.o
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimddp.c.o
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimddp.c.o
[ 26%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_transpose_src_utils.cpp.o
[ 26%] Generating src/x86_64-fma/2d-fourier-16x16.py.o
[ 26%] Built target sleefsse4
[ 26%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_dw_conv_kernel_f32.cpp.o
[ 27%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_batch_normalization.cpp.o
Scanning dependencies of target sleefavx2128
[ 27%] Building C object sleef/src/libm/CMakeFiles/sleefavx2128.dir/sleefsimdsp.c.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx2128.dir/sleefsimddp.c.o
[ 28%] Built target sleefavx
[ 28%] Built target sleeffma4
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_dw_convolution.cpp.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_eltwise.cpp.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_lrn.cpp.o
[ 28%] Built target sleefavx2128
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_lrn_kernel_f32.cpp.o
Scanning dependencies of target sleefavx2
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx2.dir/sleefsimdsp.c.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx2.dir/sleefsimddp.c.o
Scanning dependencies of target sleefavx512f
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx512f.dir/sleefsimdsp.c.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_pool_kernel_f32.cpp.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_pooling.cpp.o
[ 28%] Built target sleefavx2
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_reorder.cpp.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx512f.dir/sleefsimddp.c.o
[ 28%] Generating ../../../../third_party/protobuf/src/google/protobuf/compiler/js/well_known_types_embed.cc
Scanning dependencies of target libprotoc
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/code_generator.cc.o
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/command_line_interface.cc.o
[ 28%] Built target sleefavx512f
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_reorder_utils.cpp.o
Scanning dependencies of target sleef
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleef.dir/sleefdp.c.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleef.dir/sleefsp.c.o
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_enum.cc.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nchw_pooling.cpp.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleef.dir/sleefld.c.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ncsp_batch_normalization.cpp.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleef.dir/sleefqp.c.o
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_enum_field.cc.o
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_extension.cc.o
[ 28%] Linking C static library ../../lib/libsleef.a
[ 28%] Built target sleef
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_field.cc.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nhwc_pooling.cpp.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nspc_batch_normalization.cpp.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_batch_normalization.cpp.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_file.cc.o
[ 29%] Generating src/x86_64-fma/2d-winograd-8x8-3x3.py.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_generator.cc.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_helpers.cc.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_convolution.cpp.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_deconvolution.cpp.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_map_field.cc.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_eltwise.cpp.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_inner_product.cpp.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_lrn.cpp.o
[ 29%] Generating src/x86_64-fma/blas/s8gemm.py.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_message.cc.o
[ 29%] Generating src/x86_64-fma/blas/c8gemm.py.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_message_field.cc.o
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc.o
[ 30%] Generating src/x86_64-fma/blas/s4c6gemm.py.o
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_pooling.cpp.o
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_rnn.cpp.o
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_shuffle.cpp.o
[ 30%] Generating src/x86_64-fma/blas/conv1x1.py.o
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_softmax.cpp.o
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc.o
[ 30%] Generating src/x86_64-fma/blas/sgemm.py.o
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_service.cc.o
[ 30%] Generating src/x86_64-fma/max-pooling.py.o
[ 31%] Generating src/x86_64-fma/relu.py.o
[ 31%] Generating src/x86_64-fma/softmax.py.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_string_field.cc.o
[ 31%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/simple_concat.cpp.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_doc_comment.cc.o
[ 31%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/simple_sum.cpp.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_enum.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_enum_field.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_field_base.cc.o
[ 31%] Generating src/x86_64-fma/blas/sdotxf.py.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_generator.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_helpers.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_map_field.cc.o
[ 31%] Generating src/x86_64-fma/blas/shdotxf.py.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_message.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_message_field.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc.o
[ 32%] Linking CXX shared library ../../../../lib/libmkldnn.so
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_context.cc.o
[ 32%] Built target mkldnn
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_doc_comment.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_field_lite.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_lite.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_extension.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_extension_lite.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_field.cc.o
Scanning dependencies of target nnpack
[ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/init.c.o
[ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-inference.c.o
[ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-inference.c.o
[ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/pooling-output.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_file.cc.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_generator.cc.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-output.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_generator_factory.cc.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/softmax-output.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_helpers.cc.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-output.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_lazy_message_field.cc.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-input-gradient.c.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-input-gradient.c.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-kernel-gradient.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_lazy_message_field_lite.cc.o
[ 34%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-output.c.o
[ 34%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/x86_64-fma/softmax.c.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_map_field.cc.o
[ 34%] Linking C static library ../../lib/libnnpack.a
[ 34%] Built target nnpack
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_map_field_lite.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_builder.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_builder_lite.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_field.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_field_lite.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_lite.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_primitive_field.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_name_resolver.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_primitive_field_lite.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_service.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_shared_code_generator.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_string_field.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_string_field_lite.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_enum.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_enum_field.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_extension.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_field.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_file.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_generator.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_helpers.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_map_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_message.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_message_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_primitive_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/js/js_generator.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/js/well_known_types_embed.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_enum.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_extension.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_file.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_generator.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_map_field.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_message.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_message_field.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/php/php_generator.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.pb.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/python/python_generator.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/ruby/ruby_generator.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/subprocess.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/zip_writer.cc.o
[ 37%] Linking CXX static library ../../../lib/libprotoc.a
[ 37%] Built target libprotoc
Scanning dependencies of target protoc
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/protoc.dir/__/src/google/protobuf/compiler/main.cc.o
[ 37%] Linking CXX executable ../../../bin/protoc
[ 37%] Built target protoc
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/caffe2.proto
Scanning dependencies of target gen_onnx_proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/caffe2_legacy.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/metanet.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/hsm.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/prof_dag.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/predictor_consts.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/torch.proto
[ 37%] Running gen_proto.py on onnx/onnx.in.proto
Processing /opt/pytorch/third_party/onnx/onnx/onnx.in.proto
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch.proto
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch.proto3
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx.pb.h
generating /opt/pytorch/build/third_party/onnx/onnx/onnx_pb.py
[ 37%] Running C++ protocol buffer compiler on /opt/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch.proto
Scanning dependencies of target Caffe2_PROTO
[ 37%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/hsm.pb.cc.o
[ 37%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/metanet.pb.cc.o
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/prof_dag.pb.cc.o
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2_legacy.pb.cc.o
[ 38%] Built target gen_onnx_proto
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/predictor_consts.pb.cc.o
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/torch.pb.cc.o
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2.pb.cc.o
[ 38%] Running gen_proto.py on onnx/onnx-operators.in.proto
Processing /opt/pytorch/third_party/onnx/onnx/onnx-operators.in.proto
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch.proto
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch.proto3
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx-operators.pb.h
generating /opt/pytorch/build/third_party/onnx/onnx/onnx_operators_pb.py
[ 38%] Running C++ protocol buffer compiler on /opt/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch.proto
Scanning dependencies of target onnx_proto
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx_onnx_torch.pb.cc.o
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-operators_onnx_torch.pb.cc.o
[ 38%] Linking CXX static library ../../lib/libonnx_proto.a
[ 38%] Built target Caffe2_PROTO
[ 38%] Built target onnx_proto
Scanning dependencies of target caffe2_protos
[ 38%] Linking CXX static library ../lib/libcaffe2_protos.a
Scanning dependencies of target Caffe2_perfkernels_avx
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx.dir/adagrad_avx.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx.dir/typed_axpy_avx.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx.dir/common_avx.cc.o
[ 38%] Built target caffe2_protos
Scanning dependencies of target Caffe2_perfkernels_avx2
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/common_avx2.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/embedding_lookup_avx2.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/embedding_lookup_fused_8bit_rowwise_avx2.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/math_cpu_avx2.cc.o
Scanning dependencies of target onnx
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/defs.cc.o
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/schema.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/typed_axpy_avx2.cc.o
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/assertions.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/interned_strings.cc.o
[ 39%] Built target Caffe2_perfkernels_avx
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/status.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/data_type_utils.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/experiments/defs.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/experiments/experiments_functions.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/function.cc.o
[ 39%] Built target Caffe2_perfkernels_avx2
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/schema.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/onnxifi_utils.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/optimize.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass_manager.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass_registry.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/version_converter/helper.cc.o
�[91m/opt/pytorch/third_party/onnx/onnx/shape_inference/implementation.cc: In function ‘void onnx_torch::shape_inference::InferShapeForFunctionNode(const onnx_torch::FunctionProto&, const onnx_torch::ISchemaRegistry*, onnx_torch::InferenceContext&)’:
/opt/pytorch/third_party/onnx/onnx/shape_inference/implementation.cc:207:53: warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
for (int i = 0; i < (const int)(ctx.getNumInputs()); ++i) {
^
�[0m[ 41%] Linking CXX static library ../../lib/libonnx.a
[ 41%] Built target onnx
Scanning dependencies of target caffe2
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUGeneral.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/TensorGeometry.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUGenerator.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUTypeDefault.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseTensorImpl.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/ExpandUtils.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/Context.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/DLConvertor.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/TensorUtils.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/UndefinedType.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/Utils.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/detail/CPUGuardImpl.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/detail/CUDAHooksInterface.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/detail/ComplexHooksInterface.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/cpu/FlushDenormal.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/ATenCoreTest.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/ATenGeneral.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Allocator.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Formatting.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/OptionsGuard.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/LegacyTypeDispatch.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Range.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Scalar.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Storage.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/StorageImpl.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Tensor.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/TensorImpl.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/TensorOptions.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/UndefinedTensorImpl.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/UniqueVoidPtr.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/VariableHooksInterface.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/blob.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/context_base.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/interned_strings.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/intrusive_ptr.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/ivalue.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/register_symbols.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/thread_pool.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/type.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Activation.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/BatchLinearAlgebra.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/BinaryOps.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/ConstantPadNd.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Convolution.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/ConvolutionTBC.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Copy.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/DispatchStub.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Distance.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Distributions.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Dropout.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Embedding.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/EmbeddingBag.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/GridSampler.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Indexing.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/LegacyBridge.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/LegacyDefinitions.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Linear.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/LinearAlgebra.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Loss.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/LossCTC.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Memory.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Normalization.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PackedSequence.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Pooling.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/RNN.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/ReduceOps.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Resize.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/RoiPooling.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Scalar.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/SoftMax.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/SpectralOps.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/SummaryOps.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorCompare.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorConversions.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorFactories.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorIterator.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorIteratorReduce.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorProperties.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorShape.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorTransformations.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TypeProperties.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/UnaryOps.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Unique.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/WeightNorm.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/sparse/SparseTensor.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/sparse/SparseTensorMath.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/mkl/LinearAlgebra.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/mkl/SpectralOps.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/mkldnn/Conv.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUByteType.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUCharType.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUCopy.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUDoubleType.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUFloatType.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUHalfType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUIntType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPULongType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUShortType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/RegisterCPU.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUByteType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUCharType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUDoubleType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUFloatType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUIntType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPULongType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUShortType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/TypeDefault.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THGeneral.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THAllocator.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THSize.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THStorageFunctions.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensor.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorCopy.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorMath.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorRandom.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorMoreMath.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorEvenMoreMath.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorConv.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorLapack.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THBlas.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THLapack.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THLogAdd.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THRandom.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THFile.cpp.o
�[91m/opt/pytorch/aten/src/TH/THRandom.cpp: In function ‘THGenerator* THGenerator_newUnseeded()’:
/opt/pytorch/aten/src/TH/THRandom.cpp:18:38: warning: ‘void* memset(void*, int, size_t)’ clearing an object of type ‘THGenerator’ {aka ‘struct THGenerator’} with no trivial copy-assignment; use value-initialization instead [-Wclass-memaccess]
memset(self, 0, sizeof(THGenerator));
^
In file included from /opt/pytorch/aten/src/TH/THRandom.cpp:3:
/opt/pytorch/aten/src/TH/THGenerator.hpp:26:8: note: ‘THGenerator’ {aka ‘struct THGenerator’} declared here
struct THGenerator {
^~~~~~~~~~~
�[0m[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THDiskFile.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THMemoryFile.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THVector.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/vector/AVX.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/vector/AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/THNN/init.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/TensorCompareKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/SoftMaxKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/ReduceOpsKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/DistanceOpsKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/BinaryOpsKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/Activation.cpp.AVX2.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/TensorCompareKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/SoftMaxKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/ReduceOpsKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/DistanceOpsKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/BinaryOpsKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/Activation.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/TensorCompareKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/SoftMaxKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/ReduceOpsKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/DistanceOpsKernel.cpp.DEFAULT.cpp.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/BinaryOpsKernel.cpp.DEFAULT.cpp.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/Activation.cpp.DEFAULT.cpp.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/mkldnn/Runtime.cpp.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/allgather_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/allreduce_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/barrier_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/broadcast_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/common.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/common_world_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/context.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/reduce_scatter_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/store_handler.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/script/compiler.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/script/lexer.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/allocator.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/blob_serialization.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/blob_stats.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/common.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/context.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/context_base.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/db.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/event.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/graph.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/init.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/init_intrinsics_check.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/init_omp.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/int8_serialization.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/memonger.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/module.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_base.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_scheduling.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_tracing.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_dag.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_dag_utils.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_simple.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_simple_refcount.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/numa.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/operator.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/operator_c10wrapper.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/operator_schema.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/plan_executor.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/prof_dag_counters.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/qtensor.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/qtensor_serialization.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/stats.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/tensor.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/tensor_impl.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/tensor_int8.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/transform.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/types.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/workspace.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/proto_convert.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/proto_wrap.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/proto_utils.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/murmur_hash3.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/smart_tensor_printer.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/signal_handler.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/string_utils.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/threadpool/ThreadPool.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/cpuid.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/bench_utils.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/math_cpu.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/math_utils.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/thread_name.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/threadpool/pthreadpool.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/threadpool/pthreadpool_impl.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/predictor/predictor.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/predictor/predictor_utils.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/predictor/predictor_config.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/nomnigraph/Representations/NeuralNet.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/nomnigraph/tests/test_util.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/db/create_db_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/db/protodb.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/distributed/file_store_handler.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/distributed/file_store_handler_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/distributed/store_handler.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/distributed/store_ops.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/concat_split_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_fusion_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/dropout_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/elementwise_sum_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/fully_connected_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/local_response_normalization_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/momentum_sgd_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/operator_fallback_ideep.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/pool_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/relu_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/spatial_batch_norm_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/squeeze_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/utility_ops.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/utils/ideep_register.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/mpi/mpi_common.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/mpi/mpi_ops.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/observers/time_observer.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/observers/runcnt_observer.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/backend.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/backend_rep.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/device.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/helper.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/onnx_exporter.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/onnxifi_init.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/abs_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/accumulate_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/accuracy_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/acos_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/affine_channel_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/apmeter_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/arg_ops.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/asin_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/assert_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/atan_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/atomic_ops.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_box_cox_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_bucketize_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_gather_ops.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_matmul_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_moments_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_sparse_to_dense_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/bbox_transform_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/bisect_percentile_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/boolean_mask_ops.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/boolean_unmask_ops.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/box_with_nms_limit_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/byte_weight_dequant_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cast_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cbrt_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ceil_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/channel_backprop_stats_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/channel_shuffle_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/channel_stats_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/clip_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/collect_and_distribute_fpn_rpn_proposals_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/communicator_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/concat_split_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conditional_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_gradient_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_op_eigen.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_op_shared.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_transpose_gradient_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_transpose_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_transpose_op_mobile.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/copy_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cos_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cosh_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cosine_embedding_criterion_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/counter_ops.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/create_scope_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/crf_viterbi_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cross_entropy_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ctc_beam_search_decoder_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ctc_greedy_decoder_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cube_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/data_couple.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/dataset_ops.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/deform_conv_gradient_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/deform_conv_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/distance_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/do_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/dropout_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_add_gradient_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_add_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_div_gradient_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_div_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_linear_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_logical_ops.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_mul_gradient_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_mul_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops_schema.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops_utils.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sub_gradient_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sub_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sum_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elu_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/enforce_finite_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ensure_clipped_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ensure_cpu_output_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/exp_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/expand_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/expand_squeeze_dims_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/fc_inference.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/feature_maps_ops.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/feed_blob_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/filler_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/find_duplicate_elements_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/find_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/flatten_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/flexible_top_k.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/floor_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/free_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/fully_connected_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/fused_rowwise_8bit_conversion_ops.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/fused_rowwise_random_quantization_ops.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/gather_fused_8bit_rowwise_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/gather_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/gather_ranges_to_dense_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/generate_proposals_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/given_tensor_byte_string_to_uint8_fill_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/given_tensor_fill_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/glu_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/group_norm_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/gru_unit_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/h_softmax_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/half_float_ops.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/hard_sigmoid_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/heatmap_max_keypoint_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/if_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/im2col_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/index_hash_ops.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/index_ops.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/instance_norm_gradient_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/instance_norm_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/integral_image_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/is_empty_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/jsd_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/key_split_ops.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/last_n_window_collector.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/layer_norm_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/leaky_relu_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/length_split_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_pad_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_reducer_fused_8bit_rowwise_ops.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_reducer_ops.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_reducer_rowwise_8bit_ops.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_tile_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_top_k_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/listwise_l2r_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/load_save_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/local_response_normalization_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/locally_connected_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/locally_connected_op_util.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/log_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/logit_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/loss_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lp_pool_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lpnorm_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lstm_unit_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/map_ops.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/margin_ranking_criterion_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/matmul_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/mean_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/merge_id_lists_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/minmax_gradient_ops.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/minmax_ops.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/mod_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/moments_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/multi_class_accuracy_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/negate_gradient_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/negative_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ngram_ops.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/norm_planar_yuv_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/normalize_l1_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/normalize_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/numpy_tile_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/one_hot_ops.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/onnx_while_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/onnxifi_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/order_switch_ops.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pack_rnn_sequence_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pack_segments.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pad_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/partition_ops.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/percentile_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/perplexity_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/piecewise_linear_transform_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pool_gradient_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pool_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pow_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/prelu_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/prepend_dim_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quant_decode_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rank_loss_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reciprocal_gradient_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reciprocal_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduce_front_back_max_ops.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduce_front_back_mean_ops.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduce_front_back_sum_ops.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduce_ops.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduction_ops.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/relu_n_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/relu_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/remove_data_blocks_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/replace_nan_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reservoir_sampling.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reshape_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/resize_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reverse_packed_segs_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rmac_regions_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_align_gradient_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_align_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_align_rotated_gradient_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_align_rotated_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_pool_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rowmul_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rsqrt_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/scale_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/segment_reduction_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/selu_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sequence_ops.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/shape_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sigmoid_gradient_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sigmoid_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sinh_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sin_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sinusoid_position_encoding_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/slice_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softmax_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softmax_shared.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softmax_with_loss_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softplus_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softsign_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/space_batch_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sparse_normalize_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sparse_to_dense_mask_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sparse_to_dense_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/spatial_batch_norm_gradient_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/spatial_batch_norm_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/spatial_softmax_with_loss_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sqr_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sqrt_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/square_root_divide_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stats_ops.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stats_put_ops.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stop_gradient.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/string_ops.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stump_func_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stylizer_ops.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/summarize_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/swish_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tan_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tanh_gradient_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tanh_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tensor_protos_db_input.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/text_file_reader.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/text_file_reader_utils.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/thresholded_relu_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tile_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/top_k.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/transpose_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tt_linear_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/unique_ops.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/upsample_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/utility_ops.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/variable_length_sequence_padding.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/weighted_multi_sampling_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/weighted_sample_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/while_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/workspace_ops.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/zero_gradient_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/add_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/averaged_loss_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/batch_gather_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/batch_matmul_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/cast_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/concat_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/enforce_finite_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/expand_dims_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/fc_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/filler_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/flatten_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/mul_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/relu_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/sigmoid_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/sigmoid_cross_entropy_with_logits_cpu.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/sparse_lengths_sum_cpu.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/stop_gradient_cpu.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/add.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/averaged_loss.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/batch_gather.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/batch_matmul.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/cast.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/concat.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/enforce_finite.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/expand_dims.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/fc.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/filler.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/flatten.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/layer_norm.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/mul.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/relu.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/sigmoid.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/sigmoid_cross_entropy_with_logits.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/sparse_lengths_sum.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/stop_gradient.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_blob_fetcher_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_executor.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/init_qnnpack.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_add_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_average_pool_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_channel_shuffle_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_concat_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_conv_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_conv_transpose_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_dequantize_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_fc_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_flatten_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_given_tensor_fill_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_leaky_relu_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_max_pool_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_quantize_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_relu_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_reshape_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_resize_nearest_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_roi_align_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_slice_op.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_sigmoid_op.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_softmax_op.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/annotations.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/converter.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/backend_cutting.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/dead_code_elim.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/device.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/distributed_converter.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/distributed.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/fusion.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/mobile.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/onnxifi_transformer.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/optimize_ideep.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/optimizer.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/passes.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/sink.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/adagrad.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/embedding_lookup.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/fused_8bit_rowwise_embedding_lookup.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/math_cpu_base.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/typed_axpy.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/blobs_queue.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/blobs_queue_db.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/queue_ops.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/rebatching_queue.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/rebatching_queue_ops.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/adadelta_op.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/adagrad_op.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/adam_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/clip_tensor_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/ftrl_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/gftrl_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/iter_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/lars_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/learning_rate_adaption_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/learning_rate_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/momentum_sgd_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/rmsprop_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/wngrad_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/yellowfin_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/share/contrib/nnpack/conv_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/share/contrib/depthwise/depthwise3x3_conv_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/transforms/common_subexpression_elimination.cc.o
[ 84%] Building CXX object caffe2/CMakeFiles/caffe2.dir/transforms/conv_to_nnpack_transform.cc.o
[ 84%] Building CXX object caffe2/CMakeFiles/caffe2.dir/transforms/pattern_net_transform.cc.o
[ 84%] Building CXX object caffe2/CMakeFiles/caffe2.dir/transforms/single_op_transform.cc.o
[ 84%] Linking CXX shared library ../lib/libcaffe2.so
[ 84%] Built target caffe2
[ 84%] Generating ../../../torch/csrc/nn/THNN.cpp, ../../../torch/csrc/nn/THCUNN.cpp, ../../../torch/csrc/autograd/generated/VariableType.h, ../../../torch/csrc/autograd/generated/VariableType_0.cpp, ../../../torch/csrc/autograd/generated/VariableType_1.cpp, ../../../torch/csrc/autograd/generated/VariableType_2.cpp, ../../../torch/csrc/autograd/generated/VariableType_3.cpp, ../../../torch/csrc/autograd/generated/VariableType_4.cpp, ../../../torch/csrc/autograd/generated/Functions.h, ../../../torch/csrc/autograd/generated/Functions.cpp, ../../../torch/csrc/autograd/generated/python_functions.h, ../../../torch/csrc/autograd/generated/python_functions.cpp, ../../../torch/csrc/autograd/generated/python_variable_methods.cpp, ../../../torch/csrc/autograd/generated/python_variable_methods_dispatch.h, ../../../torch/csrc/autograd/generated/python_torch_functions.cpp, ../../../torch/csrc/autograd/generated/python_torch_functions_dispatch.h, ../../../torch/csrc/autograd/generated/python_nn_functions.cpp, ../../../torch/csrc/autograd/generated/python_nn_functions.h, ../../../torch/csrc/autograd/generated/python_nn_functions_dispatch.h, ../../../torch/csrc/autograd/generated/variable_factories.h, ../../../torch/csrc/jit/generated/register_aten_ops_0.cpp, ../../../torch/csrc/jit/generated/register_aten_ops_1.cpp, ../../../torch/csrc/jit/generated/register_aten_ops_2.cpp, ../../../torch/csrc/jit/generated/aten_interned_strings.h
Scanning dependencies of target shm
[ 85%] Building CXX object caffe2/torch/lib/libshm/CMakeFiles/shm.dir/core.cpp.o
Scanning dependencies of target caffe2_observers
[ 85%] Building CXX object modules/observers/CMakeFiles/caffe2_observers.dir/observer_config.cc.o
[ 85%] Building CXX object modules/observers/CMakeFiles/caffe2_observers.dir/net_observer_reporter_print.cc.o
Scanning dependencies of target c10d
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/FileStore.cpp.o
Scanning dependencies of target caffe2_pybind11_state
[ 85%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state.cc.o
Scanning dependencies of target caffe2_detectron_ops
[ 85%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/batch_permutation_op.cc.o
Scanning dependencies of target THD
[ 85%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/ChannelUtils.cpp.o
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/ProcessGroup.cpp.o
[ 85%] Linking CXX shared library ../../../../lib/libshm.so
[ 85%] Built target shm
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/Store.cpp.o
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/PrefixStore.cpp.o
[ 85%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/Cuda.cpp.o
[ 85%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/DataChannel.cpp.o
[ 85%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state_dlpack.cc.o
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/TCPStore.cpp.o
[ 85%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state_nomni.cc.o
[ 85%] Building CXX object modules/observers/CMakeFiles/caffe2_observers.dir/perf_observer.cc.o
Writing torch/csrc/nn/THNN.cpp
Writing torch/csrc/nn/THCUNN.cpp
Writing torch/csrc/autograd/generated/VariableType.h
Writing torch/csrc/autograd/generated/VariableType_0.cpp
Writing torch/csrc/autograd/generated/VariableType_1.cpp
Writing torch/csrc/autograd/generated/VariableType_2.cpp
Writing torch/csrc/autograd/generated/VariableType_3.cpp
Writing torch/csrc/autograd/generated/VariableType_4.cpp
Writing torch/csrc/autograd/generated/VariableTypeEverything.cpp
Writing torch/csrc/autograd/generated/Functions.h
Writing torch/csrc/autograd/generated/Functions.cpp
Writing torch/csrc/autograd/generated/python_functions.h
Writing torch/csrc/autograd/generated/python_functions.cpp
Writing torch/csrc/autograd/generated/python_variable_methods.cpp
Writing torch/csrc/autograd/generated/python_variable_methods_dispatch.h
Writing torch/csrc/autograd/generated/python_torch_functions.cpp
Writing torch/csrc/autograd/generated/python_torch_functions_dispatch.h
Writing torch/csrc/autograd/generated/python_nn_functions.cpp
Writing torch/csrc/autograd/generated/python_nn_functions.h
Writing torch/csrc/autograd/generated/python_nn_functions_dispatch.h
Writing torch/csrc/autograd/generated/variable_factories.h
Writing torch/csrc/jit/generated/register_aten_ops_0.cpp
Writing torch/csrc/jit/generated/register_aten_ops_1.cpp
Writing torch/csrc/jit/generated/register_aten_ops_2.cpp
Writing torch/csrc/jit/generated/aten_interned_strings.h
�[91mWARNING: derivative ignored for _indices
WARNING: derivative ignored for _values
WARNING: derivative ignored for indices
WARNING: derivative ignored for _indices
WARNING: derivative ignored for indices
WARNING: derivative ignored for _values
WARNING: derivative ignored for _indices
WARNING: derivative ignored for _values
WARNING: derivative ignored for indices
�[0m[ 85%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/DataChannelRequest.cpp.o
Scanning dependencies of target torch
[ 86%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/anomaly_mode.cpp.o
[ 86%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/engine.cpp.o
[ 87%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/RPCType.cpp.o
[ 87%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/Utils.cpp.o
[ 87%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/function.cpp.o
[ 87%] Linking CXX shared library ../../lib/libcaffe2_observers.so
[ 87%] Built target caffe2_observers
[ 87%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/accumulate_grad.cpp.o
[ 87%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/group_spatial_softmax_op.cc.o
[ 87%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/data_channels/DataChannelMPI.cpp.o
[ 87%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/ProcessGroupGloo.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/ProcessGroupMPI.cpp.o
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state_registry.cc.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/basic_ops.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/data_channels/DataChannelTCP.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/ps_roi_pool_op.cc.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/roi_pool_f_op.cc.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/sample_as_op.cc.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/comm.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/tensor.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethod.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethodEnv.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethodFile.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/select_smooth_l1_loss_op.cc.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/sigmoid_cross_entropy_loss_op.cc.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethodTCP.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethodUtils.cpp.o
[ 88%] Linking CXX static library ../../../../lib/libc10d.a
[ 88%] Built target c10d
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state_ideep.cc.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/utils.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/Functions.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/sigmoid_focal_loss_op.cc.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/process_group/Collectives.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/smooth_l1_loss_op.cc.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/process_group/General.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_0.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_1.cpp.o
[ 88%] Linking CXX static library ../../../../lib/libTHD.a
[ 88%] Built target THD
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_2.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_3.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/softmax_focal_loss_op.cc.o
[ 89%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/spatial_narrow_as_op.cc.o
[ 89%] Linking CXX shared module python/caffe2_pybind11_state.cpython-36m-x86_64-linux-gnu.so
[ 89%] Built target caffe2_pybind11_state
[ 89%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/upsample_nearest_op.cc.o
[ 89%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_4.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/grad_mode.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/input_buffer.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/profiler.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/saved_variable.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/variable.cpp.o
[ 90%] Linking CXX shared library ../../lib/libcaffe2_detectron_ops.so
[ 90%] Built target caffe2_detectron_ops
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/VariableTypeManual.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/cuda/comm.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/autodiff.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/export.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/generated/register_aten_ops_0.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/generated/register_aten_ops_1.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/generated/register_aten_ops_2.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/graph_executor.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/import_method.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/import.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/interpreter.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/constants.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/node_hashing.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/ir.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/operator.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/batch_mm.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/canonicalize.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/constant_propagation.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/constant_pooling.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/common_subexpression_elimination.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/create_autodiff_subgraphs.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/inline_autodiff_subgraphs.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/dead_code_elimination.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/canonicalize_ops.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/erase_number_types.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/graph_fuser.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/inplace_check.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/loop_unrolling.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/lower_grad_of.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/lower_tuples.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/peephole.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/remove_expands.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/remove_inplace_ops.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/shape_analysis.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/requires_grad_analysis.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/specialize_undef.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/python_print.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/utils/subgraph_utils.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/interface.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/register_prim_ops.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/register_special_ops.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/scope.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/script/compiler.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/script/builtin_functions.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/script/lexer.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/script/module.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/tracer.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/hooks_for_testing.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/torch.cpp.o
�[91m/opt/pytorch/torch/csrc/torch.cpp: In function ‘at::TypeExtendedInterface& torch::CPU(at::ScalarType)’:
/opt/pytorch/torch/csrc/torch.cpp:11:17: warning: ‘at::TypeExtendedInterface& torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
return torch::getVariableType(at::Backend::CPU, type);
^~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface& getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/torch.cpp:11:55: warning: ‘at::TypeExtendedInterface& torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
return torch::getVariableType(at::Backend::CPU, type);
^
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface& getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/torch.cpp:11:55: warning: ‘at::TypeExtendedInterface& torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
return torch::getVariableType(at::Backend::CPU, type);
^
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface& getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/torch.cpp: In function ‘at::TypeExtendedInterface& torch::CUDA(at::ScalarType)’:
/opt/pytorch/torch/csrc/torch.cpp:15:17: warning: ‘at::TypeExtendedInterface& torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
return torch::getVariableType(at::Backend::CUDA, type);
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface& getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/torch.cpp:15:56: warning: ‘at::TypeExtendedInterface& torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
return torch::getVariableType(at::Backend::CUDA, type);
^
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface& getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/torch.cpp:15:56: warning: ‘at::TypeExtendedInterface& torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
return torch::getVariableType(at::Backend::CUDA, type);
^
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface& getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
�[0m[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/utils/tensor_flatten.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/utils/variadic.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/__/test/cpp/jit/no-gtest.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/kernel_cache.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/compiler.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/executor.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/codegen.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/fallback.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/cpu/fused_kernel.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/cuda.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/data/datasets/mnist.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/data/samplers/random.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/data/samplers/sequential.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/data/samplers/stream.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/jit.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/init.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/module.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/batchnorm.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/conv.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/dropout.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/embedding.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/functional.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/linear.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/rnn.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/adagrad.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/adam.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/lbfgs.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/optimizer.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/rmsprop.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/serialize.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/sgd.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/serialize/input-archive.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/serialize/output-archive.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/utils.cpp.o
[ 96%] Linking CXX shared library ../../lib/libtorch.so
[ 96%] Built target torch
Scanning dependencies of target torch_python
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/DataLoader.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/DynamicTypes.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/TypeInfo.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Exceptions.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Generator.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Layout.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Device.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Module.cpp.o
�[91m/opt/pytorch/torch/csrc/Dtype.cpp:44:33: error: cast between incompatible function types from ‘PyObject* (*)(THPDtype*)’ {aka ‘_object* (*)(THPDtype*)’} to ‘getter’ {aka ‘_object* (*)(_object*, void*)’} [-Werror=cast-function-type]
{"is_floating_point", (getter)THPDtype_is_floating_point, nullptr, nullptr, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Dtype.cpp:49:31: error: cast between incompatible function types from ‘PyObject* (*)(THPDtype*)’ {aka ‘_object* (*)(THPDtype*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"__reduce__", (PyCFunction)THPDtype_reduce, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/DataLoader.cpp:217:49: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_error_if_any_worker_fails", (PyCFunction)THPModule_errorIfAnyWorkerFails, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91mcc1plus: all warnings being treated as errors
�[0m�[91mmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:211: recipe for target 'caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o' failed
�[91mcc1plus: all warnings being treated as errors
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:163: recipe for target 'caffe2/torch/CMakeFiles/torch_python.dir/csrc/DataLoader.cpp.o' failed
�[91mmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/csrc/DataLoader.cpp.o] Error 1
�[0m�[91m/opt/pytorch/torch/csrc/Generator.cpp:124:36: error: cast between incompatible function types from ‘PyObject* (*)(THPGenerator*)’ {aka ‘_object* (*)(THPGenerator*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"get_state", (PyCFunction)THPGenerator_getState, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Generator.cpp:127:36: error: cast between incompatible function types from ‘PyObject* (*)(THPGenerator*)’ {aka ‘_object* (*)(THPGenerator*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"seed", (PyCFunction)THPGenerator_seed, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Generator.cpp:128:36: error: cast between incompatible function types from ‘PyObject* (*)(THPGenerator*)’ {aka ‘_object* (*)(THPGenerator*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"initial_seed", (PyCFunction)THPGenerator_initialSeed, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Device.cpp:169:26: error: cast between incompatible function types from ‘PyObject* (*)(THPDevice*)’ {aka ‘_object* (*)(THPDevice*)’} to ‘getter’ {aka ‘_object* (*)(_object*, void*)’} [-Werror=cast-function-type]
{"type", (getter)THPDevice_type, nullptr, nullptr, nullptr},
^~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Device.cpp:170:26: error: cast between incompatible function types from ‘PyObject* (*)(THPDevice*)’ {aka ‘_object* (*)(THPDevice*)’} to ‘getter’ {aka ‘_object* (*)(_object*, void*)’} [-Werror=cast-function-type]
{"index", (getter)THPDevice_index, nullptr, nullptr, nullptr},
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Device.cpp:175:31: error: cast between incompatible function types from ‘PyObject* (*)(THPDevice*)’ {aka ‘_object* (*)(THPDevice*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"__reduce__", (PyCFunction)THPDevice_reduce, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Module.cpp:410:36: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_autograd_init", (PyCFunction)THPAutograd_initExtension, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:413:36: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_has_distributed",(PyCFunction)THPModule_hasDistributed, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:414:36: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*, PyObject*, PyObject*)’ {aka ‘_object* (*)(_object*, _object*, _object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_safe_call", (PyCFunction)THPModule_safeCall, METH_VARARGS | METH_KEYWORDS, nullptr},
^~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:422:51: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_get_backcompat_broadcast_warn", (PyCFunction)THPModule_getBackcompatBroadcastWarn, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Module.cpp:424:49: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_get_backcompat_keepdim_warn", (PyCFunction)THPModule_getBackcompatKeepdimWarn, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:425:36: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"get_num_threads", (PyCFunction)THPModule_getNumThreads, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Module.cpp:427:39: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_get_cudnn_enabled", (PyCFunction)THPModule_userEnabledCuDNN, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:429:41: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_get_cudnn_benchmark", (PyCFunction)THPModule_benchmarkCuDNN, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:431:45: error: cast between incompatible function types from ‘PyObject* (*)(PyObject*)’ {aka ‘_object* (*)(_object*)’} to ‘PyCFunction’ {aka ‘_object* (*)(_object*, _object*)’} [-Werror=cast-function-type]
{"_get_cudnn_deterministic", (PyCFunction)THPModule_deterministicCuDNN, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91mcc1plus: all warnings being treated as errors
�[0m�[91mmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Generator.cpp.o] Error 1
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:307: recipe for target 'caffe2/torch/CMakeFiles/torch_python.dir/csrc/Generator.cpp.o' failed
�[91mcc1plus: all warnings being treated as errors
�[0m�[91mmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Device.cpp.o] Error 1
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:187: recipe for target 'caffe2/torch/CMakeFiles/torch_python.dir/csrc/Device.cpp.o' failed
�[91mcc1plus: all warnings being treated as errors
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:355: recipe for target 'caffe2/torch/CMakeFiles/torch_python.dir/csrc/Module.cpp.o' failed
�[91mmake[2]: *** [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Module.cpp.o] Error 1
�[0mCMakeFiles/Makefile2:3155: recipe for target 'caffe2/torch/CMakeFiles/torch_python.dir/all' failed
�[91mmake[1]: *** [caffe2/torch/CMakeFiles/torch_python.dir/all] Error 2
�[0mMakefile:138: recipe for target 'all' failed
�[91mmake: *** [all] Error 2
�[0msetup.py::build_deps::run()
Failed to run 'bash ../tools/build_pytorch_libs.sh --use-nnpack --use-mkldnn --use-qnnpack caffe2'"><pre class="notranslate">�[0mFirst, rewinding head to replay your work on top of it...
Fast-forwarded HEAD to 733fc908874c71a5285043931a1cf80aa923165c.
Building wheel torch-1.0.0a0+1bafa62
running install
<span class="pl-en">setup.py::run</span>()
running build_deps
�[91m+ SYNC_COMMAND<span class="pl-k">=</span>cp
�[0m�[91m++ <span class="pl-c1">command</span> -v rsync
�[0m�[91m+ <span class="pl-s"><span class="pl-pds">'</span>[<span class="pl-pds">'</span></span> <span class="pl-k">-x</span> /usr/bin/rsync <span class="pl-s"><span class="pl-pds">'</span>]<span class="pl-pds">'</span></span>
�[0m�[91m+ SYNC_COMMAND<span class="pl-k">=</span><span class="pl-s"><span class="pl-pds">'</span>rsync -lptgoD<span class="pl-pds">'</span></span>
+ CMAKE_COMMAND<span class="pl-k">=</span>cmake
�[0m�[91m++ <span class="pl-c1">command</span> -v cmake3
�[0m�[91m+ [[ <span class="pl-k">-x</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
�[0m�[91m+ USE_CUDA<span class="pl-k">=</span>0
+ USE_FBGEMM<span class="pl-k">=</span>0
�[0m�[91m+ USE_ROCM<span class="pl-k">=</span>0
�[0m�[91m+ USE_NNPACK<span class="pl-k">=</span>0
+ USE_MKLDNN<span class="pl-k">=</span>0
+ USE_QNNPACK<span class="pl-k">=</span>0
�[0m�[91m+ USE_GLOO_IBVERBS<span class="pl-k">=</span>0
+ CAFFE2_STATIC_LINK_CUDA<span class="pl-k">=</span>0
+ RERUN_CMAKE<span class="pl-k">=</span>1
�[0m�[91m+ [[ 4 <span class="pl-k">-gt</span> 0 ]]
+ <span class="pl-k">case</span> <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$1</span><span class="pl-pds">"</span></span> <span class="pl-k">in</span>
+ USE_NNPACK=1
+ shift
+ [[ 3 -gt 0 ]]
+ case <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$1</span><span class="pl-pds">"</span></span> in
�[0m�[91m+ USE_MKLDNN=1
+ shift
+ [[ 2 -gt 0 ]]
+ case <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$1</span><span class="pl-pds">"</span></span> in
�[0m�[91m+ USE_QNNPACK=1
+ shift
+ [[ 1 -gt 0 ]]
+ case <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$1</span><span class="pl-pds">"</span></span> in
�[0m�[91m+ break
�[0m�[91m+ CMAKE_INSTALL=<span class="pl-s"><span class="pl-pds">'</span>make install<span class="pl-pds">'</span></span>
�[0m�[91m+ BUILD_SHARED_LIBS=ON
�[0m�[91m+ USER_CFLAGS=
+ USER_LDFLAGS=
�[0m�[91m+ [[ -n <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
+ [[ -n <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
�[0m�[91m+ [[ -n <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
�[0m�[91m++ uname
�[0m�[91m+ <span class="pl-s"><span class="pl-pds">'</span>[<span class="pl-pds">'</span></span> Linux == Darwin <span class="pl-s"><span class="pl-pds">'</span>]<span class="pl-pds">'</span></span>
�[0m�[91m+++ dirname ../tools/build_pytorch_libs.sh
�[0m�[91m++ cd ../tools/..
�[0m�[91m+++ pwd
�[0m�[91m++ printf <span class="pl-s"><span class="pl-pds">'</span>%q\n<span class="pl-pds">'</span></span> /opt/pytorch
�[0m�[91m+ BASE_DIR=/opt/pytorch
�[0m�[91m+ TORCH_LIB_DIR=/opt/pytorch/torch/lib
+ INSTALL_DIR=/opt/pytorch/torch/lib/tmp_install
+ THIRD_PARTY_DIR=/opt/pytorch/third_party
+ C_FLAGS=
�[0m�[91m+ C_FLAGS=<span class="pl-s"><span class="pl-pds">'</span> -DOMPI_SKIP_MPICXX=1<span class="pl-pds">'</span></span>
+ LDFLAGS=
�[0m�[91m+ LD_POSTFIX=.so
�[0m�[91m++ uname
�[0m�[91m+ [[ Linux == <span class="pl-cce">\D\a\r\w\i\n</span> ]]
+ [[ 0 -eq 1 ]]
�[0m�[91m+ LDFLAGS=<span class="pl-s"><span class="pl-pds">'</span> -Wl,-rpath,$ORIGIN<span class="pl-pds">'</span></span>
�[0m�[91m+ CPP_FLAGS=<span class="pl-s"><span class="pl-pds">'</span> -std=c++11 <span class="pl-pds">'</span></span>
+ THD_FLAGS=
+ [[ 0 -eq 1 ]]
�[0m�[91m+ CUDA_NVCC_FLAGS=<span class="pl-s"><span class="pl-pds">'</span> -DOMPI_SKIP_MPICXX=1<span class="pl-pds">'</span></span>
�[0m�[91m+ [[ -z <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
+ CUDA_DEVICE_DEBUG=0
�[0m�[91m+ <span class="pl-s"><span class="pl-pds">'</span>[<span class="pl-pds">'</span></span> -z <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> <span class="pl-s"><span class="pl-pds">'</span>]<span class="pl-pds">'</span></span>
�[0m�[91m++ getconf _NPROCESSORS_ONLN
�[0m�[91m+ MAX_JOBS=8
�[0m�[91m+ BUILD_TYPE=Release
�[0m�[91m+ [[ -n <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
+ [[ -n <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
�[0mBuilding in Release mode
�[91m+ echo <span class="pl-s"><span class="pl-pds">'</span>Building in Release mode<span class="pl-pds">'</span></span>
�[0m�[91m+ mkdir -p /opt/pytorch/torch/lib/tmp_install
�[0m�[91m+ for arg in <span class="pl-s"><span class="pl-pds">"</span><span class="pl-smi">$@</span><span class="pl-pds">"</span></span>
�[0m�[91m+ [[ caffe2 == <span class="pl-cce">\c\a\f\f\e\2</span> ]]
+ build_caffe2
�[0m�[91m+ [[ -z <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
�[0m�[91m+ EXTRA_CAFFE2_CMAKE_FLAGS=()
+ [[ <span class="pl-k">-n</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-pds">'</span></span> ]]
+ [[ <span class="pl-k">-n</span> /opt/conda/lib/python3.6/site-packages ]]
�[0m�[91m+ EXTRA_CAFFE2_CMAKE_FLAGS+<span class="pl-k">=</span>(<span class="pl-s"><span class="pl-pds">"</span>-DCMAKE_PREFIX_PATH=<span class="pl-smi">$CMAKE_PREFIX_PATH</span><span class="pl-pds">"</span></span>)
+ [[ 1 <span class="pl-k">-eq</span> 1 ]]
�[0m�[91m+ cmake /opt/pytorch -DPYTHON_EXECUTABLE=/opt/conda/bin/python -DPYTHON_LIBRARY=/opt/conda/lib/libpython3.6m.so.1.0 -DPYTHON_INCLUDE_DIR=/opt/conda/include/python3.6m -DBUILDING_WITH_TORCH_LIBS=ON -DTORCH_BUILD_VERSION=1.0.0a0+1bafa62 -DCMAKE_BUILD_TYPE=Release -DBUILD_TORCH=ON -DBUILD_PYTHON=ON -DBUILD_SHARED_LIBS=ON -DBUILD_BINARY=OFF -DBUILD_TEST=OFF -DINSTALL_TEST=OFF -DBUILD_CAFFE2_OPS=ON -DONNX_NAMESPACE=onnx_torch -DUSE_CUDA=0 -DUSE_DISTRIBUTED=ON -DUSE_FBGEMM=0 -DUSE_NUMPY= -DNUMPY_INCLUDE_DIR=/opt/conda/lib/python3.6/site-packages/numpy-1.16.0.dev0+2668b31-py3.6-linux-x86_64.egg/numpy/core/include -DCAFFE2_STATIC_LINK_CUDA=0 -DUSE_ROCM=0 -DUSE_NNPACK=1 -DUSE_LEVELDB=OFF -DUSE_LMDB=OFF -DUSE_OPENCV=OFF -DUSE_QNNPACK=1 -DUSE_FFMPEG=OFF -DUSE_GLOG=OFF -DUSE_GFLAGS=OFF -DUSE_SYSTEM_EIGEN_INSTALL=OFF -DCUDNN_INCLUDE_DIR= -DCUDNN_LIB_DIR= -DCUDNN_LIBRARY= -DUSE_MKLDNN=1 -DNCCL_EXTERNAL=0 -DCMAKE_INSTALL_PREFIX=/opt/pytorch/torch/lib/tmp_install -DCMAKE_C_FLAGS= -DCMAKE_CXX_FLAGS= '-DCMAKE_EXE_LINKER_FLAGS= -Wl,-rpath,$ORIGIN ' '-DCMAKE_SHARED_LINKER_FLAGS= -Wl,-rpath,$ORIGIN ' -DTHD_SO_VERSION=1 -DCMAKE_PREFIX_PATH=/opt/conda/lib/python3.6/site-packages
�[0m-- The CXX compiler identification is GNU 8.2.0
-- The C compiler identification is GNU 8.2.0
-- Check <span class="pl-k">for</span> working CXX compiler: /usr/local/bin/c++
-- Check <span class="pl-k">for</span> working CXX compiler: /usr/local/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - <span class="pl-k">done</span>
-- Detecting CXX compile features
-- Detecting CXX compile features - <span class="pl-k">done</span>
-- Check <span class="pl-k">for</span> working C compiler: /usr/local/bin/gcc
-- Check <span class="pl-k">for</span> working C compiler: /usr/local/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - <span class="pl-k">done</span>
-- Detecting C compile features
-- Detecting C compile features - <span class="pl-k">done</span>
-- Not forcing any particular BLAS to be found
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Success
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Success
-- NUMA is available
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Turning off deprecation warning due to glog.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Success
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512F_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512F_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Success
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Looking <span class="pl-k">for</span> pthread.h
-- Looking <span class="pl-k">for</span> pthread.h - found
-- Looking <span class="pl-k">for</span> pthread_create
-- Looking <span class="pl-k">for</span> pthread_create - not found
-- Looking <span class="pl-k">for</span> <span class="pl-smi">pthread_create</span> <span class="pl-k">in</span> pthreads
-- Looking <span class="pl-k">for</span> <span class="pl-smi">pthread_create</span> <span class="pl-k">in</span> pthreads - not found
-- Looking <span class="pl-k">for</span> <span class="pl-smi">pthread_create</span> <span class="pl-k">in</span> pthread
-- Looking <span class="pl-k">for</span> <span class="pl-smi">pthread_create</span> <span class="pl-k">in</span> pthread - found
-- Found Threads: TRUE
-- Caffe2 protobuf include directory: $<span class="pl-k"><</span>BUILD_INTERFACE:/opt/pytorch/third_party/protobuf/src<span class="pl-k">></span>$<span class="pl-k"><</span>INSTALL_INTERFACE:include<span class="pl-k">></span>
-- The BLAS backend of choice:MKL
-- Looking <span class="pl-k">for</span> sys/types.h
-- Looking <span class="pl-k">for</span> sys/types.h - found
-- Looking <span class="pl-k">for</span> stdint.h
-- Looking <span class="pl-k">for</span> stdint.h - found
-- Looking <span class="pl-k">for</span> stddef.h
-- Looking <span class="pl-k">for</span> stddef.h - found
-- Check size of void<span class="pl-k">*</span>
-- Check size of void<span class="pl-k">*</span> - <span class="pl-k">done</span>
-- Checking <span class="pl-k">for</span> [mkl_intel_lp64 - mkl_gnu_thread - mkl_core - gomp - pthread - m - dl]
-- Library mkl_intel_lp64: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so
-- Library mkl_gnu_thread: /opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so
-- Library mkl_core: /opt/intel/mkl/lib/intel64/libmkl_core.so
-- Try OpenMP C flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Try OpenMP CXX flag = [-fopenmp]
-- Performing Test OpenMP_FLAG_DETECTED
-- Performing Test OpenMP_FLAG_DETECTED - Success
-- Found OpenMP: -fopenmp
-- Library gomp: -fopenmp
-- Library pthread: /usr/lib/x86_64-linux-gnu/libpthread.so
-- Library m: /usr/lib/x86_64-linux-gnu/libm.so
-- Library dl: /usr/lib/x86_64-linux-gnu/libdl.so
-- Looking <span class="pl-k">for</span> cblas_sgemm
-- Looking <span class="pl-k">for</span> cblas_sgemm - found
-- The ASM compiler identification is GNU
-- Found assembler: /usr/local/bin/gcc
-- Check <span class="pl-k">if</span> compiler accepts -pthread
-- Check <span class="pl-k">if</span> compiler accepts -pthread - yes
-- Brace yourself, we are building NNPACK
-- Found PythonInterp: /opt/conda/bin/python (found version <span class="pl-s"><span class="pl-pds">"</span>3.6.5<span class="pl-pds">"</span></span>)
-- Found Numa: /usr/include
-- Found Numa (include: /usr/include, library: /usr/lib/x86_64-linux-gnu/libnuma.so)
-- Using third party subdirectory Eigen.
�[91mPython 3.6.5 :: Anaconda, Inc.
�[0m-- Found PythonInterp: /opt/conda/bin/python (found suitable version <span class="pl-s"><span class="pl-pds">"</span>3.6.5<span class="pl-pds">"</span></span>, minimum required is <span class="pl-s"><span class="pl-pds">"</span>2.7<span class="pl-pds">"</span></span>)
-- Found PythonLibs: /opt/conda/lib/libpython3.6m.so.1.0 (found suitable version <span class="pl-s"><span class="pl-pds">"</span>3.6.5<span class="pl-pds">"</span></span>, minimum required is <span class="pl-s"><span class="pl-pds">"</span>2.7<span class="pl-pds">"</span></span>)
�[91mCMake Warning at cmake/Dependencies.cmake:583 (find_package):
Could not find a package configuration file provided by <span class="pl-s"><span class="pl-pds">"</span>pybind11<span class="pl-pds">"</span></span> with any
of the following names:
pybind11Config.cmake
pybind11-config.cmake
Add the installation prefix of <span class="pl-s"><span class="pl-pds">"</span>pybind11<span class="pl-pds">"</span></span> to CMAKE_PREFIX_PATH or <span class="pl-c1">set</span>
<span class="pl-s"><span class="pl-pds">"</span>pybind11_DIR<span class="pl-pds">"</span></span> to a directory containing one of the above files. If
<span class="pl-s"><span class="pl-pds">"</span>pybind11<span class="pl-pds">"</span></span> provides a separate development package or SDK, be sure it has
been installed.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
�[0m-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- Found MPI_C: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-- Found MPI_CXX: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-- MPI support found
-- MPI compile flags:
-- MPI include path: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include/usr/lib/x86_64-linux-gnu/openmpi/include
-- MPI LINK flags path:
-- MPI libraries: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
�[91mCMake Warning at cmake/Dependencies.cmake:618 (message):
OpenMPI found, but it is not built with CUDA support.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
�[0m-- Adding <span class="pl-k">-f</span>openmp
�[91mCMake Warning at cmake/Dependencies.cmake:769 (message):
Not using CUDA, so disabling NCCL. Suppress this warning with
-DUSE_NCCL<span class="pl-k">=</span>OFF.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
�[0m-- MPI include path: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include/usr/lib/x86_64-linux-gnu/openmpi/include
-- MPI libraries: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
�[91mCMake Warning at cmake/Dependencies.cmake:847 (message):
mobile opengl is only used <span class="pl-k">in</span> android or ios builds.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
CMake Warning at cmake/Dependencies.cmake:923 (message):
Metal is only used <span class="pl-k">in</span> ios builds.
Call Stack (most recent call first):
CMakeLists.txt:201 (include)
�[0m--
-- <span class="pl-k">********</span> Summary <span class="pl-k">********</span>
-- CMake version <span class="pl-c1">:</span> 3.7.2
-- CMake <span class="pl-c1">command</span> <span class="pl-c1">:</span> /usr/bin/cmake
-- System <span class="pl-c1">:</span> Linux
-- C++ compiler <span class="pl-c1">:</span> /usr/local/bin/c++
-- C++ compiler version <span class="pl-c1">:</span> 8.2.0
-- CXX flags <span class="pl-c1">:</span> -Wno-deprecated <span class="pl-k">-f</span>visibility-inlines-hidden <span class="pl-k">-f</span>openmp
-- Build <span class="pl-c1">type</span> <span class="pl-c1">:</span> Release
-- Compile definitions <span class="pl-c1">:</span> TH_BLAS_MKL
-- CMAKE_PREFIX_PATH <span class="pl-c1">:</span> /opt/conda/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX <span class="pl-c1">:</span> /opt/pytorch/torch/lib/tmp_install
-- CMAKE_MODULE_PATH <span class="pl-c1">:</span> /opt/pytorch/cmake/Modules
--
-- ONNX version <span class="pl-c1">:</span> 1.3.0
-- ONNX NAMESPACE <span class="pl-c1">:</span> onnx_torch
-- ONNX_BUILD_TESTS <span class="pl-c1">:</span> OFF
-- ONNX_BUILD_BENCHMARKS <span class="pl-c1">:</span> OFF
-- ONNX_USE_LITE_PROTO <span class="pl-c1">:</span> OFF
-- ONNXIFI_DUMMY_BACKEND <span class="pl-c1">:</span> OFF
--
-- Protobuf compiler <span class="pl-c1">:</span>
-- Protobuf includes <span class="pl-c1">:</span>
-- Protobuf libraries <span class="pl-c1">:</span>
-- BUILD_ONNX_PYTHON <span class="pl-c1">:</span> OFF
-- Found gcc <span class="pl-k">>=</span>5 and CUDA <span class="pl-k"><=</span> 7.5, adding workaround C++ flags
-- Could not find CUDA with FP16 support, compiling without torch.CudaHalfTensor
-- Removing -DNDEBUG from compile flags
-- Compiling with OpenMP support
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support <span class="pl-k">for</span> NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking <span class="pl-k">for</span> cpuid.h
-- Looking <span class="pl-k">for</span> cpuid.h - found
-- Performing Test HAVE_GCC_GET_CPUID
-- Performing Test HAVE_GCC_GET_CPUID - Success
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Success
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Failed
-- Performing Test C_HAS_AVX_2
-- Performing Test C_HAS_AVX_2 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Failed
-- Performing Test C_HAS_AVX2_2
-- Performing Test C_HAS_AVX2_2 - Success
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Failed
-- Performing Test CXX_HAS_AVX_2
-- Performing Test CXX_HAS_AVX_2 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Failed
-- Performing Test CXX_HAS_AVX2_2
-- Performing Test CXX_HAS_AVX2_2 - Success
-- AVX compiler support found
-- AVX2 compiler support found
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Success
-- Atomics: using C11 intrinsics
-- Performing Test BLAS_F2C_DOUBLE_WORKS
-- Performing Test BLAS_F2C_DOUBLE_WORKS - Failed
-- Performing Test BLAS_F2C_FLOAT_WORKS
-- Performing Test BLAS_F2C_FLOAT_WORKS - Success
-- Performing Test BLAS_USE_CBLAS_DOT
-- Performing Test BLAS_USE_CBLAS_DOT - Success
-- Found a library with BLAS API (mkl).
-- Found a library with LAPACK API. (mkl)
�[91mdisabling CUDA because NOT USE_CUDA is <span class="pl-c1">set</span>
�[0m�[91mdisabling ROCM because NOT USE_ROCM is <span class="pl-c1">set</span>
�[0m-- CuDNN not found. Compiling without CuDNN support
-- MIOpen not found. Compiling without MIOpen support
-- Found MKLDNN: /opt/intel/mkl/lib/intel64/libmkl_intel_lp64.so<span class="pl-k">;</span>/opt/intel/mkl/lib/intel64/libmkl_gnu_thread.so<span class="pl-k">;</span>/opt/intel/mkl/lib/intel64/libmkl_core.so<span class="pl-k">;</span>-fopenmp<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/libpthread.so<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/libm.so<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/libdl.so
-- Detecting Intel(R) MKL: trying mklml_intel
-- Detecting Intel(R) MKL: trying mklml_gnu
-- Detecting Intel(R) MKL: trying mklml
-- Detecting Intel(R) MKL: trying mkl_rt
-- Intel(R) MKL: include /opt/intel/compilers_and_libraries/linux/mkl/include
-- Intel(R) MKL: lib /usr/local/lib64/libmkl_rt.so
-- OpenMP lib: <span class="pl-k">-f</span>openmp
-- Found Doxygen: /usr/bin/doxygen (found version <span class="pl-s"><span class="pl-pds">"</span>1.8.13<span class="pl-pds">"</span></span>)
-- VTune profiling environment is <span class="pl-c1">unset</span>
-- Looking <span class="pl-k">for</span> <span class="pl-smi">clock_gettime</span> <span class="pl-k">in</span> rt
-- Looking <span class="pl-k">for</span> <span class="pl-smi">clock_gettime</span> <span class="pl-k">in</span> rt - found
-- Looking <span class="pl-k">for</span> mmap
-- Looking <span class="pl-k">for</span> mmap - found
-- Looking <span class="pl-k">for</span> shm_open
-- Looking <span class="pl-k">for</span> shm_open - found
-- Looking <span class="pl-k">for</span> shm_unlink
-- Looking <span class="pl-k">for</span> shm_unlink - found
-- Looking <span class="pl-k">for</span> malloc_usable_size
-- Looking <span class="pl-k">for</span> malloc_usable_size - found
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- GCC 8.2.0: Adding gcc and gcc_s libs to link line
-- Using python found <span class="pl-k">in</span> /opt/conda/bin/python
�[91mdisabling CUDA because USE_CUDA is <span class="pl-c1">set</span> <span class="pl-c1">false</span>
�[0m-- Check size of long double
-- Check size of long double - <span class="pl-k">done</span>
-- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE
-- Performing Test COMPILER_SUPPORTS_LONG_DOUBLE - Success
-- Performing Test COMPILER_SUPPORTS_FLOAT128
-- Performing Test COMPILER_SUPPORTS_FLOAT128 - Success
-- Performing Test COMPILER_SUPPORTS_SSE2
-- Performing Test COMPILER_SUPPORTS_SSE2 - Success
-- Performing Test COMPILER_SUPPORTS_SSE4
-- Performing Test COMPILER_SUPPORTS_SSE4 - Success
-- Performing Test COMPILER_SUPPORTS_AVX
-- Performing Test COMPILER_SUPPORTS_AVX - Success
-- Performing Test COMPILER_SUPPORTS_FMA4
-- Performing Test COMPILER_SUPPORTS_FMA4 - Success
-- Performing Test COMPILER_SUPPORTS_AVX2
-- Performing Test COMPILER_SUPPORTS_AVX2 - Success
-- Performing Test COMPILER_SUPPORTS_SVE
-- Performing Test COMPILER_SUPPORTS_SVE - Failed
-- Performing Test COMPILER_SUPPORTS_AVX512F
-- Performing Test COMPILER_SUPPORTS_AVX512F - Success
-- Performing Test COMPILER_SUPPORTS_OPENMP
-- Performing Test COMPILER_SUPPORTS_OPENMP - Success
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES
-- Performing Test COMPILER_SUPPORTS_WEAK_ALIASES - Success
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH
-- Performing Test COMPILER_SUPPORTS_BUILTIN_MATH - Success
-- Configuring build <span class="pl-k">for</span> SLEEF-v3.2
�[91m Target system: Linux-4.4.0-116-generic
�[0m�[91m Target processor: x86_64
Host system: Linux-4.4.0-116-generic
Host processor: x86_64
Detected C compiler: GNU @ /usr/local/bin/gcc�[0m�[91m
�[0m-- Using option <span class="pl-s"><span class="pl-pds">`</span>-Wall -Wno-unused -Wno-attributes -Wno-unused-result -Wno-psabi -ffp-contract=off -fno-math-errno -fno-trapping-math<span class="pl-pds">`</span></span> to compile libsleef
-- Building shared libs <span class="pl-c1">:</span> OFF
-- MPFR <span class="pl-c1">:</span> /usr/lib/x86_64-linux-gnu/libmpfr.so
-- MPFR header file <span class="pl-k">in</span> /usr/include
-- GMP <span class="pl-c1">:</span> /usr/lib/x86_64-linux-gnu/libgmp.so
-- RUNNING_ON_TRAVIS <span class="pl-c1">:</span> 0
-- COMPILER_SUPPORTS_OPENMP <span class="pl-c1">:</span> 1
-- Using python found <span class="pl-k">in</span> /opt/conda/bin/python
-- /usr/local/bin/c++ /opt/pytorch/torch/abi-check.cpp <span class="pl-k">-o</span> /opt/pytorch/build/abi-check
-- Determined _GLIBCXX_USE_CXX11_ABI<span class="pl-k">=</span>1
-- Performing Test HAS_THREAD_LOCAL
-- Performing Test HAS_THREAD_LOCAL - Success
-- ignoring CUDA
-- MPI_LIBRARIES: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-- Building C10D without CUDA support
-- MPI_INCLUDE_PATH: /usr/lib/x86_64-linux-gnu/openmpi/include/openmpi<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/openmpi/include/openmpi/opal/mca/event/libevent2022/libevent/include<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/openmpi/include
-- MPI_LIBRARIES: /usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so
-- MPIEXEC: /usr/bin/mpiexec
-- NCCL operators skipped due to no CUDA support
-- Including IDEEP operators
-- Excluding image processing operators due to no opencv
-- Excluding video processing operators due to no opencv
-- Include Observer library
-- Using lib/python3.6/site-packages as python relative installation path
-- Automatically generating missing __init__.py files.
�[91mCMake Warning at CMakeLists.txt:389 (message):
Generated cmake files are only fully tested <span class="pl-k">if</span> one builds with system glog,
gflags, and protobuf. Other settings may generate files that are not well
tested.
�[0m--
-- <span class="pl-k">********</span> Summary <span class="pl-k">********</span>
-- General:
-- CMake version <span class="pl-c1">:</span> 3.7.2
-- CMake <span class="pl-c1">command</span> <span class="pl-c1">:</span> /usr/bin/cmake
-- System <span class="pl-c1">:</span> Linux
-- C++ compiler <span class="pl-c1">:</span> /usr/local/bin/c++
-- C++ compiler version <span class="pl-c1">:</span> 8.2.0
-- BLAS <span class="pl-c1">:</span> MKL
-- CXX flags <span class="pl-c1">:</span> -Wno-deprecated <span class="pl-k">-f</span>visibility-inlines-hidden <span class="pl-k">-f</span>openmp -D_FORCE_INLINES -D_MWAITXINTRIN_H_INCLUDED -D__STRICT_ANSI__ <span class="pl-k">-f</span>openmp <span class="pl-k">-O</span>2 <span class="pl-k">-f</span>PIC -Wno-narrowing -Wall -Wextra -Wno-missing-field-initializers -Wno-type-limits -Wno-array-bounds -Wno-unknown-pragmas -Wno-sign-compare -Wno-unused-parameter -Wno-unused-variable -Wno-unused-function -Wno-unused-result -Wno-strict-overflow -Wno-strict-aliasing -Wno-error<span class="pl-k">=</span>deprecated-declarations -Wno-stringop-overflow -Wno-error<span class="pl-k">=</span>pedantic -Wno-error<span class="pl-k">=</span>redundant-decls -Wno-error<span class="pl-k">=</span>old-style-cast <span class="pl-k">-f</span>aligned-new -Wno-unused-but-set-variable -Wno-maybe-uninitialized -Wno-stringop-overflow
-- Build <span class="pl-c1">type</span> <span class="pl-c1">:</span> Release
-- Compile definitions <span class="pl-c1">:</span> TH_BLAS_MKL<span class="pl-k">;</span>ONNX_NAMESPACE<span class="pl-k">=</span>onnx_torch<span class="pl-k">;</span>USE_C11_ATOMICS<span class="pl-k">=</span>1<span class="pl-k">;</span>HAVE_MMAP<span class="pl-k">=</span>1<span class="pl-k">;</span>_FILE_OFFSET_BITS<span class="pl-k">=</span>64<span class="pl-k">;</span>HAVE_SHM_OPEN<span class="pl-k">=</span>1<span class="pl-k">;</span>HAVE_SHM_UNLINK<span class="pl-k">=</span>1<span class="pl-k">;</span>HAVE_MALLOC_USABLE_SIZE<span class="pl-k">=</span>1
-- CMAKE_PREFIX_PATH <span class="pl-c1">:</span> /opt/conda/lib/python3.6/site-packages
-- CMAKE_INSTALL_PREFIX <span class="pl-c1">:</span> /opt/pytorch/torch/lib/tmp_install
--
-- TORCH_VERSION <span class="pl-c1">:</span> 1.0.0
-- CAFFE2_VERSION <span class="pl-c1">:</span> 1.0.0
-- BUILD_ATEN_MOBILE <span class="pl-c1">:</span> OFF
-- BUILD_ATEN_ONLY <span class="pl-c1">:</span> OFF
-- BUILD_BINARY <span class="pl-c1">:</span> OFF
-- BUILD_CUSTOM_PROTOBUF <span class="pl-c1">:</span> ON
-- Link <span class="pl-k">local</span> protobuf <span class="pl-c1">:</span> ON
-- BUILD_DOCS <span class="pl-c1">:</span> OFF
-- BUILD_PYTHON <span class="pl-c1">:</span> ON
-- Python version <span class="pl-c1">:</span> 3.6.5
-- Python executable <span class="pl-c1">:</span> /opt/conda/bin/python
-- Pythonlibs version <span class="pl-c1">:</span> 3.6.5
-- Python library <span class="pl-c1">:</span> /opt/conda/lib/libpython3.6m.so.1.0
-- Python includes <span class="pl-c1">:</span> /opt/conda/include/python3.6m
-- Python site-packages: lib/python3.6/site-packages
-- BUILD_CAFFE2_OPS <span class="pl-c1">:</span> ON
-- BUILD_SHARED_LIBS <span class="pl-c1">:</span> ON
-- BUILD_TEST <span class="pl-c1">:</span> OFF
-- USE_ASAN <span class="pl-c1">:</span> OFF
-- USE_CUDA <span class="pl-c1">:</span> 0
-- USE_ROCM <span class="pl-c1">:</span> OFF
-- USE_EIGEN_FOR_BLAS <span class="pl-c1">:</span>
-- USE_FBGEMM <span class="pl-c1">:</span> 0
-- USE_FFMPEG <span class="pl-c1">:</span> OFF
-- USE_GFLAGS <span class="pl-c1">:</span> OFF
-- USE_GLOG <span class="pl-c1">:</span> OFF
-- USE_LEVELDB <span class="pl-c1">:</span> OFF
-- USE_LITE_PROTO <span class="pl-c1">:</span> OFF
-- USE_LMDB <span class="pl-c1">:</span> OFF
-- USE_METAL <span class="pl-c1">:</span> OFF
-- USE_MKL <span class="pl-c1">:</span> ON
-- USE_MKLDNN <span class="pl-c1">:</span> ON
-- USE_MOBILE_OPENGL <span class="pl-c1">:</span> OFF
-- USE_NCCL <span class="pl-c1">:</span> OFF
-- USE_NNPACK <span class="pl-c1">:</span> 1
-- USE_NUMPY <span class="pl-c1">:</span> ON
-- USE_OBSERVERS <span class="pl-c1">:</span> ON
-- USE_OPENCL <span class="pl-c1">:</span> OFF
-- USE_OPENCV <span class="pl-c1">:</span> OFF
-- USE_OPENMP <span class="pl-c1">:</span> ON
-- USE_PROF <span class="pl-c1">:</span> OFF
-- USE_QNNPACK <span class="pl-c1">:</span> 1
-- USE_REDIS <span class="pl-c1">:</span> OFF
-- USE_ROCKSDB <span class="pl-c1">:</span> OFF
-- USE_ZMQ <span class="pl-c1">:</span> OFF
-- USE_DISTRIBUTED <span class="pl-c1">:</span> ON
-- USE_MPI <span class="pl-c1">:</span> ON
-- USE_GLOO <span class="pl-c1">:</span> ON
-- USE_GLOO_IBVERBS <span class="pl-c1">:</span> OFF
-- Public Dependencies <span class="pl-c1">:</span> Threads::Threads<span class="pl-k">;</span>caffe2::mkl<span class="pl-k">;</span>caffe2::mkldnn
-- Private Dependencies <span class="pl-c1">:</span> qnnpack<span class="pl-k">;</span>nnpack<span class="pl-k">;</span>cpuinfo<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/libnuma.so<span class="pl-k">;</span>fp16<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi_cxx.so<span class="pl-k">;</span>/usr/lib/x86_64-linux-gnu/openmpi/lib/libmpi.so<span class="pl-k">;</span>gloo<span class="pl-k">;</span>aten_op_header_gen<span class="pl-k">;</span>onnxifi_loader<span class="pl-k">;</span>rt<span class="pl-k">;</span>gcc_s<span class="pl-k">;</span>gcc<span class="pl-k">;</span>dl
-- Configuring <span class="pl-k">done</span>
-- Generating <span class="pl-k">done</span>
�[91mCMake Warning:
Manually-specified variables were not used by the project:
CUDNN_INCLUDE_DIR
CUDNN_LIBRARY
CUDNN_LIB_DIR
THD_SO_VERSION
�[0m-- Build files have been written to: /opt/pytorch/build
�[91m+ make install -j8
�[0mScanning dependencies of target pthreadpool
Scanning dependencies of target clog
Scanning dependencies of target js_embed
Scanning dependencies of target onnxifi_dummy
Scanning dependencies of target onnxifi_loader
[ 0%] Building C object third_party/onnx/CMakeFiles/onnxifi_dummy.dir/onnx/onnxifi_dummy.c.o
[ 0%] Building C object confu-deps/pthreadpool/CMakeFiles/pthreadpool.dir/src/threadpool-pthreads.c.o
[ 1%] Building C object confu-deps/clog/CMakeFiles/clog.dir/src/clog.c.o
[ 1%] Building C object third_party/onnx/CMakeFiles/onnxifi_loader.dir/onnx/onnxifi_loader.c.o
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/js_embed.dir/__/src/google/protobuf/compiler/js/embed.cc.o
Scanning dependencies of target libprotobuf-lite
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arena.cc.o
Scanning dependencies of target libprotobuf
[ 1%] Linking C static library ../../lib/libclog.a
Scanning dependencies of target gloo
[ 1%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/algorithm.cc.o
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arena.cc.o
[ 1%] Linking C static library ../../lib/libonnxifi_loader.a
[ 1%] Built target clog
[ 1%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/arenastring.cc.o
[ 1%] Built target onnxifi_loader
[ 2%] Linking C shared library ../../lib/libonnxifi_dummy.so
[ 2%] Linking C static library ../../lib/libpthreadpool.a
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/extension_set.cc.o
[ 2%] Built target pthreadpool
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.o
[ 2%] Built target onnxifi_dummy
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/generated_message_util.cc.o
[ 2%] Linking CXX executable ../../../bin/js_embed
[ 2%] Built target js_embed
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/arenastring.cc.o
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set.cc.o
[ 2%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allgather.cc.o
[ 2%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce.cc.o
[ 2%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/allreduce_local.cc.o
[ 2%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/coded_stream.cc.o
Scanning dependencies of target mkldnn
[ 2%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/batch_normalization.cpp.o
[ 2%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/broadcast.cc.o
Scanning dependencies of target c10
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/Device.cpp.o
Scanning dependencies of target python_copy_files
Scanning dependencies of target ATEN_CPU_FILES_GEN_TARGET
[ 3%] Generating ../aten/src/ATen/CPUByteType.cpp, ../aten/src/ATen/CPUByteType.h, ../aten/src/ATen/CPUCharType.cpp, ../aten/src/ATen/CPUCharType.h, ../aten/src/ATen/CPUCopy.cpp, ../aten/src/ATen/CPUDoubleType.cpp, ../aten/src/ATen/CPUDoubleType.h, ../aten/src/ATen/CPUFloatType.cpp, ../aten/src/ATen/CPUFloatType.h, ../aten/src/ATen/CPUGenerator.h, ../aten/src/ATen/CPUHalfType.cpp, ../aten/src/ATen/CPUHalfType.h, ../aten/src/ATen/CPUIntType.cpp, ../aten/src/ATen/CPUIntType.h, ../aten/src/ATen/CPULongType.cpp, ../aten/src/ATen/CPULongType.h, ../aten/src/ATen/CPUShortType.cpp, ../aten/src/ATen/CPUShortType.h, ../aten/src/ATen/Declarations.yaml, ../aten/src/ATen/Functions.h, ../aten/src/ATen/NativeFunctions.h, ../aten/src/ATen/RegisterCPU.cpp, ../aten/src/ATen/RegisterCPU.h, ../aten/src/ATen/SparseCPUByteType.cpp, ../aten/src/ATen/SparseCPUByteType.h, ../aten/src/ATen/SparseCPUCharType.cpp, ../aten/src/ATen/SparseCPUCharType.h, ../aten/src/ATen/SparseCPUDoubleType.cpp, ../aten/src/ATen/SparseCPUDoubleType.h, ../aten/src/ATen/SparseCPUFloatType.cpp, ../aten/src/ATen/SparseCPUFloatType.h, ../aten/src/ATen/SparseCPUIntType.cpp, ../aten/src/ATen/SparseCPUIntType.h, ../aten/src/ATen/SparseCPULongType.cpp, ../aten/src/ATen/SparseCPULongType.h, ../aten/src/ATen/SparseCPUShortType.cpp, ../aten/src/ATen/SparseCPUShortType.h, ../aten/src/ATen/TypeDefault.cpp, ../aten/src/ATen/TypeDefault.h, ../aten/src/ATen/TypeExtendedInterface.h, ../aten/src/ATen/CUDAByteType.cpp, ../aten/src/ATen/CUDAByteType.h, ../aten/src/ATen/CUDACharType.cpp, ../aten/src/ATen/CUDACharType.h, ../aten/src/ATen/CUDACopy.cpp, ../aten/src/ATen/CUDADoubleType.cpp, ../aten/src/ATen/CUDADoubleType.h, ../aten/src/ATen/CUDAFloatType.cpp, ../aten/src/ATen/CUDAFloatType.h, ../aten/src/ATen/CUDAGenerator.h, ../aten/src/ATen/CUDAHalfType.cpp, ../aten/src/ATen/CUDAHalfType.h, ../aten/src/ATen/CUDAIntType.cpp, ../aten/src/ATen/CUDAIntType.h, ../aten/src/ATen/CUDALongType.cpp, ../aten/src/ATen/CUDALongType.h, ../aten/src/ATen/CUDAShortType.cpp, ../aten/src/ATen/CUDAShortType.h, ../aten/src/ATen/RegisterCUDA.cpp, ../aten/src/ATen/RegisterCUDA.h, ../aten/src/ATen/SparseCUDAByteType.cpp, ../aten/src/ATen/SparseCUDAByteType.h, ../aten/src/ATen/SparseCUDACharType.cpp, ../aten/src/ATen/SparseCUDACharType.h, ../aten/src/ATen/SparseCUDADoubleType.cpp, ../aten/src/ATen/SparseCUDADoubleType.h, ../aten/src/ATen/SparseCUDAFloatType.cpp, ../aten/src/ATen/SparseCUDAFloatType.h, ../aten/src/ATen/SparseCUDAIntType.cpp, ../aten/src/ATen/SparseCUDAIntType.h, ../aten/src/ATen/SparseCUDALongType.cpp, ../aten/src/ATen/SparseCUDALongType.h, ../aten/src/ATen/SparseCUDAShortType.cpp, ../aten/src/ATen/SparseCUDAShortType.h
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven_lite.cc.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream.cc.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution.cpp.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/convolution_relu.cpp.o
[ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/context.cc.o
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/DeviceType.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
[ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/gather.cc.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/deconvolution.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/message_lite.cc.o
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/Half.cpp.o
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/Stream.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_util.cc.o
[ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/reduce.cc.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/eltwise.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/repeated_field.cc.o
[ 3%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/scatter.cc.o
[ 3%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/DeviceId.cpp.o
[ 3%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/engine.cpp.o
[ 3%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/inner_product.cpp.o
[ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc.o
[ 4%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/coded_stream.cc.o
[ 4%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/DispatchKey.cpp.o
[ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/types.cc.o
[ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/bytestream.cc.o
[ 5%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/DispatchTable.cpp.o
[ 5%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/lrn.cpp.o
[ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream.cc.o
[ 5%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/common.cc.o
[ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/linux.cc.o
[ 5%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/common/logging.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl_lite.cc.o
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/memory.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/int128.cc.o
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/Dispatcher.cpp.o
[ 6%] Built target ATEN_CPU_FILES_GEN_TARGET
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/KernelRegistration.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message_lite.cc.o
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/LayoutId.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/io_win32.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/once.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/repeated_field.cc.o
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/memory_desc_wrapper.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/status.cc.o
[ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/mpi/context.cc.o
[ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/context.cc.o
[ 6%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/file_store.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/atomicops_internals_x86_gcc.cc.o
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/OpSchema.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/statusor.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/atomicops_internals_x86_msvc.cc.o
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/mkldnn_debug.cpp.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringpiece.cc.o
[ 6%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/pooling.cpp.o
�[91mIn file included from /opt/pytorch/third_party/gloo/gloo/mpi/context.cc:17:
/opt/pytorch/third_party/gloo/gloo/mpi/context.cc: In destructor <span class="pl-en">‘gloo::mpi::MPIScope::~MPIScope</span>()’:
/opt/pytorch/third_party/gloo/gloo/common/logging.h:142:58: warning: throw will always call <span class="pl-en">terminate</span>() [-Wterminate]
r.get_message_and_free(MakeString(__VA_ARGS__)))<span class="pl-k">;</span> \
^
/opt/pytorch/third_party/gloo/gloo/common/logging.h:151:3: note: <span class="pl-k">in</span> expansion of macro ‘GLOO_ENFORCE_THAT_IMPL’
GLOO_ENFORCE_THAT_IMPL(Equals<span class="pl-s"><span class="pl-pds">((</span>x)<span class="pl-k">,</span> (y<span class="pl-pds">))</span></span>, <span class="pl-c"><span class="pl-c">#</span>x " == " #y, __VA_ARGS__)</span>
^~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/third_party/gloo/gloo/mpi/context.cc:44:3: note: <span class="pl-k">in</span> expansion of macro ‘GLOO_ENFORCE_EQ’
GLOO_ENFORCE_EQ(rv, MPI_SUCCESS)<span class="pl-k">;</span>
^~~~~~~~~~~~~~~
/opt/pytorch/third_party/gloo/gloo/common/logging.h:142:58: note: <span class="pl-k">in</span> C++11 destructors default to noexcept
r.get_message_and_free(MakeString(__VA_ARGS__)))<span class="pl-k">;</span> \
^
/opt/pytorch/third_party/gloo/gloo/common/logging.h:151:3: note: <span class="pl-k">in</span> expansion of macro ‘GLOO_ENFORCE_THAT_IMPL’
GLOO_ENFORCE_THAT_IMPL(Equals<span class="pl-s"><span class="pl-pds">((</span>x)<span class="pl-k">,</span> (y<span class="pl-pds">))</span></span>, <span class="pl-c"><span class="pl-c">#</span>x " == " #y, __VA_ARGS__)</span>
^~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/third_party/gloo/gloo/mpi/context.cc:44:3: note: <span class="pl-k">in</span> expansion of macro ‘GLOO_ENFORCE_EQ’
GLOO_ENFORCE_EQ(rv, MPI_SUCCESS)<span class="pl-k">;</span>
^~~~~~~~~~~~~~~
�[0m[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/bytestream.cc.o
[ 6%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/stringprintf.cc.o
[ 6%] Building CXX object c10/CMakeFiles/c10.dir/core/dispatch/OpSchemaRegistration.cpp.o
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive.cpp.o
[ 7%] Building CXX object c10/CMakeFiles/c10.dir/impl/DeviceGuardImplInterface.cpp.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/common.cc.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/int128.cc.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o
[ 7%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/hash_store.cc.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/strutil.cc.o
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_attr.cpp.o
[ 7%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_desc.cpp.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/io_win32.cc.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/once.cc.o
[ 7%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/prefix_store.cc.o
[ 7%] Building CXX object c10/CMakeFiles/c10.dir/util/Array.cpp.o
[ 7%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/status.cc.o
[ 8%] Building CXX object c10/CMakeFiles/c10.dir/util/Backtrace.cpp.o
[ 8%] Building CXX object c10/CMakeFiles/c10.dir/util/C++17.cpp.o
Scanning dependencies of target common
[ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/primitive_iterator.cpp.o
[ 8%] Building C object sleef/src/common/CMakeFiles/common.dir/common.c.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/stubs/time.cc.o
[ 8%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/rendezvous/store.cc.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/statusor.cc.o
[ 8%] Built target common
[ 8%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/address.cc.o
[ 8%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/buffer.cc.o
[ 8%] Building CXX object c10/CMakeFiles/c10.dir/util/Exception.cpp.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringprintf.cc.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/stringpiece.cc.o
[ 8%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf-lite.dir/__/src/google/protobuf/wire_format_lite.cc.o
[ 8%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/query.cpp.o
[ 9%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/structurally_valid.cc.o
[ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/context.cc.o
[ 9%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/reorder.cpp.o
[ 9%] Building CXX object c10/CMakeFiles/c10.dir/util/LeftRight.cpp.o
[ 9%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/strutil.cc.o
[ 9%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/device.cc.o
[ 10%] Linking CXX static library ../../../lib/libprotobuf-lite.a
[ 10%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/pair.cc.o
[ 10%] Built target libprotobuf-lite
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/unbound_buffer.cc.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/rnn.cpp.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/address.cc.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/buffer.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/Logging.cpp.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/Metaprogramming.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/time.cc.o
[ 11%] Built target python_copy_files
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/scratchpad.cpp.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/shuffle.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format_lite.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/any.pb.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/api.pb.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/importer.cc.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/softmax.cpp.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/stream.cpp.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/context.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/Optional.cpp.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/device.cc.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/pair.cc.o
[ 11%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo.dir/transport/tcp/unbound_buffer.cc.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/utils.cpp.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/SmallVector.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/compiler/parser.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/StringUtil.cpp.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/common/verbose.cpp.o
[ 11%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_barrier.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/TensorTypeId.cpp.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor.pb.cc.o
[ 11%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/descriptor_database.cc.o
[ 11%] Building CXX object c10/CMakeFiles/c10.dir/util/TensorTypeIdRegistration.cpp.o
[ 12%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_batch_normalization_utils.cpp.o
[ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/Type.cpp.o
[ 12%] Linking CXX static library ../../../lib/libgloo.a
[ 12%] Built target gloo
[ 12%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_concat.cpp.o
[ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeList.cpp.o
[ 12%] Building CXX object c10/CMakeFiles/c10.dir/util/TypeTraits.cpp.o
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_gflags.cpp.o
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/util/flags_use_no_gflags.cpp.o
[ 13%] Building CXX object c10/CMakeFiles/c10.dir/util/typeid.cpp.o
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/duration.pb.cc.o
[ 13%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/dynamic_message.cc.o
[ 14%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/empty.pb.cc.o
Scanning dependencies of target mkrename
[ 14%] Building C object sleef/src/libm/CMakeFiles/mkrename.dir/mkrename.c.o
[ 14%] Linking C executable ../../bin/mkrename
Scanning dependencies of target mkdisp
[ 15%] Building C object sleef/src/libm/CMakeFiles/mkdisp.dir/mkdisp.c.o
[ 15%] Built target mkrename
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/extension_set_heavy.cc.o
[ 15%] Linking C executable ../../bin/mkdisp
[ 15%] Built target mkdisp
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/field_mask.pb.cc.o
[ 15%] Linking CXX shared library ../lib/libc10.so
[ 15%] Built target c10
Scanning dependencies of target mkalias
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_reflection.cc.o
[ 15%] Building C object sleef/src/libm/CMakeFiles/mkalias.dir/mkalias.c.o
[ 15%] Linking C executable ../../bin/mkalias
Scanning dependencies of target renameAVX512F.h_generated
[ 15%] Generating include/renameavx512f.h
Generating renameavx512f.h: mkrename 8 16 avx512f
[ 15%] Built target mkalias
[ 15%] Built target renameAVX512F.h_generated
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/generated_message_table_driven.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/gzip_stream.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_engine.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_memory.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_reducer.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_reorder.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/cpu_sum.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/gemm.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/gemm_utils.cpp.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/printer.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/strtod.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/jit_avx512_common_gemm_f32.cpp.o
Scanning dependencies of target renamedsp128.h_generated
[ 15%] Generating renamedsp128.h
Scanning dependencies of target dispsse.c_generated
[ 15%] Built target renamedsp128.h_generated
[ 15%] Generating dispsse.c
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/jit_avx_gemm_f32.cpp.o
Scanning dependencies of target renameSSE2.h_generated
[ 15%] Generating include/renamesse2.h
[ 15%] Built target dispsse.c_generated
Generating renamesse2.h: mkrename 2 4 sse2
[ 15%] Built target renameSSE2.h_generated
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/tokenizer.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm/ref_gemm.cpp.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_convolution.cpp.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/io/zero_copy_stream_impl.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/map_field.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/message.cc.o
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/reflection_ops.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_convolution_utils.cpp.o
Scanning dependencies of target mkrename_gnuabi
[ 15%] Building C object sleef/src/libm/CMakeFiles/mkrename_gnuabi.dir/mkrename_gnuabi.c.o
[ 15%] Linking C executable ../../bin/mkrename_gnuabi
[ 15%] Built target mkrename_gnuabi
[ 15%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/service.cc.o
[ 15%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_inner_product.cpp.o
[ 16%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/source_context.pb.cc.o
[ 17%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_u8s8s32x_inner_product.cpp.o
Scanning dependencies of target mkmasked_gnuabi
[ 17%] Building C object sleef/src/libm/CMakeFiles/mkmasked_gnuabi.dir/mkmasked_gnuabi.c.o
[ 17%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/struct.pb.cc.o
[ 18%] Linking C executable ../../bin/mkmasked_gnuabi
[ 18%] Built target mkmasked_gnuabi
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/mathlimits.cc.o
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/stubs/substitute.cc.o
[ 18%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/gemm_x8s8s32x_convolution.cpp.o
Scanning dependencies of target arraymap
[ 18%] Building C object sleef/src/common/CMakeFiles/arraymap.dir/arraymap.c.o
Scanning dependencies of target torch_shm_manager
[ 18%] Building CXX object caffe2/torch/lib/libshm/CMakeFiles/torch_shm_manager.dir/manager.cpp.o
[ 18%] Built target arraymap
[ 18%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_1x1_conv_kernel_f32.cpp.o
[ 18%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/text_format.cc.o
[ 18%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_1x1_convolution.cpp.o
[ 19%] Linking CXX executable ../../../../bin/torch_shm_manager
[ 19%] Built target torch_shm_manager
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_conv_kernel_f32.cpp.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/timestamp.pb.cc.o
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx2_convolution.cpp.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/type.pb.cc.o
Scanning dependencies of target c10_utils_gpu
[ 19%] Building CXX object caffe2/utils/CMakeFiles/c10_utils_gpu.dir/dummy.cpp.o
[ 19%] Built target c10_utils_gpu
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_1x1_conv_kernel.cpp.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/unknown_field_set.cc.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/delimited_message_util.cc.o
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_1x1_convolution.cpp.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_comparator.cc.o
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_conv_kernel.cpp.o
Scanning dependencies of target c10_utils_cpu
[ 19%] Building CXX object caffe2/utils/CMakeFiles/c10_utils_cpu.dir/dummy.cpp.o
[ 19%] Built target c10_utils_cpu
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_conv_winograd_kernel_f32.cpp.o
Scanning dependencies of target c10_utils_hip
[ 19%] Building CXX object caffe2/utils/CMakeFiles/c10_utils_hip.dir/dummy.cpp.o
[ 19%] Built target c10_utils_hip
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/field_mask_util.cc.o
[ 19%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_convolution.cpp.o
Scanning dependencies of target cpuinfo
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/init.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/api.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/init.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/info.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/vendor.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/uarch.c.o
[ 19%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/datapiece.cc.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/name.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/topology.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/isa.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/init.c.o
[ 19%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/descriptor.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/cache/deterministic.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/init.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/x86/linux/cpuinfo.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/smallfile.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/multiline.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/current.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/cpulist.c.o
Scanning dependencies of target nnpack_reference_layers
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-output.c.o
[ 20%] Building C object confu-deps/cpuinfo/CMakeFiles/cpuinfo.dir/src/linux/processors.c.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-input-gradient.c.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/convolution-kernel.c.o
[ 20%] Linking C static library ../../lib/libcpuinfo.a
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/fully-connected-output.c.o
[ 20%] Built target cpuinfo
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/max-pooling-output.c.o
Scanning dependencies of target gloo_builder
Scanning dependencies of target onnxifi_wrapper
[ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo_builder.dir/allreduce_builder.cc.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/softmax-output.c.o
[ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/default_value_objectwriter.cc.o
[ 20%] Building C object third_party/onnx/CMakeFiles/onnxifi_wrapper.dir/onnx/onnxifi_wrapper.c.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-output.c.o
[ 20%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack_reference_layers.dir/src/ref/relu-input-gradient.c.o
[ 20%] Linking C shared module ../../lib/libonnxifi.so
[ 20%] Linking C static library ../../lib/libnnpack_reference_layers.a
[ 20%] Built target onnxifi_wrapper
[ 20%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/error_listener.cc.o
[ 20%] Built target nnpack_reference_layers
[ 20%] Building CXX object third_party/gloo/gloo/CMakeFiles/gloo_builder.dir/broadcast_builder.cc.o
Scanning dependencies of target __aten_op_header_gen
[ 20%] Generating contrib/aten/aten_op.h
Scanning dependencies of target headers
[ 20%] Generating ../../../include/sleef.h
Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__
Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ sse2
Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ sse4
Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct<span class="pl-cce">\ </span>{<span class="pl-cce">\ </span>__m128i<span class="pl-cce">\ </span>x,<span class="pl-cce">\ </span>y<span class="pl-k">;</span><span class="pl-cce">\ </span>} __AVX__
Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct<span class="pl-cce">\ </span>{<span class="pl-cce">\ </span>__m128i<span class="pl-cce">\ </span>x,<span class="pl-cce">\ </span>y<span class="pl-k">;</span><span class="pl-cce">\ </span>} __AVX__ avx
Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i struct<span class="pl-cce">\ </span>{<span class="pl-cce">\ </span>__m128i<span class="pl-cce">\ </span>x,<span class="pl-cce">\ </span>y<span class="pl-k">;</span><span class="pl-cce">\ </span>} __AVX__ fma4
Generating sleef.h: mkrename 4 8 __m256d __m256 __m128i __m256i __AVX__ avx2
Generating sleef.h: mkrename 2 4 __m128d __m128 __m128i __m128i __SSE2__ avx2128
Generating sleef.h: mkrename 8 16 __m512d __m512 __m256i __m512i __AVX512F__
Generating sleef.h: mkrename 8 16 __m512d __m512 __m256i __m512i __AVX512F__ avx512f
[ 20%] Generating include/renameavx2.h
Generating renameavx2.h: mkrename 4 8 avx2
[ 21%] Generating include/renameavx2128.h
Generating renameavx2128.h: mkrename 2 4 avx2128
[ 21%] Generating include/renamefma4.h
Generating renamefma4.h: mkrename 4 8 fma4
[ 21%] Generating include/renameavx.h
Generating renameavx.h: mkrename 4 8 avx
[ 21%] Generating include/renamesse4.h
Generating renamesse4.h: mkrename 2 4 sse4
[ 21%] Built target headers
[ 21%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_convolution_winograd.cpp.o
[ 21%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/field_mask_utility.cc.o
Skipping _th_multinomial Because of Arg: Generator <span class="pl-k">*</span> (Generator<span class="pl-k">*</span>)
Skipping _th_normal Because of Arg: Generator <span class="pl-k">*</span> (Generator<span class="pl-k">*</span>)
Skipping _th_normal Because of Arg: Generator <span class="pl-k">*</span> (Generator<span class="pl-k">*</span>)
Skipping _th_normal Because of Arg: Generator <span class="pl-k">*</span> (Generator<span class="pl-k">*</span>)
Skipping _th_tensor Because of Arg: Storage (Storage)
Skipping _th_tensor Because of Arg: Storage (Storage)
Skipping rrelu_with_noise Because of Arg: Generator <span class="pl-k">*</span> (Generator<span class="pl-k">*</span>)
Skipping rrelu_with_noise_forward Because of Arg: Generator <span class="pl-k">*</span> (Generator<span class="pl-k">*</span>)
Skipping thnn_conv_transpose2d_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping thnn_conv_transpose3d_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping thnn_conv2d_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping thnn_conv_depthwise2d_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">2></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">2></span>)
Skipping thnn_conv3d_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping thnn_conv_dilated2d_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping thnn_conv_dilated3d_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping _cudnn_rnn_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">4></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">4></span>)
Skipping _cudnn_init_dropout_state because it is a factory method
Skipping _fused_dropout Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping arange because it is a factory method
Skipping bartlett_window because it is a factory method
Skipping bernoulli Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping bernoulli Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping blackman_window because it is a factory method
Skipping clamp Because of Arg: c10::optional<span class="pl-k"><</span>Scalar<span class="pl-k">></span> (Scalar)
Skipping clamp Because of Arg: c10::optional<span class="pl-k"><</span>Scalar<span class="pl-k">></span> (Scalar)
Skipping _convolution_double_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping cudnn_convolution_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping cudnn_convolution_transpose_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping cumsum Because of Arg: ScalarType (ScalarType)
Skipping cumprod Because of Arg: ScalarType (ScalarType)
Skipping einsum Because of Arg: std::string (std::string)
Skipping empty because it is a factory method
Skipping empty_like because it is a factory method
Skipping empty_strided because it is a factory method
Skipping eye because it is a factory method
Skipping full because it is a factory method
Skipping full_like because it is a factory method
Skipping hann_window because it is a factory method
Skipping hamming_window because it is a factory method
Skipping _cufft_set_plan_cache_max_size Because of Ret: void (void)
Skipping _cufft_clear_plan_cache Because of Ret: void (void)
Skipping linspace because it is a factory method
Skipping logspace because it is a factory method
Skipping log_softmax Because of Arg: ScalarType (ScalarType)
Skipping mean Because of Arg: ScalarType (ScalarType)
Skipping mean Because of Arg: ScalarType (ScalarType)
Skipping mean Because of Arg: ScalarType (ScalarType)
Skipping mkldnn_convolution_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping miopen_convolution_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping miopen_convolution_transpose_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping native_batch_norm_backward Because of Arg: std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span> (std::array<span class="pl-k"><</span>bool,<span class="pl-k">3></span>)
Skipping ones because it is a factory method
Skipping ones_like because it is a factory method
Skipping rand because it is a factory method
Skipping rand_like because it is a factory method
Skipping randint because it is a factory method
Skipping randint_like because it is a factory method
Skipping randn because it is a factory method
Skipping randn_like because it is a factory method
Skipping randperm because it is a factory method
Skipping range because it is a factory method
Skipping rrelu Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping softmax Because of Arg: ScalarType (ScalarType)
Skipping sum Because of Arg: ScalarType (ScalarType)
Skipping sum Because of Arg: ScalarType (ScalarType)
Skipping sum Because of Arg: ScalarType (ScalarType)
Skipping prod Because of Arg: ScalarType (ScalarType)
Skipping prod Because of Arg: ScalarType (ScalarType)
Skipping prod Because of Arg: ScalarType (ScalarType)
Skipping zeros because it is a factory method
Skipping zeros_like because it is a factory method
Skipping _standard_gamma Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping poisson Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping sparse_coo_tensor because it is a factory method
Skipping _sparse_coo_tensor_unsafe because it is a factory method
Skipping _sparse_coo_tensor_with_dims because it is a factory method
Skipping _sparse_coo_tensor_with_dims_and_tensors because it is a factory method
Skipping sparse_mask Because of Arg: SparseTensorRef (SparseTensorRef)
Skipping to because it is a factory method
Skipping data_ptr Because of Ret: void<span class="pl-k">*</span> (void<span class="pl-k">*</span>)
Skipping multinomial Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping normal Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping normal Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
Skipping normal Because of Arg: Generator <span class="pl-k">*</span> (Generator <span class="pl-k">*</span>)
[ 21%] Built target __aten_op_header_gen
Scanning dependencies of target dispavx.c_generated
[ 21%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_common_lrn.cpp.o
[ 21%] Generating dispavx.c
[ 21%] Built target dispavx.c_generated
[ 21%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_2x3.cpp.o
Scanning dependencies of target renamedsp256.h_generated
[ 21%] Generating renamedsp256.h
[ 21%] Built target renamedsp256.h_generated
[ 22%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_4x3.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_escaping.cc.o
Scanning dependencies of target renameSSE4.h_generated
[ 23%] Built target renameSSE4.h_generated
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_fp32_wino_conv_4x3_kernel.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_objectwriter.cc.o
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_i8i8_pooling.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/json_stream_parser.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/object_writer.cc.o
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_u8s8s32x_deconvolution.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/proto_writer.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectsource.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/protostream_objectwriter.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info.cc.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/type_info_test_helper.cc.o
[ 23%] Linking CXX static library ../../../lib/libgloo_builder.a
[ 23%] Built target gloo_builder
Scanning dependencies of target renameAVX.h_generated
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/internal/utility.cc.o
[ 23%] Built target renameAVX.h_generated
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_u8s8s32x_wino_convolution.cpp.o
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_1x1_conv_kernel.cpp.o
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/json_util.cc.o
Scanning dependencies of target renameFMA4.h_generated
[ 23%] Built target renameFMA4.h_generated
Scanning dependencies of target renameAVX2128.h_generated
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/message_differencer.cc.o
[ 23%] Built target renameAVX2128.h_generated
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/time_util.cc.o
[ 23%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_1x1_convolution.cpp.o
Scanning dependencies of target renameAVX2.h_generated
[ 23%] Built target renameAVX2.h_generated
[ 23%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/util/type_resolver_util.cc.o
[ 24%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wire_format.cc.o
[ 24%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_conv_kernel.cpp.o
[ 24%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_avx512_core_x8s8s32x_convolution.cpp.o
Scanning dependencies of target alias_avx512f.h_generated
[ 24%] Generating alias_avx512f.h
[ 24%] Built target alias_avx512f.h_generated
[ 24%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotobuf.dir/__/src/google/protobuf/wrappers.pb.cc.o
Scanning dependencies of target dispsse_obj
[ 25%] Building C object sleef/src/libm/CMakeFiles/dispsse_obj.dir/dispsse.c.o
Scanning dependencies of target sleefsse2
[ 25%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimdsp.c.o
[ 25%] Building C object sleef/src/libm/CMakeFiles/sleefsse2.dir/sleefsimddp.c.o
[ 25%] Built target dispsse_obj
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_1x1_conv_kernel_f32.cpp.o
Scanning dependencies of target qnnpack
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/init.c.o
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/convolution.c.o
[ 25%] Linking CXX static library ../../../lib/libprotobuf.a
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/deconvolution.c.o
[ 25%] Generating src/x86_64-fma/2d-fourier-8x8.py.o
[ 25%] Built target libprotobuf
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_1x1_convolution.cpp.o
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/fully-connected.c.o
[ 25%] Built target sleefsse2
[ 25%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_conv_kernel_f32.cpp.o
[ 25%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/sgemm/6x8-psimd.c.o
[ 26%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/2x4c8-sse2.c.o
[ 26%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8gemm/4x4c2-sse2.c.o
Scanning dependencies of target dispavx_obj
[ 26%] Building C object sleef/src/libm/CMakeFiles/dispavx_obj.dir/dispavx.c.o
[ 26%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8conv/4x4c2-sse2.c.o
[ 26%] Building C object confu-deps/QNNPACK/CMakeFiles/qnnpack.dir/src/q8dw/9c8-sse2.c.o
Scanning dependencies of target sleefsse4
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimdsp.c.o
[ 26%] Linking C static library ../../lib/libqnnpack.a
[ 26%] Built target qnnpack
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleefsse4.dir/sleefsimddp.c.o
[ 26%] Built target dispavx_obj
[ 26%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_sse42_convolution.cpp.o
Scanning dependencies of target sleefavx
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimdsp.c.o
Scanning dependencies of target sleeffma4
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimdsp.c.o
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleeffma4.dir/sleefsimddp.c.o
[ 26%] Building C object sleef/src/libm/CMakeFiles/sleefavx.dir/sleefsimddp.c.o
[ 26%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_transpose_src_utils.cpp.o
[ 26%] Generating src/x86_64-fma/2d-fourier-16x16.py.o
[ 26%] Built target sleefsse4
[ 26%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_dw_conv_kernel_f32.cpp.o
[ 27%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_batch_normalization.cpp.o
Scanning dependencies of target sleefavx2128
[ 27%] Building C object sleef/src/libm/CMakeFiles/sleefavx2128.dir/sleefsimdsp.c.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx2128.dir/sleefsimddp.c.o
[ 28%] Built target sleefavx
[ 28%] Built target sleeffma4
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_dw_convolution.cpp.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_eltwise.cpp.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_lrn.cpp.o
[ 28%] Built target sleefavx2128
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_lrn_kernel_f32.cpp.o
Scanning dependencies of target sleefavx2
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx2.dir/sleefsimdsp.c.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx2.dir/sleefsimddp.c.o
Scanning dependencies of target sleefavx512f
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx512f.dir/sleefsimdsp.c.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_pool_kernel_f32.cpp.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_pooling.cpp.o
[ 28%] Built target sleefavx2
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_reorder.cpp.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleefavx512f.dir/sleefsimddp.c.o
[ 28%] Generating ../../../../third_party/protobuf/src/google/protobuf/compiler/js/well_known_types_embed.cc
Scanning dependencies of target libprotoc
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/code_generator.cc.o
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/command_line_interface.cc.o
[ 28%] Built target sleefavx512f
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/jit_uni_reorder_utils.cpp.o
Scanning dependencies of target sleef
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleef.dir/sleefdp.c.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleef.dir/sleefsp.c.o
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_enum.cc.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nchw_pooling.cpp.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleef.dir/sleefld.c.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ncsp_batch_normalization.cpp.o
[ 28%] Building C object sleef/src/libm/CMakeFiles/sleef.dir/sleefqp.c.o
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_enum_field.cc.o
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_extension.cc.o
[ 28%] Linking C static library ../../lib/libsleef.a
[ 28%] Built target sleef
[ 28%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_field.cc.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nhwc_pooling.cpp.o
[ 28%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/nspc_batch_normalization.cpp.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_batch_normalization.cpp.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_file.cc.o
[ 29%] Generating src/x86_64-fma/2d-winograd-8x8-3x3.py.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_generator.cc.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_helpers.cc.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_convolution.cpp.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_deconvolution.cpp.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_map_field.cc.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_eltwise.cpp.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_inner_product.cpp.o
[ 29%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_lrn.cpp.o
[ 29%] Generating src/x86_64-fma/blas/s8gemm.py.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_message.cc.o
[ 29%] Generating src/x86_64-fma/blas/c8gemm.py.o
[ 29%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_message_field.cc.o
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_padding_optimizer.cc.o
[ 30%] Generating src/x86_64-fma/blas/s4c6gemm.py.o
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_pooling.cpp.o
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_rnn.cpp.o
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_shuffle.cpp.o
[ 30%] Generating src/x86_64-fma/blas/conv1x1.py.o
[ 30%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/ref_softmax.cpp.o
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_primitive_field.cc.o
[ 30%] Generating src/x86_64-fma/blas/sgemm.py.o
[ 30%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_service.cc.o
[ 30%] Generating src/x86_64-fma/max-pooling.py.o
[ 31%] Generating src/x86_64-fma/relu.py.o
[ 31%] Generating src/x86_64-fma/softmax.py.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/cpp/cpp_string_field.cc.o
[ 31%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/simple_concat.cpp.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_doc_comment.cc.o
[ 31%] Building CXX object third_party/ideep/mkl-dnn/src/CMakeFiles/mkldnn.dir/cpu/simple_sum.cpp.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_enum.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_enum_field.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_field_base.cc.o
[ 31%] Generating src/x86_64-fma/blas/sdotxf.py.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_generator.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_helpers.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_map_field.cc.o
[ 31%] Generating src/x86_64-fma/blas/shdotxf.py.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_message.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_message_field.cc.o
[ 31%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_primitive_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_reflection_class.cc.o
[ 32%] Linking CXX shared library ../../../../lib/libmkldnn.so
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_enum_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_message_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_repeated_primitive_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_source_generator_base.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/csharp/csharp_wrapper_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_context.cc.o
[ 32%] Built target mkldnn
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_doc_comment.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_field.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_field_lite.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_enum_lite.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_extension.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_extension_lite.cc.o
[ 32%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_field.cc.o
Scanning dependencies of target nnpack
[ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/init.c.o
[ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-inference.c.o
[ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-inference.c.o
[ 32%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/pooling-output.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_file.cc.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_generator.cc.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-output.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_generator_factory.cc.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/softmax-output.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_helpers.cc.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/fully-connected-output.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_lazy_message_field.cc.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/relu-input-gradient.c.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-input-gradient.c.o
[ 33%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-kernel-gradient.c.o
[ 33%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_lazy_message_field_lite.cc.o
[ 34%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/convolution-output.c.o
[ 34%] Building C object confu-deps/NNPACK/CMakeFiles/nnpack.dir/src/x86_64-fma/softmax.c.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_map_field.cc.o
[ 34%] Linking C static library ../../lib/libnnpack.a
[ 34%] Built target nnpack
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_map_field_lite.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_builder.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_builder_lite.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_field.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_field_lite.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_message_lite.cc.o
[ 34%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_primitive_field.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_name_resolver.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_primitive_field_lite.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_service.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_shared_code_generator.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_string_field.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/java/java_string_field_lite.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_enum.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_enum_field.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_extension.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_field.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_file.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_generator.cc.o
[ 35%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_helpers.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_map_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_message.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_message_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/javanano/javanano_primitive_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/js/js_generator.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/js/well_known_types_embed.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_enum.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_enum_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_extension.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_field.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_file.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_generator.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_helpers.cc.o
[ 36%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_map_field.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_message.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_message_field.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_oneof.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/objectivec/objectivec_primitive_field.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/php/php_generator.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/plugin.pb.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/python/python_generator.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/ruby/ruby_generator.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/subprocess.cc.o
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/libprotoc.dir/__/src/google/protobuf/compiler/zip_writer.cc.o
[ 37%] Linking CXX static library ../../../lib/libprotoc.a
[ 37%] Built target libprotoc
Scanning dependencies of target protoc
[ 37%] Building CXX object third_party/protobuf/cmake/CMakeFiles/protoc.dir/__/src/google/protobuf/compiler/main.cc.o
[ 37%] Linking CXX executable ../../../bin/protoc
[ 37%] Built target protoc
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/caffe2.proto
Scanning dependencies of target gen_onnx_proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/caffe2_legacy.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/metanet.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/hsm.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/prof_dag.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/predictor_consts.proto
[ 37%] Running C++/Python protocol buffer compiler on /opt/pytorch/caffe2/proto/torch.proto
[ 37%] Running gen_proto.py on onnx/onnx.in.proto
Processing /opt/pytorch/third_party/onnx/onnx/onnx.in.proto
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch.proto
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch.proto3
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx.pb.h
generating /opt/pytorch/build/third_party/onnx/onnx/onnx_pb.py
[ 37%] Running C++ protocol buffer compiler on /opt/pytorch/build/third_party/onnx/onnx/onnx_onnx_torch.proto
Scanning dependencies of target Caffe2_PROTO
[ 37%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/hsm.pb.cc.o
[ 37%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/metanet.pb.cc.o
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/prof_dag.pb.cc.o
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2_legacy.pb.cc.o
[ 38%] Built target gen_onnx_proto
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/predictor_consts.pb.cc.o
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/torch.pb.cc.o
[ 38%] Building CXX object caffe2/proto/CMakeFiles/Caffe2_PROTO.dir/caffe2.pb.cc.o
[ 38%] Running gen_proto.py on onnx/onnx-operators.in.proto
Processing /opt/pytorch/third_party/onnx/onnx/onnx-operators.in.proto
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch.proto
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch.proto3
Writing /opt/pytorch/build/third_party/onnx/onnx/onnx-operators.pb.h
generating /opt/pytorch/build/third_party/onnx/onnx/onnx_operators_pb.py
[ 38%] Running C++ protocol buffer compiler on /opt/pytorch/build/third_party/onnx/onnx/onnx-operators_onnx_torch.proto
Scanning dependencies of target onnx_proto
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx_onnx_torch.pb.cc.o
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx_proto.dir/onnx/onnx-operators_onnx_torch.pb.cc.o
[ 38%] Linking CXX static library ../../lib/libonnx_proto.a
[ 38%] Built target Caffe2_PROTO
[ 38%] Built target onnx_proto
Scanning dependencies of target caffe2_protos
[ 38%] Linking CXX static library ../lib/libcaffe2_protos.a
Scanning dependencies of target Caffe2_perfkernels_avx
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx.dir/adagrad_avx.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx.dir/typed_axpy_avx.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx.dir/common_avx.cc.o
[ 38%] Built target caffe2_protos
Scanning dependencies of target Caffe2_perfkernels_avx2
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/common_avx2.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/embedding_lookup_avx2.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/embedding_lookup_fused_8bit_rowwise_avx2.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/math_cpu_avx2.cc.o
Scanning dependencies of target onnx
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/defs.cc.o
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/__/__/caffe2/onnx/torch_ops/schema.cc.o
[ 38%] Building CXX object caffe2/perfkernels/CMakeFiles/Caffe2_perfkernels_avx2.dir/typed_axpy_avx2.cc.o
[ 38%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/checker.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/assertions.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/interned_strings.cc.o
[ 39%] Built target Caffe2_perfkernels_avx
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/ir_pb_converter.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/model_helpers.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/common/status.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/controlflow/defs.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/data_type_utils.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/experiments/defs.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/experiments/experiments_functions.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/function.cc.o
[ 39%] Built target Caffe2_perfkernels_avx2
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/defs.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/generator/old.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/defs.cc.o
[ 39%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/logical/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/math/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/math/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/nn/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/reduction/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/rnn/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/schema.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/tensor/old.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/defs/traditionalml/defs.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/onnxifi_utils.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/optimize.cc.o
[ 40%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass_manager.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/optimizer/pass_registry.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/shape_inference/implementation.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/version_converter/convert.cc.o
[ 41%] Building CXX object third_party/onnx/CMakeFiles/onnx.dir/onnx/version_converter/helper.cc.o
�[91m/opt/pytorch/third_party/onnx/onnx/shape_inference/implementation.cc: In <span class="pl-k">function</span> <span class="pl-en">‘void</span> onnx_torch::shape_inference::InferShapeForFunctionNode(const onnx_torch::FunctionProto<span class="pl-k">&</span>, const onnx_torch::ISchemaRegistry<span class="pl-k">*</span>, onnx_torch::InferenceContext<span class="pl-k">&</span>)’:
/opt/pytorch/third_party/onnx/onnx/shape_inference/implementation.cc:207:53: warning: <span class="pl-c1">type</span> qualifiers ignored on cast result <span class="pl-c1">type</span> [-Wignored-qualifiers]
<span class="pl-k">for</span> (int i = 0<span class="pl-k">;</span> i <span class="pl-k"><</span> (const <span class="pl-en">int)(ctx.getNumInputs</span>()); ++i) {
^
�[0m[ 41%] Linking CXX static library ../../lib/libonnx.a
[ 41%] Built target onnx
Scanning dependencies of target caffe2
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUGeneral.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/TensorGeometry.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUGenerator.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUTypeDefault.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseTensorImpl.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/ExpandUtils.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/Context.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/DLConvertor.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/TensorUtils.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/UndefinedType.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/Utils.cpp.o
[ 41%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/detail/CPUGuardImpl.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/detail/CUDAHooksInterface.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/detail/ComplexHooksInterface.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/cpu/FlushDenormal.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/ATenCoreTest.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/ATenGeneral.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Allocator.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Formatting.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/OptionsGuard.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/LegacyTypeDispatch.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Range.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Scalar.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Storage.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/StorageImpl.cpp.o
[ 42%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/Tensor.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/TensorImpl.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/TensorOptions.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/UndefinedTensorImpl.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/UniqueVoidPtr.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/VariableHooksInterface.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/blob.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/context_base.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/interned_strings.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/intrusive_ptr.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/ivalue.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/register_symbols.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/thread_pool.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/core/type.cpp.o
[ 43%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Activation.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/BatchLinearAlgebra.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/BinaryOps.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/ConstantPadNd.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Convolution.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/ConvolutionTBC.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Copy.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/DispatchStub.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Distance.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Distributions.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Dropout.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Embedding.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/EmbeddingBag.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/GridSampler.cpp.o
[ 44%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Indexing.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/LegacyBridge.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/LegacyDefinitions.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Linear.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/LinearAlgebra.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Loss.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/LossCTC.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Memory.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Normalization.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PackedSequence.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/PixelShuffle.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Pooling.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/RNN.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/ReduceOps.cpp.o
[ 45%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Resize.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/RoiPooling.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Scalar.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/SoftMax.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/SpectralOps.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/SummaryOps.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorCompare.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorConversions.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorFactories.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorIterator.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorIteratorReduce.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorProperties.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorShape.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TensorTransformations.cpp.o
[ 46%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/TypeProperties.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/UnaryOps.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/Unique.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/WeightNorm.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/sparse/SparseTensor.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/sparse/SparseTensorMath.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/mkl/LinearAlgebra.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/mkl/SpectralOps.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/mkldnn/Conv.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUByteType.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUCharType.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUCopy.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUDoubleType.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUFloatType.cpp.o
[ 47%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUHalfType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUIntType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPULongType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/CPUShortType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/RegisterCPU.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUByteType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUCharType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUDoubleType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUFloatType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUIntType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPULongType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/SparseCPUShortType.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/TypeDefault.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THGeneral.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THAllocator.cpp.o
[ 48%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THSize.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THStorageFunctions.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensor.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorCopy.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorMath.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorRandom.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorMoreMath.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorEvenMoreMath.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorConv.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THTensorLapack.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THBlas.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THLapack.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THLogAdd.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THRandom.cpp.o
[ 49%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THFile.cpp.o
�[91m/opt/pytorch/aten/src/TH/THRandom.cpp: In <span class="pl-k">function</span> <span class="pl-en">‘THGenerator*</span> <span class="pl-en">THGenerator_newUnseeded</span>()’:
/opt/pytorch/aten/src/TH/THRandom.cpp:18:38: warning: ‘void<span class="pl-k">*</span> memset(void<span class="pl-k">*</span>, int, size_t)’ clearing an object of <span class="pl-c1">type</span> ‘THGenerator’ {aka ‘struct THGenerator’} with no trivial copy-assignment<span class="pl-k">;</span> use value-initialization instead [-Wclass-memaccess]
memset(self, 0, sizeof(THGenerator))<span class="pl-k">;</span>
^
In file included from /opt/pytorch/aten/src/TH/THRandom.cpp:3:
/opt/pytorch/aten/src/TH/THGenerator.hpp:26:8: note: ‘THGenerator’ {aka ‘struct THGenerator’} declared here
struct THGenerator {
^~~~~~~~~~~
�[0m[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THDiskFile.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THMemoryFile.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/THVector.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/vector/AVX.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/TH/vector/AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/THNN/init.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/TensorCompareKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/SoftMaxKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/ReduceOpsKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/DistanceOpsKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/BinaryOpsKernel.cpp.AVX2.cpp.o
[ 50%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/Activation.cpp.AVX2.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/TensorCompareKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/SoftMaxKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/ReduceOpsKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/DistanceOpsKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/BinaryOpsKernel.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/Activation.cpp.AVX.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/UnaryOpsKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/TensorCompareKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/SoftMaxKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/ReduceOpsKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/GridSamplerKernel.cpp.DEFAULT.cpp.o
[ 51%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/DistanceOpsKernel.cpp.DEFAULT.cpp.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/BinaryOpsKernel.cpp.DEFAULT.cpp.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/native/cpu/Activation.cpp.DEFAULT.cpp.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/__/aten/src/ATen/mkldnn/Runtime.cpp.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/aten/aten_op.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/allgather_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/allreduce_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/barrier_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/broadcast_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/common.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/common_world_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/context.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/reduce_scatter_ops.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/gloo/store_handler.cc.o
[ 52%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/script/compiler.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/contrib/script/lexer.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/allocator.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/blob_serialization.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/blob_stats.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/common.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/context.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/context_base.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/db.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/event.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/graph.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/init.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/init_intrinsics_check.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/init_omp.cc.o
[ 53%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/int8_serialization.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/memonger.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/module.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_base.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_scheduling.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_async_tracing.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_dag.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_dag_utils.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_simple.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/net_simple_refcount.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/numa.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/operator.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/operator_c10wrapper.cc.o
[ 54%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/operator_schema.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/plan_executor.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/prof_dag_counters.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/qtensor.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/qtensor_serialization.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/stats.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/tensor.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/tensor_impl.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/tensor_int8.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/transform.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/types.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/workspace.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/proto_convert.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/proto_wrap.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/proto_utils.cc.o
[ 55%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/murmur_hash3.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/smart_tensor_printer.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/signal_handler.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/string_utils.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/threadpool/ThreadPool.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/cpuid.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/bench_utils.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/math_cpu.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/math_utils.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/thread_name.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/threadpool/pthreadpool.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/utils/threadpool/pthreadpool_impl.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/predictor/predictor.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/predictor/predictor_utils.cc.o
[ 56%] Building CXX object caffe2/CMakeFiles/caffe2.dir/predictor/predictor_config.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/nomnigraph/Representations/NeuralNet.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/core/nomnigraph/tests/test_util.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/db/create_db_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/db/protodb.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/distributed/file_store_handler.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/distributed/file_store_handler_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/distributed/store_handler.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/distributed/store_ops.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/concat_split_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_fusion_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/conv_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/dropout_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/elementwise_sum_op.cc.o
[ 57%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/fully_connected_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/local_response_normalization_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/momentum_sgd_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/operator_fallback_ideep.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/pool_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/relu_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/spatial_batch_norm_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/squeeze_op.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/operators/utility_ops.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/ideep/utils/ideep_register.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/mpi/mpi_common.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/mpi/mpi_ops.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/observers/time_observer.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/observers/runcnt_observer.cc.o
[ 58%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/backend.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/backend_rep.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/device.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/helper.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/onnx_exporter.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/onnx/onnxifi_init.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/abs_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/accumulate_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/accuracy_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/acos_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/affine_channel_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/apmeter_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/arg_ops.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/asin_op.cc.o
[ 59%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/assert_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/atan_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/atomic_ops.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_box_cox_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_bucketize_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_gather_ops.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_matmul_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_moments_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/batch_sparse_to_dense_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/bbox_transform_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/bisect_percentile_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/boolean_mask_ops.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/boolean_unmask_ops.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/box_with_nms_limit_op.cc.o
[ 60%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/byte_weight_dequant_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cast_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cbrt_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ceil_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/channel_backprop_stats_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/channel_shuffle_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/channel_stats_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/clip_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/collect_and_distribute_fpn_rpn_proposals_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/communicator_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/concat_split_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conditional_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_gradient_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_op.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_op_eigen.cc.o
[ 61%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_op_shared.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_transpose_gradient_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_transpose_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/conv_transpose_op_mobile.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/copy_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cos_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cosh_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cosine_embedding_criterion_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/counter_ops.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/create_scope_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/crf_viterbi_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cross_entropy_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ctc_beam_search_decoder_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ctc_greedy_decoder_op.cc.o
[ 62%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/cube_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/data_couple.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/dataset_ops.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/deform_conv_gradient_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/deform_conv_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/distance_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/do_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/dropout_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_add_gradient_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_add_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_div_gradient_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_div_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_linear_op.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_logical_ops.cc.o
[ 63%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_mul_gradient_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_mul_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops_schema.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_ops_utils.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sub_gradient_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sub_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elementwise_sum_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/elu_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/enforce_finite_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ensure_clipped_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ensure_cpu_output_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/exp_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/expand_op.cc.o
[ 64%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/expand_squeeze_dims_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/fc_inference.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/feature_maps_ops.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/feed_blob_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/filler_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/find_duplicate_elements_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/find_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/flatten_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/flexible_top_k.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/floor_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/free_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/fully_connected_op.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/fused_rowwise_8bit_conversion_ops.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/fused_rowwise_random_quantization_ops.cc.o
[ 65%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/gather_fused_8bit_rowwise_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/gather_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/gather_ranges_to_dense_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/generate_proposals_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/given_tensor_byte_string_to_uint8_fill_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/given_tensor_fill_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/glu_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/group_norm_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/gru_unit_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/h_softmax_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/half_float_ops.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/hard_sigmoid_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/heatmap_max_keypoint_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/if_op.cc.o
[ 66%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/im2col_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/index_hash_ops.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/index_ops.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/instance_norm_gradient_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/instance_norm_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/integral_image_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/is_empty_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/jsd_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/key_split_ops.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/last_n_window_collector.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/layer_norm_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/leaky_relu_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/length_split_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_pad_op.cc.o
[ 67%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_reducer_fused_8bit_rowwise_ops.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_reducer_ops.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_reducer_rowwise_8bit_ops.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_tile_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lengths_top_k_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/listwise_l2r_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/load_save_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/local_response_normalization_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/locally_connected_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/locally_connected_op_util.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/log_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/logit_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/loss_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lp_pool_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lpnorm_op.cc.o
[ 68%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/lstm_unit_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/map_ops.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/margin_ranking_criterion_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/matmul_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/mean_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/merge_id_lists_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/minmax_gradient_ops.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/minmax_ops.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/mod_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/moments_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/multi_class_accuracy_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/negate_gradient_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/negative_op.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/ngram_ops.cc.o
[ 69%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/norm_planar_yuv_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/normalize_l1_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/normalize_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/numpy_tile_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/one_hot_ops.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/onnx_while_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/onnxifi_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/order_switch_ops.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pack_rnn_sequence_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pack_segments.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pad_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/partition_ops.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/percentile_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/perplexity_op.cc.o
[ 70%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/piecewise_linear_transform_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pool_gradient_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pool_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/pow_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/prelu_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/prepend_dim_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quant_decode_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rank_loss_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reciprocal_gradient_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reciprocal_op.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduce_front_back_max_ops.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduce_front_back_mean_ops.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduce_front_back_sum_ops.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduce_ops.cc.o
[ 71%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reduction_ops.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/relu_n_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/relu_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/remove_data_blocks_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/replace_nan_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reservoir_sampling.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reshape_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/resize_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/reverse_packed_segs_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rmac_regions_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_align_gradient_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_align_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_align_rotated_gradient_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_align_rotated_op.cc.o
[ 72%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/roi_pool_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rowmul_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rsqrt_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/scale_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/segment_reduction_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/selu_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sequence_ops.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/shape_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sigmoid_gradient_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sigmoid_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sinh_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sin_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sinusoid_position_encoding_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/slice_op.cc.o
[ 73%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softmax_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softmax_shared.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softmax_with_loss_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softplus_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/softsign_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/space_batch_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sparse_normalize_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sparse_to_dense_mask_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sparse_to_dense_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/spatial_batch_norm_gradient_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/spatial_batch_norm_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/spatial_softmax_with_loss_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sqr_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/sqrt_op.cc.o
[ 74%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/square_root_divide_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stats_ops.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stats_put_ops.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stop_gradient.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/string_ops.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stump_func_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/stylizer_ops.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/summarize_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/swish_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tan_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tanh_gradient_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tanh_op.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tensor_protos_db_input.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/text_file_reader.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/text_file_reader_utils.cc.o
[ 75%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/thresholded_relu_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tile_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/top_k.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/transpose_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/tt_linear_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/unique_ops.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/upsample_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/utility_ops.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/variable_length_sequence_padding.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/weighted_multi_sampling_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/weighted_sample_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/while_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/workspace_ops.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/zero_gradient_op.cc.o
[ 76%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/add_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/averaged_loss_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/batch_gather_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/batch_matmul_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/cast_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/concat_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/enforce_finite_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/expand_dims_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/fc_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/filler_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/flatten_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/mul_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/relu_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/sigmoid_cpu.cc.o
[ 77%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/sigmoid_cross_entropy_with_logits_cpu.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/sparse_lengths_sum_cpu.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/cpu/stop_gradient_cpu.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/add.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/averaged_loss.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/batch_gather.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/batch_matmul.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/cast.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/concat.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/enforce_finite.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/expand_dims.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/fc.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/filler.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/flatten.cc.o
[ 78%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/layer_norm.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/mul.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/relu.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/sigmoid.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/sigmoid_cross_entropy_with_logits.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/sparse_lengths_sum.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/experimental/c10/schemas/stop_gradient.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_blob_fetcher_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_executor.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/rnn/recurrent_network_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/init_qnnpack.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_add_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_average_pool_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_channel_shuffle_op.cc.o
[ 79%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_concat_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_conv_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_conv_transpose_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_dequantize_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_fc_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_flatten_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_given_tensor_fill_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_leaky_relu_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_max_pool_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_quantize_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_relu_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_reshape_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_resize_nearest_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_roi_align_op.cc.o
[ 80%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_slice_op.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_sigmoid_op.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/operators/quantized/int8_softmax_op.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/annotations.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/converter.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/backend_cutting.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/dead_code_elim.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/device.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/distributed_converter.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/distributed.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/fusion.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/mobile.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/onnxifi_transformer.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/optimize_ideep.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/optimizer.cc.o
[ 81%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/passes.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/opt/sink.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/adagrad.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/embedding_lookup.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/fused_8bit_rowwise_embedding_lookup.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/math_cpu_base.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/perfkernels/typed_axpy.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/blobs_queue.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/blobs_queue_db.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/queue_ops.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/rebatching_queue.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/queue/rebatching_queue_ops.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/adadelta_op.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/adagrad_op.cc.o
[ 82%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/adam_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/clip_tensor_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/ftrl_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/gftrl_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/iter_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/lars_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/learning_rate_adaption_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/learning_rate_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/momentum_sgd_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/rmsprop_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/wngrad_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/sgd/yellowfin_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/share/contrib/nnpack/conv_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/share/contrib/depthwise/depthwise3x3_conv_op.cc.o
[ 83%] Building CXX object caffe2/CMakeFiles/caffe2.dir/transforms/common_subexpression_elimination.cc.o
[ 84%] Building CXX object caffe2/CMakeFiles/caffe2.dir/transforms/conv_to_nnpack_transform.cc.o
[ 84%] Building CXX object caffe2/CMakeFiles/caffe2.dir/transforms/pattern_net_transform.cc.o
[ 84%] Building CXX object caffe2/CMakeFiles/caffe2.dir/transforms/single_op_transform.cc.o
[ 84%] Linking CXX shared library ../lib/libcaffe2.so
[ 84%] Built target caffe2
[ 84%] Generating ../../../torch/csrc/nn/THNN.cpp, ../../../torch/csrc/nn/THCUNN.cpp, ../../../torch/csrc/autograd/generated/VariableType.h, ../../../torch/csrc/autograd/generated/VariableType_0.cpp, ../../../torch/csrc/autograd/generated/VariableType_1.cpp, ../../../torch/csrc/autograd/generated/VariableType_2.cpp, ../../../torch/csrc/autograd/generated/VariableType_3.cpp, ../../../torch/csrc/autograd/generated/VariableType_4.cpp, ../../../torch/csrc/autograd/generated/Functions.h, ../../../torch/csrc/autograd/generated/Functions.cpp, ../../../torch/csrc/autograd/generated/python_functions.h, ../../../torch/csrc/autograd/generated/python_functions.cpp, ../../../torch/csrc/autograd/generated/python_variable_methods.cpp, ../../../torch/csrc/autograd/generated/python_variable_methods_dispatch.h, ../../../torch/csrc/autograd/generated/python_torch_functions.cpp, ../../../torch/csrc/autograd/generated/python_torch_functions_dispatch.h, ../../../torch/csrc/autograd/generated/python_nn_functions.cpp, ../../../torch/csrc/autograd/generated/python_nn_functions.h, ../../../torch/csrc/autograd/generated/python_nn_functions_dispatch.h, ../../../torch/csrc/autograd/generated/variable_factories.h, ../../../torch/csrc/jit/generated/register_aten_ops_0.cpp, ../../../torch/csrc/jit/generated/register_aten_ops_1.cpp, ../../../torch/csrc/jit/generated/register_aten_ops_2.cpp, ../../../torch/csrc/jit/generated/aten_interned_strings.h
Scanning dependencies of target shm
[ 85%] Building CXX object caffe2/torch/lib/libshm/CMakeFiles/shm.dir/core.cpp.o
Scanning dependencies of target caffe2_observers
[ 85%] Building CXX object modules/observers/CMakeFiles/caffe2_observers.dir/observer_config.cc.o
[ 85%] Building CXX object modules/observers/CMakeFiles/caffe2_observers.dir/net_observer_reporter_print.cc.o
Scanning dependencies of target c10d
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/FileStore.cpp.o
Scanning dependencies of target caffe2_pybind11_state
[ 85%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state.cc.o
Scanning dependencies of target caffe2_detectron_ops
[ 85%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/batch_permutation_op.cc.o
Scanning dependencies of target THD
[ 85%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/ChannelUtils.cpp.o
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/ProcessGroup.cpp.o
[ 85%] Linking CXX shared library ../../../../lib/libshm.so
[ 85%] Built target shm
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/Store.cpp.o
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/PrefixStore.cpp.o
[ 85%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/Cuda.cpp.o
[ 85%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/DataChannel.cpp.o
[ 85%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state_dlpack.cc.o
[ 85%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/TCPStore.cpp.o
[ 85%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state_nomni.cc.o
[ 85%] Building CXX object modules/observers/CMakeFiles/caffe2_observers.dir/perf_observer.cc.o
Writing torch/csrc/nn/THNN.cpp
Writing torch/csrc/nn/THCUNN.cpp
Writing torch/csrc/autograd/generated/VariableType.h
Writing torch/csrc/autograd/generated/VariableType_0.cpp
Writing torch/csrc/autograd/generated/VariableType_1.cpp
Writing torch/csrc/autograd/generated/VariableType_2.cpp
Writing torch/csrc/autograd/generated/VariableType_3.cpp
Writing torch/csrc/autograd/generated/VariableType_4.cpp
Writing torch/csrc/autograd/generated/VariableTypeEverything.cpp
Writing torch/csrc/autograd/generated/Functions.h
Writing torch/csrc/autograd/generated/Functions.cpp
Writing torch/csrc/autograd/generated/python_functions.h
Writing torch/csrc/autograd/generated/python_functions.cpp
Writing torch/csrc/autograd/generated/python_variable_methods.cpp
Writing torch/csrc/autograd/generated/python_variable_methods_dispatch.h
Writing torch/csrc/autograd/generated/python_torch_functions.cpp
Writing torch/csrc/autograd/generated/python_torch_functions_dispatch.h
Writing torch/csrc/autograd/generated/python_nn_functions.cpp
Writing torch/csrc/autograd/generated/python_nn_functions.h
Writing torch/csrc/autograd/generated/python_nn_functions_dispatch.h
Writing torch/csrc/autograd/generated/variable_factories.h
Writing torch/csrc/jit/generated/register_aten_ops_0.cpp
Writing torch/csrc/jit/generated/register_aten_ops_1.cpp
Writing torch/csrc/jit/generated/register_aten_ops_2.cpp
Writing torch/csrc/jit/generated/aten_interned_strings.h
�[91mWARNING: derivative ignored <span class="pl-k">for</span> _indices
WARNING: derivative ignored <span class="pl-k">for</span> _values
WARNING: derivative ignored <span class="pl-k">for</span> indices
WARNING: derivative ignored <span class="pl-k">for</span> _indices
WARNING: derivative ignored <span class="pl-k">for</span> indices
WARNING: derivative ignored <span class="pl-k">for</span> _values
WARNING: derivative ignored <span class="pl-k">for</span> _indices
WARNING: derivative ignored <span class="pl-k">for</span> _values
WARNING: derivative ignored <span class="pl-k">for</span> indices
�[0m[ 85%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/DataChannelRequest.cpp.o
Scanning dependencies of target torch
[ 86%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/anomaly_mode.cpp.o
[ 86%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/engine.cpp.o
[ 87%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/RPCType.cpp.o
[ 87%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/Utils.cpp.o
[ 87%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/function.cpp.o
[ 87%] Linking CXX shared library ../../lib/libcaffe2_observers.so
[ 87%] Built target caffe2_observers
[ 87%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/accumulate_grad.cpp.o
[ 87%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/group_spatial_softmax_op.cc.o
[ 87%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/data_channels/DataChannelMPI.cpp.o
[ 87%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/ProcessGroupGloo.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/c10d/CMakeFiles/c10d.dir/ProcessGroupMPI.cpp.o
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state_registry.cc.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/basic_ops.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/data_channels/DataChannelTCP.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/ps_roi_pool_op.cc.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/roi_pool_f_op.cc.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/sample_as_op.cc.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/comm.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/tensor.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethod.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethodEnv.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethodFile.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/select_smooth_l1_loss_op.cc.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/sigmoid_cross_entropy_loss_op.cc.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethodTCP.cpp.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/base/init_methods/InitMethodUtils.cpp.o
[ 88%] Linking CXX static library ../../../../lib/libc10d.a
[ 88%] Built target c10d
[ 88%] Building CXX object caffe2/CMakeFiles/caffe2_pybind11_state.dir/python/pybind_state_ideep.cc.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/functions/utils.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/Functions.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/sigmoid_focal_loss_op.cc.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/process_group/Collectives.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/smooth_l1_loss_op.cc.o
[ 88%] Building CXX object caffe2/torch/lib/THD/CMakeFiles/THD.dir/process_group/General.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_0.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_1.cpp.o
[ 88%] Linking CXX static library ../../../../lib/libTHD.a
[ 88%] Built target THD
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_2.cpp.o
[ 88%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_3.cpp.o
[ 88%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/softmax_focal_loss_op.cc.o
[ 89%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/spatial_narrow_as_op.cc.o
[ 89%] Linking CXX shared module python/caffe2_pybind11_state.cpython-36m-x86_64-linux-gnu.so
[ 89%] Built target caffe2_pybind11_state
[ 89%] Building CXX object modules/detectron/CMakeFiles/caffe2_detectron_ops.dir/upsample_nearest_op.cc.o
[ 89%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/generated/VariableType_4.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/grad_mode.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/input_buffer.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/profiler.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/saved_variable.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/variable.cpp.o
[ 90%] Linking CXX shared library ../../lib/libcaffe2_detectron_ops.so
[ 90%] Built target caffe2_detectron_ops
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/autograd/VariableTypeManual.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/cuda/comm.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/autodiff.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/export.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/generated/register_aten_ops_0.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/generated/register_aten_ops_1.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/generated/register_aten_ops_2.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/graph_executor.cpp.o
[ 90%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/import_method.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/import.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/interpreter.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/constants.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/node_hashing.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/ir.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/operator.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/batch_mm.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/canonicalize.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/constant_propagation.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/constant_pooling.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/common_subexpression_elimination.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/create_autodiff_subgraphs.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/inline_autodiff_subgraphs.cpp.o
[ 91%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/dead_code_elimination.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/canonicalize_ops.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/erase_number_types.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/graph_fuser.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/inplace_check.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/loop_unrolling.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/lower_grad_of.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/lower_tuples.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/peephole.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/remove_expands.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/remove_inplace_ops.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/shape_analysis.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/requires_grad_analysis.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/specialize_undef.cpp.o
[ 92%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/python_print.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/passes/utils/subgraph_utils.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/interface.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/register_prim_ops.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/register_special_ops.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/scope.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/script/compiler.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/script/builtin_functions.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/script/lexer.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/script/module.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/tracer.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/hooks_for_testing.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/torch.cpp.o
�[91m/opt/pytorch/torch/csrc/torch.cpp: In <span class="pl-k">function</span> <span class="pl-en">‘at::TypeExtendedInterface&</span> torch::CPU(at::ScalarType)’:
/opt/pytorch/torch/csrc/torch.cpp:11:17: warning: ‘at::TypeExtendedInterface<span class="pl-k">&</span> torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
<span class="pl-k">return</span> torch::getVariableType(at::Backend::CPU, type)<span class="pl-k">;</span>
^~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface<span class="pl-k">&</span> getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/torch.cpp:11:55: warning: ‘at::TypeExtendedInterface<span class="pl-k">&</span> torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
<span class="pl-k">return</span> torch::getVariableType(at::Backend::CPU, type)<span class="pl-k">;</span>
^
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface<span class="pl-k">&</span> getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/torch.cpp:11:55: warning: ‘at::TypeExtendedInterface<span class="pl-k">&</span> torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
<span class="pl-k">return</span> torch::getVariableType(at::Backend::CPU, type)<span class="pl-k">;</span>
^
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface<span class="pl-k">&</span> getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/torch.cpp: In <span class="pl-k">function</span> <span class="pl-en">‘at::TypeExtendedInterface&</span> torch::CUDA(at::ScalarType)’:
/opt/pytorch/torch/csrc/torch.cpp:15:17: warning: ‘at::TypeExtendedInterface<span class="pl-k">&</span> torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
<span class="pl-k">return</span> torch::getVariableType(at::Backend::CUDA, type)<span class="pl-k">;</span>
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface<span class="pl-k">&</span> getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/torch.cpp:15:56: warning: ‘at::TypeExtendedInterface<span class="pl-k">&</span> torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
<span class="pl-k">return</span> torch::getVariableType(at::Backend::CUDA, type)<span class="pl-k">;</span>
^
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface<span class="pl-k">&</span> getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/torch.cpp:15:56: warning: ‘at::TypeExtendedInterface<span class="pl-k">&</span> torch::getVariableType(at::Backend, at::ScalarType)’ is deprecated [-Wdeprecated-declarations]
<span class="pl-k">return</span> torch::getVariableType(at::Backend::CUDA, type)<span class="pl-k">;</span>
^
/opt/pytorch/torch/csrc/torch.cpp:6:28: note: declared here
at::TypeExtendedInterface<span class="pl-k">&</span> getVariableType(at::Backend backend, at::ScalarType type) {
^~~~~~~~~~~~~~~
�[0m[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/utils/tensor_flatten.cpp.o
[ 93%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/utils/variadic.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/__/test/cpp/jit/no-gtest.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/kernel_cache.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/compiler.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/executor.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/codegen.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/fallback.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/jit/fuser/cpu/fused_kernel.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/cuda.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/data/datasets/mnist.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/data/samplers/random.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/data/samplers/sequential.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/data/samplers/stream.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/jit.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/init.cpp.o
[ 94%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/module.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/batchnorm.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/conv.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/dropout.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/embedding.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/functional.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/linear.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/nn/modules/rnn.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/adagrad.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/adam.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/lbfgs.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/optimizer.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/rmsprop.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/serialize.cpp.o
[ 95%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/optim/sgd.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/serialize/input-archive.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/serialize/output-archive.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch.dir/csrc/api/src/utils.cpp.o
[ 96%] Linking CXX shared library ../../lib/libtorch.so
[ 96%] Built target torch
Scanning dependencies of target torch_python
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/DataLoader.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/DynamicTypes.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/TypeInfo.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Exceptions.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Generator.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Layout.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Device.cpp.o
[ 96%] Building CXX object caffe2/torch/CMakeFiles/torch_python.dir/csrc/Module.cpp.o
�[91m/opt/pytorch/torch/csrc/Dtype.cpp:44:33: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDtype<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDtype<span class="pl-k">*</span>)’} to ‘getter’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, void<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>is_floating_point<span class="pl-pds">"</span></span>, (getter)THPDtype_is_floating_point, nullptr, nullptr, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Dtype.cpp:49:31: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDtype<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDtype<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>__reduce__<span class="pl-pds">"</span></span>, (PyCFunction)THPDtype_reduce, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/DataLoader.cpp:217:49: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_error_if_any_worker_fails<span class="pl-pds">"</span></span>, (PyCFunction)THPModule_errorIfAnyWorkerFails, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91mcc1plus: all warnings being treated as errors
�[0m�[91mmake[2]: <span class="pl-k">***</span> [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o] Error 1
make[2]: <span class="pl-k">***</span> Waiting <span class="pl-k">for</span> unfinished jobs....
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:211: recipe <span class="pl-k">for</span> target <span class="pl-s"><span class="pl-pds">'</span>caffe2/torch/CMakeFiles/torch_python.dir/csrc/Dtype.cpp.o<span class="pl-pds">'</span></span> failed
�[91mcc1plus: all warnings being treated as errors
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:163: recipe <span class="pl-k">for</span> target <span class="pl-s"><span class="pl-pds">'</span>caffe2/torch/CMakeFiles/torch_python.dir/csrc/DataLoader.cpp.o<span class="pl-pds">'</span></span> failed
�[91mmake[2]: <span class="pl-k">***</span> [caffe2/torch/CMakeFiles/torch_python.dir/csrc/DataLoader.cpp.o] Error 1
�[0m�[91m/opt/pytorch/torch/csrc/Generator.cpp:124:36: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPGenerator<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPGenerator<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>get_state<span class="pl-pds">"</span></span>, (PyCFunction)THPGenerator_getState, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Generator.cpp:127:36: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPGenerator<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPGenerator<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>seed<span class="pl-pds">"</span></span>, (PyCFunction)THPGenerator_seed, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Generator.cpp:128:36: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPGenerator<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPGenerator<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>initial_seed<span class="pl-pds">"</span></span>, (PyCFunction)THPGenerator_initialSeed, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Device.cpp:169:26: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDevice<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDevice<span class="pl-k">*</span>)’} to ‘getter’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, void<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>type<span class="pl-pds">"</span></span>, (getter)THPDevice_type, nullptr, nullptr, nullptr},
^~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Device.cpp:170:26: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDevice<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDevice<span class="pl-k">*</span>)’} to ‘getter’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, void<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>index<span class="pl-pds">"</span></span>, (getter)THPDevice_index, nullptr, nullptr, nullptr},
^~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Device.cpp:175:31: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDevice<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(THPDevice<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>__reduce__<span class="pl-pds">"</span></span>, (PyCFunction)THPDevice_reduce, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Module.cpp:410:36: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_autograd_init<span class="pl-pds">"</span></span>, (PyCFunction)THPAutograd_initExtension, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:413:36: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_has_distributed<span class="pl-pds">"</span></span>,(PyCFunction)THPModule_hasDistributed, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:414:36: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>, PyObject<span class="pl-k">*</span>, PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_safe_call<span class="pl-pds">"</span></span>, (PyCFunction)THPModule_safeCall, METH_VARARGS <span class="pl-k">|</span> METH_KEYWORDS, nullptr},
^~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:422:51: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_get_backcompat_broadcast_warn<span class="pl-pds">"</span></span>, (PyCFunction)THPModule_getBackcompatBroadcastWarn, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Module.cpp:424:49: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_get_backcompat_keepdim_warn<span class="pl-pds">"</span></span>, (PyCFunction)THPModule_getBackcompatKeepdimWarn, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:425:36: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>get_num_threads<span class="pl-pds">"</span></span>, (PyCFunction)THPModule_getNumThreads, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91m/opt/pytorch/torch/csrc/Module.cpp:427:39: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_get_cudnn_enabled<span class="pl-pds">"</span></span>, (PyCFunction)THPModule_userEnabledCuDNN, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:429:41: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_get_cudnn_benchmark<span class="pl-pds">"</span></span>, (PyCFunction)THPModule_benchmarkCuDNN, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~
/opt/pytorch/torch/csrc/Module.cpp:431:45: error: cast between incompatible <span class="pl-k">function</span> <span class="pl-en">types</span> from ‘PyObject<span class="pl-k">*</span> (<span class="pl-k">*</span>)(PyObject<span class="pl-k">*</span>)’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>)’} to ‘PyCFunction’ {aka ‘_object<span class="pl-k">*</span> (<span class="pl-k">*</span>)(_object<span class="pl-k">*</span>, _object<span class="pl-k">*</span>)’} [-Werror<span class="pl-k">=</span>cast-function-type]
{<span class="pl-s"><span class="pl-pds">"</span>_get_cudnn_deterministic<span class="pl-pds">"</span></span>, (PyCFunction)THPModule_deterministicCuDNN, METH_NOARGS, nullptr},
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
�[0m�[91mcc1plus: all warnings being treated as errors
�[0m�[91mmake[2]: <span class="pl-k">***</span> [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Generator.cpp.o] Error 1
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:307: recipe <span class="pl-k">for</span> target <span class="pl-s"><span class="pl-pds">'</span>caffe2/torch/CMakeFiles/torch_python.dir/csrc/Generator.cpp.o<span class="pl-pds">'</span></span> failed
�[91mcc1plus: all warnings being treated as errors
�[0m�[91mmake[2]: <span class="pl-k">***</span> [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Device.cpp.o] Error 1
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:187: recipe <span class="pl-k">for</span> target <span class="pl-s"><span class="pl-pds">'</span>caffe2/torch/CMakeFiles/torch_python.dir/csrc/Device.cpp.o<span class="pl-pds">'</span></span> failed
�[91mcc1plus: all warnings being treated as errors
�[0mcaffe2/torch/CMakeFiles/torch_python.dir/build.make:355: recipe <span class="pl-k">for</span> target <span class="pl-s"><span class="pl-pds">'</span>caffe2/torch/CMakeFiles/torch_python.dir/csrc/Module.cpp.o<span class="pl-pds">'</span></span> failed
�[91mmake[2]: <span class="pl-k">***</span> [caffe2/torch/CMakeFiles/torch_python.dir/csrc/Module.cpp.o] Error 1
�[0mCMakeFiles/Makefile2:3155: recipe <span class="pl-k">for</span> target <span class="pl-s"><span class="pl-pds">'</span>caffe2/torch/CMakeFiles/torch_python.dir/all<span class="pl-pds">'</span></span> failed
�[91mmake[1]: <span class="pl-k">***</span> [caffe2/torch/CMakeFiles/torch_python.dir/all] Error 2
�[0mMakefile:138: recipe <span class="pl-k">for</span> target <span class="pl-s"><span class="pl-pds">'</span>all<span class="pl-pds">'</span></span> failed
�[91mmake: <span class="pl-k">***</span> [all] Error 2
<span class="pl-en">�[0msetup.py::build_deps::run</span>()
Failed to run <span class="pl-s"><span class="pl-pds">'</span>bash ../tools/build_pytorch_libs.sh --use-nnpack --use-mkldnn --use-qnnpack caffe2<span class="pl-pds">'</span></span></pre></div>
<h2 dir="auto">To Reproduce</h2>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cd /opt && git clone --recursive https://github.com/pytorch/pytorch \
&& cd pytorch && git submodule update --init && \
cd /opt/pytorch/third_party/ideep/mkl-dnn && \
git pull https://github.com/intel/mkl-dnn.git --no-commit --rebase && \
cd /opt/pytorch && \
sed -i 's/"Use MKLDNN" OFF/"Use MKLDNN" ON /g' CMakeLists.txt && \
sed -i 's/"Use DISTRIBUTED" OFF/"Use DISTRIBUTED" ON /g' CMakeLists.txt && \
sed -i 's/for parallel code" OFF/for parallel code" ON /g' CMakeLists.txt && \
PYTHON_EXECUTABLE=/opt/conda/bin/python \
PYTHON_LIBRARY=/opt/conda/lib/libpython3.6m.so \
PYTHON_INCLUDE_DIR=/opt/conda/include/python3.6m \
FULL_CAFFE2=1 \
USE_OPENMP=1 \
USE_MKL=1 \
USE_MKLDNN=1 \
USE_MKLML=1 \
USE_SYSTEM_EIGEN_INSTALL=1 \
USE_ZMQ=1 \
USE_DISTRIBUTED=1 \
BUILD_TEST=0 \
# MKLDNN_LIBRARY="" \
# MKLDNN_INCLUDE_DIR="" \
# MKLDNN_LIB_DIR="" \
MKLDNN_LIBRARY=/usr/local/lib \
MKLDNN_INCLUDE_DIR=/usr/local/include \
MKLDNN_LIB_DIR=/usr/local/lib \
# CFLAGS=" -w -g -O3 -m64 -fno-gnu-unique -I${MKLROOT}/include -I/usr/include -fno-optimize-sibling-calls -mavx -msse3 -msse4.1 -msse4.2 -msse2 -mfpmath=sse " \
python setup.py install && \
cd /opt && rm -rf /opt/pytorch && \
cd /usr/lib && sudo ldconfig"><pre class="notranslate"><span class="pl-c1">cd</span> /opt <span class="pl-k">&&</span> git clone --recursive https://github.com/pytorch/pytorch \
<span class="pl-k">&&</span> <span class="pl-c1">cd</span> pytorch <span class="pl-k">&&</span> git submodule update --init <span class="pl-k">&&</span> \
<span class="pl-c1">cd</span> /opt/pytorch/third_party/ideep/mkl-dnn <span class="pl-k">&&</span> \
git pull https://github.com/intel/mkl-dnn.git --no-commit --rebase <span class="pl-k">&&</span> \
<span class="pl-c1">cd</span> /opt/pytorch <span class="pl-k">&&</span> \
sed -i <span class="pl-s"><span class="pl-pds">'</span>s/"Use MKLDNN" OFF/"Use MKLDNN" ON /g<span class="pl-pds">'</span></span> CMakeLists.txt <span class="pl-k">&&</span> \
sed -i <span class="pl-s"><span class="pl-pds">'</span>s/"Use DISTRIBUTED" OFF/"Use DISTRIBUTED" ON /g<span class="pl-pds">'</span></span> CMakeLists.txt <span class="pl-k">&&</span> \
sed -i <span class="pl-s"><span class="pl-pds">'</span>s/for parallel code" OFF/for parallel code" ON /g<span class="pl-pds">'</span></span> CMakeLists.txt <span class="pl-k">&&</span> \
PYTHON_EXECUTABLE=/opt/conda/bin/python \
PYTHON_LIBRARY=/opt/conda/lib/libpython3.6m.so \
PYTHON_INCLUDE_DIR=/opt/conda/include/python3.6m \
FULL_CAFFE2=1 \
USE_OPENMP=1 \
USE_MKL=1 \
USE_MKLDNN=1 \
USE_MKLML=1 \
USE_SYSTEM_EIGEN_INSTALL=1 \
USE_ZMQ=1 \
USE_DISTRIBUTED=1 \
BUILD_TEST=0 \
<span class="pl-c"><span class="pl-c">#</span> MKLDNN_LIBRARY="" \</span>
<span class="pl-c"><span class="pl-c">#</span> MKLDNN_INCLUDE_DIR="" \</span>
<span class="pl-c"><span class="pl-c">#</span> MKLDNN_LIB_DIR="" \</span>
MKLDNN_LIBRARY=/usr/local/lib \
MKLDNN_INCLUDE_DIR=/usr/local/include \
MKLDNN_LIB_DIR=/usr/local/lib \
<span class="pl-c"><span class="pl-c">#</span> CFLAGS=" -w -g -O3 -m64 -fno-gnu-unique -I${MKLROOT}/include -I/usr/include -fno-optimize-sibling-calls -mavx -msse3 -msse4.1 -msse4.2 -msse2 -mfpmath=sse " \</span>
python setup.py install <span class="pl-k">&&</span> \
<span class="pl-c1">cd</span> /opt <span class="pl-k">&&</span> rm -rf /opt/pytorch <span class="pl-k">&&</span> \
<span class="pl-c1">cd</span> /usr/lib <span class="pl-k">&&</span> sudo ldconfig</pre></div>
<h2 dir="auto">Environment</h2>
<p dir="auto">PyTorch Version (e.g., 1.0): Master branch (1.0)<br>
OS (e.g., Linux): Debian:Stretch<br>
How you installed PyTorch (conda, pip, source): source<br>
Build command you used (if compiling from source): see above<br>
Python version: 3.6<br>
CUDA/cuDNN version: N/A<br>
GPU models and configuration: N/A<br>
Any other relevant information: N/A</p> | 0 |
<p dir="auto">Hi all,</p>
<p dir="auto">I added six -to seven carousel slides on my page, and from back-end I am setting some div (item) style to display none. This code will only hiding the div contain but actual div is not removed from the slide show . (so if i set style="display:none" in slide show it is showing empty slide.</p>
<p dir="auto">Regards,</p> | <p dir="auto">Hi All,</p>
<p dir="auto">I want to add dynamic user control in ASP.net in carousel control . How I could approach this problem.</p>
<p dir="auto">Regards,</p>
<p dir="auto">Vishal Bedre</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 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> | <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: Windows 10 企业版(10.0.17134)</li>
<li>Java version: 1.8.0_211</li>
<li>Operating System Lang:zh-cn</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<ol dir="auto">
<li>Do setup things,including run some dubbo servic(use the dubbo-samples),run a zookeeper service.A java app as a container to run the OSGi (hereinafter referred to as <strong>OSGiHost</strong>,and i use the equinox which eclipse use it too).</li>
<li>Code a bndproject(we can use the eclipse plugin:bndtools to make it, and the bundle we make that we referred to as <strong>Bundle</strong> ), make <strong>OSGiHost</strong> can load the <strong>Bundle</strong></li>
<li>Code the Bundle with some generic service code can work in a general java project,and put libs referred on the bnd-classpath too(like curator-client-4.0.1.jar,curator-framework-4.0.1.jar,curator-recipes-4.0.1.jar,dubbo-2.7.3.jar,guava-20.0.jar,javassist-3.20.0-GA.jar,zookeeper-3.4.13.jar,while the versions are corresponding to the dubbo-samples's master branch version:754e937b1b0942d7a1dd76705daaf670854801fd on github, for dubbo.jar is not packed in a bundle-style like most Apache jars do,i have no choice)<br>
4.Use the new version <strong>Bundle</strong> with a dubbo generic service feature,load it in <strong>OSGiHost</strong>,use the new feature.</li>
</ol>
<p dir="auto">1.准备一些DubboService工程(直接使用dubbo-samples工程),起一个zookeeper集群服务,一个OSGi环境的eclipse project,或者直接使用eclipse的Run Configureations中的OSGi Framework来配置一个OSGi环境.下文称这个环境为<strong>OSGiHost</strong>,我使用的是eclipse的实现:equinox.</p>
<p dir="auto">2.创建一个bndproject生成bundle(使用eclipse的插件bndtools),生成的bundle下文称 <strong>Bundle</strong>.确保<strong>OSGiHost</strong>能够加载<strong>Bundle</strong></p>
<p dir="auto">3.往bundle工程中加入一些dubbo泛化调用代码,这些代码已经在普通的java 工程中调用通过,并且将依赖的jar包置于Bundle-ClassPath中(包有curator-client-4.0.1.jar,curator-framework-4.0.1.jar,curator-recipes-4.0.1.jar,dubbo-2.7.3.jar,guava-20.0.jar,javassist-3.20.0-GA.jar,zookeeper-3.4.13.jar,这是从dubbo-samples工程的master分支的754e937b1b0942d7a1dd76705daaf670854801fd版本生成的maven工程的maven依赖库中找到的包),这样做的方式是无法像绝大多数Apache的jar包那样以bundle方式加载它:dubbo-xxx.jar(未提供满足OSGi规范的manifest.mf)</p>
<p dir="auto">4.<strong>OSGiHost</strong>加载新的加入了泛化特性的<strong>Bundle</strong>,并使用这个特性。</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Expected Result</h3>
<p dir="auto"><strong>OSGiHost</strong> can call dubbo service by <strong>Bundle</strong><br>
<strong>OSGiHost</strong>可以通过<strong>Bundle</strong>调用dubbo服务</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">Get some exception,<br>
After read few source code,i think ,it may occured beacause the configuration at inner path of dubbo-2.7.2.jar:\META-INF\dubbo\internal\org.apache.dubbo.common.extension.ExtensionFactory,it told dubbo to use org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory as a 'adaptive',and of course,in the OSGi loader doesn't load the configuration, or make it visible in old way.</p>
<p dir="auto">发生了异常,<br>
通过阅读相关处代码,我猜测有一种可能是dubbo.ajr中的配置\META-INF\dubbo\internal\org.apache.dubbo.common.extension.ExtensionFactory没有被dubbo读取到,无论是loader未加载,还是不处于过去的位置。使得其配置adaptive=org.apache.dubbo.common.extension.factory.AdaptiveExtensionFactory没有生效,进而使用了默认的ExtensionFactory.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.corp.osgihost.osgi.OSGiUtil.doFunctionCall(OSGiUtil.java:241)
at com.corp.osgihost.task.TaskRunner.process(TaskRunner.java:277)
at com.corp.osgihost.task.TaskRunner.run(TaskRunner.java:198)
at com.corp.osgihost.event.TaskHandler.doTaskJobInner(TaskHandler.java:172)
at com.corp.osgihost.event.TaskHandler.doGUITask(TaskHandler.java:162)
at com.corp.osgihost.event.TaskHandler.doGUITaskJob(TaskHandler.java:113)
at com.corp.osgihost.event.TaskHandler.processTask(TaskHandler.java:72)
at com.corp.osgihost.event.TaskHandler$$FastClassBySpringCGLIB$$5d8c0873.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:750)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at com.corp.osgihost.bundle.dubbotest.DubboServiceFactory.genericInvoke(DubboServiceFactory.java:56)
at com.corp.osgihost.bundle.dubbotest.DubboServiceFactory.genericInvoke(DubboServiceFactory.java:51)
at com.corp.osgihost.bundle.dubbotest.DubboTestImpl.stepRPCDubboTest(DubboTestImpl.java:270)
at com.corp.osgihost.bundle.dubbotest.DubboTestImpl.doTestProcess(DubboTestImpl.java:375)
at com.corp.osgihost.bundle.dubbotest.DubboTestImpl.step(DubboTestImpl.java:707)
... 27 more
Caused by: java.lang.IllegalStateException: Failed to create adaptive instance: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.common.extension.ExtensionFactory, cause: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionFactory, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:486)
at org.apache.dubbo.common.extension.ExtensionLoader.<init>(ExtensionLoader.java:106)
at org.apache.dubbo.common.extension.ExtensionLoader.getExtensionLoader(ExtensionLoader.java:128)
at org.apache.dubbo.config.ReferenceConfig.<clinit>(ReferenceConfig.java:101)
... 32 more
Caused by: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.common.extension.ExtensionFactory, cause: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionFactory, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:847)
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:482)
... 35 more
Caused by: java.lang.IllegalStateException: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionFactory, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.AdaptiveClassCodeGenerator.generate(AdaptiveClassCodeGenerator.java:89)
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:860)
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:856)
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:845)
... 36 more"><pre class="notranslate"><code class="notranslate">java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.corp.osgihost.osgi.OSGiUtil.doFunctionCall(OSGiUtil.java:241)
at com.corp.osgihost.task.TaskRunner.process(TaskRunner.java:277)
at com.corp.osgihost.task.TaskRunner.run(TaskRunner.java:198)
at com.corp.osgihost.event.TaskHandler.doTaskJobInner(TaskHandler.java:172)
at com.corp.osgihost.event.TaskHandler.doGUITask(TaskHandler.java:162)
at com.corp.osgihost.event.TaskHandler.doGUITaskJob(TaskHandler.java:113)
at com.corp.osgihost.event.TaskHandler.processTask(TaskHandler.java:72)
at com.corp.osgihost.event.TaskHandler$$FastClassBySpringCGLIB$$5d8c0873.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:750)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ExceptionInInitializerError
at com.corp.osgihost.bundle.dubbotest.DubboServiceFactory.genericInvoke(DubboServiceFactory.java:56)
at com.corp.osgihost.bundle.dubbotest.DubboServiceFactory.genericInvoke(DubboServiceFactory.java:51)
at com.corp.osgihost.bundle.dubbotest.DubboTestImpl.stepRPCDubboTest(DubboTestImpl.java:270)
at com.corp.osgihost.bundle.dubbotest.DubboTestImpl.doTestProcess(DubboTestImpl.java:375)
at com.corp.osgihost.bundle.dubbotest.DubboTestImpl.step(DubboTestImpl.java:707)
... 27 more
Caused by: java.lang.IllegalStateException: Failed to create adaptive instance: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.common.extension.ExtensionFactory, cause: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionFactory, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:486)
at org.apache.dubbo.common.extension.ExtensionLoader.<init>(ExtensionLoader.java:106)
at org.apache.dubbo.common.extension.ExtensionLoader.getExtensionLoader(ExtensionLoader.java:128)
at org.apache.dubbo.config.ReferenceConfig.<clinit>(ReferenceConfig.java:101)
... 32 more
Caused by: java.lang.IllegalStateException: Can't create adaptive extension interface org.apache.dubbo.common.extension.ExtensionFactory, cause: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionFactory, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:847)
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtension(ExtensionLoader.java:482)
... 35 more
Caused by: java.lang.IllegalStateException: No adaptive method exist on extension org.apache.dubbo.common.extension.ExtensionFactory, refuse to create the adaptive class!
at org.apache.dubbo.common.extension.AdaptiveClassCodeGenerator.generate(AdaptiveClassCodeGenerator.java:89)
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtensionClass(ExtensionLoader.java:860)
at org.apache.dubbo.common.extension.ExtensionLoader.getAdaptiveExtensionClass(ExtensionLoader.java:856)
at org.apache.dubbo.common.extension.ExtensionLoader.createAdaptiveExtension(ExtensionLoader.java:845)
... 36 more
</code></pre></div> | 0 |
<p dir="auto">I would like to save a <em>df</em> with the following <em>index</em> to an Excel file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre lang="dtype='datetime64[ns," class="notranslate"><code class="notranslate">
</code></pre></div>
<p dir="auto">it shows the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
TypeError: Timestamp subtraction must have the same timezones or no timezones
"><pre class="notranslate"><code class="notranslate">
TypeError: Timestamp subtraction must have the same timezones or no timezones
</code></pre></div>
<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">Hi</p>
<p dir="auto">Something is wrong when trying to save a dataframe with tz-aware timestamps to xlsx, using pd.Dataframe.to_excel:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df = pd.DataFrame([1], index=[pd.Timestamp('2014-05-02', tz='CET')])
df.to_excel('test.xlsx')"><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-c1">1</span>], <span class="pl-s1">index</span><span class="pl-c1">=</span>[<span class="pl-s1">pd</span>.<span class="pl-v">Timestamp</span>(<span class="pl-s">'2014-05-02'</span>, <span class="pl-s1">tz</span><span class="pl-c1">=</span><span class="pl-s">'CET'</span>)])
<span class="pl-s1">df</span>.<span class="pl-en">to_excel</span>(<span class="pl-s">'test.xlsx'</span>)</pre></div>
<p dir="auto">yields an exception on my system:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-4e18a4be2a71> in <module>()
----> 1 df.to_excel('test.xlsx')
/home/silvio/prod34/lib/python3.4/site-packages/pandas/core/frame.py in to_excel(self, excel_writer, sheet_name, na_rep, float_format, cols, header, index, index_label, startrow, startcol, engine, merge_cells)
1202 formatted_cells = formatter.get_formatted_cells()
1203 excel_writer.write_cells(formatted_cells, sheet_name,
-> 1204 startrow=startrow, startcol=startcol)
1205 if need_save:
1206 excel_writer.save()
/home/silvio/prod34/lib/python3.4/site-packages/pandas/io/excel.py in write_cells(self, cells, sheet_name, startrow, startcol)
771 wks.write(startrow + cell.row,
772 startcol + cell.col,
--> 773 cell.val, style)
774
775 def _convert_to_style(self, style_dict, num_format_str=None):
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in cell_wrapper(self, *args, **kwargs)
55 if len(args):
56 int(args[0])
---> 57 return method(self, *args, **kwargs)
58 except ValueError:
59 # First arg isn't an int, convert to A1 notation.
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in write(self, row, col, *args)
374 # Write datetime objects.
375 if isinstance(token, date_types):
--> 376 return self.write_datetime(row, col, *args)
377
378 # Write number types.
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in cell_wrapper(self, *args, **kwargs)
55 if len(args):
56 int(args[0])
---> 57 return method(self, *args, **kwargs)
58 except ValueError:
59 # First arg isn't an int, convert to A1 notation.
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in write_datetime(self, row, col, date, cell_format)
666
667 # Convert datetime to an Excel date.
--> 668 number = self._convert_date_time(date)
669
670 # Add the default date format.
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in _convert_date_time(self, dt_obj)
3265 def _convert_date_time(self, dt_obj):
3266 # Convert a datetime object to an Excel serial date and time.
-> 3267 return datetime_to_excel_datetime(dt_obj, self.date_1904)
3268
3269 def _options_changed(self):
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/utility.py in datetime_to_excel_datetime(dt_obj, date_1904)
577
578 # Convert a Python datetime.datetime value to an Excel date number.
--> 579 delta = dt_obj - epoch
580 excel_time = (delta.days
581 + (float(delta.seconds)
/home/silvio/prod34/lib/python3.4/site-packages/pandas/tslib.cpython-34m.so in pandas.tslib._Timestamp.__sub__ (pandas/tslib.c:11918)()
TypeError: can't subtract offset-naive and offset-aware datetimes"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-4e18a4be2a71> in <module>()
----> 1 df.to_excel('test.xlsx')
/home/silvio/prod34/lib/python3.4/site-packages/pandas/core/frame.py in to_excel(self, excel_writer, sheet_name, na_rep, float_format, cols, header, index, index_label, startrow, startcol, engine, merge_cells)
1202 formatted_cells = formatter.get_formatted_cells()
1203 excel_writer.write_cells(formatted_cells, sheet_name,
-> 1204 startrow=startrow, startcol=startcol)
1205 if need_save:
1206 excel_writer.save()
/home/silvio/prod34/lib/python3.4/site-packages/pandas/io/excel.py in write_cells(self, cells, sheet_name, startrow, startcol)
771 wks.write(startrow + cell.row,
772 startcol + cell.col,
--> 773 cell.val, style)
774
775 def _convert_to_style(self, style_dict, num_format_str=None):
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in cell_wrapper(self, *args, **kwargs)
55 if len(args):
56 int(args[0])
---> 57 return method(self, *args, **kwargs)
58 except ValueError:
59 # First arg isn't an int, convert to A1 notation.
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in write(self, row, col, *args)
374 # Write datetime objects.
375 if isinstance(token, date_types):
--> 376 return self.write_datetime(row, col, *args)
377
378 # Write number types.
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in cell_wrapper(self, *args, **kwargs)
55 if len(args):
56 int(args[0])
---> 57 return method(self, *args, **kwargs)
58 except ValueError:
59 # First arg isn't an int, convert to A1 notation.
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in write_datetime(self, row, col, date, cell_format)
666
667 # Convert datetime to an Excel date.
--> 668 number = self._convert_date_time(date)
669
670 # Add the default date format.
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/worksheet.py in _convert_date_time(self, dt_obj)
3265 def _convert_date_time(self, dt_obj):
3266 # Convert a datetime object to an Excel serial date and time.
-> 3267 return datetime_to_excel_datetime(dt_obj, self.date_1904)
3268
3269 def _options_changed(self):
/home/silvio/prod34/lib/python3.4/site-packages/xlsxwriter/utility.py in datetime_to_excel_datetime(dt_obj, date_1904)
577
578 # Convert a Python datetime.datetime value to an Excel date number.
--> 579 delta = dt_obj - epoch
580 excel_time = (delta.days
581 + (float(delta.seconds)
/home/silvio/prod34/lib/python3.4/site-packages/pandas/tslib.cpython-34m.so in pandas.tslib._Timestamp.__sub__ (pandas/tslib.c:11918)()
TypeError: can't subtract offset-naive and offset-aware datetimes
</code></pre></div>
<p dir="auto">Using Python 3.4.0 on Arch Linux, list of installed packages:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="~% pip freeze
Cython==0.20.1
Jinja2==2.7.2
MarkupSafe==0.21
Pygments==1.6
SQLAlchemy==0.9.4
XlsxWriter==0.5.3
ecdsa==0.11
ipdb==0.8
ipython==2.0.0
ipython-sql==0.3.1
lxml==3.3.5
matplotlib==1.3.1
mysql-connector-python==1.1.6
nose==1.3.1
numpy==1.8.1
openpyxl==1.8.5
pandas==0.13.1
paramiko==1.13.0
patsy==0.2.1
prettytable==0.7.2
psycopg2==2.5.2
pycrypto==2.6.1
pyodbc==3.0.7
pyparsing==2.0.2
python-dateutil==2.2
pytz==2014.2
requests==2.2.1
scipy==0.13.3
six==1.6.1
sqlparse==0.1.11
statsmodels==0.6.0
tornado==3.2
xlrd==0.9.3"><pre class="notranslate"><code class="notranslate">~% pip freeze
Cython==0.20.1
Jinja2==2.7.2
MarkupSafe==0.21
Pygments==1.6
SQLAlchemy==0.9.4
XlsxWriter==0.5.3
ecdsa==0.11
ipdb==0.8
ipython==2.0.0
ipython-sql==0.3.1
lxml==3.3.5
matplotlib==1.3.1
mysql-connector-python==1.1.6
nose==1.3.1
numpy==1.8.1
openpyxl==1.8.5
pandas==0.13.1
paramiko==1.13.0
patsy==0.2.1
prettytable==0.7.2
psycopg2==2.5.2
pycrypto==2.6.1
pyodbc==3.0.7
pyparsing==2.0.2
python-dateutil==2.2
pytz==2014.2
requests==2.2.1
scipy==0.13.3
six==1.6.1
sqlparse==0.1.11
statsmodels==0.6.0
tornado==3.2
xlrd==0.9.3
</code></pre></div> | 1 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 4.2.2 (windowlicker)</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
BROKER_URL: 'redis://127.0.0.1:6379/2'
CELERYBEAT_SCHEDULE: {
}
CELERY_ACCEPT_CONTENT: ['json']
CELERY_ENABLE_UTC: True
CELERY_QUEUES:
( -> celery>,
-> campaigns>)
CELERY_RESULT_SERIALIZER: 'json'
CELERY_ROUTES:
('campaigns.task_routers.CampaignRouter',)
CELERY_TASK_SERIALIZER: 'json'
</p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: 3.7</li>
<li><strong>Minimal Celery Version</strong>: 4.2.2 vs. 3.1.23</li>
<li><strong>Minimal Kombu Version</strong>: 4.3.0 vs. 3.0.35</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">
amqp==2.5.2
billiard==3.5.0.5
celery==4.2.2
Django==1.8.19
kombu==4.3.0
</p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><ol dir="auto">
<li>
<p dir="auto">Create a minimum Django app that supports celery on python 3.7 (I've used Django==1.8.19)</p>
</li>
<li>
<p dir="auto">Create a task_router for example: CampaignRouter that returns a dictionary:</p>
</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class CampaignRouter(object):
def route_for_task(self, task, args=None, kwargs=None):
if task.startswith('campaigns.tasks.'):
return {
'queue': 'campaigns',
'routing_key': 'campaigns',
'time_limit': 30, # 30sec <<--- this is the problem
}
return None"><pre class="notranslate"><code class="notranslate">class CampaignRouter(object):
def route_for_task(self, task, args=None, kwargs=None):
if task.startswith('campaigns.tasks.'):
return {
'queue': 'campaigns',
'routing_key': 'campaigns',
'time_limit': 30, # 30sec <<--- this is the problem
}
return None
</code></pre></div>
<ol start="3" dir="auto">
<li>Create a task that does stuff for more then 5sec (you are going to pass --time-limit=5 in the command line) for example a 600sec sleep and will be routed by your route:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@app.task(bind=True)
def my_task(self):
time.sleep(1000 * 10) # 10sec
return 1+1"><pre class="notranslate"><code class="notranslate">@app.task(bind=True)
def my_task(self):
time.sleep(1000 * 10) # 10sec
return 1+1
</code></pre></div>
<ol start="4" dir="auto">
<li>Run your django app</li>
<li>Run celery with the --time-limit=5:<br>
<code class="notranslate">celery worker -B -A sample_proj --loglevel=DEBUG --time-limit 5</code></li>
<li>execute the task</li>
<li>check if task run into a TimeLimitExceeded error after 5sec and cry:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" raise TimeLimitExceeded(job._timeout)
billiard.exceptions.TimeLimitExceeded: TimeLimitExceeded(5,)
[2020-04-02 09:37:05,183: ERROR/MainProcess] Hard time limit (5.0s) exceeded for "><pre class="notranslate"><code class="notranslate"> raise TimeLimitExceeded(job._timeout)
billiard.exceptions.TimeLimitExceeded: TimeLimitExceeded(5,)
[2020-04-02 09:37:05,183: ERROR/MainProcess] Hard time limit (5.0s) exceeded for
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">A task ran through the route should have the "time_limit" from the route's dictionary (30sec).</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">I've included it in the TestCase scenario. The actual behevior is that the task ends after 5sec (the time passed in the command line).</p>
<p dir="auto">So basically I see that the interface for creating a message in <code class="notranslate">celery.app.base.send_task</code> has changed between 3.1.23 and 4.2.2. In Celery 3.1.23 you were able to pass the 'time_limit' through your route so each task that runs through it will have that specific time_limit (hard time limit in this case). That was done thanks to the **options argument.</p>
<p dir="auto">Celery 3.1.23 code (<code class="notranslate">celery.app.base.send_task</code> from line 345):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" options = router.route(options, name, args, kwargs)
if connection:
producer = self.amqp.TaskProducer(connection)
with self.producer_or_acquire(producer) as P:
self.backend.on_task_call(P, task_id)
task_id = P.publish_task(
name, args, kwargs, countdown=countdown, eta=eta,
task_id=task_id, expires=expires,
callbacks=maybe_list(link), errbacks=maybe_list(link_error),
reply_to=reply_to or self.oid, **options
)"><pre class="notranslate"><code class="notranslate"> options = router.route(options, name, args, kwargs)
if connection:
producer = self.amqp.TaskProducer(connection)
with self.producer_or_acquire(producer) as P:
self.backend.on_task_call(P, task_id)
task_id = P.publish_task(
name, args, kwargs, countdown=countdown, eta=eta,
task_id=task_id, expires=expires,
callbacks=maybe_list(link), errbacks=maybe_list(link_error),
reply_to=reply_to or self.oid, **options
)
</code></pre></div>
<p dir="auto">But in Celery 4 this isn't possible because the time_limit is pass from the send_task arguments to the amqp.create_task_message() and the "time_limit" from the route isn't even considered.</p>
<p dir="auto">Celery 4.2.2 code (<code class="notranslate">celery.app.base.send_task</code> from line 716):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" options = router.route(
options, route_name or name, args, kwargs, task_type)
if not root_id or not parent_id:
parent = self.current_worker_task
if parent:
if not root_id:
root_id = parent.request.root_id or parent.request.id
if not parent_id:
parent_id = parent.request.id
message = amqp.create_task_message(
task_id, name, args, kwargs, countdown, eta, group_id,
expires, retries, chord,
maybe_list(link), maybe_list(link_error),
reply_to or self.oid, time_limit, soft_time_limit,
self.conf.task_send_sent_event,
root_id, parent_id, shadow, chain,
argsrepr=options.get('argsrepr'),
kwargsrepr=options.get('kwargsrepr'),
)"><pre class="notranslate"><code class="notranslate"> options = router.route(
options, route_name or name, args, kwargs, task_type)
if not root_id or not parent_id:
parent = self.current_worker_task
if parent:
if not root_id:
root_id = parent.request.root_id or parent.request.id
if not parent_id:
parent_id = parent.request.id
message = amqp.create_task_message(
task_id, name, args, kwargs, countdown, eta, group_id,
expires, retries, chord,
maybe_list(link), maybe_list(link_error),
reply_to or self.oid, time_limit, soft_time_limit,
self.conf.task_send_sent_event,
root_id, parent_id, shadow, chain,
argsrepr=options.get('argsrepr'),
kwargsrepr=options.get('kwargsrepr'),
)
</code></pre></div>
<p dir="auto">This is in my opinion a big (not huge) regression because let's see this scenario of a existing project:</p>
<p dir="auto">10 django apps<br>
each app has 10tasks<br>
your 'slow app' has 20tasks</p>
<p dir="auto">If the project used celery 3.1.23 it just needed to create a route and set a key in the returned dictionary to like this: <code class="notranslate">{(other_keys), 'time_limit': 1000}</code>. But if the project decides to use the newest celery it need to add time_limit parameter to each task decorator for the slow app which will end up changing 20 places instead of handling this through the route. And what if we consider to add a new queue that will be for 'medium apps' that should have a smaller time_limit the the queue used be our 'slow app' but a bigger one the the default queue? We need to to the same job - upgrade each decorator with a specific time_limit.</p>
<p dir="auto">This sums up to that each task can have it's own time_limit OR the global time_limit. There is no 'golden mean' which was provided in 3.1.23 thanks to routes.</p>
<p dir="auto">How can this be fixed?<br>
My suggestion is to consider the time_limits params from a route. To get this done the keywords can even have the same names as the celery_configs (for convention) like: <a href="https://docs.celeryproject.org/en/stable/userguide/workers.html" rel="nofollow">task_time_limit / task_soft_time_limit</a></p> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Description</h1>
<p dir="auto">When starting workers like <a href="https://docs.celeryproject.org/en/stable/userguide/workers.html#starting-the-worker" rel="nofollow">some examples in the documentation</a> that uses lowercase <code class="notranslate">info</code> as argument to loglevel I get this error: <code class="notranslate">Error: Invalid value for '-l' / '--loglevel': invalid choice: info. (choose from DEBUG, INFO, WARNING, ERROR, CRITICAL, FATAL)</code>. I assume this is because of the change to Click in 5.0.</p>
<h1 dir="auto">Suggestions</h1>
<p dir="auto">Review documentation for instances of lowercase loglevel being passed and update them to use uppercase.</p> | 0 |
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>v6.0.0</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>MacOS 10.14</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>N/A</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Functional <a href="https://electronjs.org/docs/tutorial/security#12-disable-or-limit-navigation" rel="nofollow">example code</a> that prevents navigation.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Call back is not called, behavoir is not prevented, depending on project blank HTML document is sometimes loaded.</p>
<h3 dir="auto">To Reproduce</h3>
<ol dir="auto">
<li>Clone the <a href="https://github.com/electron/electron-quick-start">Electron Quick Start</a> project</li>
<li>Update <code class="notranslate">main.js</code> with the code below</li>
<li>Execute <code class="notranslate">window.location = 'https://example.com'</code></li>
<li>Note navigation occurs and no <code class="notranslate">console.log</code> output</li>
</ol>
<h5 dir="auto">main.js</h5>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Modules to control application life and create native browser window
const {
app,
BrowserWindow
} = require('electron')
const path = require('path')
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let mainWindow
function createWindow() {
// Create the browser window.
mainWindow = new BrowserWindow({
width: 800,
height: 600,
webPreferences: {
sandbox: true,
webSecurity: true,
contextIsolation: true,
webviewTag: false,
enableRemoteModule: false,
allowRunningInsecureContent: false,
nodeIntegration: false,
nodeIntegrationInWorker: false,
nodeIntegrationInSubFrames: false,
nativeWindowOpen: false,
safeDialogs: true,
preload: path.join(__dirname, 'preload.js')
}
})
// and load the index.html of the app.
mainWindow.loadFile('index.html')
// Open the DevTools.
mainWindow.webContents.openDevTools()
// Emitted when the window is closed.
mainWindow.on('closed', function () {
// Dereference the window object, usually you would store windows
// in an array if your app supports multi windows, this is the time
// when you should delete the corresponding element.
mainWindow = null
})
}
// This method will be called when Electron has finished
// initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs.
app.on('ready', createWindow)
// Quit when all windows are closed.
app.on('window-all-closed', function () {
// On macOS it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') app.quit()
})
app.on('activate', function () {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (mainWindow === null) createWindow()
})
// In this file you can include the rest of your app's specific main process
// code. You can also put them in separate files and require them here.
app.on('web-contents-created', (_, contents) => {
contents.on('will-navigate', (event, navigationUrl) => {
console.log(`[will-navigate] ${navigationUrl}`)
event.preventDefault()
})
})"><pre class="notranslate"><span class="pl-c">// Modules to control application life and create native browser window</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span>
app<span class="pl-kos">,</span>
BrowserWindow
<span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">path</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'path'</span><span class="pl-kos">)</span>
<span class="pl-c">// Keep a global reference of the window object, if you don't, the window will</span>
<span class="pl-c">// be closed automatically when the JavaScript object is garbage collected.</span>
<span class="pl-k">let</span> <span class="pl-s1">mainWindow</span>
<span class="pl-k">function</span> <span class="pl-en">createWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-c">// Create the browser window.</span>
<span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span>
<span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span>
<span class="pl-c1">webPreferences</span>: <span class="pl-kos">{</span>
<span class="pl-c1">sandbox</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">webSecurity</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">contextIsolation</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">webviewTag</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">enableRemoteModule</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">allowRunningInsecureContent</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">nodeIntegration</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">nodeIntegrationInWorker</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">nodeIntegrationInSubFrames</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">nativeWindowOpen</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">safeDialogs</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">preload</span>: <span class="pl-s1">path</span><span class="pl-kos">.</span><span class="pl-en">join</span><span class="pl-kos">(</span><span class="pl-s1">__dirname</span><span class="pl-kos">,</span> <span class="pl-s">'preload.js'</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">// and load the index.html of the app.</span>
<span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">loadFile</span><span class="pl-kos">(</span><span class="pl-s">'index.html'</span><span class="pl-kos">)</span>
<span class="pl-c">// Open the DevTools.</span>
<span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">openDevTools</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-c">// Emitted when the window is closed.</span>
<span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'closed'</span><span class="pl-kos">,</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-c">// Dereference the window object, usually you would store windows</span>
<span class="pl-c">// in an array if your app supports multi windows, this is the time</span>
<span class="pl-c">// when you should delete the corresponding element.</span>
<span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-c">// This method will be called when Electron has finished</span>
<span class="pl-c">// initialization and is ready to create browser windows.</span>
<span class="pl-c">// Some APIs can only be used after this event occurs.</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-s1">createWindow</span><span class="pl-kos">)</span>
<span class="pl-c">// Quit when all windows are closed.</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'window-all-closed'</span><span class="pl-kos">,</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-c">// On macOS it is common for applications and their menu bar</span>
<span class="pl-c">// to stay active until the user quits explicitly with Cmd + Q</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">platform</span> <span class="pl-c1">!==</span> <span class="pl-s">'darwin'</span><span class="pl-kos">)</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">quit</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">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'activate'</span><span class="pl-kos">,</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-c">// On macOS it's common to re-create a window in the app when the</span>
<span class="pl-c">// dock icon is clicked and there are no other windows open.</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">mainWindow</span> <span class="pl-c1">===</span> <span class="pl-c1">null</span><span class="pl-kos">)</span> <span class="pl-en">createWindow</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">// In this file you can include the rest of your app's specific main process</span>
<span class="pl-c">// code. You can also put them in separate files and require them here.</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'web-contents-created'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">_</span><span class="pl-kos">,</span> <span class="pl-s1">contents</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">contents</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'will-navigate'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-s1">navigationUrl</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">`[will-navigate] <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">navigationUrl</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span>
<span class="pl-s1">event</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</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> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success. <em><strong>This might be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="427233346" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/17617" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/17617/hovercard" href="https://github.com/electron/electron/issues/17617">#17617</a> but I have no idea how to check.</strong></em></li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>
3.1.6 (Visual Studio Code 1.33.1)
</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>
macOS 10.14.4
</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>:
<ul dir="auto">
<li>
N/A
</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">No crash.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">The app crashes.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Not quite sure how to reproduce, but the crash is from <a href="https://code.visualstudio.com/" rel="nofollow">Visual Studio Code</a>.</p>
<h3 dir="auto">Screenshots</h3>
<p dir="auto">N/A</p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Crash report: <a href="https://gist.github.com/Coder-256/d6f7c628335e3fe96547e55aa7f6802a">Electron.crash</a></p>
<p dir="auto">I've narrowed it down to somewhere in this function:<br>
</p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/electron/electron/blob/73158a6419a3e2da9e4d523e1131052abd28fbbb/atom/browser/window_list.cc#L82-L90">electron/atom/browser/window_list.cc</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 82 to 90
in
<a data-pjax="true" class="commit-tease-sha" href="/electron/electron/commit/73158a6419a3e2da9e4d523e1131052abd28fbbb">73158a6</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="L82" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="82"></td>
<td id="LC82" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">void</span> <span class="pl-en">WindowList::CloseAllWindows</span>() { </td>
</tr>
<tr class="border-0">
<td id="L83" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="83"></td>
<td id="LC83" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> WindowVector windows = <span class="pl-c1">GetInstance</span>()-><span class="pl-smi">windows_</span>; </td>
</tr>
<tr class="border-0">
<td id="L84" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="84"></td>
<td id="LC84" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">if</span> defined(OS_MACOSX) </td>
</tr>
<tr class="border-0">
<td id="L85" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="85"></td>
<td id="LC85" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">std::reverse</span>(windows.<span class="pl-c1">begin</span>(), windows.<span class="pl-c1">end</span>()); </td>
</tr>
<tr class="border-0">
<td id="L86" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="86"></td>
<td id="LC86" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> #<span class="pl-k">endif</span> </td>
</tr>
<tr class="border-0">
<td id="L87" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="87"></td>
<td id="LC87" 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-k">auto</span>* <span class="pl-k">const</span>& window : windows) </td>
</tr>
<tr class="border-0">
<td id="L88" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="88"></td>
<td id="LC88" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (!window-><span class="pl-c1">IsClosed</span>()) </td>
</tr>
<tr class="border-0">
<td id="L89" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="89"></td>
<td id="LC89" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> window-><span class="pl-c1">Close</span>(); </td>
</tr>
<tr class="border-0">
<td id="L90" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="90"></td>
<td id="LC90" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">Sorry if I haven't provided enough information, if I'm missing anything please let me know.</p> | 0 |
<p dir="auto">Hello, the video_player does not show the texture, just the sound on the IOS devices, the android works correctly.</p>
<p dir="auto">video_player: 0.6.5</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10067343/46910739-35019780-cf20-11e8-864b-dc3e2cd277ee.png"><img width="400" alt="screen shot 2018-10-13 at 19 42 26" src="https://user-images.githubusercontent.com/10067343/46910739-35019780-cf20-11e8-864b-dc3e2cd277ee.png" style="max-width: 100%;"></a></p> | <h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">I'm trying to use flutter with a FlutterTexture in the iOS emulator and I'm repeatedly hitting:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[VERBOSE-1:ios_external_texture_gl.mm(37)] Failed to create GLES texture cache: -6661"><pre class="notranslate"><code class="notranslate">[VERBOSE-1:ios_external_texture_gl.mm(37)] Failed to create GLES texture cache: -6661
</code></pre></div>
<p dir="auto">I downloaded this sample:</p>
<p dir="auto"><a href="https://github.com/flutter/plugins/tree/master/packages/video_player">https://github.com/flutter/plugins/tree/master/packages/video_player</a></p>
<p dir="auto">and hit the play button. This also repeatedly shows this error and doesn't render video.</p>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Launching lib/main.dart on iPhone X in debug mode...
Running Xcode build...
Syncing files to device iPhone X...
[VERBOSE-1:ios_external_texture_gl.mm(37)] Failed to create GLES texture cache: -6661
[VERBOSE-1:ios_external_texture_gl.mm(37)] Failed to create GLES texture cache: -6661
[VERBOSE-1:ios_external_texture_gl.mm(37)] Failed to create GLES texture cache: -6661
..."><pre class="notranslate"><code class="notranslate">Launching lib/main.dart on iPhone X in debug mode...
Running Xcode build...
Syncing files to device iPhone X...
[VERBOSE-1:ios_external_texture_gl.mm(37)] Failed to create GLES texture cache: -6661
[VERBOSE-1:ios_external_texture_gl.mm(37)] Failed to create GLES texture cache: -6661
[VERBOSE-1:ios_external_texture_gl.mm(37)] Failed to create GLES texture cache: -6661
...
</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (on Mac OS X 10.13.2 17C205, locale en-US, channel dev)
• Flutter version 0.0.25-pre.5 at [redacted]
• Framework revision 4ae1b5f415 (5 days ago), 2018-02-07 15:18:04 -0800
• Engine revision 9bc2efdf47
• Tools Dart version 2.0.0-dev.19.0
• Engine Dart version 2.0.0-edge.ea91bc9888184d5a2fc309c36656fdd325ef503c
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2)
• Android SDK at [redacted]
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-26, build-tools 26.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.4.0
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
• Flutter plugin version 21.2.3
• Dart plugin version 173.4548.30
[✓] Connected devices
• iPhone X • 0094171F-87B1-4C62-8DC5-8AE28FC5800A • ios • iOS 11.2 (simulator)
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (on Mac OS X 10.13.2 17C205, locale en-US, channel dev)
• Flutter version 0.0.25-pre.5 at [redacted]
• Framework revision 4ae1b5f415 (5 days ago), 2018-02-07 15:18:04 -0800
• Engine revision 9bc2efdf47
• Tools Dart version 2.0.0-dev.19.0
• Engine Dart version 2.0.0-edge.ea91bc9888184d5a2fc309c36656fdd325ef503c
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.2)
• Android SDK at [redacted]
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-26, build-tools 26.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 9.2, Build version 9C40b
• ios-deploy 1.9.2
• CocoaPods version 1.4.0
[✓] Android Studio (version 3.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)
[✓] IntelliJ IDEA Community Edition (version 2017.3.4)
• Flutter plugin version 21.2.3
• Dart plugin version 173.4548.30
[✓] Connected devices
• iPhone X • 0094171F-87B1-4C62-8DC5-8AE28FC5800A • ios • iOS 11.2 (simulator)
• No issues found!
</code></pre></div> | 1 |
<p dir="auto">In <code class="notranslate">scipy/integrate/quadpack.h</code>, function <code class="notranslate">init_c_multivariate</code> stores a pointer to <code class="notranslate">n_args_ref</code> in the global variable <code class="notranslate">global_n_args</code>. Unfortunately <code class="notranslate">n_args_ref</code> is a local variable which very soon goes out of scope, so later dereferencing <code class="notranslate">global_n_args</code> produces a nonsensical value.</p> | <p dir="auto">This code looks wrong: <a href="https://github.com/scipy/scipy/blob/master/scipy/integrate/__quadpack.h#L128">https://github.com/scipy/scipy/blob/master/scipy/integrate/__quadpack.h#L128</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" check = PyObject_GetAttrString(func, "argtypes");
if (!PyTuple_Check(check) || (PyTuple_GET_SIZE(check) != 1) ||
(PyTuple_GET_ITEM(check, 0) != c_double)) {
if ((PyTuple_GET_ITEM(check, 0) == c_int) && (PyTuple_GET_ITEM(check, 1) == c_double)){
/*If first param is int and second is of double type, we have valid_multivariate */
...
return Valid_Multivariate_Ctype;
}
else
goto fail;
}"><pre class="notranslate"><code class="notranslate"> check = PyObject_GetAttrString(func, "argtypes");
if (!PyTuple_Check(check) || (PyTuple_GET_SIZE(check) != 1) ||
(PyTuple_GET_ITEM(check, 0) != c_double)) {
if ((PyTuple_GET_ITEM(check, 0) == c_int) && (PyTuple_GET_ITEM(check, 1) == c_double)){
/*If first param is int and second is of double type, we have valid_multivariate */
...
return Valid_Multivariate_Ctype;
}
else
goto fail;
}
</code></pre></div>
<p dir="auto">The argument checks are done wrong (PyTuple_GET_ITEM called even if PyTuple_Check fails, etc).</p>
<p dir="auto">Moreover, the actual argument type used later on is a pointer to a double, not double. The check should check that.</p>
<p dir="auto">The check at <a href="https://github.com/scipy/scipy/blob/master/scipy/integrate/__quadpack.h#L396">https://github.com/scipy/scipy/blob/master/scipy/integrate/__quadpack.h#L396</a> should check for equality, not inequality.</p>
<p dir="auto">This code stores a pointer to a local variable, which is invalid: <a href="https://github.com/scipy/scipy/blob/master/scipy/integrate/quadpack.h#L176">https://github.com/scipy/scipy/blob/master/scipy/integrate/quadpack.h#L176</a></p>
<p dir="auto">The code stores pointers of different types in <code class="notranslate">global_args</code> and <code class="notranslate">storage->args</code>, e.g. <a href="https://github.com/scipy/scipy/blob/master/scipy/integrate/quadpack.h#L170">https://github.com/scipy/scipy/blob/master/scipy/integrate/quadpack.h#L170</a>. These variables should be <code class="notranslate">void*</code>, not <code class="notranslate">PyObject*</code>.</p>
<p dir="auto">I didn't have time to look at the PR that added these at the time...</p> | 1 |
<p dir="auto"><code class="notranslate">pd.NaT</code> is an instance of <code class="notranslate">NaTType</code>. <code class="notranslate">NaTType</code> inherits from <code class="notranslate">_NaT</code>, which inherits from <code class="notranslate">_Timestamp</code>, which inherits from <code class="notranslate">datetime</code>.</p>
<p dir="auto">How would people feel about taking <code class="notranslate">_Timestamp</code> out of that chain? Note that <code class="notranslate">_Timestamp</code> is not exported, so no users should be checking e.g. <code class="notranslate">isinstance(x, _Timestamp)</code>.</p>
<p dir="auto">The motivation: if we can take <code class="notranslate">_Timestamp</code> out of the inheritance chain, then the entire <code class="notranslate">NaT</code> hierarchy along with the instance itself can be defined in its own dedicated module, with no intra-pandas dependencies other than <code class="notranslate">util</code>. This comes out to a little over 500 lines.</p>
<p dir="auto">This opens up opportunities for simplification elsewhere, since there are a <em>bunch</em> of modules that import <code class="notranslate">NaT</code> but don't care about most of the rest of <code class="notranslate">tslib</code> (the same applies to the timezones functions in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="251054685" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/17274" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/17274/hovercard" href="https://github.com/pandas-dev/pandas/pull/17274">#17274</a>). Of particular interest are <code class="notranslate">_libs.lib</code>, <code class="notranslate">_libs.period</code>, <code class="notranslate">tseries.frequencies</code>, and <code class="notranslate">tseries.offsets</code>.</p>
<p dir="auto">The other upside is that with few dependencies, the module becomes much easier to test/benchmark/maintain.</p>
<p dir="auto">Without <code class="notranslate">_NaT</code> inheriting from <code class="notranslate">_Timestamp</code>, a methods in <code class="notranslate">_Timestamp</code> become eligible for the <code class="notranslate">@cython.final</code> decorator. My (limited) understanding is that this provides a small performance improvement.</p>
<p dir="auto">The main downside I see is that the docstring pinning done by <code class="notranslate">_make_error_func</code>, <code class="notranslate">_make_nat_func</code>, and <code class="notranslate">_make_nan_func</code> is a bit of a hassle.</p> | <h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [2]: mi = pd.MultiIndex.from_product([['i'], ['ii'], ['iii']])
In [3]: mi.rename([1,5,6]).get_level_values(1) # Interpreted as label
Out[3]: Index(['i'], dtype='object', name=1)
In [4]: mi.rename([1,5,1]).get_level_values(1) # Interpreted as index
Out[4]: Index(['ii'], dtype='object', name=5)
In [5]: mi.rename(['a',5,'a']).get_level_values('a') # ValueError is OK, KeyError is not
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
/home/nobackup/repo/pandas/pandas/core/indexes/multi.py in _get_level_number(self, level)
670 raise ValueError('The name %s occurs multiple times, use a '
--> 671 'level number' % level)
672 level = self.names.index(level)
ValueError: The name a occurs multiple times, use a level number
During handling of the above exception, another exception occurred:
KeyError Traceback (most recent call last)
<ipython-input-5-e8a616f9610f> in <module>()
----> 1 mi.rename(['a',5,'a']).get_level_values('a')
/home/nobackup/repo/pandas/pandas/core/indexes/multi.py in get_level_values(self, level)
975 Index(['d', 'e', 'f'], dtype='object', name='level_2')
976 """
--> 977 level = self._get_level_number(level)
978 values = self._get_level_values(level)
979 return values
/home/nobackup/repo/pandas/pandas/core/indexes/multi.py in _get_level_number(self, level)
673 except ValueError:
674 if not isinstance(level, int):
--> 675 raise KeyError('Level %s not found' % str(level))
676 elif level < 0:
677 level += self.nlevels
KeyError: 'Level a not found'
In [6]: mi.rename([1, 'a', 'a']).get_level_values(1) # How am I going to access the second level?!
Out[6]: Index(['i'], dtype='object', name=1)
"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">2</span>]: <span class="pl-s1">mi</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_product</span>([[<span class="pl-s">'i'</span>], [<span class="pl-s">'ii'</span>], [<span class="pl-s">'iii'</span>]])
<span class="pl-v">In</span> [<span class="pl-c1">3</span>]: <span class="pl-s1">mi</span>.<span class="pl-en">rename</span>([<span class="pl-c1">1</span>,<span class="pl-c1">5</span>,<span class="pl-c1">6</span>]).<span class="pl-en">get_level_values</span>(<span class="pl-c1">1</span>) <span class="pl-c"># Interpreted as label</span>
<span class="pl-v">Out</span>[<span class="pl-c1">3</span>]: <span class="pl-v">Index</span>([<span class="pl-s">'i'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)
<span class="pl-v">In</span> [<span class="pl-c1">4</span>]: <span class="pl-s1">mi</span>.<span class="pl-en">rename</span>([<span class="pl-c1">1</span>,<span class="pl-c1">5</span>,<span class="pl-c1">1</span>]).<span class="pl-en">get_level_values</span>(<span class="pl-c1">1</span>) <span class="pl-c"># Interpreted as index</span>
<span class="pl-v">Out</span>[<span class="pl-c1">4</span>]: <span class="pl-v">Index</span>([<span class="pl-s">'ii'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-c1">5</span>)
<span class="pl-v">In</span> [<span class="pl-c1">5</span>]: <span class="pl-s1">mi</span>.<span class="pl-en">rename</span>([<span class="pl-s">'a'</span>,<span class="pl-c1">5</span>,<span class="pl-s">'a'</span>]).<span class="pl-en">get_level_values</span>(<span class="pl-s">'a'</span>) <span class="pl-c"># ValueError is OK, KeyError is not</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">ValueError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">indexes</span><span class="pl-c1">/</span><span class="pl-s1">multi</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_get_level_number</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>)
<span class="pl-c1">670</span> <span class="pl-k">raise</span> <span class="pl-v">ValueError</span>(<span class="pl-s">'The name %s occurs multiple times, use a '</span>
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">671</span> <span class="pl-s">'level number'</span> <span class="pl-c1">%</span> <span class="pl-s1">level</span>)
<span class="pl-c1">672</span> <span class="pl-s1">level</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-s1">names</span>.<span class="pl-en">index</span>(<span class="pl-s1">level</span>)
<span class="pl-v">ValueError</span>: <span class="pl-v">The</span> <span class="pl-s1">name</span> <span class="pl-s1">a</span> <span class="pl-s1">occurs</span> <span class="pl-s1">multiple</span> <span class="pl-s1">times</span>, <span class="pl-s1">use</span> <span class="pl-s1">a</span> <span class="pl-s1">level</span> <span class="pl-s1">number</span>
<span class="pl-v">During</span> <span class="pl-s1">handling</span> <span class="pl-s1">of</span> <span class="pl-s1">the</span> <span class="pl-s1">above</span> <span class="pl-s1">exception</span>, <span class="pl-s1">another</span> <span class="pl-s1">exception</span> <span class="pl-s1">occurred</span>:
<span class="pl-v">KeyError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1"><</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">5</span><span class="pl-c1">-</span><span class="pl-s1">e8a616f9610f</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>()
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">1</span> <span class="pl-s1">mi</span>.<span class="pl-en">rename</span>([<span class="pl-s">'a'</span>,<span class="pl-c1">5</span>,<span class="pl-s">'a'</span>]).<span class="pl-en">get_level_values</span>(<span class="pl-s">'a'</span>)
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">indexes</span><span class="pl-c1">/</span><span class="pl-s1">multi</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">get_level_values</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>)
<span class="pl-c1">975</span> <span class="pl-v">Index</span>([<span class="pl-s">'d'</span>, <span class="pl-s">'e'</span>, <span class="pl-s">'f'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">'level_2'</span>)
<span class="pl-c1">976</span> """
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">977</span> <span class="pl-s1">level</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_get_level_number</span>(<span class="pl-s1">level</span>)
<span class="pl-c1">978</span> <span class="pl-s1">values</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">_get_level_values</span>(<span class="pl-s1">level</span>)
<span class="pl-c1">979</span> <span class="pl-s1">return</span> <span class="pl-s1">values</span>
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">nobackup</span><span class="pl-c1">/</span><span class="pl-s1">repo</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">indexes</span><span class="pl-c1">/</span><span class="pl-s1">multi</span>.<span class="pl-s1">py</span> <span class="pl-c1">in</span> <span class="pl-en">_get_level_number</span>(<span class="pl-s1">self</span>, <span class="pl-s1">level</span>)
<span class="pl-c1">673</span> <span class="pl-s1">except</span> <span class="pl-v">ValueError</span>:
<span class="pl-c1">674</span> <span class="pl-k">if</span> <span class="pl-c1">not</span> <span class="pl-en">isinstance</span>(<span class="pl-s1">level</span>, <span class="pl-s1">int</span>):
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">675</span> <span class="pl-s1">raise</span> <span class="pl-v">KeyError</span>(<span class="pl-s">'Level %s not found'</span> <span class="pl-c1">%</span> <span class="pl-en">str</span>(<span class="pl-s1">level</span>))
<span class="pl-c1">676</span> <span class="pl-s1">elif</span> <span class="pl-s1">level</span> <span class="pl-c1"><</span> <span class="pl-c1">0</span>:
<span class="pl-c1">677</span> <span class="pl-s1">level</span> <span class="pl-c1">+=</span> <span class="pl-s1">self</span>.<span class="pl-s1">nlevels</span>
<span class="pl-v">KeyError</span>: <span class="pl-s">'Level a not found'</span>
<span class="pl-v">In</span> [<span class="pl-c1">6</span>]: <span class="pl-s1">mi</span>.<span class="pl-en">rename</span>([<span class="pl-c1">1</span>, <span class="pl-s">'a'</span>, <span class="pl-s">'a'</span>]).<span class="pl-en">get_level_values</span>(<span class="pl-c1">1</span>) <span class="pl-c"># How am I going to access the second level?!</span>
<span class="pl-v">Out</span>[<span class="pl-c1">6</span>]: <span class="pl-v">Index</span>([<span class="pl-s">'i'</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s">'object'</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-c1">1</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">There are different problems, but the root cause is (I think) the same:</p>
<ol dir="auto">
<li>the first is trivial: the <code class="notranslate">KeyError</code> in <code class="notranslate">In [5]:</code> should not appear</li>
<li>the second is that the interpretation of an integer changes when there is a duplicate name (difference between <code class="notranslate">Out[3]</code> and <code class="notranslate">Out[4]</code>)</li>
<li>the third is that in a situation like <code class="notranslate">In [6]</code>, I have no way whatsoever to access the second column, since it is denoted by a duplicated name <em>and</em> its index is also the name of another column (sure, this is a perverse example, but I suspect it can bite in some cases in which users use duplicate labels <em>and</em> pandas internal code adds integer labels)</li>
</ol>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">If we were to design this from scratch, the solution would be simple: prioritize the "index" interpretation of an integer over the "label" interpretation, so that the former is always unambiguous. Is this a too strong API change?</p>
<p dir="auto">If the answer is "no", I will be happy to implement it, possibly with a temporary warning in those cases where the behaviour will change (that is: requested label is integer <em>and</em> is present in the names).</p>
<p dir="auto">If the answer is "yes", I would like to at least suppress the <code class="notranslate">KeyError</code> in <code class="notranslate">In [5]:</code> and have <code class="notranslate">In [4]:</code> raise an error rather than return a result inconsistent with <code class="notranslate">In [3]:</code>.</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/pandas-dev/pandas/commit/04db779d4c93d286bb0ab87780a85d50ec490266/hovercard" href="https://github.com/pandas-dev/pandas/commit/04db779d4c93d286bb0ab87780a85d50ec490266"><tt>04db779</tt></a><br>
python: 3.5.3.final.0<br>
python-bits: 64<br>
OS: Linux<br>
OS-release: 4.9.0-4-amd64<br>
machine: x86_64<br>
processor:<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: it_IT.UTF-8<br>
LOCALE: it_IT.UTF-8</p>
<p dir="auto">pandas: 0.22.0.dev0+388.g04db779d4<br>
pytest: 3.2.3<br>
pip: 9.0.1<br>
setuptools: 36.7.0<br>
Cython: 0.25.2<br>
numpy: 1.12.1<br>
scipy: 0.19.0<br>
pyarrow: None<br>
xarray: None<br>
IPython: 6.2.1<br>
sphinx: 1.5.6<br>
patsy: 0.4.1<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: 1.2.0dev<br>
tables: 3.3.0<br>
numexpr: 2.6.1<br>
feather: 0.3.1<br>
matplotlib: 2.0.0<br>
openpyxl: 2.3.0<br>
xlrd: 1.0.0<br>
xlwt: 1.3.0<br>
xlsxwriter: 0.9.6<br>
lxml: 4.1.1<br>
bs4: 4.5.3<br>
html5lib: 0.999999999<br>
sqlalchemy: 1.0.15<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.10<br>
s3fs: None<br>
fastparquet: None<br>
pandas_gbq: None<br>
pandas_datareader: 0.2.1</p>
</details> | 0 |
<h1 dir="auto">Summary</h1>
<p dir="auto">Basically, if you have multiple users on an android phone, flutter deploys sometimes to the wrong user account. Unless you switch accounts, this looks like the deploy totally failed.</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>Setup an Android phone with multiple accounts</li>
<li>Build a flutter app</li>
<li>do a "flutter run"</li>
<li>flutter seems to hang, nothing happens (if actually used user has not logged in yet) or flutter seems to run but no app appears on phone (because it gets installed to an other account)<br>
When checking the App via "Settings/memory/other apps" it sometimes says "not available for user".</li>
</ol>
<h2 dir="auto">Used hardware</h2>
<p dir="auto">BQ Aquaris X with Android 8.1.</p>
<h2 dir="auto">Output from flutter doctor -v</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 10.0.17134.345], locale de-DE)
• Flutter version 0.11.3 at C:\tools\flutter
• Framework revision 72bf075e8d (4 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:\Users\Oliver\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
X Android license status unknown.
[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] IntelliJ IDEA Community Edition (version 2018.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2
• Flutter plugin version 29.1.2
• Dart plugin version 182.3569.4
[!] VS Code (version 1.28.2)
• VS Code at C:\Users\Oliver\AppData\Local\Programs\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (1 available)
• Aquaris X • BJ106805 • android-arm64 • Android 8.1.0 (API 27)"><pre class="notranslate"><code class="notranslate">Flutter (Channel beta, v0.11.3, on Microsoft Windows [Version 10.0.17134.345], locale de-DE)
• Flutter version 0.11.3 at C:\tools\flutter
• Framework revision 72bf075e8d (4 days ago), 2018-11-09 20:36:17 -0800
• Engine revision 5646e86a6f
• Dart version 2.1.0 (build 2.1.0-dev.9.3 9c07fb64c4)
[!] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at C:\Users\Oliver\AppData\Local\Android\sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
X Android license status unknown.
[√] Android Studio (version 3.2)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 30.0.1
• Dart plugin version 181.5656
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)
[√] IntelliJ IDEA Community Edition (version 2018.2)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.2
• Flutter plugin version 29.1.2
• Dart plugin version 182.3569.4
[!] VS Code (version 1.28.2)
• VS Code at C:\Users\Oliver\AppData\Local\Programs\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (1 available)
• Aquaris X • BJ106805 • android-arm64 • Android 8.1.0 (API 27)
</code></pre></div>
<h2 dir="auto">Logs and explanation</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from flutter run --verbose:
"executing: C:\Users\Oliver\AppData\Local\Android\sdk\platform-tools\adb -s BJ106805 shell am start -a
android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true
klages.de.bla/klages.de.bla.MainActivity""><pre class="notranslate"><code class="notranslate">from flutter run --verbose:
"executing: C:\Users\Oliver\AppData\Local\Android\sdk\platform-tools\adb -s BJ106805 shell am start -a
android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true
klages.de.bla/klages.de.bla.MainActivity"
</code></pre></div>
<p dir="auto">This is missing the --user parameter. From the ADB manual:<br>
"--user user_id | current: Specify which user to run as; if not specified, then run as the current user."</p>
<p dir="auto">"then run as current user " either doesn't work or the definition of current user is not what i would expect :-)</p> | <p dir="auto">Internal: b/142944798</p>
<p dir="auto"><code class="notranslate">flutter run</code> cannot pass <code class="notranslate">--user</code> flag to adb launcher.</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/flutter/flutter/blob/8dd06a119015b1053df0b9af564e14684f7ca995/packages/flutter_tools/lib/src/android/android_device.dart#L414-L420">flutter/packages/flutter_tools/lib/src/android/android_device.dart</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 414 to 420
in
<a data-pjax="true" class="commit-tease-sha" href="/flutter/flutter/commit/8dd06a119015b1053df0b9af564e14684f7ca995">8dd06a1</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="L414" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="414"></td>
<td id="LC414" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> cmd <span class="pl-k">=</span> <span class="pl-en">adbCommandForDevice</span>(<span class="pl-k"><</span><span class="pl-c1">String</span><span class="pl-k">></span>[ </td>
</tr>
<tr class="border-0">
<td id="L415" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="415"></td>
<td id="LC415" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'shell'</span>, <span class="pl-s">'am'</span>, <span class="pl-s">'start'</span>, </td>
</tr>
<tr class="border-0">
<td id="L416" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="416"></td>
<td id="LC416" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'-a'</span>, <span class="pl-s">'android.intent.action.RUN'</span>, </td>
</tr>
<tr class="border-0">
<td id="L417" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="417"></td>
<td id="LC417" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'-f'</span>, <span class="pl-s">'0x20000000'</span>, <span class="pl-c">// FLAG_ACTIVITY_SINGLE_TOP</span> </td>
</tr>
<tr class="border-0">
<td id="L418" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="418"></td>
<td id="LC418" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'--ez'</span>, <span class="pl-s">'enable-background-compilation'</span>, <span class="pl-s">'true'</span>, </td>
</tr>
<tr class="border-0">
<td id="L419" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="419"></td>
<td id="LC419" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-s">'--ez'</span>, <span class="pl-s">'enable-dart-profiling'</span>, <span class="pl-s">'true'</span>, </td>
</tr>
<tr class="border-0">
<td id="L420" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="420"></td>
<td id="LC420" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> ]); </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">That means users can't select to launch their apps in work profile vs personal profile. This is critical for any enterprise app that needs to be tested in this mode.</p>
<p dir="auto">See work profile section in <a href="https://developer.android.com/studio/run/" rel="nofollow">https://developer.android.com/studio/run/</a>.</p> | 1 |
<p dir="auto">A briefer way than, say, <code class="notranslate">df.xs(df.index[247])</code> though this isn't really all that bad</p> | <ul class="contains-task-list">
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> _libs/window both includes "skiplist.pyx" and cimports from skiplist. I don't know if it is necessary, but it is definitely confusing. (closed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275918467" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18420" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/18420/hovercard" href="https://github.com/pandas-dev/pandas/pull/18420">#18420</a>)</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> _libs/reshape.pyx is an 18 line stub that just includes reshape_helper.pxi. Could we just change reshape_helper.pxi.in to reshape.pyx.in? <b>update</b>It is correct as is.</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> src/reduce.pyx and src/inference.pyx are a minor PITA, should be merged directly into lib or made into their own modules.</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> src/numpy.pxd should be dropped, just defer to <code class="notranslate">np.get_include()</code> (closed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="292071440" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/19418" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/19418/hovercard" href="https://github.com/pandas-dev/pandas/pull/19418">#19418</a>)</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Only a small fraction of src/datetime/ is used outside of src/, a lot of it is only used by src/ujson/python/objToJSON.c. On the one hand it would be nice to separate out the pieces that are only needed by objToJSON. On the other hand, most of src/datetime is copy/pasted from numpy, and diverging from the original is liable to cause headaches.</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> src/helper.h defines PANDAS_INLINE. Cython has a CYTHON_INLINE that AFAICT would be a drop-in replacement. I have no idea how one would do that.</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> src/skiplist.h has a duplicate definition of PANDAS_INLINE</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> pandas_datetimestruct should either be aliased to or replaced by npy_datetimestruct (closed by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="340862961" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/21886" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/21886/hovercard" href="https://github.com/pandas-dev/pandas/pull/21886">#21886</a>)</p>
</li>
<li class="task-list-item">
<p dir="auto"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> <code class="notranslate">from libc.math cimport sqrt</code> is not <code class="notranslate">nogil</code>, whereas <code class="notranslate">cdef extern from src/headers/math.h</code>... is. That appears to have a nontrivial perf impact. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="275918467" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/18420" data-hovercard-type="pull_request" data-hovercard-url="/pandas-dev/pandas/pull/18420/hovercard" href="https://github.com/pandas-dev/pandas/pull/18420">#18420</a>. Go through and make sure we're using the performant implementation.</p>
</li>
</ul>
<p dir="auto">Benchmarks (technically belongs elsewhere, but not worth opening a new issue)</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> asv is particularly volatile on my machine, so this may be just me. But I'm consistently seeing these as outliers: <code class="notranslate">timeseries.AsOfDataFrame.time_asof</code>, <code class="notranslate">timeseries.AsOfDataFrame.time_asof_nan</code>, <code class="notranslate">timeseries.DatetimeIndex.time_dti_tz_factorize</code>, <code class="notranslate">timeseries.DatetimeIndex.time_dti_factorize</code></li>
</ul> | 0 |
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">能否让$emit方法返回一个Promise对象?这可以知道分发的事件在什么时候完成,方便在对这个事件进行监听的所有方法完成后进行一些额外的操作。<br>
比如说,一个按钮组件,在点击之后变成加载中状态,在点击操作(这个操作可能是向服务器请求数据,也有可能仅仅只是个同步操作)完成之后,还原成之前的状态。这样的话,可以让按钮的状态变化与事件逻辑分离开。</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto">可以像下面一样的使用</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
async onClick () {
this.loading = true
await this.$emit('click')
this.loading = false
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-k">async</span> <span class="pl-en">onClick</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">loading</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span>
<span class="pl-k">await</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">$emit</span><span class="pl-kos">(</span><span class="pl-s">'click'</span><span class="pl-kos">)</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">loading</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div> | <h3 dir="auto">Version</h3>
<p dir="auto">2.2.6</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://jsfiddle.net/50wL7mdz/27555/" rel="nofollow">https://jsfiddle.net/50wL7mdz/27555/</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<component @click="callback">
</component>
function callbcak() {
return new Promise(function(resolve, reject) {
setTimeout(() => {
resolve('resolved')
}, 2000)
})
}
// in component
<script>
...
methods: {
handleClick(evt) {
var promise = this.$emit('click', evt)
console.log(promise) // promise is component self, not the return promise
}
}
...
</script>"><pre class="notranslate"><code class="notranslate"><component @click="callback">
</component>
function callbcak() {
return new Promise(function(resolve, reject) {
setTimeout(() => {
resolve('resolved')
}, 2000)
})
}
// in component
<script>
...
methods: {
handleClick(evt) {
var promise = this.$emit('click', evt)
console.log(promise) // promise is component self, not the return promise
}
}
...
</script>
</code></pre></div>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">expect $emit get the return value of event's callback</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">get component self</p> | 1 |
<p dir="auto">by <strong>patrick.allen.higgins</strong>:</p>
<pre class="notranslate">Sorry that this is so wordy and without a simple test case. I haven't been able to
narrow it down to a simpler one yet, and may not have the time to do so. The tl;dr
version is that GDB clearly shows syscall.ForkLock as being locked when I don't believe
it should be.
I have a program which consists of a master which spawns slaves.
The master opens three net.Listener sockets and then spawns the first slave, passing it
the listener FDs.
On receipt of SIGHUP, the master spawns a new slave, passing it the listener FDs.
When a slave finishes initialization and starts serving HTTP requests on the 3
listeners, it sends a SIGUSR1 to the master.
On receipt of SIGUSR1, the master sends a SIGTERM to all but the most recently spawned
slave.
On receipt of SIGTERM, a slave closes all three of its listeners and then exits.
The master has a goroutine for each slave waiting for them to exit.
By running a "kill -HUP $master_pid" several times in rapid succession from
the shell (by hand, not a script), eventually I notice that the slaves do not exit.
Using lsof shows that one of the listeners is being closed, even though I close it.
I tried to insert code to run lsof at key points in the slave lifecycle and find that it
won't run at a certain point because it is waiting to acquire the syscall.ForkLock:
(gdb) gor 1 bt
#0 0x000000000041bf3c in runtime.gosched () at
/home/phiggins/go-tip/src/pkg/runtime/proc.c:967
#1 0x000000000041bfa6 in runtime.park (unlockf=void, lock=void, reason=void) at
/home/phiggins/go-tip/src/pkg/runtime/proc.c:979
#2 0x0000000000423ca6 in semacquireimpl (addr=void, profile=void) at
/home/phiggins/go-tip/src/pkg/runtime/sema.goc:1479
#3 0x0000000000423eae in sync.runtime_Semacquire (addr=void) at
/home/phiggins/go-tip/src/pkg/runtime/sema.goc:1533
#4 0x00000000004c2101 in sync.(*RWMutex).Lock (rw=0x916a98) at
/home/phiggins/go-tip/src/pkg/sync/rwmutex.go:80
#5 0x00000000004c9f51 in syscall.forkExec (argv0="/usr/sbin/lsof", argv=
[]string = {...}, attr=0xc2008370a0, pid=128849834000, err=0)
at /home/phiggins/go-tip/src/pkg/syscall/exec_unix.go:183
#6 0x00000000004ca547 in syscall.StartProcess (argv0="/usr/sbin/lsof", argv=
[]string = {...}, attr=0xc2008370a0, pid=2, handle=4, err=0)
at /home/phiggins/go-tip/src/pkg/syscall/exec_unix.go:244
#7 0x00000000004bcd27 in os.startProcess (name="/usr/sbin/lsof", argv=
[]string = {...}, attr=0xc200837050, p=0xc200091d80, err=0)
at /home/phiggins/go-tip/src/pkg/os/exec_posix.go:45
#8 0x00000000004bbf9c in os.StartProcess (name="/usr/sbin/lsof", argv=
[]string = {...}, attr=0xc200837050, noname=void)
at /home/phiggins/go-tip/src/pkg/os/doc.go:24
#9 0x00000000004c3f72 in os/exec.(*Cmd).Start (c=void, noname=void) at
/home/phiggins/go-tip/src/pkg/os/exec/exec.go:262
#10 0x00000000004c39a5 in os/exec.(*Cmd).Run (c=0xc200838000, noname=void) at
/home/phiggins/go-tip/src/pkg/os/exec/exec.go:229
#11 0x00000000004039de in main.lsof (msg="pre-close") at
/home/phiggins/src/RecommendationEngine/go/src/recserv/lsof.go:15
#12 0x00000000004073f3 in main.slave (config=0xc2001060e0) at
/home/phiggins/src/RecommendationEngine/go/src/recserv/slave.go:79
#13 0x0000000000406ab2 in main.main () at
/home/phiggins/src/RecommendationEngine/go/src/recserv/recserv.go:66
You can see that ForkLock is actually locked:
(gdb) p 'syscall.ForkLock'
$3 = {w = {state = 1, sema = 0}, writerSem = 0, readerSem = 0, readerCount =
-1073741823, readerWait = 1}
The full gdb session is attached.</pre>
<p dir="auto">Attachments:</p>
<ol dir="auto">
<li><a href="https://storage.googleapis.com/go-attachment/4737/0/recserv-gdb-session.txt" rel="nofollow">recserv-gdb-session.txt</a> (13883 bytes)</li>
</ol> | <pre class="notranslate"><a href="http://tip.golang.org/ref/spec#ShortVarDecl" rel="nofollow">http://tip.golang.org/ref/spec#ShortVarDecl</a> says:
"""a short variable declaration may redeclare variables provided they
were originally declared in the same block with the same type, and at least one of the
non-blank variables is new."""
It is not clear if
func main() {
a, a := 1, 2
}
should be valid.
(gc rejects it, but it accepts "a := 1; b, a, a := 1, 2, 3")</pre> | 0 |
<ul dir="auto">
<li>Open markdown file in preview mode while sidebar is closed.</li>
<li>Open Explorer View sidebar</li>
</ul>
<p dir="auto">Expected: markdown file stays in preview mode<br>
Actual: file switches to source mode</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Version 0.10.8
Commit db71ac615ddf9f33b133ff2536f5d33a77d4774e
Date 2016-02-05T10:10:11.194Z
Shell 0.35.6
Renderer 45.0.2454.85
Node 4.1.1"><pre class="notranslate"><code class="notranslate">Version 0.10.8
Commit db71ac615ddf9f33b133ff2536f5d33a77d4774e
Date 2016-02-05T10:10:11.194Z
Shell 0.35.6
Renderer 45.0.2454.85
Node 4.1.1
</code></pre></div> | <p dir="auto">VSCode very quickly got to <em>nearly</em> being my default editor. One thing I'm missing is something like <a href="https://atom.io/packages/symbols-tree-view" rel="nofollow">https://atom.io/packages/symbols-tree-view</a> where I can view the structure of a file whilst editing. I've used this view across many editors for years.</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=olivergierke" rel="nofollow">Oliver Drotbohm</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5763?redirect=false" rel="nofollow">SPR-5763</a></strong> and commented</p>
<p dir="auto"><code class="notranslate">AnnotationMethodHandlerAdapter</code> contains a private class <code class="notranslate">ServletHandlerMethodResolver</code> that could be used to tweak URL mappings for custom requirements if one was able to subclass it. Furthermore it would be very cool to use in test cases as you could easily test if you mappings work for certain requests. Currently you have to use <code class="notranslate">AnnotationMethodHandlerAdapter</code> directly and thus execute the method entirely.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0 M3</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="398106761" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12109" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12109/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12109">#12109</a> Make ServletHandlerMethodResolver protected (instead of private) to allow subclassing</li>
</ul>
<p dir="auto">7 votes, 6 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=mycroft" rel="nofollow">Bruno Navert</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5087?redirect=false" rel="nofollow">SPR-5087</a></strong> and commented</p>
<p dir="auto">It would be useful to expose ServletHandlerMethodInvoker and ServletHandlerMethodResolver as public classes, rather than private inner classes. This would allow application code to call this directly to mimick the behaviour of Spring when calling handler methods.</p>
<p dir="auto">I have one such use case in my application, and ended up copy/pasting the invoker class, which is far from ideal.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.4</p>
<p dir="auto"><strong>Sub-tasks:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398150567" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14048" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14048/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14048">#14048</a> expose ServletHandlerMethodResolver AnnotationMethodHandlerAdapter.getMethodResolver(Object handler) to application code</li>
</ul>
<p dir="auto">7 votes, 11 watchers</p> | 1 |
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/escape-sequences-in-strings#?solution=%0Avar%20myStr%20%3D%20%22FirstLine%5Cn%5C%5CSecondline%5C%5C%5CrThirdLine%22%3B%20%2F%2F%20Change%20this%20line%0A%0A%0A" rel="nofollow">Escape Sequences in Strings</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; AskTbORJ/5.15.9.29495; BRI/2; GWX:QUALIFIED; rv:11.0) like Gecko</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:<br>
var myStr = "FirstLine\n\Secondline\\rThirdLine"; // Change this line</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
var myStr = "FirstLine\n\\Secondline\\\rThirdLine"; // Change this line
"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span> <span class="pl-c1">=</span> <span class="pl-s">"FirstLine\n\\Secondline\\\rThirdLine"</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span>
</pre></div> | <p dir="auto">This issue references <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="81052092" data-permission-text="Title is private" data-url="https://github.com/freeCodeCamp/freeCodeCamp/issues/541" data-hovercard-type="issue" data-hovercard-url="/freeCodeCamp/freeCodeCamp/issues/541/hovercard" href="https://github.com/freeCodeCamp/freeCodeCamp/issues/541">#541</a>.</p> | 0 |
<h1 dir="auto">Before Opening Please...</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Search for an existing/duplicate RRFC which might be relevant to your RRFC</li>
</ul>
<p dir="auto"><a href="npm/cli#4724">There is one RFC about logging: using STDERR for errors instead of STDOUT. This is unrelated.</a></p>
<h2 dir="auto">Motivation ("The Why")</h2>
<p dir="auto">Currently some CI providers, <a href="https://docs.gitlab.com/ee/ci/pipelines/job_artifacts.html" rel="nofollow">specifically GitLab</a>, restrict job artifacts to being relative to the repository. Presumably, this stops you from uploading runner files that may have dirty-state left from previous runs in non-containerized workflows. Specifically the GitLab documents say,</p>
<blockquote>
<p dir="auto">The <code class="notranslate">paths</code> keyword determines which files to add to the job artifacts. <strong>All paths to files and directories are relative</strong> to the repository where the job was created.</p>
</blockquote>
<p dir="auto">This effectively means NPM logs on error can not be captured as job artifacts.</p>
<h3 dir="auto">Example</h3>
<h3 dir="auto">How</h3>
<h4 dir="auto">Current Behaviour</h4>
<p dir="auto">What I would like to do is something like this (ignore the actual error)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npx ng e2e
npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-11-22T17_24_50_085Z-debug.lo"><pre class="notranslate"><code class="notranslate">$ npx ng e2e
npm ERR! could not determine executable to run
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-11-22T17_24_50_085Z-debug.lo
</code></pre></div>
<p dir="auto">Then I want to upload <code class="notranslate">/root/.npm/_logs/2021-11-22T17_24_50_085Z-debug.log</code> as a job artifact.</p>
<p dir="auto"><strong>This is not currently possible</strong></p>
<h4 dir="auto">Desired Behaviour</h4>
<p dir="auto">In light of GitLab not permitting global files to be uploaded as job artifacts I would like an option to set the log file,</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="npx [--log <LOCATION>] ng e2e"><pre class="notranslate">npx [--log <span class="pl-k"><</span>LOCATION<span class="pl-k">></span>] ng e2e</pre></div>
<p dir="auto">Such that <code class="notranslate">LOCATION</code> could be relative to the cwd.</p>
<p dir="auto">Then I could do,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ npx --log "./.npm/_logs/" ng e2e"><pre class="notranslate"><code class="notranslate">$ npx --log "./.npm/_logs/" ng e2e
</code></pre></div>
<p dir="auto">And set <code class="notranslate">./.npm/_logs/*</code> as my artifacts to upload to GitLab.</p>
<h3 dir="auto">References</h3>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1898387" data-permission-text="Title is private" data-url="https://github.com/npm/npm/issues/1548" data-hovercard-type="issue" data-hovercard-url="/npm/npm/issues/1548/hovercard" href="https://github.com/npm/npm/issues/1548">npm/npm#1548</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="33263168" data-permission-text="Title is private" data-url="https://github.com/npm/npm/issues/5252" data-hovercard-type="pull_request" data-hovercard-url="/npm/npm/pull/5252/hovercard" href="https://github.com/npm/npm/pull/5252">npm/npm#5252</a></li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="49460729" data-permission-text="Title is private" data-url="https://github.com/npm/npm/issues/6744" data-hovercard-type="pull_request" data-hovercard-url="/npm/npm/pull/6744/hovercard" href="https://github.com/npm/npm/pull/6744">npm/npm#6744</a> (exact comment that explains this issue's importance to CI: I am not alone)</li>
<li><a href="https://stackoverflow.com/questions/21624030/change-npm-debug-log-location/23456148" rel="nofollow">https://stackoverflow.com/questions/21624030/change-npm-debug-log-location/23456148</a></li>
</ul> | <h3 dir="auto">EDIT</h3>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1019460977" data-permission-text="Title is private" data-url="https://github.com/npm/cli/issues/3847" data-hovercard-type="issue" data-hovercard-url="/npm/cli/issues/3847/hovercard?comment_id=1219533329&comment_type=issue_comment" href="https://github.com/npm/cli/issues/3847#issuecomment-1219533329">#3847 (comment)</a> for minimum reproduction case. --<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wraithgar/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wraithgar">@wraithgar</a></p>
<hr>
<h3 dir="auto">Is there an existing issue for this?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the existing issues</li>
</ul>
<h3 dir="auto">Current Behavior</h3>
<p dir="auto">Running <code class="notranslate">npm install --workspace=<workspace></code> is resulting in npm exiting with an errorcode and the following stack trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="290 timing command:install Completed in 2473ms
291 verbose stack TypeError: Cannot set property 'dev' of null
291 verbose stack at calcDepFlagsStep (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:34:21)
291 verbose stack at visit (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:12:20)
291 verbose stack at visitNode (/usr/local/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:57:25)
291 verbose stack at next (/usr/local/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:44:19)
291 verbose stack at depth (/usr/local/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:82:10)
291 verbose stack at depth (/usr/local/lib/node_modules/npm/node_modules/treeverse/lib/depth.js:27:12)
291 verbose stack at calcDepFlags (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:10:15)
291 verbose stack at Arborist.[copyIdealToActual] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:1375:7)
291 verbose stack at Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:151:35)
291 verbose stack at async Install.install (/usr/local/lib/node_modules/npm/lib/install.js:170:5)
292 verbose cwd /usr/src
293 verbose Linux 5.10.47-linuxkit
294 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--workspace=scheduler"
295 verbose node v14.16.1
296 verbose npm v7.24.2
297 error Cannot set property 'dev' of null
298 verbose exit 1"><pre class="notranslate"><code class="notranslate">290 timing command:install Completed in 2473ms
291 verbose stack TypeError: Cannot set property 'dev' of null
291 verbose stack at calcDepFlagsStep (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:34:21)
291 verbose stack at visit (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:12:20)
291 verbose stack at visitNode (/usr/local/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:57:25)
291 verbose stack at next (/usr/local/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:44:19)
291 verbose stack at depth (/usr/local/lib/node_modules/npm/node_modules/treeverse/lib/depth-descent.js:82:10)
291 verbose stack at depth (/usr/local/lib/node_modules/npm/node_modules/treeverse/lib/depth.js:27:12)
291 verbose stack at calcDepFlags (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/calc-dep-flags.js:10:15)
291 verbose stack at Arborist.[copyIdealToActual] (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:1375:7)
291 verbose stack at Arborist.reify (/usr/local/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:151:35)
291 verbose stack at async Install.install (/usr/local/lib/node_modules/npm/lib/install.js:170:5)
292 verbose cwd /usr/src
293 verbose Linux 5.10.47-linuxkit
294 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--workspace=scheduler"
295 verbose node v14.16.1
296 verbose npm v7.24.2
297 error Cannot set property 'dev' of null
298 verbose exit 1
</code></pre></div>
<p dir="auto">Dockerfile for container I'm running the command in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM node:14.16.1
RUN npm install -g [email protected]
RUN mkdir -p /usr/src/
WORKDIR /usr/src
COPY ./package.json /usr/src/
COPY ./scheduler/package.json /usr/src/scheduler/
RUN npm install --workspace=scheduler"><pre class="notranslate"><code class="notranslate">FROM node:14.16.1
RUN npm install -g [email protected]
RUN mkdir -p /usr/src/
WORKDIR /usr/src
COPY ./package.json /usr/src/
COPY ./scheduler/package.json /usr/src/scheduler/
RUN npm install --workspace=scheduler
</code></pre></div>
<p dir="auto">node_modules seem to successfully install but npm exits with an error code</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">npm install completes without raising an error</p>
<h3 dir="auto">Steps To Reproduce</h3>
<ol dir="auto">
<li>Setup an npm project with workspaces</li>
<li>Create a docker container according to the above specifications, with one of the commands attempting to run npm install for a specific workspace</li>
<li>Attempt to build the container</li>
<li>npm installs node_modules successfully but exits with error</li>
</ol>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>OS: Debian GNU/Linux 9 (stretch)</li>
<li>Node: 14.16.1</li>
<li>npm: 7.24.2</li>
</ul> | 0 |
<p dir="auto">FreeCodeCamp streaks not updating unless it is after around 6 PST</p>
<p dir="auto">Hello Everyone. In FCC for some reason, if I do not get any brownie points after around 6 PST it does not update for that day. Even if it is after 6 and I already got 7 brownie points, for some reason it doesn't update unless I get another.</p>
<p dir="auto">Here is what I mean:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12162628/21469070/90101574-c9ec-11e6-9616-2c613f090eaa.png"><img src="https://cloud.githubusercontent.com/assets/12162628/21469070/90101574-c9ec-11e6-9616-2c613f090eaa.png" alt="image" style="max-width: 100%;"></a><br>
As you may be able to see I got 9 brownies today and did something for 29 days but it doesn't update and only shows 28 days and if I don't do something after 6ish I loose the streak.</p>
<p dir="auto">My browser info:<br>
Chrome Version 55.0.2883.87 m (64-bit)<br>
Windows 10</p>
<p dir="auto">Thank you in advance!</p>
<p dir="auto">Cheers,<br>
Ryan</p> | <p dir="auto">One of the most common complaints I get (as person in charge of support emails) is that the streak isn't accurate. This may be due to timezones.</p>
<p dir="auto">We probably need to go ahead and write some test cases and really tighten up this code. Any volunteers?</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/3153e75ad3dd96f63f6e28f6d104ea9fa9999b608502974d802491264fb22b6b/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f41723935446b61524a614a426c5a576238477a574734535369753531554f4f776b7841422f696d6167652e706e67"><img src="https://camo.githubusercontent.com/3153e75ad3dd96f63f6e28f6d104ea9fa9999b608502974d802491264fb22b6b/68747470733a2f2f7777772e657665726e6f74652e636f6d2f6c2f41723935446b61524a614a426c5a576238477a574734535369753531554f4f776b7841422f696d6167652e706e67" alt="" data-canonical-src="https://www.evernote.com/l/Ar95DkaRJaJBlZWb8GzWG4SSiu51UOOwkxAB/image.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">On <a href="http://en.wikipedia.org/wiki/QWERTZ" rel="nofollow">QWERTZ keyboards and their derivates</a>, which are used in Germany, Switzerland, Austria and most of Central Europe, the key combination for the <code class="notranslate">@</code> symbol is <code class="notranslate">alt-g q</code>.</p>
<p dir="auto">When pressing <code class="notranslate">alt-g q</code> in Atom Editor, all lines are reformatted so that they break at the preferred line length, instead of entering an <code class="notranslate">@</code> symbol.</p>
<p dir="auto">I've gone through all keybindings, but I could not find any for <code class="notranslate">alt-g q</code>.</p> | <blockquote>
<p dir="auto">Atom doesn't handle keyboards with Right Alt (i.e. AltGr). This is a very basic mistake. I have a Hungarian keyboard layout, I can only write specific keys like "|" (pipe) by pressing Right Alt (AltGr) and then W, which Atom doesn't recognize and treat like Alt-W or something?<br>
The point is there are some layouts like greek, hungarian, czech with special keys, which an EDITOR should handle the right way!!<br>
E.g. I can't write CTRL-", because it writes the number "2" instead. I think this key might be interpreted like CTRL-ALT sequence, but not sure either.<br>
Anyway, without it, it's just not an editor.<br>
Like Windows Media player; you can't pause a movie with it hitting space bar...</p>
</blockquote>
<p dir="auto">From: support/9f98abca9f4a11e3955c6445541b1a76</p> | 1 |
<p dir="auto">On Mac 10.11.3 (15D21), one of the electron helper is constantly running at 90% cpu.</p> | <p dir="auto">Not sure how I can help debug this, whilst <code class="notranslate">code</code> is running in the background, it has a detrimental effect on the performance of the battery.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1777444/11451979/ef2b5afc-95cf-11e5-8160-f74d7ec8be6b.png"><img width="584" alt="screen shot 2015-11-28 at 12 59 23" src="https://cloud.githubusercontent.com/assets/1777444/11451979/ef2b5afc-95cf-11e5-8160-f74d7ec8be6b.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1777444/11451992/40cf4cf6-95d0-11e5-9db2-240706850a06.png"><img width="284" alt="screen shot 2015-11-28 at 13 02 02" src="https://cloud.githubusercontent.com/assets/1777444/11451992/40cf4cf6-95d0-11e5-9db2-240706850a06.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">As of threejs version 112 a directional light with castShadow set to true adds a yellow tint to objects on some devices including the Pixel 3a. Confirmed on the Pixel 3a using both Chrome 79 and Firefox 68.4.1.</p>
<p dir="auto">Here's a demo of the issue (no cdn for 112 exists so you'll have to download it)<br>
The cube should be a yellowish green.<br>
The yellow tint goes away if you do one of the following:</p>
<ul dir="auto">
<li>use a previous version of threejs</li>
<li>comment out 'mainLight.castShadow = true'</li>
<li>skip enabling the shadowMap on the renderer.</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<html>
<head>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/110/three.min.js"></script>-->
<script src="three.112.js"></script>
<style>
body {
margin:0;
padding:0;
}
#scene-container {
width:100%;
height:100%;
}
</style>
</head>
<body>
<div id="scene-container"></div>
<script>
const container = document.querySelector( '#scene-container' );
const scene = new THREE.Scene();
scene.background = new THREE.Color( 'skyblue' );
const mainLight = new THREE.DirectionalLight(0xFFFFFF, Math.PI - 0.5);
mainLight.castShadow = true;
mainLight.position.set(0.15, 0.866, 0.35);
scene.add( mainLight );
const fov = 35;
const aspect = container.clientWidth / container.clientHeight;
const near = 0.1;
const far = 100;
const camera = new THREE.PerspectiveCamera( fov, aspect, near, far );
camera.position.set( 0, 0, 10 );
const geometry = new THREE.BoxBufferGeometry( 2, 2, 2 );
const material = new THREE.MeshStandardMaterial();
material.roughness = 1;
material.metalness = 0;
const mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
const renderer = new THREE.WebGLRenderer();
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
renderer.setSize( container.clientWidth, container.clientHeight );
renderer.setPixelRatio( window.devicePixelRatio );
container.appendChild( renderer.domElement );
renderer.render( scene, camera );
</script>
</body>
</html>
"><pre class="notranslate"><code class="notranslate"><html>
<head>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/110/three.min.js"></script>-->
<script src="three.112.js"></script>
<style>
body {
margin:0;
padding:0;
}
#scene-container {
width:100%;
height:100%;
}
</style>
</head>
<body>
<div id="scene-container"></div>
<script>
const container = document.querySelector( '#scene-container' );
const scene = new THREE.Scene();
scene.background = new THREE.Color( 'skyblue' );
const mainLight = new THREE.DirectionalLight(0xFFFFFF, Math.PI - 0.5);
mainLight.castShadow = true;
mainLight.position.set(0.15, 0.866, 0.35);
scene.add( mainLight );
const fov = 35;
const aspect = container.clientWidth / container.clientHeight;
const near = 0.1;
const far = 100;
const camera = new THREE.PerspectiveCamera( fov, aspect, near, far );
camera.position.set( 0, 0, 10 );
const geometry = new THREE.BoxBufferGeometry( 2, 2, 2 );
const material = new THREE.MeshStandardMaterial();
material.roughness = 1;
material.metalness = 0;
const mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );
const renderer = new THREE.WebGLRenderer();
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = THREE.PCFSoftShadowMap;
renderer.setSize( container.clientWidth, container.clientHeight );
renderer.setPixelRatio( window.devicePixelRatio );
container.appendChild( renderer.domElement );
renderer.render( scene, camera );
</script>
</body>
</html>
</code></pre></div> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">I assume this is a driver bug on the Pixel 3, and it's probably long-standing; it repros on dev, as well as r112 and r110. I haven't tried any more versions. Try this <a href="https://jsfiddle.net/elalish/51Lbtuck/10/" rel="nofollow">fiddle</a>; normally it's just a white sphere:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1649964/71842923-9e1a8100-3077-11ea-9b59-1dac05daaf85.png"><img src="https://user-images.githubusercontent.com/1649964/71842923-9e1a8100-3077-11ea-9b59-1dac05daaf85.png" alt="image" style="max-width: 100%;"></a><br>
But on Pixel 3, specifically with this line enabled:<br>
<code class="notranslate">renderer.shadowMap.type = THREE.PCFSoftShadowMap;</code><br>
We get yellow:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1649964/71843101-fc476400-3077-11ea-954d-7a8cf43a3b36.png"><img src="https://user-images.githubusercontent.com/1649964/71843101-fc476400-3077-11ea-954d-7a8cf43a3b36.png" alt="image" style="max-width: 100%;"></a></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=""> r112</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> ...</li>
</ul>
<h5 dir="auto">Browser</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Chrome</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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" checked=""> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">Pixel 3</p> | 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="JAVA_HOME="$(/usr/libexec/java_home -v 1.9)" mvn clean package"><pre class="notranslate"><code class="notranslate">JAVA_HOME="$(/usr/libexec/java_home -v 1.9)" mvn clean package
</code></pre></div>
<p dir="auto">Results in the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project java-util: Compilation failure: Compilation failure:
[ERROR] /Users/charles.allen/src/druid/java-util/src/main/java/io/druid/java/util/common/ByteBufferUtils.java:[22,16] cannot find symbol
[ERROR] symbol: class Cleaner
[ERROR] location: package sun.misc
[ERROR] /Users/charles.allen/src/druid/java-util/src/main/java/io/druid/java/util/common/ByteBufferUtils.java:[57,11] cannot find symbol
[ERROR] symbol: class Cleaner
[ERROR] location: class io.druid.java.util.common.ByteBufferUtils"><pre class="notranslate"><code class="notranslate">[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.2:compile (default-compile) on project java-util: Compilation failure: Compilation failure:
[ERROR] /Users/charles.allen/src/druid/java-util/src/main/java/io/druid/java/util/common/ByteBufferUtils.java:[22,16] cannot find symbol
[ERROR] symbol: class Cleaner
[ERROR] location: package sun.misc
[ERROR] /Users/charles.allen/src/druid/java-util/src/main/java/io/druid/java/util/common/ByteBufferUtils.java:[57,11] cannot find symbol
[ERROR] symbol: class Cleaner
[ERROR] location: class io.druid.java.util.common.ByteBufferUtils
</code></pre></div> | <p dir="auto">Recently there have been quite a few PRs and issues opened relating to null/empty string handling.</p>
<p dir="auto">I have gathered links to these PRs/issues here, if we would like to have a wider discussion on this topic.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143126504" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2715" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/2715/hovercard" href="https://github.com/apache/druid/pull/2715">#2715</a> - stringFormat extractionFn should be able to return null on null values (Fix for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="142869841" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2706" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/2706/hovercard" href="https://github.com/apache/druid/issues/2706">#2706</a>) <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143126504" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2715" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/2715/hovercard" href="https://github.com/apache/druid/pull/2715">#2715</a><br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="143550626" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2737" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/2737/hovercard" href="https://github.com/apache/druid/pull/2737">#2737</a> - Fix predicate-based ValueMatcher behavior for IncrementalIndex on missing columns.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="144403579" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2758" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/2758/hovercard" href="https://github.com/apache/druid/pull/2758">#2758</a> - handle null values in In Filter<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="144811681" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2765" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/2765/hovercard" href="https://github.com/apache/druid/pull/2765">#2765</a> - Null string is encoded as "null" in incremental index<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145289943" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2771" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/2771/hovercard" href="https://github.com/apache/druid/pull/2771">#2771</a> - Various ExtractionFn null handling fixes.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145307853" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2772" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/2772/hovercard" href="https://github.com/apache/druid/issues/2772">#2772</a> - DimensionPredicateFilter and JavaScriptFilter don't handle null columns properly<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="145310785" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/2776" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/2776/hovercard" href="https://github.com/apache/druid/issues/2776">#2776</a> - Inconsistent null/empty str handling for multi-value/single-value dimensions in QueryableIndexStorageAdapter</p> | 0 |
<p dir="auto">Compiling with the instructions in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57529837" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/10181" data-hovercard-type="pull_request" data-hovercard-url="/JuliaLang/julia/pull/10181/hovercard" href="https://github.com/JuliaLang/julia/pull/10181">#10181</a> results in two test failures. One is <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57629731" data-permission-text="Title is private" data-url="https://github.com/JuliaMath/openspecfun/issues/30" data-hovercard-type="issue" data-hovercard-url="/JuliaMath/openspecfun/issues/30/hovercard" href="https://github.com/JuliaMath/openspecfun/issues/30">JuliaMath/openspecfun#30</a>. The other is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="exception on 5: ERROR: assertion failed: |func(D) - func(DM)| <= 3.4332275e-5
func(D) = 1.048798f0 - 1.5707964f0im
func(DM) = 1.0487979650497437 - 0.5797938426309308im
difference = 0.9910025278753558 > 3.4332275e-5
in read at ./iobuffer.jl:86
in read at stream.jl:699
in anonymous at task.jl:837
while loading linalg4.jl, in expression starting on line 263
ERROR: assertion failed: |func(D) - func(DM)| <= 3.4332275e-5
func(D) = 1.048798f0 - 1.5707964f0im
func(DM) = 1.0487979650497437 - 0.5797938426309308im
difference = 0.9910025278753558 > 3.4332275e-5
in anonymous at task.jl:1367
while loading linalg4.jl, in expression starting on line 263
while loading /home/jiahao/julia-intel/test/runtests.jl, in expression starting on line 39"><pre class="notranslate"><code class="notranslate">exception on 5: ERROR: assertion failed: |func(D) - func(DM)| <= 3.4332275e-5
func(D) = 1.048798f0 - 1.5707964f0im
func(DM) = 1.0487979650497437 - 0.5797938426309308im
difference = 0.9910025278753558 > 3.4332275e-5
in read at ./iobuffer.jl:86
in read at stream.jl:699
in anonymous at task.jl:837
while loading linalg4.jl, in expression starting on line 263
ERROR: assertion failed: |func(D) - func(DM)| <= 3.4332275e-5
func(D) = 1.048798f0 - 1.5707964f0im
func(DM) = 1.0487979650497437 - 0.5797938426309308im
difference = 0.9910025278753558 > 3.4332275e-5
in anonymous at task.jl:1367
while loading linalg4.jl, in expression starting on line 263
while loading /home/jiahao/julia-intel/test/runtests.jl, in expression starting on line 39
</code></pre></div> | <p dir="auto">Environment: Ubuntu 14.04 icc 15.0 ifort 15.0 mkl 11.2<br>
source /opt/intel/composerxe/bin/compilervars.sh intel64<br>
source /opt/intel/mkl/bin/mklvars.sh intel64 ilp64<br>
export LD=/opt/intel/composerxe/bin/xild<br>
export AR=/opt/intel/composerxe/bin/xiar<br>
export MKL_INTERFACE_LAYER=ILP64<br>
export MKLROOT = /opt/intel/composerxe/mkl</p>
<p dir="auto">Make.user:<br>
USE_INTEL_MKL = 1<br>
USE_INTEL_MKL_FFT = 1<br>
USE_INTEL_LIBM = 1<br>
USEICC = 1<br>
USEIFC = 1</p>
<p dir="auto">Built succesful. However, when running make test, it stopped at mod2pi unit test</p>
<p dir="auto">ERROR: assertion failed: |totalErrNew - 0.0| <= 1.7763568394002505e-11<br>
totalErrNew = 12.56641004881809<br>
0.0 = 0.0<br>
difference = 12.56641004881809 > 1.7763568394002505e-11<br>
in error at error.jl:22<br>
in test_approx_eq at test.jl:109<br>
in testModPi at mod2pi.jl:182<br>
in runtests at /home/mickey/Sources_ML/julia/test/testdefs.jl:5<br>
in anonymous at multi.jl:855<br>
in run_work_thunk at multi.jl:621<br>
in anonymous at task.jl:855<br>
while loading mod2pi.jl, in expression starting on line 184<br>
ERROR: assertion failed: |totalErrNew - 0.0| <= 1.7763568394002505e-11<br>
totalErrNew = 12.56641004881809<br>
0.0 = 0.0<br>
difference = 12.56641004881809 > 1.7763568394002505e-11<br>
in anonymous at task.jl:1367<br>
while loading mod2pi.jl, in expression starting on line 184<br>
while loading /home/mickey/Sources_ML/julia/test/runtests.jl, in expression starting on line 35</p> | 1 |
<p dir="auto">Dear julia community, when running <code class="notranslate">eval</code> on an expressions of an expression the <code class="notranslate">typ</code> information is unexpactedly lost:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="> expr1 = :(sin(1))
> expr1.typ = Float32
> print(expr1)
sin(1)::Float32
> expr2 = Expr(:quote, expr1)
> eval(expr2).typ
Any"><pre class="notranslate"><code class="notranslate">> expr1 = :(sin(1))
> expr1.typ = Float32
> print(expr1)
sin(1)::Float32
> expr2 = Expr(:quote, expr1)
> eval(expr2).typ
Any
</code></pre></div>
<p dir="auto">Julia: 0.5.1<br>
Operating System: Windows 10</p> | <p dir="auto">I thought that a <code class="notranslate">QuoteNode</code> as meant as a bulletproof way to be able to shield an expression from the compiler poking into it while e.g. returning it from a macro. But consider the following code with a macro which wraps an expression in a <code class="notranslate">QuoteNode</code> and returns it:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="macro l()
QuoteNode(Expr(:block, (Expr(:line,42,:none)), :(f(x))))
end
show(typeof(@l().args[1]))"><pre class="notranslate"><code class="notranslate">macro l()
QuoteNode(Expr(:block, (Expr(:line,42,:none)), :(f(x))))
end
show(typeof(@l().args[1]))
</code></pre></div>
<p dir="auto">This prints <code class="notranslate">LineNumberNode</code>, which means that the <code class="notranslate">Expr(:line,42,:none)</code> has turned into a <code class="notranslate">LineNumberNode</code>.</p>
<p dir="auto">Should this be corrected, or do I misunderstand the intent of <code class="notranslate">QuoteNode</code>? If I do, does there exist a bulletproof way to shield an expression from the compiler?</p> | 1 |
<ul dir="auto">
<li>Electron version: v1.4.2</li>
<li>Operating system: masOS 10.11.6 (El Capitan)</li>
</ul>
<p dir="auto">When an window that has <code class="notranslate">nodeIntegration: false</code> tries to open a Facebook login or share window, the window can not be closed. Neither with operating-system provided closing methods (close button, cmd+w) nor from the window itself (<code class="notranslate">window.close()</code>) is the window closeable. The Facebook window can also not be reloaded (cmd+r or <code class="notranslate">window.location.reload()</code> do nothing). There are no errors logged (neither windows nor to the main process).</p>
<p dir="auto">Steps to reproduce:</p>
<ul dir="auto">
<li>Given the example app below, start it with <code class="notranslate">electron .</code></li>
<li>Click on "Facebook"</li>
<li>The first time Facebook will prompt for login</li>
<li>Log in to Facebook</li>
<li>Try closing the Facebook popup window (might need to restart the application before this to see the bug happening)</li>
</ul>
<p dir="auto">Example app:<br>
index.html:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<a href="https://www.facebook.com/sharer/sharer.php?u=http://electron.atom.io/" target="_blank">Facebook</a>
<a href="about:blank" target="_blank">Blank</a>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">https://www.facebook.com/sharer/sharer.php?u=http://electron.atom.io/</span>" <span class="pl-c1">target</span>="<span class="pl-s">_blank</span>"<span class="pl-kos">></span>Facebook<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">a</span> <span class="pl-c1">href</span>="<span class="pl-s">about:blank</span>" <span class="pl-c1">target</span>="<span class="pl-s">_blank</span>"<span class="pl-kos">></span>Blank<span class="pl-kos"></</span><span class="pl-ent">a</span><span class="pl-kos">></span></pre></div>
<p dir="auto">main.js:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict'
const electron = require('electron')
const app = electron.app
const BrowserWindow = electron.BrowserWindow
var mainWindow = null
app.on('ready', function() {
mainWindow = new BrowserWindow({
width: 1290,
height: 800,
webPreferences: {
nodeIntegration: false
}
})
mainWindow.loadURL(`file://${__dirname}/index.html`)
})"><pre class="notranslate"><span class="pl-s">'use strict'</span>
<span class="pl-k">const</span> <span class="pl-s1">electron</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span>
<span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">app</span>
<span class="pl-k">const</span> <span class="pl-v">BrowserWindow</span> <span class="pl-c1">=</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-c1">BrowserWindow</span>
<span class="pl-k">var</span> <span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'ready'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">mainWindow</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">width</span>: <span class="pl-c1">1290</span><span class="pl-kos">,</span>
<span class="pl-c1">height</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span>
<span class="pl-c1">webPreferences</span>: <span class="pl-kos">{</span>
<span class="pl-c1">nodeIntegration</span>: <span class="pl-c1">false</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">loadURL</span><span class="pl-kos">(</span><span class="pl-s">`file://<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">__dirname</span><span class="pl-kos">}</span></span>/index.html`</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<p dir="auto">package.json</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "no-facebook",
"private": true,
"version": "1.0.0",
"main": "main.js"
}"><pre class="notranslate">{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>no-facebook<span class="pl-pds">"</span></span>,
<span class="pl-ent">"private"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"version"</span>: <span class="pl-s"><span class="pl-pds">"</span>1.0.0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"main"</span>: <span class="pl-s"><span class="pl-pds">"</span>main.js<span class="pl-pds">"</span></span>
}</pre></div> | <p dir="auto"><a href="https://github.com/etiktin/electron/blob/129d92b30acc2a778b65dc139f113cf10511c4f7/docs/api/browser-window.md">Current behavior</a> of beforeunload event in Electron may break existing web pages. However, changing the behavior according to the <a href="https://html.spec.whatwg.org/#prompt-to-unload-a-document" rel="nofollow">spec</a> may break existing Electron apps.</p>
<p dir="auto">This is a tradeoff proposed by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/deepak1556/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/deepak1556">@deepak1556</a> in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="100468939" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/2481" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/2481/hovercard" href="https://github.com/electron/electron/issues/2481">#2481</a> to make both sides happy:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// do what Electron does currently: unload the page immediately.
window.addEventListener('beforeunload', function(ev) { ev.returnValue = 'true' });
// do what Electron does currently: prevent the unload.
window.addEventListener('beforeunload', function(ev) { ev.returnValue = 'false' });
// do what the spec says: ask the user for confirmation if the string is not empty
window.addEventListener('beforeunload', function(ev) { ev.returnValue =
a_string_other_than_true_false });"><pre class="notranslate"><span class="pl-c">// do what Electron does currently: unload the page immediately.</span>
<span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'beforeunload'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">ev</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">ev</span><span class="pl-kos">.</span><span class="pl-c1">returnValue</span> <span class="pl-c1">=</span> <span class="pl-s">'true'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// do what Electron does currently: prevent the unload.</span>
<span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'beforeunload'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">ev</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">ev</span><span class="pl-kos">.</span><span class="pl-c1">returnValue</span> <span class="pl-c1">=</span> <span class="pl-s">'false'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// do what the spec says: ask the user for confirmation if the string is not empty</span>
<span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">addEventListener</span><span class="pl-kos">(</span><span class="pl-s">'beforeunload'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">ev</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">ev</span><span class="pl-kos">.</span><span class="pl-c1">returnValue</span> <span class="pl-c1">=</span>
<span class="pl-s1">a_string_other_than_true_false</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Non-string values, specifically <code class="notranslate">true/false</code>, are converted to their string forms.</p>
<p dir="auto">If <code class="notranslate">window.onbeforeunload</code> is used instead, the return value of the handler has same effect of <code class="notranslate">ev.returnValue</code>.</p>
<p dir="auto">A remaining question is what to do with <code class="notranslate">ev.preventDefault()</code>. The spec says the UA should ask the user for confirmation. However my test showed that Electron 0.30.4 on Windows allows reload even if <code class="notranslate">ev.preventDefault()</code> is called. So I think it is OK to implement <code class="notranslate">ev.preventDefault()</code> according to the spec?</p> | 1 |
<p dir="auto">I just missed being able to drag and drop my selection. When one attempts to drag a selection, Atom just makes a new selection, beginning at the point of the drag and ending at the point of the drop. It should be possible to drag and drop the selection around in the current buffer and between buffers. For the latter, hovering above a buffer's tab should change the active buffer to there. This would make reorganizing content more intuitive by giving the user visual aid of what is being moved and where to.</p> | <p dir="auto">I was sure an issue was already opened for this, but can't find it now.</p>
<p dir="auto">Halp ticket:</p>
<ul dir="auto">
<li>support/5124ebc4cfa211e3871387e11a229b02</li>
</ul>
<p dir="auto">Would be cool if it was possible to select some text and then drag-and-drop it to some other place.</p> | 1 |
<h3 dir="auto">Proposed new feature or change:</h3>
<p dir="auto">Tensorflow and jax extend the numpy dtype system to include bfloat16. (see: <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/lib/core/bfloat16.cc">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/lib/core/bfloat16.cc</a>)</p>
<p dir="auto">I'm trying to scope out the possibility of upstreaming this into numpy.</p>
<p dir="auto">There is currently an eigen dependency, but I think this could probably be avoided because it is only use to convert to and from float32 and check for nans.</p>
<p dir="auto">Is this the sort of change that numpy would be interested in accepting?</p>
<p dir="auto">There are more accelerator floating point datatypes coming in the future, and we would probably want to add them to numpy as well.<br>
eg:</p>
<ul dir="auto">
<li>E4M3 with 4 exponent bits, 3 mantissa bits, and 1 sign bit.</li>
<li>E5M2, with 5 exponent bits, 2 mantissa bits, and 1 sign bit</li>
</ul> | <h2 dir="auto">Feature</h2>
<p dir="auto">Hi,<br>
I am working at PaddlePaddle(chinese DL framework). We and other DL frameworks would extremely benefit from integrated bfloat16 numpy datatype. I have seen that TF added its own implementation and lately a standalone pip package <a href="https://pypi.org/project/bfloat16/" rel="nofollow">bfloat16</a> was released.<br>
I have also seen NEP 41, 42, 43 which from what I understand will allow adding new, user-defined datatypes. Are you guys planning to integrate bfloat16 into core numpy? If you don't have the bandwidth to do that, is there anyone that can guide me how to implement that so I can make a PR? And how are these NEPs going?</p> | 1 |
<p dir="auto">I was going through the "Create your first page in Symfony" tutorial, and I noticed I was always getting a "No route found for "Get /lucky/number"" type exception; however I was certain everything I coded was correct. After cutting and pasting the sample code (which was identical), I noticed it worked.</p>
<p dir="auto">The problem is here:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /**
* @Route("/lucky/number/{count}")
*/"><pre class="notranslate"> <span class="pl-c">/**</span>
<span class="pl-c"> * @Route("/lucky/number/{count}")</span>
<span class="pl-c"> */</span></pre></div>
<p dir="auto">Whereas this works:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /**
* @Route("/lucky/number/{count}")
*/"><pre class="notranslate"> <span class="pl-c">/**</span>
<span class="pl-c"> * @Route("/lucky/number/{count}")</span>
<span class="pl-c"> */</span></pre></div>
<p dir="auto">The difference is the first annotation has a tab in front of it. This is the bug! Seems to have an issue with tabs.</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.2.9</td>
</tr>
<tr>
<td>Doctrine ORM</td>
<td>2.5.6</td>
</tr>
</tbody>
</table>
<p dir="auto">Hi,<br>
I'm using doctrine "joined" table inheritance, using the annotations in this way</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" * @ORM\InheritanceType("JOINED")
* @ORM\DiscriminatorColumn(name="joined_type", type="string")"><pre class="notranslate"> * @<span class="pl-en"><span class="pl-c1">ORM</span>\<span class="pl-v">InheritanceType</span></span>("<span class="pl-s">JOINED</span>")
* @<span class="pl-en"><span class="pl-c1">ORM</span>\<span class="pl-v">DiscriminatorColumn</span></span>(name="<span class="pl-s">joined_type</span>", type="<span class="pl-s">string</span>")</pre></div>
<p dir="auto">Everything wotks fine when I create the entries, but when I try to get results from database with a simple findAll(), I get a duplicated property id for the entries of the inherited type, in this case "MoreText":<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/12408871/26715142/cc39e6aa-4774-11e7-94b7-1b4372f4badb.jpg"><img src="https://cloud.githubusercontent.com/assets/12408871/26715142/cc39e6aa-4774-11e7-94b7-1b4372f4badb.jpg" alt="response" style="max-width: 100%;"></a></p>
<p dir="auto">I'm not really expert but I just followed the doctrine documentation for table inheritance, and this is not the first time I use it, so I think that it can be a bug.</p>
<p dir="auto">Thank you</p> | 0 |
<ul dir="auto">
<li>Electron version:1.4.3</li>
<li>Operating system:OSX</li>
</ul>
<p dir="auto">After signing an app for the mac app store the app crashes. I've been able to trace the issue to /Contents/Frameworks/Electron Helper.app/Contents/MacOS/Electron Helper . Before signing this works fine and my app runs normally. However after signing it just hangs.</p>
<p dir="auto">When running Electron Helper manually from the command line after signing I get the error <em>Illegal instruction: 4</em></p>
<p dir="auto">This error also occurs on 1.4.2</p> | <p dir="auto">This is a repost from <a href="https://github.com/electron-userland/electron-osx-sign/issues/87">https://github.com/electron-userland/electron-osx-sign/issues/87</a> because I'm not sure whether the problem is in electron or in the signing process (or my configuration / entitlements somehow). Thought I'd post here if someone is having similar issues</p>
<p dir="auto">OS: 10.11.6</p>
<p dir="auto">electron-builder: 7.11.4<br>
npm: 3.10.9<br>
electron: 1.4.2<br>
target: Mac App store</p>
<p dir="auto">As soon as the mac app-store built is signed, when the app is launched, it freezes, particularly, at launching the BrowserWindow.</p>
<p dir="auto">After doing a lot of digging, I've narrowed the issue to the Helper.app being signed. As soon as that's signed - problem.</p>
<p dir="auto">Please help. I spent many hours yesterday of banging my head against the wall until 3 am until I gave up. Maybe something is wrong with my entitlements?</p>
<p dir="auto">I made a very basic "hello world" app to do the testing.</p>
<p dir="auto">Here is my child.plist</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>U3AQW9824Q.com.projector.screenmeet.testbuild</string>
</dict>
</plist>"><pre class="notranslate"><code class="notranslate"><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>U3AQW9824Q.com.projector.screenmeet.testbuild</string>
</dict>
</plist>
</code></pre></div>
<p dir="auto">parent.plist:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>U3AQW9824Q.com.projector.screenmeet.testbuild</string>
</dict>
</plist>"><pre class="notranslate"><code class="notranslate"><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>U3AQW9824Q.com.projector.screenmeet.testbuild</string>
</dict>
</plist>
</code></pre></div>
<p dir="auto">build section from my package.json:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "build": {
"appId": "com.projector.screenmeet.testbuild",
"asar" : false,
"mac": {
"target" : "mas",
"category": "public.app-category.productivity",
"identity" : "U3AQW9824Q"
},
"mas" : {
"identity" : "U3AQW9824Q",
"entitlements": "child.plist",
"category": "public.app-category.productivity",
"entitlementsInherit" : "parent.plist"
}
},"><pre class="notranslate"><code class="notranslate"> "build": {
"appId": "com.projector.screenmeet.testbuild",
"asar" : false,
"mac": {
"target" : "mas",
"category": "public.app-category.productivity",
"identity" : "U3AQW9824Q"
},
"mas" : {
"identity" : "U3AQW9824Q",
"entitlements": "child.plist",
"category": "public.app-category.productivity",
"entitlementsInherit" : "parent.plist"
}
},
</code></pre></div>
<p dir="auto">And finally, the build output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform mas x64 using electron 1.4.3 to dist/mas
Warning: Application icon is not set, default Electron icon will be used
Signing app (identity: 3rd Party Mac Developer Application: Projector LLC (U3AQW9824Q))
electron-osx-sign Pre-sign operation enabled for entitlements automation with versions >= `1.1.1`; disable by setting `pre-auto-entitlements` to `false`. +0ms
electron-osx-sign Automating entitlement app group... +1ms
electron-osx-sign:warn `ElectronTeamID` not found in `Info.plist`, use parsed from signing identity: U3AQW9824Q +4ms
electron-osx-sign `com.apple.security.application-groups` found in entitlements file: U3AQW9824Q.com.projector.screenmeet.testbuild +3ms
electron-osx-sign Signing application... +1ms
electron-osx-sign > application /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +0ms
electron-osx-sign > platform mas +0ms
electron-osx-sign > entitlements child.plist +0ms
electron-osx-sign > child-entitlements parent.plist +0ms
electron-osx-sign > additional-binaries undefined +0ms
electron-osx-sign > identity 3rd Party Mac Developer Application: Projector LLC (U3AQW9824Q) +0ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app/Contents/MacOS/AwesomeTestApp Helper EH +36ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app +213ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app/Contents/MacOS/AwesomeTestApp Helper NP +216ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app +214ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app/Contents/MacOS/AwesomeTestApp Helper +214ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app +210ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework +215ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib +1s
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib +260ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework +501ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/MacOS/AwesomeTestApp +4s
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +235ms
electron-osx-sign Verifying... +235ms
electron-osx-sign Verifying application bundle with codesign... +0ms
electron-osx-sign Result:
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app: valid on disk
/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app: satisfies its Designated Requirement
+609ms
electron-osx-sign Verified. +0ms
electron-osx-sign Displaying entitlements... +0ms
electron-osx-sign Entitlements (prefixed with blob header):
��qq�<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>U3AQW9824Q.com.projector.screenmeet.testbuild</string>
</dict>
</plist> +17ms
electron-osx-sign Application signed. +0ms
Signing app (identity: 3rd Party Mac Developer Application: Projector LLC (U3AQW9824Q))
electron-osx-sign Pre-sign operation enabled for entitlements automation with versions >= `1.1.1`; disable by setting `pre-auto-entitlements` to `false`. +432ms
electron-osx-sign Automating entitlement app group... +0ms
electron-osx-sign `ElectronTeamID` found in `Info.plist`: U3AQW9824Q +2ms
electron-osx-sign `com.apple.security.application-groups` found in entitlements file: U3AQW9824Q.com.projector.screenmeet.testbuild +0ms
electron-osx-sign Signing application... +0ms
electron-osx-sign > application /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +0ms
electron-osx-sign > platform mas +0ms
electron-osx-sign > entitlements child.plist +0ms
electron-osx-sign > child-entitlements parent.plist +0ms
electron-osx-sign > additional-binaries undefined +0ms
electron-osx-sign > identity 3rd Party Mac Developer Application: Projector LLC (U3AQW9824Q) +0ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app/Contents/MacOS/AwesomeTestApp Helper EH +41ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app +216ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app/Contents/MacOS/AwesomeTestApp Helper NP +214ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app +215ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app/Contents/MacOS/AwesomeTestApp Helper +214ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app +213ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework +215ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib +1s
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib +251ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework +460ms
node_modules
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/MacOS/AwesomeTestApp +1s
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +233ms
electron-osx-sign Verifying... +235ms
electron-osx-sign Verifying application bundle with codesign... +0ms
electron-osx-sign Result:
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app: valid on disk
/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app: satisfies its Designated Requirement
+608ms
electron-osx-sign Verified. +1ms
electron-osx-sign Displaying entitlements... +0ms
electron-osx-sign Entitlements (prefixed with blob header):
��qq�<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>U3AQW9824Q.com.projector.screenmeet.testbuild</string>
</dict>
</plist> +17ms
electron-osx-sign Application signed. +0ms
electron-osx-sign:warn No `install` passed in arguments, will fallback to default `/Applications`. +2ms
electron-osx-sign Flattening application... +431ms
electron-osx-sign > application /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +0ms
electron-osx-sign > package-output /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp-1.0.3.pkg +0ms
electron-osx-sign > install-path /Applications +1ms
node_modules
electron-osx-sign > identity 3rd Party Mac Developer Installer: Projector LLC (U3AQW9824Q) +0ms
electron-osx-sign Flattening... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +0ms
electron-osx-sign Application flattened. +7s
MacBook-Pro:testbuild eugene$ ./dist/mas/AwesomeTestApp.app/Contents/Resources/
am.lproj/ bg.lproj/ cs.lproj/ el.lproj/ es.lproj/ fa.lproj/ fr.lproj/ hi.lproj/ id.lproj/ kn.lproj/ lv.lproj/ ms.lproj/ pl.lproj/ ro.lproj/ sl.lproj/ sw.lproj/ th.lproj/ vi.lproj/
app/ bn.lproj/ da.lproj/ en.lproj/ es_419.lproj/ fi.lproj/ gu.lproj/ hr.lproj/ it.lproj/ ko.lproj/ ml.lproj/ nb.lproj/ pt_BR.lproj/ ru.lproj/ sr.lproj/ ta.lproj/ tr.lproj/ zh_CN.lproj/
ar.lproj/ ca.lproj/ de.lproj/ en_GB.lproj/ et.lproj/ fil.lproj/ he.lproj/ hu.lproj/ ja.lproj/ lt.lproj/ mr.lproj/ nl.lproj/ pt_PT.lproj/ sk.lproj/ sv.lproj/ te.lproj/ uk.lproj/ zh_TW.lproj/"><pre class="notranslate"><code class="notranslate">
Skip app dependencies rebuild because dev and app dependencies are not separated
Packaging for platform mas x64 using electron 1.4.3 to dist/mas
Warning: Application icon is not set, default Electron icon will be used
Signing app (identity: 3rd Party Mac Developer Application: Projector LLC (U3AQW9824Q))
electron-osx-sign Pre-sign operation enabled for entitlements automation with versions >= `1.1.1`; disable by setting `pre-auto-entitlements` to `false`. +0ms
electron-osx-sign Automating entitlement app group... +1ms
electron-osx-sign:warn `ElectronTeamID` not found in `Info.plist`, use parsed from signing identity: U3AQW9824Q +4ms
electron-osx-sign `com.apple.security.application-groups` found in entitlements file: U3AQW9824Q.com.projector.screenmeet.testbuild +3ms
electron-osx-sign Signing application... +1ms
electron-osx-sign > application /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +0ms
electron-osx-sign > platform mas +0ms
electron-osx-sign > entitlements child.plist +0ms
electron-osx-sign > child-entitlements parent.plist +0ms
electron-osx-sign > additional-binaries undefined +0ms
electron-osx-sign > identity 3rd Party Mac Developer Application: Projector LLC (U3AQW9824Q) +0ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app/Contents/MacOS/AwesomeTestApp Helper EH +36ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app +213ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app/Contents/MacOS/AwesomeTestApp Helper NP +216ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app +214ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app/Contents/MacOS/AwesomeTestApp Helper +214ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app +210ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework +215ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib +1s
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib +260ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework +501ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/MacOS/AwesomeTestApp +4s
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +235ms
electron-osx-sign Verifying... +235ms
electron-osx-sign Verifying application bundle with codesign... +0ms
electron-osx-sign Result:
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app: valid on disk
/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app: satisfies its Designated Requirement
+609ms
electron-osx-sign Verified. +0ms
electron-osx-sign Displaying entitlements... +0ms
electron-osx-sign Entitlements (prefixed with blob header):
��qq�<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>U3AQW9824Q.com.projector.screenmeet.testbuild</string>
</dict>
</plist> +17ms
electron-osx-sign Application signed. +0ms
Signing app (identity: 3rd Party Mac Developer Application: Projector LLC (U3AQW9824Q))
electron-osx-sign Pre-sign operation enabled for entitlements automation with versions >= `1.1.1`; disable by setting `pre-auto-entitlements` to `false`. +432ms
electron-osx-sign Automating entitlement app group... +0ms
electron-osx-sign `ElectronTeamID` found in `Info.plist`: U3AQW9824Q +2ms
electron-osx-sign `com.apple.security.application-groups` found in entitlements file: U3AQW9824Q.com.projector.screenmeet.testbuild +0ms
electron-osx-sign Signing application... +0ms
electron-osx-sign > application /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +0ms
electron-osx-sign > platform mas +0ms
electron-osx-sign > entitlements child.plist +0ms
electron-osx-sign > child-entitlements parent.plist +0ms
electron-osx-sign > additional-binaries undefined +0ms
electron-osx-sign > identity 3rd Party Mac Developer Application: Projector LLC (U3AQW9824Q) +0ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app/Contents/MacOS/AwesomeTestApp Helper EH +41ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app +216ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app/Contents/MacOS/AwesomeTestApp Helper NP +214ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app +215ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app/Contents/MacOS/AwesomeTestApp Helper +214ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app +213ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework +215ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib +1s
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib +251ms
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework +460ms
node_modules
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/MacOS/AwesomeTestApp +1s
electron-osx-sign Signing... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +233ms
electron-osx-sign Verifying... +235ms
electron-osx-sign Verifying application bundle with codesign... +0ms
electron-osx-sign Result:
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper NP.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper EH.app
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/AwesomeTestApp Helper.app
--prepared:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
--validated:/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/.
/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app: valid on disk
/Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app: satisfies its Designated Requirement
+608ms
electron-osx-sign Verified. +1ms
electron-osx-sign Displaying entitlements... +0ms
electron-osx-sign Entitlements (prefixed with blob header):
��qq�<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.security.app-sandbox</key>
<true/>
<key>com.apple.security.network.client</key>
<true/>
<key>com.apple.security.application-groups</key>
<string>U3AQW9824Q.com.projector.screenmeet.testbuild</string>
</dict>
</plist> +17ms
electron-osx-sign Application signed. +0ms
electron-osx-sign:warn No `install` passed in arguments, will fallback to default `/Applications`. +2ms
electron-osx-sign Flattening application... +431ms
electron-osx-sign > application /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +0ms
electron-osx-sign > package-output /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp-1.0.3.pkg +0ms
electron-osx-sign > install-path /Applications +1ms
node_modules
electron-osx-sign > identity 3rd Party Mac Developer Installer: Projector LLC (U3AQW9824Q) +0ms
electron-osx-sign Flattening... /Users/eugene/WebstormProjects/testbuild/dist/mas/AwesomeTestApp.app +0ms
electron-osx-sign Application flattened. +7s
MacBook-Pro:testbuild eugene$ ./dist/mas/AwesomeTestApp.app/Contents/Resources/
am.lproj/ bg.lproj/ cs.lproj/ el.lproj/ es.lproj/ fa.lproj/ fr.lproj/ hi.lproj/ id.lproj/ kn.lproj/ lv.lproj/ ms.lproj/ pl.lproj/ ro.lproj/ sl.lproj/ sw.lproj/ th.lproj/ vi.lproj/
app/ bn.lproj/ da.lproj/ en.lproj/ es_419.lproj/ fi.lproj/ gu.lproj/ hr.lproj/ it.lproj/ ko.lproj/ ml.lproj/ nb.lproj/ pt_BR.lproj/ ru.lproj/ sr.lproj/ ta.lproj/ tr.lproj/ zh_CN.lproj/
ar.lproj/ ca.lproj/ de.lproj/ en_GB.lproj/ et.lproj/ fil.lproj/ he.lproj/ hu.lproj/ ja.lproj/ lt.lproj/ mr.lproj/ nl.lproj/ pt_PT.lproj/ sk.lproj/ sv.lproj/ te.lproj/ uk.lproj/ zh_TW.lproj/
</code></pre></div> | 1 |
<p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): deployment</p>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG REPORT</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.1", GitCommit:"33cf7b9acbb2cb7c9c72a10d6636321fb180b159", GitTreeState:"clean", BuildDate:"2016-10-10T18:19:49Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.1", GitCommit:"33cf7b9acbb2cb7c9c72a10d6636321fb180b159", GitTreeState:"clean", BuildDate:"2016-10-10T18:19:49Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"4", GitVersion:"v1.4.5", GitCommit:"5a0a696437ad35c133c0c8493f7e9d22b0f9b81b", GitTreeState:"clean", BuildDate:"2016-10-29T01:32:42Z", GoVersion:"go1.6.3", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: Google Cloud</li>
<li><strong>OS</strong> (e.g. from /etc/os-release): GCE Container VM</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>): N/A</li>
<li><strong>Install tools</strong>: N/A</li>
<li><strong>Others</strong>: N/A</li>
</ul>
<p dir="auto"><strong>What happened</strong>:<br>
We use <code class="notranslate">kubectl replace -f deployment.json</code> to update deployment resources in our cluster. We do this because we generate <code class="notranslate">deployment.json</code>, and pass it to either <code class="notranslate">create</code> or <code class="notranslate">replace</code> depending on whether or not the resource already exists</p>
<p dir="auto"><strong>What you expected to happen</strong>:<br>
We expected that <code class="notranslate">replace</code> will trigger the rollout logic, however <code class="notranslate">kubectl rollout status deployment ...</code> always seems to return immediately available, even when <code class="notranslate">kubectl get pods</code> shows pods creating / being terminated (in violation of the rolling update strategy as well).</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):<br>
<code class="notranslate">kubectl replace -f deployment.json</code> where <code class="notranslate">deployment.json</code> describes a deployment resource. You can try changing the image version in a container in <code class="notranslate">deployment.json</code> and running the <code class="notranslate">replace</code> command.</p>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
N/A</p> | <p dir="auto"><strong>Is this a request for help?</strong> (If yes, you should use our troubleshooting guide and community support channels, see <a href="http://kubernetes.io/docs/troubleshooting/" rel="nofollow">http://kubernetes.io/docs/troubleshooting/</a>.): No, filing after reproducing the issue in discussion on sig-auth with <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ericchiang/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ericchiang">@ericchiang</a> and <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/whitlockjc/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/whitlockjc">@whitlockjc</a> and figured out a workaround</p>
<p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.): kubernetes rbac policies</p>
<hr>
<p dir="auto"><strong>Is this a BUG REPORT or FEATURE REQUEST?</strong> (choose one): BUG</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.0", GitCommit:"283137936a498aed572ee22af6774b6fb6e9fd94", GitTreeState:"clean", BuildDate:"2016-07-01T19:26:38Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.4+coreos.0", GitCommit:"be9bf3e842a90537e48361aded2872e389e902e7", GitTreeState:"clean", BuildDate:"2016-08-02T00:54:53Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.0", GitCommit:"283137936a498aed572ee22af6774b6fb6e9fd94", GitTreeState:"clean", BuildDate:"2016-07-01T19:26:38Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"3", GitVersion:"v1.3.4+coreos.0", GitCommit:"be9bf3e842a90537e48361aded2872e389e902e7", GitTreeState:"clean", BuildDate:"2016-08-02T00:54:53Z", GoVersion:"go1.6.2", Compiler:"gc", Platform:"linux/amd64"}
</code></pre></div>
<p dir="auto"><strong>Environment</strong>:</p>
<ul dir="auto">
<li><strong>Cloud provider or hardware configuration</strong>: CoreOS Single node - <a href="https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagrant-single.html" rel="nofollow">https://coreos.com/kubernetes/docs/latest/kubernetes-on-vagrant-single.html</a></li>
<li><strong>OS</strong> (e.g. from /etc/os-release):</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="localhost manifests # cat /etc/os-release
NAME=CoreOS
ID=coreos
VERSION=1122.0.0
VERSION_ID=1122.0.0
BUILD_ID=2016-07-27-0739
PRETTY_NAME="CoreOS 1122.0.0 (MoreOS)"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues""><pre class="notranslate"><code class="notranslate">localhost manifests # cat /etc/os-release
NAME=CoreOS
ID=coreos
VERSION=1122.0.0
VERSION_ID=1122.0.0
BUILD_ID=2016-07-27-0739
PRETTY_NAME="CoreOS 1122.0.0 (MoreOS)"
ANSI_COLOR="1;32"
HOME_URL="https://coreos.com/"
BUG_REPORT_URL="https://github.com/coreos/bugs/issues"
</code></pre></div>
<ul dir="auto">
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="localhost manifests # uname -a
Linux localhost 4.7.0-coreos #1 SMP Wed Jul 27 07:30:04 UTC 2016 x86_64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz GenuineIntel GNU/Linux"><pre class="notranslate"><code class="notranslate">localhost manifests # uname -a
Linux localhost 4.7.0-coreos #1 SMP Wed Jul 27 07:30:04 UTC 2016 x86_64 Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz GenuineIntel GNU/Linux
</code></pre></div>
<ul dir="auto">
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<p dir="auto">After configuring both OIDC and RBAC on the api server and getting a JWT for the user named as the super user k8s refuses to authorize any api calls. In order to work around the issue, I had to configure an X509 client as the super user, at which point I was able to bootstrap the policies and my oidc user and user's groups were properly recognized by k8s.</p>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<p dir="auto">Since the user is a super-user, all commands should execute without checking the rbac authorization system. The x509 login should not have been necessary.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<ul dir="auto">
<li>Deploy k8s</li>
<li>Add the openid connect flags to the api server, here was my config with KeyCloak:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - --oidc-issuer-url=https://kcdev.tremolosecurity.com:8443/auth/realms/kubernetes
- --oidc-client-id=kubernetes
- --oidc-username-claim=preferred_username
- --oidc-groups-claim=user_role
- --oidc-ca-file=/etc/kubernetes/ssl/kc-ca.pem"><pre class="notranslate"><code class="notranslate"> - --oidc-issuer-url=https://kcdev.tremolosecurity.com:8443/auth/realms/kubernetes
- --oidc-client-id=kubernetes
- --oidc-username-claim=preferred_username
- --oidc-groups-claim=user_role
- --oidc-ca-file=/etc/kubernetes/ssl/kc-ca.pem
</code></pre></div>
<ul dir="auto">
<li>Verify login with OAuth2 bearer token succeeds</li>
<li>Add RBAC Authorization parameters:</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- --runtime-config=extensions/v1beta1/networkpolicies=true,rbac.authorization.k8s.io/v1alpha1
- --oidc-issuer-url=https://kcdev.tremolosecurity.com:8443/auth/realms/kubernetes
- --oidc-client-id=kubernetes
- --oidc-username-claim=preferred_username
- --oidc-groups-claim=user_role
- --oidc-ca-file=/etc/kubernetes/ssl/kc-ca.pem
- --authorization-rbac-super-user=mmosley.ent2k12.domain.com
- --authorization-mode=RBAC"><pre class="notranslate"><code class="notranslate">- --runtime-config=extensions/v1beta1/networkpolicies=true,rbac.authorization.k8s.io/v1alpha1
- --oidc-issuer-url=https://kcdev.tremolosecurity.com:8443/auth/realms/kubernetes
- --oidc-client-id=kubernetes
- --oidc-username-claim=preferred_username
- --oidc-groups-claim=user_role
- --oidc-ca-file=/etc/kubernetes/ssl/kc-ca.pem
- --authorization-rbac-super-user=mmosley.ent2k12.domain.com
- --authorization-mode=RBAC
</code></pre></div>
<p dir="auto">and here is an example JWT:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"jti": "34d2d176-1f33-4522-ac75-c1f1e2ba291d",
"exp": 1472061895,
"nbf": 0,
"iat": 1472061595,
"iss": "https://kcdev.tremolosecurity.com:8443/auth/realms/kubernetes",
"aud": "kubernetes",
"sub": "cc28e060-4c63-4380-94a7-63e2aad1f372",
"typ": "Bearer",
"azp": "kubernetes",
"auth_time": 1472061358,
"session_state": "8b3773bc-23ca-4f75-8c35-d2bf197d4057",
"acr": "0",
"client_session": "85550ebd-fe8c-4212-bf37-3579b3532f76",
"allowed-origins": [],
"realm_access": {
"roles": [
"uma_authorization"
]
},
"resource_access": {
"account": {
"roles": [
"manage-account",
"view-profile"
]
}
},
"user_role": [
"admin"
],
"name": "[email protected] Mosley",
"preferred_username": "mmosley.ent2k12.domain.com",
"given_name": "[email protected]",
"family_name": "Mosley",
"email": "[email protected]"
}"><pre class="notranslate">{
<span class="pl-ent">"jti"</span>: <span class="pl-s"><span class="pl-pds">"</span>34d2d176-1f33-4522-ac75-c1f1e2ba291d<span class="pl-pds">"</span></span>,
<span class="pl-ent">"exp"</span>: <span class="pl-c1">1472061895</span>,
<span class="pl-ent">"nbf"</span>: <span class="pl-c1">0</span>,
<span class="pl-ent">"iat"</span>: <span class="pl-c1">1472061595</span>,
<span class="pl-ent">"iss"</span>: <span class="pl-s"><span class="pl-pds">"</span>https://kcdev.tremolosecurity.com:8443/auth/realms/kubernetes<span class="pl-pds">"</span></span>,
<span class="pl-ent">"aud"</span>: <span class="pl-s"><span class="pl-pds">"</span>kubernetes<span class="pl-pds">"</span></span>,
<span class="pl-ent">"sub"</span>: <span class="pl-s"><span class="pl-pds">"</span>cc28e060-4c63-4380-94a7-63e2aad1f372<span class="pl-pds">"</span></span>,
<span class="pl-ent">"typ"</span>: <span class="pl-s"><span class="pl-pds">"</span>Bearer<span class="pl-pds">"</span></span>,
<span class="pl-ent">"azp"</span>: <span class="pl-s"><span class="pl-pds">"</span>kubernetes<span class="pl-pds">"</span></span>,
<span class="pl-ent">"auth_time"</span>: <span class="pl-c1">1472061358</span>,
<span class="pl-ent">"session_state"</span>: <span class="pl-s"><span class="pl-pds">"</span>8b3773bc-23ca-4f75-8c35-d2bf197d4057<span class="pl-pds">"</span></span>,
<span class="pl-ent">"acr"</span>: <span class="pl-s"><span class="pl-pds">"</span>0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"client_session"</span>: <span class="pl-s"><span class="pl-pds">"</span>85550ebd-fe8c-4212-bf37-3579b3532f76<span class="pl-pds">"</span></span>,
<span class="pl-ent">"allowed-origins"</span>: [],
<span class="pl-ent">"realm_access"</span>: {
<span class="pl-ent">"roles"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>uma_authorization<span class="pl-pds">"</span></span>
]
},
<span class="pl-ent">"resource_access"</span>: {
<span class="pl-ent">"account"</span>: {
<span class="pl-ent">"roles"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>manage-account<span class="pl-pds">"</span></span>,
<span class="pl-s"><span class="pl-pds">"</span>view-profile<span class="pl-pds">"</span></span>
]
}
},
<span class="pl-ent">"user_role"</span>: [
<span class="pl-s"><span class="pl-pds">"</span>admin<span class="pl-pds">"</span></span>
],
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>[email protected] Mosley<span class="pl-pds">"</span></span>,
<span class="pl-ent">"preferred_username"</span>: <span class="pl-s"><span class="pl-pds">"</span>mmosley.ent2k12.domain.com<span class="pl-pds">"</span></span>,
<span class="pl-ent">"given_name"</span>: <span class="pl-s"><span class="pl-pds">"</span>[email protected]<span class="pl-pds">"</span></span>,
<span class="pl-ent">"family_name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Mosley<span class="pl-pds">"</span></span>,
<span class="pl-ent">"email"</span>: <span class="pl-s"><span class="pl-pds">"</span>[email protected]<span class="pl-pds">"</span></span>
}</pre></div>
<ul dir="auto">
<li>Try to use kubectl, all requests results in a 403 (unauthorized)</li>
<li>Change the api server to use a ca client certificate</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- --runtime-config=extensions/v1beta1/networkpolicies=true,rbac.authorization.k8s.io/v1alpha1
- --oidc-issuer-url=https://kcdev.tremolosecurity.com:8443/auth/realms/kubernetes
- --oidc-client-id=kubernetes
- --oidc-username-claim=preferred_username
- --oidc-groups-claim=user_role
- --oidc-ca-file=/etc/kubernetes/ssl/kc-ca.pem
- --authorization-rbac-super-user=kube-admin
- --authorization-mode=RBAC"><pre class="notranslate"><code class="notranslate">- --runtime-config=extensions/v1beta1/networkpolicies=true,rbac.authorization.k8s.io/v1alpha1
- --oidc-issuer-url=https://kcdev.tremolosecurity.com:8443/auth/realms/kubernetes
- --oidc-client-id=kubernetes
- --oidc-username-claim=preferred_username
- --oidc-groups-claim=user_role
- --oidc-ca-file=/etc/kubernetes/ssl/kc-ca.pem
- --authorization-rbac-super-user=kube-admin
- --authorization-mode=RBAC
</code></pre></div>
<ul dir="auto">
<li>Try using kubectl with the client certificate</li>
</ul>
<p dir="auto"><strong>Anything else do we need to know</strong>:</p>
<p dir="auto">OpenID Connect provider is KeyCloak 2.1</p> | 0 |
<h3 dir="auto"><g-emoji class="g-emoji" alias="computer" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4bb.png">💻</g-emoji></h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Would you like to work on a fix?</li>
</ul>
<h3 dir="auto">How are you using Babel?</h3>
<p dir="auto">Other (Next.js, Gatsby, vue-cli, ...)</p>
<h3 dir="auto">Input code</h3>
<p dir="auto">You can see the problem here:<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="994687949" data-permission-text="Title is private" data-url="https://github.com/paulmillr/chokidar/issues/1147" data-hovercard-type="issue" data-hovercard-url="/paulmillr/chokidar/issues/1147/hovercard" href="https://github.com/paulmillr/chokidar/issues/1147">paulmillr/chokidar#1147</a></p>
<h3 dir="auto">Configuration file name</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Configuration</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Current and expected behavior</h3>
<p dir="auto">While I use Nuxt.js, I got a module error.</p>
<h3 dir="auto">Environment</h3>
<p dir="auto">System:<br>
OS: Windows 10 10.0.19043<br>
Binaries:<br>
Node: 16.4.2 - C:\Program Files\nodejs\node.EXE<br>
npm: 7.18.1 - C:\Program Files\nodejs\npm.CMD</p>
<h3 dir="auto">Possible solution</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context</h3>
<p dir="auto"><em>No response</em></p> | <h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>Current Behavior</strong><br>
I created a new project. I have special folders for interfaces, types and etc. I will have a lot of them, so I import them into one file and export them from there. When I want to export multiple interfaces I get an error:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: bundling failed: SyntaxError: C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\react-native\scripts\src\types\PinCode\index.ts: Exporting local "IPinCodeParams", which is not declared.
13 | }
14 |
> 15 | export { PinStatus, IPinCodeParams }
| ^
at File.buildCodeFrameError (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\core\lib\transformation\file\file.js:261:12)
at NodePath.buildCodeFrameError (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\traverse\lib\path\index.js:157:21)
at getLocalMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:281:22)
at child.get.forEach.spec (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:315:11)
at Array.forEach (<anonymous>)
at programPath.get.forEach.child (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:307:33)
at Array.forEach (<anonymous>)
at getLocalExportMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:294:27)
at getModuleMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:86:21)"><pre class="notranslate">error: bundling <span class="pl-s1">failed</span>: SyntaxError: C:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\r<span class="pl-s1">eact</span><span class="pl-c1">-</span><span class="pl-s1">native</span>\s<span class="pl-s1">cripts</span>\s<span class="pl-s1">rc</span>\t<span class="pl-s1">ypes</span>\P<span class="pl-s1">inCode</span>\i<span class="pl-s1">ndex</span><span class="pl-kos">.</span><span class="pl-c1">ts</span>: <span class="pl-v">Exporting</span> <span class="pl-s1">local</span> <span class="pl-s">"IPinCodeParams"</span><span class="pl-kos">,</span> <span class="pl-s1">which</span> <span class="pl-s1">is</span> <span class="pl-s1">not</span> <span class="pl-s1">declared</span><span class="pl-kos">.</span>
<span class="pl-c1">13</span> <span class="pl-c1">|</span> <span class="pl-kos">}</span>
<span class="pl-c1">14</span> <span class="pl-c1">|</span>
<span class="pl-c1">></span> <span class="pl-c1">15</span> <span class="pl-c1">|</span> <span class="pl-k">export</span> <span class="pl-kos">{</span> PinStatus<span class="pl-kos">,</span> IPinCodeParams <span class="pl-kos">}</span>
<span class="pl-c1">|</span> <span class="pl-c1">^</span>
<span class="pl-s1">at</span> <span class="pl-v">File</span><span class="pl-kos">.</span><span class="pl-en">buildCodeFrameError</span> <span class="pl-kos">(</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">babel</span>\c<span class="pl-s1">ore</span>\l<span class="pl-s1">ib</span>\t<span class="pl-s1">ransformation</span>\f<span class="pl-s1">ile</span>\f<span class="pl-s1">ile</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">261</span>:<span class="pl-c1">12</span><span class="pl-kos">)</span>
<span class="pl-s1">at</span> <span class="pl-v">NodePath</span><span class="pl-kos">.</span><span class="pl-en">buildCodeFrameError</span> <span class="pl-kos">(</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">babel</span>\t<span class="pl-s1">raverse</span>\l<span class="pl-s1">ib</span>\p<span class="pl-s1">ath</span>\i<span class="pl-s1">ndex</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">157</span>:<span class="pl-c1">21</span><span class="pl-kos">)</span>
<span class="pl-s1">at</span><span class="pl-kos"></span> <span class="pl-en">getLocalMetadata</span> <span class="pl-kos">(</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">babel</span>\h<span class="pl-s1">elper</span><span class="pl-c1">-</span><span class="pl-smi">module</span><span class="pl-c1">-</span><span class="pl-s1">transforms</span>\l<span class="pl-s1">ib</span>\n<span class="pl-s1">ormalize</span><span class="pl-c1">-</span><span class="pl-s1">and</span><span class="pl-c1">-</span><span class="pl-s1">load</span><span class="pl-c1">-</span><span class="pl-s1">metadata</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">281</span>:<span class="pl-c1">22</span><span class="pl-kos">)</span>
<span class="pl-s1">at</span> <span class="pl-s1">child</span><span class="pl-kos">.</span><span class="pl-c1">get</span><span class="pl-kos">.</span><span class="pl-c1">forEach</span><span class="pl-kos">.</span><span class="pl-en">spec</span> <span class="pl-kos">(</span><span class="pl-v">C</span>:\U<span class="pl-s1">sers</span>\Q<span class="pl-c1">WERTY</span>\D<span class="pl-s1">esktop</span>\T<span class="pl-s1">estProjects</span>\201<span class="pl-c1">9</span>\T<span class="pl-s1">estProject</span>\n<span class="pl-s1">ode_modules</span>\@<span class="pl-s1">babel</span>\h<span class="pl-s1">elper</span><span class="pl-c1">-</span><span class="pl-smi">module</span><span class="pl-c1">-</span><span class="pl-s1">transforms</span>\l<span class="pl-s1">ib</span>\n<span class="pl-s1">ormalize</span><span class="pl-c1">-</span><span class="pl-s1">and</span><span class="pl-c1">-</span><span class="pl-s1">load</span><span class="pl-c1">-</span><span class="pl-s1">metadata</span><span class="pl-kos">.</span><span class="pl-c1">js</span>:<span class="pl-c1">315</span>:<span class="pl-c1">11</span><span class="pl-kos">)</span>
<span class="pl-s1">at</span> <span class="pl-v">Array</span><span class="pl-kos">.</span><span class="pl-c1">forEach</span> <span class="pl-kos">(</span><span class="pl-c1"><</span><span class="pl-ent">anonymous</span><span class="pl-c1">></span>)
at programPath.get.forEach.child (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:307:33)
at Array.forEach (<span class="pl-c1"><</span><span class="pl-ent">anonymous</span><span class="pl-c1">></span>)
at getLocalExportMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:294:27)
at getModuleMetadata (C:\Users\QWERTY\Desktop\TestProjects\2019\TestProject\node_modules\@babel\helper-module-transforms\lib\normalize-and-load-metadata.js:86:21)</pre></div>
<p dir="auto"><strong>Input Code / Babel Configuration (.babelrc, package.json, cli command)</strong><br>
<strong>package.json</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"name": "TestProject",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "node node_modules/react-native/local-cli/cli.js run-android",
"ios": "node node_modules/react-native/local-cli/cli.js run-ios",
"lint": "yarn tslint && yarn typecheck",
"tslint": "tslint --project tsconfig.json --config tslint.json src/**/*.ts{,x} --format stylish",
"typecheck": "tsc --project tsconfig.json --noEmit",
"postinstall": "typesync",
"type-sync": "typesync"
},
"husky": {
"hooks": {
"pre-commit": "yarn lint",
"pre-push": "yarn lint"
}
},
"dependencies": {
"mobx": "^4.9.2",
"mobx-persist": "^0.4.1",
"mobx-react": "^5.4.3",
"react": "16.8.0",
"react-native": "0.58.4",
"react-native-vector-icons": "^6.2.0",
"react-navigation": "^2.18.1"
},
"devDependencies": {
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-proposal-decorators": "^7.3.0",
"@types/babel-core": "6.25.5",
"@types/jest": "24.0.0",
"@types/prettier": "^1.16.0",
"@types/react": "16.8.2",
"@types/react-native": "0.57.34",
"@types/react-native-vector-icons": "^4.6.4",
"@types/react-navigation": "^3.0.1",
"@types/react-test-renderer": "16.8.0",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "24.1.0",
"babel-plugin-module-resolver": "^3.1.3",
"husky": "^1.3.1",
"jest": "24.1.0",
"jsc-android": "236355.1.1",
"metro-react-native-babel-preset": "0.51.1",
"mobx-logger": "^0.7.1",
"prettier": "^1.16.4",
"react-native-typescript-transformer": "^1.2.11",
"react-test-renderer": "16.6.3",
"tslint": "^5.12.1",
"tslint-config-prettier": "^1.18.0",
"tslint-eslint-rules": "^5.4.0",
"tslint-react": "^3.6.0",
"typescript": "^3.2.4",
"typesync": "^0.4.1"
},
"jest": {
"preset": "react-native"
}
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"name"</span>: <span class="pl-s">"TestProject"</span><span class="pl-kos">,</span>
<span class="pl-s">"version"</span>: <span class="pl-s">"0.0.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"private"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"scripts"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"android"</span>: <span class="pl-s">"node node_modules/react-native/local-cli/cli.js run-android"</span><span class="pl-kos">,</span>
<span class="pl-s">"ios"</span>: <span class="pl-s">"node node_modules/react-native/local-cli/cli.js run-ios"</span><span class="pl-kos">,</span>
<span class="pl-s">"lint"</span>: <span class="pl-s">"yarn tslint && yarn typecheck"</span><span class="pl-kos">,</span>
<span class="pl-s">"tslint"</span>: <span class="pl-s">"tslint --project tsconfig.json --config tslint.json src/**/*.ts{,x} --format stylish"</span><span class="pl-kos">,</span>
<span class="pl-s">"typecheck"</span>: <span class="pl-s">"tsc --project tsconfig.json --noEmit"</span><span class="pl-kos">,</span>
<span class="pl-s">"postinstall"</span>: <span class="pl-s">"typesync"</span><span class="pl-kos">,</span>
<span class="pl-s">"type-sync"</span>: <span class="pl-s">"typesync"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"husky"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"hooks"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"pre-commit"</span>: <span class="pl-s">"yarn lint"</span><span class="pl-kos">,</span>
<span class="pl-s">"pre-push"</span>: <span class="pl-s">"yarn lint"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"dependencies"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"mobx"</span>: <span class="pl-s">"^4.9.2"</span><span class="pl-kos">,</span>
<span class="pl-s">"mobx-persist"</span>: <span class="pl-s">"^0.4.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"mobx-react"</span>: <span class="pl-s">"^5.4.3"</span><span class="pl-kos">,</span>
<span class="pl-s">"react"</span>: <span class="pl-s">"16.8.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-native"</span>: <span class="pl-s">"0.58.4"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-native-vector-icons"</span>: <span class="pl-s">"^6.2.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-navigation"</span>: <span class="pl-s">"^2.18.1"</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/plugin-proposal-class-properties"</span>: <span class="pl-s">"^7.3.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"@babel/plugin-proposal-decorators"</span>: <span class="pl-s">"^7.3.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types/babel-core"</span>: <span class="pl-s">"6.25.5"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types/jest"</span>: <span class="pl-s">"24.0.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types/prettier"</span>: <span class="pl-s">"^1.16.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types/react"</span>: <span class="pl-s">"16.8.2"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types/react-native"</span>: <span class="pl-s">"0.57.34"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types/react-native-vector-icons"</span>: <span class="pl-s">"^4.6.4"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types/react-navigation"</span>: <span class="pl-s">"^3.0.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types/react-test-renderer"</span>: <span class="pl-s">"16.8.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"babel-core"</span>: <span class="pl-s">"7.0.0-bridge.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"babel-jest"</span>: <span class="pl-s">"24.1.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"babel-plugin-module-resolver"</span>: <span class="pl-s">"^3.1.3"</span><span class="pl-kos">,</span>
<span class="pl-s">"husky"</span>: <span class="pl-s">"^1.3.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"jest"</span>: <span class="pl-s">"24.1.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"jsc-android"</span>: <span class="pl-s">"236355.1.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"metro-react-native-babel-preset"</span>: <span class="pl-s">"0.51.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"mobx-logger"</span>: <span class="pl-s">"^0.7.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"prettier"</span>: <span class="pl-s">"^1.16.4"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-native-typescript-transformer"</span>: <span class="pl-s">"^1.2.11"</span><span class="pl-kos">,</span>
<span class="pl-s">"react-test-renderer"</span>: <span class="pl-s">"16.6.3"</span><span class="pl-kos">,</span>
<span class="pl-s">"tslint"</span>: <span class="pl-s">"^5.12.1"</span><span class="pl-kos">,</span>
<span class="pl-s">"tslint-config-prettier"</span>: <span class="pl-s">"^1.18.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"tslint-eslint-rules"</span>: <span class="pl-s">"^5.4.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"tslint-react"</span>: <span class="pl-s">"^3.6.0"</span><span class="pl-kos">,</span>
<span class="pl-s">"typescript"</span>: <span class="pl-s">"^3.2.4"</span><span class="pl-kos">,</span>
<span class="pl-s">"typesync"</span>: <span class="pl-s">"^0.4.1"</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"jest"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"preset"</span>: <span class="pl-s">"react-native"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>.babelrc</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": [
"module:metro-react-native-babel-preset",
],
"plugins": [
[
"@babel/plugin-proposal-decorators",
{
"legacy": true
}
],
"@babel/transform-react-jsx-source",
[
"module-resolver",
{
"root": [
"/src"
],
"alias": {
"@api": "./src/api",
"@actions": "./src/actions",
"@components": "./src/components",
"@constants": "./src/constants",
"@hocs": "./src/hocs",
"@managers": "./src/managers",
"@locales": "./src/locales",
"@reducers": "./src/reducers",
"@screens": "./src/screens",
"@static": "./src/static",
"@stores": "./src/stores",
"@styles": "./src/styles",
"@types": "./src/types",
"@utils": "./src/utils"
}
}
],
]
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"presets"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"module:metro-react-native-babel-preset"</span><span class="pl-kos">,</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-kos">[</span>
<span class="pl-s">"@babel/plugin-proposal-decorators"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"legacy"</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-s">"@babel/transform-react-jsx-source"</span><span class="pl-kos">,</span>
<span class="pl-kos">[</span>
<span class="pl-s">"module-resolver"</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-s">"root"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"/src"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"alias"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"@api"</span>: <span class="pl-s">"./src/api"</span><span class="pl-kos">,</span>
<span class="pl-s">"@actions"</span>: <span class="pl-s">"./src/actions"</span><span class="pl-kos">,</span>
<span class="pl-s">"@components"</span>: <span class="pl-s">"./src/components"</span><span class="pl-kos">,</span>
<span class="pl-s">"@constants"</span>: <span class="pl-s">"./src/constants"</span><span class="pl-kos">,</span>
<span class="pl-s">"@hocs"</span>: <span class="pl-s">"./src/hocs"</span><span class="pl-kos">,</span>
<span class="pl-s">"@managers"</span>: <span class="pl-s">"./src/managers"</span><span class="pl-kos">,</span>
<span class="pl-s">"@locales"</span>: <span class="pl-s">"./src/locales"</span><span class="pl-kos">,</span>
<span class="pl-s">"@reducers"</span>: <span class="pl-s">"./src/reducers"</span><span class="pl-kos">,</span>
<span class="pl-s">"@screens"</span>: <span class="pl-s">"./src/screens"</span><span class="pl-kos">,</span>
<span class="pl-s">"@static"</span>: <span class="pl-s">"./src/static"</span><span class="pl-kos">,</span>
<span class="pl-s">"@stores"</span>: <span class="pl-s">"./src/stores"</span><span class="pl-kos">,</span>
<span class="pl-s">"@styles"</span>: <span class="pl-s">"./src/styles"</span><span class="pl-kos">,</span>
<span class="pl-s">"@types"</span>: <span class="pl-s">"./src/types"</span><span class="pl-kos">,</span>
<span class="pl-s">"@utils"</span>: <span class="pl-s">"./src/utils"</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>tsconfing.json</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"jsx": "react-native",
"baseUrl": "./src",
"outDir": "./dist",
"allowSyntheticDefaultImports": true,
"declaration": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"noEmit": true,
"noImplicitAny": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"pretty": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"paths": {
"@api": [
"api"
],
"@actions": [
"actions"
],
"@components": [
"components"
],
"@constants": [
"constants"
],
"@hocs": [
"hocs"
],
"@managers": [
"managers"
],
"@locales": [
"locales"
],
"@reducers": [
"reducers"
],
"@screens": [
"screens"
],
"@static": [
"static"
],
"@stores": [
"stores"
],
"@styles": [
"styles"
],
"@types": [
"types"
],
"@utils": [
"utils"
]
}
},
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"compilerOptions"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"target"</span>: <span class="pl-s">"es2015"</span><span class="pl-kos">,</span>
<span class="pl-s">"module"</span>: <span class="pl-s">"commonjs"</span><span class="pl-kos">,</span>
<span class="pl-s">"moduleResolution"</span>: <span class="pl-s">"node"</span><span class="pl-kos">,</span>
<span class="pl-s">"jsx"</span>: <span class="pl-s">"react-native"</span><span class="pl-kos">,</span>
<span class="pl-s">"baseUrl"</span>: <span class="pl-s">"./src"</span><span class="pl-kos">,</span>
<span class="pl-s">"outDir"</span>: <span class="pl-s">"./dist"</span><span class="pl-kos">,</span>
<span class="pl-s">"allowSyntheticDefaultImports"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"declaration"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"emitDecoratorMetadata"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"experimentalDecorators"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"noEmit"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"noImplicitAny"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"noUnusedLocals"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"noUnusedParameters"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"pretty"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"skipLibCheck"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"sourceMap"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"strict"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"paths"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"@api"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"api"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@actions"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"actions"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@components"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"components"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@constants"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"constants"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@hocs"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"hocs"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@managers"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"managers"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@locales"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"locales"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@reducers"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"reducers"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@screens"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"screens"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@static"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"static"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@stores"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"stores"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@styles"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"styles"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@types"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"types"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"@utils"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"utils"</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>tslist.json</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"defaultSeverity": "error",
"extends": [
"tslint-config-prettier",
"tslint-eslint-rules",
"tslint-react",
"tslint:latest"
],
"jsRules": {},
"rules": {
"await-promise": false,
"interface-over-type-literal": false,
"jsx-alignment": true,
"jsx-boolean-value": false,
"jsx-no-bind": true,
"jsx-no-lambda": false,
"max-classes-per-file": false,
"member-access": false,
"member-ordering": false,
"no-constant-condition": false,
"no-duplicate-imports": false,
"no-empty": false,
"no-implicit-dependencies": false,
"no-submodule-imports": false,
"object-literal-sort-keys": false,
"ordered-imports": false,
"quotemark": [
true,
"single",
"jsx-single",
"avoid-escape"
],
"semicolon": [
true,
"always"
],
"trailing-comma": [
true,
{
"singleline": "never",
"multiline": "always"
}
],
"triple-equals": [
true,
"allow-undefined-check"
]
},
"linterOptions": {
"exclude": [
"./src/typings/**/*.d.ts"
]
},
"rulesDirectory": []
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"defaultSeverity"</span>: <span class="pl-s">"error"</span><span class="pl-kos">,</span>
<span class="pl-s">"extends"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"tslint-config-prettier"</span><span class="pl-kos">,</span>
<span class="pl-s">"tslint-eslint-rules"</span><span class="pl-kos">,</span>
<span class="pl-s">"tslint-react"</span><span class="pl-kos">,</span>
<span class="pl-s">"tslint:latest"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"jsRules"</span>: <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"rules"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"await-promise"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"interface-over-type-literal"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"jsx-alignment"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"jsx-boolean-value"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"jsx-no-bind"</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"jsx-no-lambda"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"max-classes-per-file"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"member-access"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"member-ordering"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"no-constant-condition"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"no-duplicate-imports"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"no-empty"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"no-implicit-dependencies"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"no-submodule-imports"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"object-literal-sort-keys"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"ordered-imports"</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-s">"quotemark"</span>: <span class="pl-kos">[</span>
<span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"single"</span><span class="pl-kos">,</span>
<span class="pl-s">"jsx-single"</span><span class="pl-kos">,</span>
<span class="pl-s">"avoid-escape"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"semicolon"</span>: <span class="pl-kos">[</span>
<span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"always"</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"trailing-comma"</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-s">"singleline"</span>: <span class="pl-s">"never"</span><span class="pl-kos">,</span>
<span class="pl-s">"multiline"</span>: <span class="pl-s">"always"</span>
<span class="pl-kos">}</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-s">"triple-equals"</span>: <span class="pl-kos">[</span>
<span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-s">"allow-undefined-check"</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"linterOptions"</span>: <span class="pl-kos">{</span>
<span class="pl-s">"exclude"</span>: <span class="pl-kos">[</span>
<span class="pl-s">"./src/typings/**/*.d.ts"</span>
<span class="pl-kos">]</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-s">"rulesDirectory"</span>: <span class="pl-kos">[</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><a href="https://github.com/SergeyMyssak/TestProject">Reference to the source project (Github)</a></p>
<p dir="auto"><strong>Expected behavior/code</strong><br>
I have this folder structure:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="android\
ios\
node_modules\
src\
--->constants\
|--->colors.ts
|--->fonts.ts
|--->index.ts
--->router\
|--->index.ts
--->screen\
|--->Splash\
|--->containers\
|--->index.ts
|--->SplashContainer.tsx
|--->views\
|--->index.ts
|--->SplashView.tsx
|--->index.tsx
|--->index.ts
--->types\
|--->PinCode\
|--->index.tsx
|--->index.tsx
--->App.tsx
.babelrc
*
*
*
package.json
rn-cli.config.js
tsconfig.json
tslint.json"><pre class="notranslate"><code class="notranslate">android\
ios\
node_modules\
src\
--->constants\
|--->colors.ts
|--->fonts.ts
|--->index.ts
--->router\
|--->index.ts
--->screen\
|--->Splash\
|--->containers\
|--->index.ts
|--->SplashContainer.tsx
|--->views\
|--->index.ts
|--->SplashView.tsx
|--->index.tsx
|--->index.ts
--->types\
|--->PinCode\
|--->index.tsx
|--->index.tsx
--->App.tsx
.babelrc
*
*
*
package.json
rn-cli.config.js
tsconfig.json
tslint.json
</code></pre></div>
<p dir="auto">In the file <strong>"PinCode"</strong> I have an enum and an interface.</p>
<p dir="auto">When I write so (all right):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export enum PinStatus {
New = 'new',
Confirm = 'confirm',
Unlock = 'unlock',
Edit = 'edit',
}
export interface IPinCodeParams {
status: PinStatus;
onComplete: () => void;
onClose?: () => void;
originalCode?: string;
}"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-s1">enum</span> <span class="pl-v">PinStatus</span> <span class="pl-kos">{</span>
New <span class="pl-c1">=</span> <span class="pl-s">'new'</span><span class="pl-kos">,</span>
Confirm <span class="pl-c1">=</span> <span class="pl-s">'confirm'</span><span class="pl-kos">,</span>
Unlock <span class="pl-c1">=</span> <span class="pl-s">'unlock'</span><span class="pl-kos">,</span>
Edit <span class="pl-c1">=</span> <span class="pl-s">'edit'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-s1">export</span> <span class="pl-s1">interface</span> <span class="pl-v">IPinCodeParams</span> <span class="pl-kos">{</span>
status: <span class="pl-v">PinStatus</span><span class="pl-kos">;</span>
onComplete: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">void</span><span class="pl-kos">;</span>
<span class="pl-s1">onClose</span>?: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">void</span><span class="pl-kos">;</span>
<span class="pl-s1">originalCode</span>?: <span class="pl-s1">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">But when I write so (I get the error):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="enum PinStatus {
New = 'new',
Confirm = 'confirm',
Unlock = 'unlock',
Edit = 'edit',
}
interface IPinCodeParams {
status: PinStatus;
onComplete: () => void;
onClose?: () => void;
originalCode?: string;
}
export { PinStatus, IPinCodeParams };"><pre class="notranslate"><span class="pl-s1">enum</span> <span class="pl-v">PinStatus</span> <span class="pl-kos">{</span>
New <span class="pl-c1">=</span> <span class="pl-s">'new'</span><span class="pl-kos">,</span>
Confirm <span class="pl-c1">=</span> <span class="pl-s">'confirm'</span><span class="pl-kos">,</span>
Unlock <span class="pl-c1">=</span> <span class="pl-s">'unlock'</span><span class="pl-kos">,</span>
Edit <span class="pl-c1">=</span> <span class="pl-s">'edit'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span>
<span class="pl-s1">interface</span> <span class="pl-v">IPinCodeParams</span> <span class="pl-kos">{</span>
status: <span class="pl-v">PinStatus</span><span class="pl-kos">;</span>
onComplete: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">void</span><span class="pl-kos">;</span>
<span class="pl-s1">onClose</span>?: <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-k">void</span><span class="pl-kos">;</span>
<span class="pl-s1">originalCode</span>?: <span class="pl-s1">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-v">PinStatus</span><span class="pl-kos">,</span> <span class="pl-v">IPinCodeParams</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I have created some completely new projects, tried to rewrite this project several times, but nothing came out. I finally got this error anyway. Why do I get this error? How to fix it?</p>
<p dir="auto"><strong>Environment</strong></p>
<ul dir="auto">
<li>Babel version(s): I don't know, but I use "babel-core": "7.0.0-bridge.0"</li>
<li>Node/npm/yarn version: v10.4.1 / v6.5.0 / v1.9.4</li>
<li>OS: Windows 10</li>
<li>How you are using Babel: cli</li>
</ul> | 0 |
<p dir="auto"><strong>Migrated issue, originally created by jvanasco (<a href="https://github.com/jvanasco">@jvanasco</a>)</strong></p>
<p dir="auto">There doesn't seem to be a (public) way to find out if a path has been registered to a query for eager loading. (A non-public way seems to be <code class="notranslate">query.__dict__['with_options']</code>)</p>
<p dir="auto">I propose an enhancement to the Query API, which allows a query to be queried for the status of eager loads.</p>
<p dir="auto">In the simplest concept, it would just return a dict where the keys are a stringified path, and the values are the type of load (joinedload vs subqueryload vs contains_eager). If there is no eager loading for a given relationship, then the key is absent.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="print q.registered_eagers()
> {'foo': 'joinedload', 'foo.bar':' subqueryload', 'foo.biz': 'contains_eager'}"><pre class="notranslate"><code class="notranslate">print q.registered_eagers()
> {'foo': 'joinedload', 'foo.bar':' subqueryload', 'foo.biz': 'contains_eager'}
</code></pre></div>
<p dir="auto">The use-case is when dealing with generative queries that are loading relationships several layers deep; it becomes increasingly hard to ensure you have a load-strategy for each intermediary relationship..</p> | <p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">given issues like <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384632180" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3223" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3223/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3223">#3223</a> and the openstack issues with model_query(), here's a sketch of an idea:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@event.listens_for(EventedQuery, "before_compile", retval=True)
def append_order_by(new_query):
if inspect(new_query).selects_against(MyClass).has_any():
for insp in inspect(new_query).selects_against(MyClass).all_aliases():
new_query = new_query.order_by(insp.entity.whatever)
return new_query
"><pre class="notranslate"><code class="notranslate">@event.listens_for(EventedQuery, "before_compile", retval=True)
def append_order_by(new_query):
if inspect(new_query).selects_against(MyClass).has_any():
for insp in inspect(new_query).selects_against(MyClass).all_aliases():
new_query = new_query.order_by(insp.entity.whatever)
return new_query
</code></pre></div>
<p dir="auto">with this extension we'd need to identify specific use cases (since we see them all the time anyway) and add them to the docs of this extension as covered use cases. So the docs here need lots of recipes and they need to be tested.</p> | 1 |
<p dir="auto">This most likely is me doing something wrong. However, I thought I had this working... I get this error when trying to add a column with content to an ExpansionPanel. The error only occurs at runtime when I try to expand more than one panel at a time. The app is a simple one inspired by the holidays. It is a simple Holiday Shopping List. It contains an image and text in the top 40% of the page. In the remaining 60% or so, it contains a ListView with a Container ->Column>Row->Columns. The app is laid out as a dynamically generated list of Giftees (people we are shopping for), each contains a sub-list of gifts (gift we may purchase. I want to embed an few IconButtons but the Panel header can't handle that. It runs out of room. So I removed them.</p>
<p dir="auto">If you need the code for this. let me know.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[+12406 ms] I/flutter (23691): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
[ +4 ms] I/flutter (23691): The following assertion was thrown building ExpansionPanelList:
[ ] I/flutter (23691): 'package:flutter/src/material/mergeable_material.dart': Failed assertion: line 441: '_children[j] is
[ ] I/flutter (23691): MaterialGap': is not true.
[ +12 ms] I/flutter (23691):
[ ] I/flutter (23691): Either the assertion indicates an error in the framework itself, or we should provide substantially
[ ] I/flutter (23691): more information in this error message to help you determine and fix the underlying cause.
[ ] I/flutter (23691): In either case, please report this assertion by filing a bug on GitHub:
[ ] I/flutter (23691): https://github.com/flutter/flutter/issues/new
[ ] I/flutter (23691):
[ ] I/flutter (23691): When the exception was thrown, this was the stack:
[ +10 ms] I/flutter (23691): #2 _MergeableMaterialState.didUpdateWidget (package:flutter/src/material/mergeable_material.dart:441)
[ ] I/flutter (23691): #3 StatefulElement.update (package:flutter/src/widgets/framework.dart:3677)
[ ] I/flutter (23691): #4 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #5 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #6 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #7 StatelessElement.update (package:flutter/src/widgets/framework.dart:3606)
[ ] I/flutter (23691): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #9 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #11 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #14 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #15 StatelessElement.update (package:flutter/src/widgets/framework.dart:3606)
[ ] I/flutter (23691): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #19 ProxyElement.update (package:flutter/src/widgets/framework.dart:3791)
[ ] I/flutter (23691): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #22 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #23 StatefulElement.update (package:flutter/src/widgets/framework.dart:3681)
[ ] I/flutter (23691): #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #25 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:696)
[ ] I/flutter (23691): #26 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:665)
[ ] I/flutter (23691): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #28 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #29 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #30 ProxyElement.update (package:flutter/src/widgets/framework.dart:3791)
[ ] I/flutter (23691): #31 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #32 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #34 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4261)
[ ] I/flutter (23691): #35 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4647)
[ ] I/flutter (23691): #36 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:182)
[ ] I/flutter (23691): #37 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #39 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #40 ProxyElement.update (package:flutter/src/widgets/framework.dart:3791)
[ ] I/flutter (23691): #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #46 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #48 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #49 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #50 StatefulElement.update (package:flutter/src/widgets/framework.dart:3681)
[ ] I/flutter (23691): #51 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #52 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #56 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ +1 ms] I/flutter (23691): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #60 StatelessElement.update (package:flutter/src/widgets/framework.dart:3606)
[ ] I/flutter (23691): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #64 StatefulElement.update (package:flutter/src/widgets/framework.dart:3681)
[ ] I/flutter (23691): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #68 StatefulElement.update (package:flutter/src/widgets/framework.dart:3681)
[ ] I/flutter (23691): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #72 ProxyElement.update (package:flutter/src/widgets/framework.dart:3791)
[ ] I/flutter (23691): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #76 StatelessElement.update (package:flutter/src/widgets/framework.dart:3606)
[ ] I/flutter (23691): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #80 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2193)
[ +2 ms] I/flutter (23691): #81 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:611)
[ ] I/flutter (23691): #82 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:203)
[ ] I/flutter (23691): #83 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:916)
[ ] I/flutter (23691): #84 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:856)
[ ] I/flutter (23691): #85 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:768)
[ ] I/flutter (23691): #86 _invoke (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:113)
[ ] I/flutter (23691): #87 _drawFrame (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:102)
[ +5 ms] I/flutter (23691): (elided 2 frames from class _AssertionError)
[ ] I/flutter (23691): ════════════════════════════════════════════════════════════════════════════════════════════════════"><pre class="notranslate"><code class="notranslate">[+12406 ms] I/flutter (23691): ══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
[ +4 ms] I/flutter (23691): The following assertion was thrown building ExpansionPanelList:
[ ] I/flutter (23691): 'package:flutter/src/material/mergeable_material.dart': Failed assertion: line 441: '_children[j] is
[ ] I/flutter (23691): MaterialGap': is not true.
[ +12 ms] I/flutter (23691):
[ ] I/flutter (23691): Either the assertion indicates an error in the framework itself, or we should provide substantially
[ ] I/flutter (23691): more information in this error message to help you determine and fix the underlying cause.
[ ] I/flutter (23691): In either case, please report this assertion by filing a bug on GitHub:
[ ] I/flutter (23691): https://github.com/flutter/flutter/issues/new
[ ] I/flutter (23691):
[ ] I/flutter (23691): When the exception was thrown, this was the stack:
[ +10 ms] I/flutter (23691): #2 _MergeableMaterialState.didUpdateWidget (package:flutter/src/material/mergeable_material.dart:441)
[ ] I/flutter (23691): #3 StatefulElement.update (package:flutter/src/widgets/framework.dart:3677)
[ ] I/flutter (23691): #4 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #5 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #6 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #7 StatelessElement.update (package:flutter/src/widgets/framework.dart:3606)
[ ] I/flutter (23691): #8 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #9 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #10 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #11 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #12 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #13 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #14 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #15 StatelessElement.update (package:flutter/src/widgets/framework.dart:3606)
[ ] I/flutter (23691): #16 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #17 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #18 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #19 ProxyElement.update (package:flutter/src/widgets/framework.dart:3791)
[ ] I/flutter (23691): #20 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #21 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #22 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #23 StatefulElement.update (package:flutter/src/widgets/framework.dart:3681)
[ ] I/flutter (23691): #24 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #25 SliverMultiBoxAdaptorElement.performRebuild (package:flutter/src/widgets/sliver.dart:696)
[ ] I/flutter (23691): #26 SliverMultiBoxAdaptorElement.update (package:flutter/src/widgets/sliver.dart:665)
[ ] I/flutter (23691): #27 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #28 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #29 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #30 ProxyElement.update (package:flutter/src/widgets/framework.dart:3791)
[ ] I/flutter (23691): #31 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #32 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #33 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #34 RenderObjectElement.updateChildren (package:flutter/src/widgets/framework.dart:4261)
[ ] I/flutter (23691): #35 MultiChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4647)
[ ] I/flutter (23691): #36 _ViewportElement.update (package:flutter/src/widgets/viewport.dart:182)
[ ] I/flutter (23691): #37 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #38 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #39 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #40 ProxyElement.update (package:flutter/src/widgets/framework.dart:3791)
[ ] I/flutter (23691): #41 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #42 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #43 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #44 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #45 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #46 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #47 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #48 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #49 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #50 StatefulElement.update (package:flutter/src/widgets/framework.dart:3681)
[ ] I/flutter (23691): #51 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #52 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #53 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #54 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #55 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #56 SingleChildRenderObjectElement.update (package:flutter/src/widgets/framework.dart:4539)
[ ] I/flutter (23691): #57 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #58 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ +1 ms] I/flutter (23691): #59 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #60 StatelessElement.update (package:flutter/src/widgets/framework.dart:3606)
[ ] I/flutter (23691): #61 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #62 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #63 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #64 StatefulElement.update (package:flutter/src/widgets/framework.dart:3681)
[ ] I/flutter (23691): #65 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #66 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #67 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #68 StatefulElement.update (package:flutter/src/widgets/framework.dart:3681)
[ ] I/flutter (23691): #69 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #70 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #71 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #72 ProxyElement.update (package:flutter/src/widgets/framework.dart:3791)
[ ] I/flutter (23691): #73 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #74 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #75 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #76 StatelessElement.update (package:flutter/src/widgets/framework.dart:3606)
[ ] I/flutter (23691): #77 Element.updateChild (package:flutter/src/widgets/framework.dart:2649)
[ ] I/flutter (23691): #78 ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:3556)
[ ] I/flutter (23691): #79 Element.rebuild (package:flutter/src/widgets/framework.dart:3445)
[ ] I/flutter (23691): #80 BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:2193)
[ +2 ms] I/flutter (23691): #81 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:611)
[ ] I/flutter (23691): #82 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:203)
[ ] I/flutter (23691): #83 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:916)
[ ] I/flutter (23691): #84 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:856)
[ ] I/flutter (23691): #85 BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:768)
[ ] I/flutter (23691): #86 _invoke (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:113)
[ ] I/flutter (23691): #87 _drawFrame (file:///b/build/slave/Linux_Engine/build/src/flutter/lib/ui/hooks.dart:102)
[ +5 ms] I/flutter (23691): (elided 2 frames from class _AssertionError)
[ ] I/flutter (23691): ════════════════════════════════════════════════════════════════════════════════════════════════════
</code></pre></div>
<h2 dir="auto">Steps to Reproduce</h2>
<p dir="auto">Please tell us what you were doing and what went wrong. If you are running flutter tools from the command line, please try adding the <code class="notranslate">-v</code> or <code class="notranslate">--verbose</code> option to gather more information.</p>
<p dir="auto">If the problem is with your application's rendering, please attach a screenshot and any relevant source code.<br>
If you are getting an exception in the logs, and your code is implicated in the first few frames, then please include the source code for the functions involved.</p>
<h2 dir="auto">Logs</h2>
<p dir="auto">Run your application with <code class="notranslate">flutter run</code> and attach all the log output.</p>
<p dir="auto">Run <code class="notranslate">flutter analyze</code> and attach any output of that command also.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dev:~/projects/flutter/holiday_shoping_list$ flutter analyze
Analyzing /home/projects/flutter/holiday_shoping_list...
No issues found!Ran in 4.9s"><pre class="notranslate"><code class="notranslate">dev:~/projects/flutter/holiday_shoping_list$ flutter analyze
Analyzing /home/projects/flutter/holiday_shoping_list...
No issues found!Ran in 4.9s
</code></pre></div>
<h2 dir="auto">Flutter Doctor</h2>
<p dir="auto">Paste the output of running <code class="notranslate">flutter doctor</code> here.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ flutter doctor[✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha)
• Flutter at /home/randy/flutter • Framework revision 8f65fec5f5 (2 weeks ago), 2017-12-12 09:50:14 -0800
• Engine revision edaecdc8b8 • Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at /home/randy/Android/Sdk
• Android NDK at /home/randy/Android/Sdk/ndk-bundle
• Platform android-27, build-tools 27.0.1
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Android Studio (version 3.0)
• Android Studio at /opt/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[-] IntelliJ IDEA Community Edition (version 15)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
✗ This install is older than the minimum recommended version of 2017.1.0.
[-] IntelliJ IDEA Community Edition (version 13)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
✗ This install is older than the minimum recommended version of 2017.1.0.
[✓] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
"><pre class="notranslate"><code class="notranslate">$ flutter doctor[✓] Flutter (on Linux, locale en_US.UTF-8, channel alpha)
• Flutter at /home/randy/flutter • Framework revision 8f65fec5f5 (2 weeks ago), 2017-12-12 09:50:14 -0800
• Engine revision edaecdc8b8 • Tools Dart version 1.25.0-dev.11.0
• Engine Dart version 2.0.0-edge.d8ae797298c3a6cf8dc9f4558707bd2672224d3e
[✓] Android toolchain - develop for Android devices (Android SDK 27.0.1)
• Android SDK at /home/randy/Android/Sdk
• Android NDK at /home/randy/Android/Sdk/ndk-bundle
• Platform android-27, build-tools 27.0.1
• Java binary at: /opt/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[✓] Android Studio (version 3.0)
• Android Studio at /opt/android-studio
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b01)
[-] IntelliJ IDEA Community Edition (version 15)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
✗ This install is older than the minimum recommended version of 2017.1.0.
[-] IntelliJ IDEA Community Edition (version 13)
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
✗ This install is older than the minimum recommended version of 2017.1.0.
[✓] IntelliJ IDEA Community Edition (version 2017.2)
• Flutter plugin version 19.1
• Dart plugin version 172.4343.25
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
</code></pre></div>
<blockquote>
<p dir="auto">For more information about diagnosing and reporting Flutter bugs, please see <a href="https://flutter.io/bug-reports/" rel="nofollow">https://flutter.io/bug-reports/</a>.</p>
</blockquote> | <p dir="auto">Hi, I'm trying to use the <code class="notranslate">url_launcher 0.4.1</code> plugging but Im getting the following exception when tryin to launch an URL, I just upgraded to flutter 1.0 via <code class="notranslate">flutter upgrade</code></p>
<p dir="auto">any ideas what could be causing this?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="MissingPluginException(No implementation found for method canLaunch on channel plugins.flutter.io/url_launcher)
#0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:291:7)
<asynchronous suspension>
#1 canLaunch (package:url_launcher/url_launcher.dart:88:25)
<asynchronous suspension>
#2 PostWidget.build._launchURL (package:app/post.dart:66:17)
<asynchronous suspension>
#3 PostWidget.build.<anonymous closure> (package:app/post.dart:107:44)
#4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14)
#5 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:562:30)
#6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
#7 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9)
#8 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7)"><pre class="notranslate"><code class="notranslate">MissingPluginException(No implementation found for method canLaunch on channel plugins.flutter.io/url_launcher)
#0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:291:7)
<asynchronous suspension>
#1 canLaunch (package:url_launcher/url_launcher.dart:88:25)
<asynchronous suspension>
#2 PostWidget.build._launchURL (package:app/post.dart:66:17)
<asynchronous suspension>
#3 PostWidget.build.<anonymous closure> (package:app/post.dart:107:44)
#4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:507:14)
#5 _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:562:30)
#6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
#7 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:242:9)
#8 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:204:7)
</code></pre></div> | 0 |
<p dir="auto">When you maximize a window and then try to drag it down from the border (or in my case a header div with <code class="notranslate">-webkit-app-region: drag;</code> style), the window will unmaximize, but instead of getting the <code class="notranslate">unmaximize</code> event you'll just get the <code class="notranslate">resize</code> event.<br>
If you do the same using the restore button (either through the border or using the taskbar menu item), you will get the <code class="notranslate">unmaximize</code> event and then the <code class="notranslate">resize</code> event, like you get with the rest of the size-change events.</p>
<p dir="auto">This was tested on Windows 8.1 (64 bit) using Electron v0.30.2.</p> | <p dir="auto">On Windows, BrowserWindow maximize & unmaximize events are not triggered when maximizing/unmaximizing a atom-shell window by drag & drop.</p>
<p dir="auto">atom-shell is really great, much better than NW.js (I used NW for quiet a long time), so congratulations to all contributors !</p> | 1 |
<p dir="auto">using the following html form</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<h1>Debug Form</h1>
<form action="/debug" method="POST">
<input name="item[1][name]" value="" />
<input name="item[2][name]" value="" />
<button type="submit">test</button>
</form>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">h1</span><span class="pl-kos">></span>Debug Form<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">form</span> <span class="pl-c1">action</span>="<span class="pl-s">/debug</span>" <span class="pl-c1">method</span>="<span class="pl-s">POST</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">name</span>="<span class="pl-s">item[1][name]</span>" <span class="pl-c1">value</span>="" />
<span class="pl-kos"><</span><span class="pl-ent">input</span> <span class="pl-c1">name</span>="<span class="pl-s">item[2][name]</span>" <span class="pl-c1">value</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>test<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></pre></div>
<p dir="auto">to the following flask application method / view</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@app.route('/debug', methods=["GET","POST","PUT","PATCH","DELETE"])
def debug_info():
return jsonify({"data":request.data,"formdata":request.form})"><pre class="notranslate"><span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-en">route</span>(<span class="pl-s">'/debug'</span>, <span class="pl-s1">methods</span><span class="pl-c1">=</span>[<span class="pl-s">"GET"</span>,<span class="pl-s">"POST"</span>,<span class="pl-s">"PUT"</span>,<span class="pl-s">"PATCH"</span>,<span class="pl-s">"DELETE"</span>])</span>
<span class="pl-k">def</span> <span class="pl-en">debug_info</span>():
<span class="pl-k">return</span> <span class="pl-en">jsonify</span>({<span class="pl-s">"data"</span>:<span class="pl-s1">request</span>.<span class="pl-s1">data</span>,<span class="pl-s">"formdata"</span>:<span class="pl-s1">request</span>.<span class="pl-s1">form</span>})</pre></div>
<p dir="auto">I get</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"data": "",
"formdata": {
"item[1][name]": "fdhnnhdsfsdslkkl",
"item[2][name]": "djdfhdjfh"
}
}"><pre class="notranslate">{
<span class="pl-ent">"data"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"formdata"</span>: {
<span class="pl-ent">"item[1][name]"</span>: <span class="pl-s"><span class="pl-pds">"</span>fdhnnhdsfsdslkkl<span class="pl-pds">"</span></span>,
<span class="pl-ent">"item[2][name]"</span>: <span class="pl-s"><span class="pl-pds">"</span>djdfhdjfh<span class="pl-pds">"</span></span>
}
}</pre></div>
<p dir="auto">I expected to see</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"data": "",
"formdata": {
"item":[
{
"name": "fdhnnhdsfsdslkkl"
},
{
"name": "djdfhdjfh"
}
]
}
}"><pre class="notranslate">{
<span class="pl-ent">"data"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"formdata"</span>: {
<span class="pl-ent">"item"</span>:[
{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>fdhnnhdsfsdslkkl<span class="pl-pds">"</span></span>
},
{
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>djdfhdjfh<span class="pl-pds">"</span></span>
}
]
}
}</pre></div>
<p dir="auto">The first and actual output requires further, more explicit parsing, from a sub-optimal data structure to achieve a nice dictionary; but I cannot see how the flat structure of the request.form object could be helping anyone...</p> | <p dir="auto">Rewrite the tutorial and corresponding example, taking into account new and common patterns for Flask.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> example</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> tutorial</li>
</ul> | 0 |
<p dir="auto">Since <code class="notranslate">Modernizr</code> only inserts the relevant browser prefix on the client render, there's a mismatch with the unprefixed server side render. As alluded to in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="71598143" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/591" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/591/hovercard" href="https://github.com/mui/material-ui/pull/591">#591</a> , this causes the following warning in react:</p>
<blockquote>
<p dir="auto">Warning: React attempted to reuse markup in a container but the checksum was invalid. This generally means that you are using server rendering and the markup generated on the server was not what the client was expecting. React injected new markup to compensate which works but you have lost many of the benefits of server rendering. Instead, figure out why the markup being generated is different on the client or server...</p>
</blockquote>
<p dir="auto">I don't see any easy fixes for this, and it's quite a biggie, which is saddening. Obviously getting this whole module to move away from inline styles is a no-go.</p>
<p dir="auto">Pure speculation: maybe it's possible to patch the way react handles styles, so that when a component is supplied with <code class="notranslate">style={{'transition': 'all 1s'}}</code>, it's prefixed at the same time it's rendered to HTML, so it becomes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" style="-webkit-transition: all 1s; transition: all 1s;" "><pre class="notranslate"><code class="notranslate"> style="-webkit-transition: all 1s; transition: all 1s;"
</code></pre></div>
<p dir="auto">instead of simply</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="style="transition: all 1s;""><pre class="notranslate"><code class="notranslate">style="transition: all 1s;"
</code></pre></div> | <p dir="auto">I have a React app, that runs on the server and in the clients browser.</p>
<p dir="auto">When I upgrade to <code class="notranslate">v0.8.0</code>, React gives me the "Expected html differs from the given markup" warning, because there are differences in the inline style definitions. For example:</p>
<p dir="auto">Server renders:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="style="...; user-select: none;..""><pre class="notranslate">style="...; user-select: none;.."</pre></div>
<p dir="auto">But the client (Chrome in this case) renders</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="style="...; -webkit-user-select: none;..""><pre class="notranslate">style="...; -webkit-user-select: none;.."</pre></div>
<p dir="auto">While it is nice to not have to worry about vendor prefixes, the correct handling of them creates those differences. Does anyone have an idea on how to fix (or workaround) this? I dont want to send the client, perfectly good markup, and then let React rebuild half of it, because of that.</p>
<p dir="auto">Maybe include all prefixes necessary? Might be tricky as well..</p>
<p dir="auto">Or do I have to exclude all css that needs to be prefixed back into style sheets?</p> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.