text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<p dir="auto">I want to be able to search for text in terminal and see them highlighted. Like on iTerm 2.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.19013.1102]
Windows Terminal version (if applicable): 0.6"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.19013.1102]
Windows Terminal version (if applicable): 0.6
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Create a color scheme with foreground as #ffffff and background as #000000 to represent white and black respectively. Create two profiles of cmd, assign one the custom color scheme, and the other with no color scheme to give it the default background and foreground. The default profile has a slightly lighter black background, and a slightly darker white foreground.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The schema found here: <a href="https://aka.ms/terminal-profiles-schema" rel="nofollow">https://aka.ms/terminal-profiles-schema</a> says that the default background is #000000 (black) and the default foreground is #ffffff (white).</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Default background is slightly lighter than black and default foreground is slightly darker than white.</p> | 0 |
<h3 dir="auto">Describe the issue:</h3>
<p dir="auto">Currently <code class="notranslate">np.array([np.nan], dtype=np.int64)</code> raises an error, however <code class="notranslate">np.array([np.nan]).astype(np.int64)</code> is undefined behavior that only issues a warning. Would it be worth promoting this to an error to stay consistent with <code class="notranslate">np.array</code> behavior?</p>
<h3 dir="auto">Reproduce the code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
np.array([np.nan]).astype(np.int64) # Works while issuing 'invalid value' warning
np.array([np.nan], dtype=np.int64) # Raises 'ValueError: cannot convert float NaN to integer'"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>]).<span class="pl-en">astype</span>(<span class="pl-s1">np</span>.<span class="pl-s1">int64</span>) <span class="pl-c"># Works while issuing 'invalid value' warning</span>
<span class="pl-s1">np</span>.<span class="pl-en">array</span>([<span class="pl-s1">np</span>.<span class="pl-s1">nan</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">int64</span>) <span class="pl-c"># Raises 'ValueError: cannot convert float NaN to integer'</span></pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">NumPy/Python version information:</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1.24.0.dev0+578.g918065167 3.9.12 (main, Jun 1 2022, 11:38:51)
[GCC 7.5.0]"><pre class="notranslate"><code class="notranslate">1.24.0.dev0+578.g918065167 3.9.12 (main, Jun 1 2022, 11:38:51)
[GCC 7.5.0]
</code></pre></div> | <p dir="auto">I tried to install recent NumPy (1.14.4), forced by SciPy :(<br>
It works in local env but not in Docker running Alpine.</p>
<p dir="auto">Minimal Docker file that reproduces the problem:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM python:3.6.5-alpine
RUN apk add --no-cache build-base
RUN pip install numpy==1.14.4"><pre class="notranslate"><code class="notranslate">FROM python:3.6.5-alpine
RUN apk add --no-cache build-base
RUN pip install numpy==1.14.4
</code></pre></div>
<p dir="auto">By using 1.14.3 it all works.</p> | 0 |
<p dir="auto">hi,</p>
<p dir="auto">the constructor of Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity\RoleSecurityIdentity takes $role as a parameter and checks if it is an instance of Symfony\Component\Security\Core\Role\Role. Following the guidelines in <a href="http://symfony.com/doc/master/cookbook/security/entity_provider.html" rel="nofollow">http://symfony.com/doc/master/cookbook/security/entity_provider.html</a>, our Role class implements RoleInterface. This results in RoleSecurityIdentity::role being populated with an object during the PermissionsEvaluation phase.</p>
<p dir="auto">the fix, for me was easy, and should not break any other parts of the implementation, as Core\Role\Role also implements Core\Role\RoleInterface.</p>
<p dir="auto">[[WARNING: HANDWRITTEN DIFF]]<br>
<<<<br>
[Symfony\Component\Security\Acl\Domain\RoleSecurityIdentity\RoleSecurityIdentity.php]<br>
-- use Symfony\Component\Security\Core\Role\Role;<br>
++ use Symfony\Component\Security\Core\Role\RoleInterface;<br>
[...]<br>
public function __construct($role)<br>
{<br>
-- if ($role instanceof Role) {<br>
++ if ($role instanceof RoleInterface) {</p>
<p dir="auto">i can submit a proper patch if required.</p>
<p dir="auto">regards,<br>
sb</p> | <p dir="auto">The "Symfony\Component\Console\Command::setApplication" default value is set to null.</p>
<p dir="auto">If null is pass to this method the execution of "$this->setHelperSet($application->getHelperSet());" will not be able to complete and throw a fatal error.</p>
<p dir="auto">This default value should be remove, or a check before setting the helperSet must be done.</p> | 0 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<h2 dir="auto">Current Behavior</h2>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>npm install --save next react react-dom</li>
<li>Populate ./pages/index.js inside your project:<br>
export default () => <div dir="auto">Welcome to next.js!</div></li>
<li>npm run dev</li>
<li>internal/child_process.js:325<br>
throw errnoException(err, 'spawn');<br>
^</li>
</ol>
<p dir="auto">Error: spawn EACCES<br>
at _errnoException (util.js:1022:11)<br>
at ChildProcess.spawn (internal/child_process.js:325:11)<br>
at Object.exports.spawn (child_process.js:493:9)<br>
at spawn (/Users/mac/Documents/lantts/node_modules/cross-spawn/index.js:17:18)<br>
at startProcess (/Users/mac/Documents/lantts/node_modules/next/dist/bin/next:72:36)<br>
at Object. (/Users/mac/Documents/lantts/node_modules/next/dist/bin/next:93:12)<br>
at Module._compile (module.js:573:30)<br>
at Object.Module._extensions..js (module.js:584:10)<br>
at Module.load (module.js:507:32)<br>
at tryModuleLoad (module.js:470:12)</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>next</td>
<td>4.1.4</td>
</tr>
<tr>
<td>node</td>
<td>v8.3.0</td>
</tr>
<tr>
<td>OS</td>
<td>macOS High Sierra v10.13.1</td>
</tr>
<tr>
<td>browser</td>
<td>chrome</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | <p dir="auto">This example works fine when using the stable version v5.1 but causes an error when upgrading to the latest canary. It looks like it might be related to the new Babel v7 beta or the <code class="notranslate">babel-plugin-bucklescript</code> that is used but I couldn't isolate/reproduce the problem in the other repo.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The <code class="notranslate">with-reasonml</code> example should work in v6 canary as it did under v5.x</p>
<h2 dir="auto">Current Behavior</h2>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li><code class="notranslate">yarn create next-app --example with-reasonml with-reasonml-app</code></li>
<li><code class="notranslate">cd with-reasonml-app</code></li>
<li><code class="notranslate">yarn && yarn dev</code></li>
<li>Navigate to <code class="notranslate">localhost:3000</code> It works!</li>
<li>Bump version of next in <code class="notranslate">package.json</code> to <code class="notranslate">6.0.0-canary.6</code> then run <code class="notranslate">yarn</code> and <code class="notranslate">yarn dev</code> again</li>
<li>Navigate to <code class="notranslate">localhost:3000</code> and get the following error:</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1711033/39153704-e0bffa24-4719-11e8-9a56-3191487c6326.png"><img width="1009" alt="screen shot 2018-04-23 at 5 14 01 pm" src="https://user-images.githubusercontent.com/1711033/39153704-e0bffa24-4719-11e8-9a56-3191487c6326.png" style="max-width: 100%;"></a></p>
<h2 dir="auto">Context</h2>
<p dir="auto">Was wanting to test the new <code class="notranslate">_app.js</code> functionality to see if it makes using <code class="notranslate">getInitialProps</code> to load Apollo queries easier to use for pages implemented in ReasonML. Currently it's difficult/impossible to bind to the static <code class="notranslate">getInitialProps</code> from Reason pages.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>6.0.0-canary.6</td>
</tr>
<tr>
<td>node</td>
<td>9.4.0</td>
</tr>
<tr>
<td>OS</td>
<td>MacOS 10.13.4</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome v65</td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">Not sure if Bug or question, but at least unexpected behavior.</p>
<p dir="auto"><strong>Describe the bug</strong><br>
When querying duplicated results of the type <code class="notranslate">(User, int, datetime)</code>, an attempted deduplication using <code class="notranslate">.unique()</code> did not have any effect, and returned multiple rows containing the exact same values.</p>
<p dir="auto">The reason is that the default identification strategy amounts to an element-wise projection using <code class="notranslate">id</code>, and not <code class="notranslate">hash</code>.<br>
This causes the <code class="notranslate">int</code> and the <code class="notranslate">datetime</code> columns of two rows – even though having the same value – to be recognized as different.</p>
<p dir="auto">This is in contradiction to the “comparison by value“ assumption that I personally have of such a deduplication, and also in contradiction to what the <a href="https://docs.sqlalchemy.org/en/14/core/connections.html#sqlalchemy.engine.Result.unique" rel="nofollow">docs</a> state:</p>
<blockquote>
<p dir="auto">The algorithm used to determine this uniqueness is by default the Python hashing identity of the whole tuple.</p>
</blockquote>
<p dir="auto">In particular, this issue is “resolved” by using an identity strategy, i.e. <code class="notranslate">.unique(lambda row: row)</code> .<br>
This works because the result of the strategy is collected in a set, whose notion of equality is based on <code class="notranslate">hash</code>.</p>
<p dir="auto">If this is not considered a bug, it should be a warning explicitly stated in the aforelinked section in the docs.</p>
<p dir="auto"><strong>To Reproduce</strong><br>
<em>(I'm really sorry, but it's a bit late in the night, I can create an MCVE later if required.)</em></p>
<p dir="auto">I can provide context from a debugging session. I'm breaking in <code class="notranslate">ResultInternal._allrows</code> in <a href="https://github.com/sqlalchemy/sqlalchemy/blob/rel_1_4_18/lib/sqlalchemy/engine/result.py#L409">this line</a>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=">>> type(self)
<class 'sqlalchemy.engine.result.ChunkedIteratorResult'>
>>> self._metadata._unique_filters
[<built-in function id>, <built-in function id>, <built-in function id>]
>>> [tuple(id(el) for el in r) for r in made_rows[:4]]
[(140281848273408, 140281848246224, 140281848184384),
(140281848273408, 140281848267056, 140281848184480),
(140281848273552, 140281848267344, 140281848184672),
(140281848273552, 140281848267632, 140281848270896)]
>>> [tuple(hash(el) for el in r) for r in made_rows[:4]]
[(8767615517088, 13812, -7323339362369131990),
(8767615517088, 13812, -7323339362369131990),
(8767615517097, 13815, -4473479583634129130),
(8767615517097, 13815, -4473479583634129130)]
>>> [tuple(type(el) for el in r) for r in made_rows[:4]]
[(<class 'pycroft.model.user.User'>, <class 'int'>, <class 'datetime.datetime'>),
(<class 'pycroft.model.user.User'>, <class 'int'>, <class 'datetime.datetime'>),
(<class 'pycroft.model.user.User'>, <class 'int'>, <class 'datetime.datetime'>),
(<class 'pycroft.model.user.User'>, <class 'int'>, <class 'datetime.datetime'>)]"><pre class="notranslate"><code class="notranslate">>>> type(self)
<class 'sqlalchemy.engine.result.ChunkedIteratorResult'>
>>> self._metadata._unique_filters
[<built-in function id>, <built-in function id>, <built-in function id>]
>>> [tuple(id(el) for el in r) for r in made_rows[:4]]
[(140281848273408, 140281848246224, 140281848184384),
(140281848273408, 140281848267056, 140281848184480),
(140281848273552, 140281848267344, 140281848184672),
(140281848273552, 140281848267632, 140281848270896)]
>>> [tuple(hash(el) for el in r) for r in made_rows[:4]]
[(8767615517088, 13812, -7323339362369131990),
(8767615517088, 13812, -7323339362369131990),
(8767615517097, 13815, -4473479583634129130),
(8767615517097, 13815, -4473479583634129130)]
>>> [tuple(type(el) for el in r) for r in made_rows[:4]]
[(<class 'pycroft.model.user.User'>, <class 'int'>, <class 'datetime.datetime'>),
(<class 'pycroft.model.user.User'>, <class 'int'>, <class 'datetime.datetime'>),
(<class 'pycroft.model.user.User'>, <class 'int'>, <class 'datetime.datetime'>),
(<class 'pycroft.model.user.User'>, <class 'int'>, <class 'datetime.datetime'>)]
</code></pre></div>
<p dir="auto">Feel free to ask for other details.</p>
<p dir="auto"><strong>Versions.</strong></p>
<ul dir="auto">
<li>OS:</li>
<li>Python: 3.9.1</li>
<li>SQLAlchemy:1.4.18</li>
<li>Database: Postgres</li>
</ul>
<p dir="auto"><strong>Have a nice <del>day</del> night!</strong></p> | <p dir="auto"><strong>Migrated issue, originally created by jvanasco (<a href="https://github.com/jvanasco">@jvanasco</a>)</strong></p>
<p dir="auto">I'm requesting that ScopedSession.session_factory become a public API method.</p>
<p dir="auto">This is currently implemented, but hidden and undocumented.</p>
<p dir="auto">Rationale / use-case:</p>
<p dir="auto">We have a transaction-safe PostgreSQL application. There exists some tasks that require a separate database connection to operate independent of the transaction (generally things like logging various bits of information, such as AmazonS3 Activity, Failures due to Ratelimits, some error logging).</p>
<p dir="auto">This is often handled with a separate database setup, but that was a bit painful to handle in a situation... and after a bit of poking around on the internals, it seems that this works:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dbSessionAlternate = dbSession.session_factory()
dbSessionAutocommit = dbSession.session_factory(autocommit = True)"><pre class="notranslate"><code class="notranslate">dbSessionAlternate = dbSession.session_factory()
dbSessionAutocommit = dbSession.session_factory(autocommit = True)
</code></pre></div>
<p dir="auto">Originally I hoped that this would work, but they don't:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="dbSessionA = dbSession()
dbSessionB = dbSession(autocommit = True)"><pre class="notranslate"><code class="notranslate">dbSessionA = dbSession()
dbSessionB = dbSession(autocommit = True)
</code></pre></div>
<p dir="auto"><code class="notranslate">dbSessionA</code> creates a new Session, but it's underlying connection is local to the scope/thead ( ie, dbSession.connection() == dbSessionA.connection() )</p>
<p dir="auto"><code class="notranslate">dbSessionB</code> raises an error because it is trying to duplicate the 'scoped_session', not just the underlying session,</p> | 0 |
<p dir="auto">In the following code, playwirght is not able to recognize the click event on search button.<br>
When i ran the application in debug mode even the debug statement is not capturing the details of the search image click.<br>
Search result are displayed but there is no trace of click statement in debug logs. It was working lat week but started failing earlier this week.</p>
<p dir="auto">Since the click event is not triggered so the playwright scripts gets hanged while waiting for the below line in the code<br>
await page.getByTestId('close-icon-search-employeeId').click();</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: Version 1.30.0</li>
<li>Operating System: macOS Ventura - Version 13.2.1 (22D68)</li>
<li>Browser: [All, Chromium, Firefox, WebKit]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test';
test('test', async ({ page }) => {
import { test, expect } from '@playwright/test';
test('test', async ({ page }) => {
await page.goto('https://qe.east.1.crewbid.dev.swalife.com/');
await page.goto('https://sso.fed.dev.aws.swacorp.com/as/authorization.oauth2?redirect_uri=https%3A%2F%2Fqe.east.1.crewbid.dev.swalife.com%2Fcallback&client_id=p501609&response_type=code&state=whTxY4zt5u&scope=openid%20email%20profile%20address%20phone&code_challenge=48cXQ7_GxbcZAqJtJDsIep5QK-XjHcj1yvBHFaK7ewM&code_challenge_method=S256');
await page.locator('#password').click();
await page.locator('#password').fill('import { test, expect } from \'@playwright/test\'; test(\'test\', async ({ page }) => { await page.goto(\'https://qe.east.1.crewbid.dev.swalife.com/\'); await page.goto(\'https://sso.fed.dev.aws.swacorp.com/as/authorization.oauth2?redirect_uri=https%3A%2F%2Fqe.east.1.crewbid.dev.swalife.com%2Fcallback&client_id=p501609&response_type=code&state=vXUnnB9JPJ&scope=openid%20email%20profile%20address%20phone&code_challenge=YUzDinI4WMcfQpw3x_RWK2H6fF64dSIeUUHBpHF9ARA&code_challenge_method=S256\'); await page.locator(\'#username\').click(); await page.locator(\'#username\').fill(\'e5050\'); await page.locator(\'#password\').click(); await page.locator(\'#password\').fill(\'N2ZyfeZS\'); await page.getByText(\'Submit\').click(); await page.getByTestId(\'card-button-IFVacationCrewAuction\').click(); await page.getByTestId(\'navigation-link-IFVacationCrewReportLinks\').click(); await page.getByTestId(\'navigation-link-IFVacationCrewReportsLowestSeniorityAwards\').click(); await page.getByRole(\'link\', { name: \'Back\' }).click(); await page.getByTestId(\'navigation-link-IFVacationCrewReportsSeniorityListItems\').click(); await page.getByTestId(\'search-employeeId\').click(); await page.getByTestId(\'search-employeeId\').fill(\'5050\'); });');
await page.locator('#password').press('Meta+a');
await page.locator('#password').fill('');
await page.locator('#password').click();
await page.locator('#password').fill('N2ZyfeZS');
await page.locator('#username').click();
await page.locator('#username').fill('e5050');
await page.getByText('Submit').click();
await page.getByTestId('card-button-IFVacationCrewAuction').click();
await page.getByTestId('navigation-link-IFVacationCrewReportLinks').click();
await page.getByTestId('navigation-link-IFVacationCrewReportsSeniorityListItems').click();
await page.getByTestId('search-employeeId').click();
**await page.getByTestId('search-employeeId').fill('5050');**
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-s1">test</span><span class="pl-kos">(</span><span class="pl-s">'test'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'test'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://qe.east.1.crewbid.dev.swalife.com/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'https://sso.fed.dev.aws.swacorp.com/as/authorization.oauth2?redirect_uri=https%3A%2F%2Fqe.east.1.crewbid.dev.swalife.com%2Fcallback&client_id=p501609&response_type=code&state=whTxY4zt5u&scope=openid%20email%20profile%20address%20phone&code_challenge=48cXQ7_GxbcZAqJtJDsIep5QK-XjHcj1yvBHFaK7ewM&code_challenge_method=S256'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#password'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#password'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s">'import { test, expect } from \'@playwright/test\'; test(\'test\', async ({ page }) => { await page.goto(\'https://qe.east.1.crewbid.dev.swalife.com/\'); await page.goto(\'https://sso.fed.dev.aws.swacorp.com/as/authorization.oauth2?redirect_uri=https%3A%2F%2Fqe.east.1.crewbid.dev.swalife.com%2Fcallback&client_id=p501609&response_type=code&state=vXUnnB9JPJ&scope=openid%20email%20profile%20address%20phone&code_challenge=YUzDinI4WMcfQpw3x_RWK2H6fF64dSIeUUHBpHF9ARA&code_challenge_method=S256\'); await page.locator(\'#username\').click(); await page.locator(\'#username\').fill(\'e5050\'); await page.locator(\'#password\').click(); await page.locator(\'#password\').fill(\'N2ZyfeZS\'); await page.getByText(\'Submit\').click(); await page.getByTestId(\'card-button-IFVacationCrewAuction\').click(); await page.getByTestId(\'navigation-link-IFVacationCrewReportLinks\').click(); await page.getByTestId(\'navigation-link-IFVacationCrewReportsLowestSeniorityAwards\').click(); await page.getByRole(\'link\', { name: \'Back\' }).click(); await page.getByTestId(\'navigation-link-IFVacationCrewReportsSeniorityListItems\').click(); await page.getByTestId(\'search-employeeId\').click(); await page.getByTestId(\'search-employeeId\').fill(\'5050\'); });'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#password'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">press</span><span class="pl-kos">(</span><span class="pl-s">'Meta+a'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#password'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s">''</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#password'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#password'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s">'N2ZyfeZS'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#username'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">'#username'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s">'e5050'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByText</span><span class="pl-kos">(</span><span class="pl-s">'Submit'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'card-button-IFVacationCrewAuction'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'navigation-link-IFVacationCrewReportLinks'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'navigation-link-IFVacationCrewReportsSeniorityListItems'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'search-employeeId'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-s1"></span>
<span class="pl-c1">**</span><span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'search-employeeId'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s">'5050'</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-s1"></span><span class="pl-c1">**</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="it('should check the box using setChecked', async ({ page }) => {
await page.setContent(`<input id='checkbox' type='checkbox'></input>`);
await page.getByRole('checkbox').check();
await expect(page.getByRole('checkbox')).toBeChecked();
});"><pre class="notranslate"><span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should check the box using setChecked'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">setContent</span><span class="pl-kos">(</span><span class="pl-s">`<input id='checkbox' type='checkbox'></input>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">check</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByRole</span><span class="pl-kos">(</span><span class="pl-s">'checkbox'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeChecked</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>Steps</strong></p>
<ul dir="auto">
<li>[Run the test]</li>
</ul>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test';
test.only('crew member validates the seniority list report', async ({page, screen, within, isMobile, crewMemberActor}) => {
await crewMemberActor.asks(Elements.toBe.visible('QUICK LINKS'));
await page.waitForTimeout(3000);
await getBidRound(page, screen, within, isMobile, crewMemberActor);
await crewMemberActor.attemptsTo(Click.on().textName('All Reports'));
await crewMemberActor.attemptsTo(Click.on().textName('Seniority List'));
await crewMemberActor.asks(ValidatePageTitleContent.toContainText('page-title-component', 'Seniority List'));
await crewMemberActor.asks(ValidatePageTitleContent.toContainText('page-sub-title-container', `${biddingYear} Vacation`));
await crewMemberActor.asks(Elements.toBe.visible('Accruals'));
await crewMemberActor.asks(TableHeader.containsHeader('paged-table-IFVacationCrewReportsSeniorityListItems'));
//await performEmployeeSearch(page, screen, within, isMobile, crewMemberActor, 'search-employeeId');
await page.getByTestId('search-employeeId').click();
await page.getByTestId('search-employeeId').fill('5050');
await page.waitForTimeout(5000);
**await page.getByTestId('search-icon-search-employeeId').click();**
await crewMemberActor.asks(Elements.to.containText('id','td-IFVacationCrewReportsSeniorityListItems-employeeId-0','5050'))
await page.getByTestId('close-icon-search-employeeId').click();
await crewMemberActor.asks(Elements.to.containText('id','td-IFVacationCrewReportsSeniorityListItems-seniority-1','2'))
await crewMemberActor.attemptsTo(Click.on().textName('Back'));
await crewMemberActor.asks(Elements.toBe.visible('All Reports'));
})"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">only</span><span class="pl-kos">(</span><span class="pl-s">'crew member validates the seniority list report'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span>page<span class="pl-kos">,</span> screen<span class="pl-kos">,</span> within<span class="pl-kos">,</span> isMobile<span class="pl-kos">,</span> crewMemberActor<span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">asks</span><span class="pl-kos">(</span><span class="pl-v">Elements</span><span class="pl-kos">.</span><span class="pl-c1">toBe</span><span class="pl-kos">.</span><span class="pl-en">visible</span><span class="pl-kos">(</span><span class="pl-s">'QUICK LINKS'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForTimeout</span><span class="pl-kos">(</span><span class="pl-c1">3000</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-en">getBidRound</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">,</span> <span class="pl-s1">screen</span><span class="pl-kos">,</span> <span class="pl-s1">within</span><span class="pl-kos">,</span> <span class="pl-s1">isMobile</span><span class="pl-kos">,</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">attemptsTo</span><span class="pl-kos">(</span><span class="pl-v">Click</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">textName</span><span class="pl-kos">(</span><span class="pl-s">'All Reports'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">attemptsTo</span><span class="pl-kos">(</span><span class="pl-v">Click</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">textName</span><span class="pl-kos">(</span><span class="pl-s">'Seniority List'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">asks</span><span class="pl-kos">(</span><span class="pl-v">ValidatePageTitleContent</span><span class="pl-kos">.</span><span class="pl-en">toContainText</span><span class="pl-kos">(</span><span class="pl-s">'page-title-component'</span><span class="pl-kos">,</span> <span class="pl-s">'Seniority List'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">asks</span><span class="pl-kos">(</span><span class="pl-v">ValidatePageTitleContent</span><span class="pl-kos">.</span><span class="pl-en">toContainText</span><span class="pl-kos">(</span><span class="pl-s">'page-sub-title-container'</span><span class="pl-kos">,</span> <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">biddingYear</span><span class="pl-kos">}</span></span> Vacation`</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">asks</span><span class="pl-kos">(</span><span class="pl-v">Elements</span><span class="pl-kos">.</span><span class="pl-c1">toBe</span><span class="pl-kos">.</span><span class="pl-en">visible</span><span class="pl-kos">(</span><span class="pl-s">'Accruals'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">asks</span><span class="pl-kos">(</span><span class="pl-v">TableHeader</span><span class="pl-kos">.</span><span class="pl-en">containsHeader</span><span class="pl-kos">(</span><span class="pl-s">'paged-table-IFVacationCrewReportsSeniorityListItems'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//await performEmployeeSearch(page, screen, within, isMobile, crewMemberActor, 'search-employeeId');</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'search-employeeId'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'search-employeeId'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">fill</span><span class="pl-kos">(</span><span class="pl-s">'5050'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForTimeout</span><span class="pl-kos">(</span><span class="pl-c1">5000</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-s1"></span>
<span class="pl-c1">**</span><span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'search-icon-search-employeeId'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span><span class="pl-s1"></span><span class="pl-c1">**</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">asks</span><span class="pl-kos">(</span><span class="pl-v">Elements</span><span class="pl-kos">.</span><span class="pl-c1">to</span><span class="pl-kos">.</span><span class="pl-en">containText</span><span class="pl-kos">(</span><span class="pl-s">'id'</span><span class="pl-kos">,</span><span class="pl-s">'td-IFVacationCrewReportsSeniorityListItems-employeeId-0'</span><span class="pl-kos">,</span><span class="pl-s">'5050'</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">getByTestId</span><span class="pl-kos">(</span><span class="pl-s">'close-icon-search-employeeId'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">asks</span><span class="pl-kos">(</span><span class="pl-v">Elements</span><span class="pl-kos">.</span><span class="pl-c1">to</span><span class="pl-kos">.</span><span class="pl-en">containText</span><span class="pl-kos">(</span><span class="pl-s">'id'</span><span class="pl-kos">,</span><span class="pl-s">'td-IFVacationCrewReportsSeniorityListItems-seniority-1'</span><span class="pl-kos">,</span><span class="pl-s">'2'</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">attemptsTo</span><span class="pl-kos">(</span><span class="pl-v">Click</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">textName</span><span class="pl-kos">(</span><span class="pl-s">'Back'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">crewMemberActor</span><span class="pl-kos">.</span><span class="pl-en">asks</span><span class="pl-kos">(</span><span class="pl-v">Elements</span><span class="pl-kos">.</span><span class="pl-c1">toBe</span><span class="pl-kos">.</span><span class="pl-en">visible</span><span class="pl-kos">(</span><span class="pl-s">'All Reports'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
<ul dir="auto">
<li>[...]</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">When you search with an employeed id it is expected to work<br>
<strong>Actual</strong><br>
The system is hanging and test case is failing as its not able to recognize the search button</p>
<p dir="auto">[Describe actual behavior]</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="locator.click: Target closed
=========================== logs ===========================
waiting for getByTestId('search-icon-search-employeeId')
locator resolved to visible <button disabled type="button" class="css-1l3rrrl" aria-…>…</button>
attempting click action
waiting for element to be visible, enabled and stable
element is not enabled - waiting...
============================================================
Following error is observed in the broswer. the code attached above is from the file - senioritylist.report.spec.js:72:63
70 | await page.waitForTimeout(5000);
71 | //await crewMemberActor.asks(Elements.toBe.visible('Accruals'));
> 72 | await page.getByTestId('search-icon-search-employeeId').click();
| ^
73 | // await page.getByTestId('search-icon-search-employeeId').click();
74 |
75 | await crewMemberActor.asks(Elements.to.containText('id','td-IFVacationCrewReportsSeniorityListItems-employeeId-0','5050'))
at /Users/x287202/SouthWest/code/new-aap/develop/test/cbna-test-integration-cbna/test-ui/playwright/tests/crewmember/reports/senioritylist.report.spec.js:72:63
"><pre class="notranslate"><code class="notranslate">locator.click: Target closed
=========================== logs ===========================
waiting for getByTestId('search-icon-search-employeeId')
locator resolved to visible <button disabled type="button" class="css-1l3rrrl" aria-…>…</button>
attempting click action
waiting for element to be visible, enabled and stable
element is not enabled - waiting...
============================================================
Following error is observed in the broswer. the code attached above is from the file - senioritylist.report.spec.js:72:63
70 | await page.waitForTimeout(5000);
71 | //await crewMemberActor.asks(Elements.toBe.visible('Accruals'));
> 72 | await page.getByTestId('search-icon-search-employeeId').click();
| ^
73 | // await page.getByTestId('search-icon-search-employeeId').click();
74 |
75 | await crewMemberActor.asks(Elements.to.containText('id','td-IFVacationCrewReportsSeniorityListItems-employeeId-0','5050'))
at /Users/x287202/SouthWest/code/new-aap/develop/test/cbna-test-integration-cbna/test-ui/playwright/tests/crewmember/reports/senioritylist.report.spec.js:72:63
</code></pre></div> | <p dir="auto">Hi, I have long term scenario which is interdependent and I am currently using the following structure.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test.describe.serial('create / modify / destroy', () => {
test('setup', async () => {
.......
});
test('modify', async () => {
.......
});
test('destroy', async () => {
.......
});
});"><pre class="notranslate"><span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-c1">describe</span><span class="pl-kos">.</span><span class="pl-en">serial</span><span class="pl-kos">(</span><span class="pl-s">'create / modify / destroy'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'setup'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
......<span class="pl-kos">.</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'modify'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
......<span class="pl-kos">.</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'destroy'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
......<span class="pl-kos">.</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I was wondering if I move the above test to the following structure, does it impact the interdependency in any way (retries enabled)? Also, I guess I am trying to understand when I would use <code class="notranslate">.serial</code> vs <code class="notranslate">.step</code>?</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test('create / modify / destroy', () => {
await test.step('setup', async () => {
.......
});
await test.step('modify', async () => {
.......
});
});"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'create / modify / destroy'</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">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'setup'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
......<span class="pl-kos">.</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">'modify'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
......<span class="pl-kos">.</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | 0 |
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>6.0.8</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10 (1809)</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto"><em>app.getLocale()</em> should return value passed to <em>app.commandLine.appendSwitch('lang', VALUE)</em></p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><em>app.getLocale()</em> always returns <em>'en-US'</em></p>
<h3 dir="auto">To Reproduce</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const app = require('electron').app;
app.commandLine.appendSwitch('lang', 'ja');
app.on('ready', () => console.log('locale:', app.getLocale()));"><pre class="notranslate"><code class="notranslate">const app = require('electron').app;
app.commandLine.appendSwitch('lang', 'ja');
app.on('ready', () => console.log('locale:', app.getLocale()));
</code></pre></div>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">As far as I see, it was broken many versions ago. Is there any workaround or fixes?</p> | <h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>5.0.0</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 10 (1709)</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>4.1.5</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">I expected calling <code class="notranslate">app.commandLine.appendSwitch('lang', 'el')</code> and then later at app ready event that calling <code class="notranslate">app.getLocale()</code> would return <strong>"el"</strong></p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Calling <code class="notranslate">app.getLocale()</code> returns <strong>"en-US"</strong> that is the system locale currently set on local machine.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">Run this code in main process:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var electron = require('electron');
var app = electron.app;
app.commandLine.appendSwitch('lang', 'el');
app.on('ready', function () {
console.log(app.getLocale());
});"><pre class="notranslate"><span class="pl-k">var</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-kos">;</span>
<span class="pl-k">var</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-kos">;</span>
<span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-c1">commandLine</span><span class="pl-kos">.</span><span class="pl-en">appendSwitch</span><span class="pl-kos">(</span><span class="pl-s">'lang'</span><span class="pl-kos">,</span> <span class="pl-s">'el'</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">'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-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">getLocale</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">Problem exists even if there is a browserWindow created before the console.log<br>
Chromium window also uses the wrong locale.</p> | 1 |
<p dir="auto">Choose one: is this a bug report or feature request?</p>
<h3 dir="auto">Input Code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Test {
testFun() {
return 0;
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Test</span> <span class="pl-kos">{</span>
<span class="pl-en">testFun</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">0</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Babel Configuration (.babelrc, package.json, cli command)</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"babel-preset-es2015": "7.0.0-alpha.10",
}"><pre class="notranslate"><span class="pl-kos">{</span>
<span class="pl-s">"babel-preset-es2015"</span>: <span class="pl-s">"7.0.0-alpha.10"</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">I used babel-preset-es2015 7.0.0-alpha.10<br>
when I compile Test.js<br>
compile error "path.get(...).arrowFunctionToExpression is not a function while parsing"</p> | <p dir="auto">Minimal repro:</p>
<p dir="auto">.babelrc</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"presets": ["es2015", "stage-2"]
}"><pre class="notranslate">{
<span class="pl-ent">"presets"</span>: [<span class="pl-s"><span class="pl-pds">"</span>es2015<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>stage-2<span class="pl-pds">"</span></span>]
}</pre></div>
<p dir="auto">repro.js</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class Stream {
timeout(timeLimit, opts) {
let timeout = null;
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">Stream</span> <span class="pl-kos">{</span>
<span class="pl-en">timeout</span><span class="pl-kos">(</span><span class="pl-s1">timeLimit</span><span class="pl-kos">,</span> <span class="pl-s1">opts</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">timeout</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></pre></div>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ babel --version
6.1.18 (babel-core 6.1.19)
$ babel repro.js
TypeError: repro.js: Duplicate declaration "timeout"
1 | class Stream {
2 | timeout(timeLimit, opts) {
> 3 | let timeout = null;
| ^
4 | }
5 | }
6 |
at File.buildCodeFrameError (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/index.js:408:15)
at Scope.checkBlockScopedCollisions (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:488:27)
at Scope.<anonymous> (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:673:18)
at Scope.registerBinding (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:687:8)
at Scope.registerDeclaration (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:575:14)
at Object.BlockScoped (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:226:28)
at Object.newFn (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/visitors.js:311:17)
at NodePath._call (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:72:18)
at NodePath.call (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:40:14)
at NodePath.visit (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:102:12)"><pre class="notranslate">$ babel --version
6.1.18 (babel-core 6.1.19)
$ babel repro.js
TypeError: repro.js: Duplicate declaration <span class="pl-s"><span class="pl-pds">"</span>timeout<span class="pl-pds">"</span></span>
1 <span class="pl-k">|</span> class Stream {
2 <span class="pl-k">|</span> timeout(timeLimit, opts) {
<span class="pl-k">></span> 3 <span class="pl-k">|</span> <span class="pl-c1">let</span> timeout = null<span class="pl-k">;</span>
<span class="pl-k">|</span> ^
4 <span class="pl-k">|</span> }
5 <span class="pl-k">|</span> }
6 <span class="pl-k">|</span>
at File.buildCodeFrameError (/usr/local/lib/node_modules/babel-cli/node_modules/babel-core/lib/transformation/file/index.js:408:15)
at Scope.checkBlockScopedCollisions (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:488:27)
at Scope.<span class="pl-k"><</span>anonymous<span class="pl-k">></span> (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:673:18)
at Scope.registerBinding (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:687:8)
at Scope.registerDeclaration (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:575:14)
at Object.BlockScoped (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/scope/index.js:226:28)
at Object.newFn (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/visitors.js:311:17)
at NodePath._call (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:72:18)
at NodePath.call (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:40:14)
at NodePath.visit (/usr/local/lib/node_modules/babel-cli/node_modules/babel-traverse/lib/path/context.js:102:12)</pre></div>
<p dir="auto">According to the author of the original code (which is not me), this should be allowed and it is also working in Chrome Canary.</p>
<blockquote>
<p dir="auto">As I understand it, a function has its own LexicalEnvironment and corresponding EnvironmentRecord. Creating a new binding only checks for duplicates in that same EnvironmentRecord - not in any containing LexicalEnvironment / EnvironmentRecord:</p>
<p dir="auto">[http://www.ecma-international.org/ecma-262/6.0/#sec-declarative-environment-records-createmutablebinding-n-d]</p>
</blockquote>
<p dir="auto">Also see this original <a href="https://github.com/dart-lang/dev_compiler/issues/385#issuecomment-156451540" data-hovercard-type="issue" data-hovercard-url="/dart-archive/dev_compiler/issues/385/hovercard">issue</a>.</p> | 0 |
<p dir="auto">Spacing seems to be hard coded to <code class="notranslate">xs</code> but there's code that calculates spacing for each breakpoint.</p>
<p dir="auto"><a href="https://github.com/mui-org/material-ui/blob/c3f222bf8c08e9607a32d5eb9161de5ed124780b/src/Grid/Grid.js#L187">https://github.com/mui-org/material-ui/blob/c3f222bf8c08e9607a32d5eb9161de5ed124780b/src/Grid/Grid.js#L187</a></p>
<p dir="auto">Is this something that just needs to be "turned on" or were there complications with exposing this?</p> | <p dir="auto">Hello,</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1443499/22936973/6b73451a-f2d7-11e6-9620-7ff7b684db13.jpg"><img src="https://cloud.githubusercontent.com/assets/1443499/22936973/6b73451a-f2d7-11e6-9620-7ff7b684db13.jpg" alt="we-need-to-go-deeper" style="max-width: 100%;"></a></p>
<h3 dir="auto">Description</h3>
<h4 dir="auto">Add extra flex properties on Layout</h4>
<p dir="auto">Currently, not all flex properties are supported.<br>
I think we could benefit to have them so we don't have to touch the CSS every time when dealing with layout only components.</p>
<p dir="auto">Missing properties : <code class="notranslate">grow</code>, <code class="notranslate">shrink</code>, <code class="notranslate">basis</code>, <code class="notranslate">flow</code>, <code class="notranslate">order</code></p>
<h4 dir="auto">Make the breakpoints properties (xs, sm, lg...) accept an object of subproperties</h4>
<p dir="auto">With the breakpoints properties, we have the control over the width of our components based on the screen resolution.<br>
It would be totally <em>awesome</em> to have control over all the flex properties based on the resolution.<br>
To do that, we could make the breakpoints properties accept an object of subproperties like this :</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<Grid spacing={{ sm: 2, md: 4 }} alignItems={['center', 'flex-end']}>
{/*...*/}
</Grid>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">Grid</span> <span class="pl-c1">spacing</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">{</span> <span class="pl-c1">sm</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">md</span>: <span class="pl-c1">4</span> <span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">alignItems</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">[</span><span class="pl-s">'center'</span><span class="pl-kos">,</span> <span class="pl-s">'flex-end'</span><span class="pl-kos">]</span><span class="pl-kos">}</span><span class="pl-c1">></span>
<span class="pl-kos">{</span><span class="pl-c">/*...*/</span><span class="pl-kos">}</span>
<span class="pl-c1"><</span><span class="pl-c1">/</span><span class="pl-ent">Grid</span><span class="pl-c1">></span></pre></div>
<h3 dir="auto">Images & references</h3>
<p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout</a></p> | 1 |
<p dir="auto">This causes an infinite loop:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="macro_rules! m {
( $()+ ) => ();
}
m!();"><pre class="notranslate"><span class="pl-k">macro_rules!</span> m <span class="pl-kos">{</span>
<span class="pl-kos">(</span> $<span class="pl-kos">(</span><span class="pl-kos">)</span>+ <span class="pl-kos">)</span> => <span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">m</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | <p dir="auto">Play rust link: <a href="http://is.gd/DVjBtk" rel="nofollow">http://is.gd/DVjBtk</a></p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="macro_rules! a {(<$($($d:expr),*$($c:ident),*)*>) => (B<$($d,)*$($c,)*>);}a! (<>);"><pre class="notranslate"><span class="pl-k">macro_rules!</span> a <span class="pl-kos">{</span><span class="pl-kos">(</span><$<span class="pl-kos">(</span>$<span class="pl-kos">(</span>$d<span class="pl-kos">:</span>expr<span class="pl-kos">)</span>,<span class="pl-c1">*</span>$<span class="pl-kos">(</span>$c<span class="pl-kos">:</span>ident<span class="pl-kos">)</span>,<span class="pl-c1">*</span><span class="pl-kos">)</span><span class="pl-c1">*</span>><span class="pl-kos">)</span> => <span class="pl-kos">(</span><span class="pl-v">B</span><$<span class="pl-kos">(</span>$d,<span class="pl-kos">)</span><span class="pl-c1">*</span>$<span class="pl-kos">(</span>$c,<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-en">a</span><span class="pl-en">!</span> <span class="pl-kos">(</span><><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> | 1 |
<p dir="auto">Events are helpful for traceability and system performance analysis. Long term storage of event data will be in a monitoring/storage backend of user's choice. Heapster is well suited for being an events proxy since it is built to handle multiple backends.</p> | <p dir="auto">Env: Kubernetes 1.3.3 on AWS</p>
<p dir="auto">I ran into the same problem described into <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158039533" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/26673" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/26673/hovercard" href="https://github.com/kubernetes/kubernetes/issues/26673">#26673</a> but now it's happening on every deploy.<br>
I would have reopened the issue, but I was not the author so I could not.</p>
<p dir="auto">The bug presents itself because I have a build that does <code class="notranslate">kubectl rollout status deployment/application-unstable</code> just after a <code class="notranslate">kubectl apply -f <new deployment manifest></code> and it gets stuck forever because the rollout is never reported as finished (it does finish tho).</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.615754 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.557964 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.509632 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.456868 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.409374 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.357072 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.306676 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.257030 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.206504 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.157741 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.112898 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.059652 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.007476 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.956218 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.910275 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.857240 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.806429 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.756885 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.706639 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.656417 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.607126 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.557562 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.506025 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.456588 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.422213 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.356907 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.313353 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.257953 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.209894 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.160954 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.107205 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.056387 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.006022 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:25 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:25.956830 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:25 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:25.906450 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists"><pre class="notranslate"><code class="notranslate">Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.615754 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.557964 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.509632 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.456868 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.409374 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.357072 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.306676 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.257030 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.206504 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.157741 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.112898 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.059652 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:27 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:27.007476 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.956218 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.910275 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.857240 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.806429 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.756885 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.706639 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.656417 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.607126 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.557562 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.506025 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.456588 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.422213 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.356907 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.313353 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.257953 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.209894 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.160954 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.107205 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.056387 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
Jul 26 12:42:26 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:26.006022 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-worker-unstable: error creating replica set application-celery-worker-unstable: replicasets "application-celery-worker-unstable-3295993310" already exists
Jul 26 12:42:25 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:25.956830 17798 deployment_controller.go:400] Error syncing deployment default/application-unstable: error creating replica set application-unstable: replicasets "application-unstable-900752437" already exists
Jul 26 12:42:25 ip-x-x-x-x kube-controller-manager[17798]: E0726 12:42:25.906450 17798 deployment_controller.go:400] Error syncing deployment default/application-celery-unstable: error creating replica set application-celery-unstable: replicasets "application-celery-unstable-1891916216" already exists
</code></pre></div> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">I was trying to add Cairo, Gadfly and IJulia packages, and ran into some issues.</p>
<ol dir="auto">
<li>Gadlfy installed fine. But I can't use this.</li>
</ol>
<p dir="auto">julia> using Gadfly<br>
ERROR: IOString not defined<br>
in reload_path at loading.jl:144<br>
in _require at loading.jl:59<br>
in require at loading.jl:43<br>
while loading /home/mahesh/.julia/v0.3/Gadfly/src/weave.jl, in expression starting on line 21<br>
while loading /home/mahesh/.julia/v0.3/Gadfly/src/Gadfly.jl, in expression starting on line 71</p>
<ol start="2" dir="auto">
<li>I can't install IJulia or Cairo. gives me the similar error</li>
</ol>
<p dir="auto">spawn: no such file or directory (ENOENT)<br>
while loading /home/mahesh/.julia/v0.3/Cairo/deps/build.jl, in expression starting on line 129</p>
<p dir="auto">Any thoughts on how to solve these?</p>
<p dir="auto">Thank you.</p> | <p dir="auto">Fresh install of Julia head on OSX 10.8.5. <code class="notranslate">Pkg.add("Gadfly") ; using Gadfly</code> yields</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: IOString not defined
while loading /Users/dpo/.julia/v0.3/Gadfly/src/weave.jl, in expression starting on line 21
while loading /Users/dpo/.julia/v0.3/Gadfly/src/Gadfly.jl, in expression starting on line 71"><pre class="notranslate"><code class="notranslate">ERROR: IOString not defined
while loading /Users/dpo/.julia/v0.3/Gadfly/src/weave.jl, in expression starting on line 21
while loading /Users/dpo/.julia/v0.3/Gadfly/src/Gadfly.jl, in expression starting on line 71
</code></pre></div>
<p dir="auto">Any ideas?<br>
Thanks.</p> | 1 |
<p dir="auto">While debugging <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="449969264" data-permission-text="Title is private" data-url="https://github.com/biocore/biom-format/issues/816" data-hovercard-type="issue" data-hovercard-url="/biocore/biom-format/issues/816/hovercard" href="https://github.com/biocore/biom-format/issues/816">biocore/biom-format#816</a>, we noticed that the return type of <code class="notranslate">__getitem__</code> for a sparse matrix object changed between SciPy versions.</p>
<p dir="auto">We did not see anything that stood out in the changelog regarding this, but we apologize if we overlooked something. We also attempted to identify what commit may have been associated with this but have so far not been successful. We would be happy to assist on or contribute a PR if one is appropriate here.</p>
<h4 dir="auto">Reproducing code example:</h4>
<p dir="auto">For SciPy 1.2.0:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import scipy.sparse as sp
>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.2.0 1.15.4 sys.version_info(major=3, minor=6, micro=5, releaselevel='final', serial=0)
>>> print(type(sp.csr_matrix([[0, 1.0, 2], [3, 4, 5]])[0, 0]))
<class 'numpy.float64'>"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">sparse</span> <span class="pl-k">as</span> <span class="pl-s1">sp</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">scipy</span>, <span class="pl-s1">numpy</span>; <span class="pl-en">print</span>(<span class="pl-s1">scipy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version_info</span>)
<span class="pl-c1">1.2</span>.<span class="pl-c1">0</span> <span class="pl-c1">1.15</span>.<span class="pl-c1">4</span> <span class="pl-s1">sys</span>.<span class="pl-en">version_info</span>(<span class="pl-s1">major</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">minor</span><span class="pl-c1">=</span><span class="pl-c1">6</span>, <span class="pl-s1">micro</span><span class="pl-c1">=</span><span class="pl-c1">5</span>, <span class="pl-s1">releaselevel</span><span class="pl-c1">=</span><span class="pl-s">'final'</span>, <span class="pl-s1">serial</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">sp</span>.<span class="pl-en">csr_matrix</span>([[<span class="pl-c1">0</span>, <span class="pl-c1">1.0</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">0</span>, <span class="pl-c1">0</span>]))
<span class="pl-c1"><</span><span class="pl-k">class</span> <span class="pl-s">'numpy.float64'</span><span class="pl-c1">></span></pre></div>
<p dir="auto">For SciPy 1.3.0:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> import scipy.sparse as sp
>>> import sys, scipy, numpy; print(scipy.__version__, numpy.__version__, sys.version_info)
1.3.0 1.16.3 sys.version_info(major=3, minor=7, micro=3, releaselevel='final', serial=0)
>>> print(type(sp.csr_matrix([[0, 1.0, 2], [3, 4, 5]])[0, 0]))
<class 'numpy.ndarray'>"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">sparse</span> <span class="pl-k">as</span> <span class="pl-s1">sp</span>
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-k">import</span> <span class="pl-s1">sys</span>, <span class="pl-s1">scipy</span>, <span class="pl-s1">numpy</span>; <span class="pl-en">print</span>(<span class="pl-s1">scipy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">numpy</span>.<span class="pl-s1">__version__</span>, <span class="pl-s1">sys</span>.<span class="pl-s1">version_info</span>)
<span class="pl-c1">1.3</span>.<span class="pl-c1">0</span> <span class="pl-c1">1.16</span>.<span class="pl-c1">3</span> <span class="pl-s1">sys</span>.<span class="pl-en">version_info</span>(<span class="pl-s1">major</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">minor</span><span class="pl-c1">=</span><span class="pl-c1">7</span>, <span class="pl-s1">micro</span><span class="pl-c1">=</span><span class="pl-c1">3</span>, <span class="pl-s1">releaselevel</span><span class="pl-c1">=</span><span class="pl-s">'final'</span>, <span class="pl-s1">serial</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">sp</span>.<span class="pl-en">csr_matrix</span>([[<span class="pl-c1">0</span>, <span class="pl-c1">1.0</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">0</span>, <span class="pl-c1">0</span>]))
<span class="pl-c1"><</span><span class="pl-k">class</span> <span class="pl-s">'numpy.ndarray'</span><span class="pl-c1">></span></pre></div>
<p dir="auto">Behavior as observed with a 2D <code class="notranslate">np.array</code>:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=">>> print(type(np.array([[0, 1.0, 2], [3, 4, 5]])[0, 0]))
<class 'numpy.float64'>"><pre class="notranslate"><span class="pl-c1">>></span><span class="pl-c1">></span> <span class="pl-en">print</span>(<span class="pl-en">type</span>(<span class="pl-s1">np</span>.<span class="pl-en">array</span>([[<span class="pl-c1">0</span>, <span class="pl-c1">1.0</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">0</span>, <span class="pl-c1">0</span>]))
<span class="pl-c1"><</span><span class="pl-k">class</span> <span class="pl-s">'numpy.float64'</span><span class="pl-c1">></span></pre></div> | <p dir="auto">Indexing csr or csc sparce matrix return an array of one element with scipy 1.3, With previous version it returned a scalar. I believe it is an oversight since lil_matrix indexing still return a scalar.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import scipy
import numpy as np
print(type(scipy.sparse.csr_matrix(np.eye(3))[0,0]))
print(type(scipy.sparse.csc_matrix(np.eye(3))[0,0]))
print(type(scipy.sparse.lil_matrix(np.eye(3))[0,0]))"><pre class="notranslate"><code class="notranslate">import scipy
import numpy as np
print(type(scipy.sparse.csr_matrix(np.eye(3))[0,0]))
print(type(scipy.sparse.csc_matrix(np.eye(3))[0,0]))
print(type(scipy.sparse.lil_matrix(np.eye(3))[0,0]))
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float64'>"><pre class="notranslate"><code class="notranslate"><class 'numpy.ndarray'>
<class 'numpy.ndarray'>
<class 'numpy.float64'>
</code></pre></div>
<h3 dir="auto">Scipy/Numpy/Python version information:</h3>
<p dir="auto">scipy 1.3.0<br>
numpy 1.16.3<br>
python 3.7.0</p> | 1 |
<p dir="auto">All of the projects I'm working on are mounted through SSHFS which will become inaccessible as I move around places, and now that Atom attempts to load previously opened tabs/folders on program startup, I almost always will see a huge list of red warnings on the right side twice a day as I move from home to office and office to home. It'd be great if we can add in an option to turn this behavior off because it's not beneficial to me in this case.</p> | <p dir="auto">It's useful that atom can remember the files/folders you had open last time and then re-open them next time you start atom. I can't seem to figure out how to turn off this behavior though, I generally <em>want</em> to start clean each time I open atom.</p>
<p dir="auto">Is there a config option to enable/disable this feature? Or could we implement a dialog box when closing atom that asks if you want it to remember what you had open?</p> | 1 |
<ul dir="auto">
<li>VSCode Version: 1.0.0</li>
<li>OS Version: OSX 10.11.4 (15E65)</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<p dir="auto">When I press "CMD"+"/" the result is "CMD"+"["<br>
and others<br>
Should I re-binding the shortcut</p>
<p dir="auto">Thanks</p> | <p dir="auto">Now it "outdents." There are a few other potentially related oddities, such as Command-[ causing the text to get smaller, and Command-] causing the text to get larger.</p>
<p dir="auto">If I had to guess, someone change the key-mapping code to work off of key codes and not characters, so it think it's using a QWERTY keyboard, even though it's not.</p>
<p dir="auto">This worked prior to the latest update (broken version is 0.10.5 <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/vscode/commit/dfc08dc9edf6607483b193bf934d3badc3fa2e11/hovercard" href="https://github.com/microsoft/vscode/commit/dfc08dc9edf6607483b193bf934d3badc3fa2e11"><tt>dfc08dc</tt></a>).</p> | 1 |
<p dir="auto">I just completed jQuery, and started Javascript, but the challenges section is all messed up<br>
I tried in all browsers, and all latest updated. Chrome, Mozilla, Microsoft Edge.</p>
<p dir="auto">I even tried on both my desktop PC as well as laptop, same issue<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4403762/9554808/3e6c2146-4de6-11e5-9936-17a63a048718.png"><img src="https://cloud.githubusercontent.com/assets/4403762/9554808/3e6c2146-4de6-11e5-9936-17a63a048718.png" alt="screenshot_4" style="max-width: 100%;"></a></p> | <p dir="auto">After finishing a challenge and jumping to the next, I find that 9/10 times when I click where I want to start typing my code the cursor (flashing "I"?) doesn't stick to where I want to be. I'll start typing and it'll go a line or two below, which I have to erase, click somewhere else, then finally be able to type where I want.</p>
<p dir="auto">Anyone else experiencing this??</p> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Microsoft Windows [Version 10.0.18362.388]
Version: 0.5.2762.0
# Steps to reproduce
Open terminal
full screen app
open 7 or more tabs
# Expected behavior
The tab on the end should show a X button
and not be cut off;
# Actual behavior
The seventh tab is cut off, hiding text and X button.

"><pre lang="none" class="notranslate"><code class="notranslate">Microsoft Windows [Version 10.0.18362.388]
Version: 0.5.2762.0
# Steps to reproduce
Open terminal
full screen app
open 7 or more tabs
# Expected behavior
The tab on the end should show a X button
and not be cut off;
# Actual behavior
The seventh tab is cut off, hiding text and X button.

</code></pre></div> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [10.0.18362.175]
Windows Terminal version (if applicable):
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [10.0.18362.175]
Windows Terminal version (if applicable):
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Open the new terminal on a french machine, using AZERTY keyboard<br>
Type Alt Gr + 8 to get the back-slash</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">A back-slash should print on the window</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">An underscore prints</p> | 0 |
<p dir="auto">I am opening this master/umbrella issue to track Ubernetes e2e test flakes. I think this issue is sufficient right now. But as we make progress we might have to fork this into sub-issues.</p>
<p dir="auto">This issue is not just about the e2e tests themselves but also includes infrastructure related flakes such as bringing up the clusters, bringing up the federation control plane, etc.</p>
<p dir="auto">Here is one flake that I am seeing from yesterday:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ FEDERATION=true E2E_ZONES="us-central1-f" KUBE_GCE_ZONE="us-central1-f" go run hack/e2e.go -v --up
...
...
...
NAME LOCATION SCOPE BASE_INSTANCE_NAME SIZE TARGET_SIZE INSTANCE_TEMPLATE AUTOSCALED
madhusudancs-us-central1-f-minion-group us-central1-f zone madhusudancs-us-central1-f-minion-group 3 madhusudancs-us-central1-f-minion-template
Waiting for group to become stable, current operations: creating: 3
Waiting for group to become stable, current operations: creating: 3
Waiting for group to become stable, current operations: creating: 3
Waiting for group to become stable, current operations: creating: 3
Group is stable
INSTANCE_GROUPS=madhusudancs-us-central1-f-minion-group
NODE_NAMES=madhusudancs-us-central1-f-minion-group-5wk9 madhusudancs-us-central1-f-minion-group-6ys7 madhusudancs-us-central1-f-minion-group-l1vs
Using master: madhusudancs-us-central1-f-master (external IP: <REDACTED_IP>)
Waiting up to 300 seconds for cluster initialization.
This will continually check to see if the API for kubernetes is reachable.
This may time out if there was some uncaught error during start up.
...................................................................................................................................................Cluster failed to initialize within 300 seconds.
2016/06/02 14:18:06 e2e.go:218: Error running up: exit status 1
2016/06/02 14:18:06 e2e.go:214: Step 'up' finished in 8m0.261564635s
2016/06/02 14:18:06 e2e.go:114: Error starting e2e cluster. Aborting.
exit status 1"><pre class="notranslate">$ FEDERATION=true E2E_ZONES=<span class="pl-s"><span class="pl-pds">"</span>us-central1-f<span class="pl-pds">"</span></span> KUBE_GCE_ZONE=<span class="pl-s"><span class="pl-pds">"</span>us-central1-f<span class="pl-pds">"</span></span> go run hack/e2e.go -v --up
...
...
...
NAME LOCATION SCOPE BASE_INSTANCE_NAME SIZE TARGET_SIZE INSTANCE_TEMPLATE AUTOSCALED
madhusudancs-us-central1-f-minion-group us-central1-f zone madhusudancs-us-central1-f-minion-group 3 madhusudancs-us-central1-f-minion-template
Waiting <span class="pl-k">for</span> group to become stable, current operations: creating: 3
Waiting <span class="pl-k">for</span> group to become stable, current operations: creating: 3
Waiting <span class="pl-k">for</span> group to become stable, current operations: creating: 3
Waiting <span class="pl-k">for</span> group to become stable, current operations: creating: 3
Group is stable
INSTANCE_GROUPS=madhusudancs-us-central1-f-minion-group
NODE_NAMES=madhusudancs-us-central1-f-minion-group-5wk9 madhusudancs-us-central1-f-minion-group-6ys7 madhusudancs-us-central1-f-minion-group-l1vs
Using master: madhusudancs-us-central1-f-master (external IP: <span class="pl-k"><</span>REDACTED_IP<span class="pl-k">></span>)
Waiting up to 300 seconds <span class="pl-k">for</span> cluster initialization.
This will continually check to see <span class="pl-k">if</span> the API <span class="pl-k">for</span> kubernetes is reachable.
This may <span class="pl-k">time</span> out <span class="pl-k">if</span> there was some uncaught error during start up.
...................................................................................................................................................Cluster failed to initialize within 300 seconds.
2016/06/02 14:18:06 e2e.go:218: Error running up: <span class="pl-c1">exit</span> status 1
2016/06/02 14:18:06 e2e.go:214: Step <span class="pl-s"><span class="pl-pds">'</span>up<span class="pl-pds">'</span></span> finished <span class="pl-k">in</span> 8m0.261564635s
2016/06/02 14:18:06 e2e.go:114: Error starting e2e cluster. Aborting.
<span class="pl-c1">exit</span> status 1</pre></div>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/colhom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/colhom">@colhom</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikhiljindal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikhiljindal">@nikhiljindal</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/colhom/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/colhom">@colhom</a> @kubernetes/sig-cluster-federation <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jianhuiz/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jianhuiz">@jianhuiz</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/mfanjie/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/mfanjie">@mfanjie</a></p> | <p dir="auto">We reverted it to use Update (PUT) while scale was broken. We should revert back, for ReplicationController, ReplicaSet, and Deployment.</p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/janetkuo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/janetkuo">@janetkuo</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/madhusudancs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/madhusudancs">@madhusudancs</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/soltysh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/soltysh">@soltysh</a> @kargakis</p> | 0 |
<h4 dir="auto">Code Sample, a copy-pastable example if possible</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import io
import pandas
csv_file = io.StringIO("""datetime,cloudcover_eddh,dewpoint,dewpoint_eddh,humidity,humidity_eddh,lat,lon,precipitation_eddh,pressure_eddh,temperature,temperature_eddh,winddirection_eddh,windgust_eddh,windspeed_eddh
2016-01-01 00:00:00,CAVOC,4.1,3.0,100.0,94.0,53.5443,9.926839999999999,,1023.0,4.1,3.0,160.0,0.0,7.2
2016-01-01 00:00:00,CAVOC,1.7,3.0,96.0,94.0,53.61297,9.98145,,1023.0,2.3,3.0,160.0,0.0,7.2
2016-01-01 00:00:00,CAVOC,2.4,3.0,98.0,94.0,53.57735,10.09428,,1023.0,2.7,3.0,160.0,0.0,7.2
2016-01-01 00:00:00,CAVOC,3.0,3.0,94.0,94.0,53.68849,10.1335,,1023.0,3.9,3.0,160.0,0.0,7.2
2016-01-01 00:00:00,CAVOC,4.2,3.0,76.0,94.0,53.6608,10.06555,,1023.0,,3.0,160.0,0.0,7.2
2016-01-01 00:00:00,CAVOC,3.0,3.0,100.0,94.0,53.43252,10.297989999999999,,1023.0,3.0,3.0,160.0,0.0,7.2
2016-01-01 00:00:00,CAVOC,1.9,3.0,92.0,94.0,53.68937,10.13025,,1023.0,3.1,3.0,160.0,0.0,7.2
2016-01-01 00:00:00,CAVOC,3.5,3.0,100.0,94.0,53.6344,9.966560000000001,,1023.0,3.5,3.0,160.0,0.0,7.2
2016-01-01 00:00:00,CAVOC,3.6,3.0,99.0,94.0,53.46402,9.89157,,1023.0,3.7,3.0,160.0,0.0,7.2""")
data_df = pandas.read_csv(csv_file, parse_dates=["datetime"], index_col="datetime")
cloud_cover_df = pandas.get_dummies(data_df.cloudcover_eddh, prefix="cloudcover_eddh")
df_hour = pandas.get_dummies(data_df.index.hour, prefix="hour")
data_df.reset_index(inplace=True, drop=True)
data_df = pandas.concat([
data_df,
df_hour,
cloud_cover_df
], axis=1, ignore_index=True)
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">io</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span>
<span class="pl-s1">csv_file</span> <span class="pl-c1">=</span> <span class="pl-s1">io</span>.<span class="pl-v">StringIO</span>(<span class="pl-s">"""datetime,cloudcover_eddh,dewpoint,dewpoint_eddh,humidity,humidity_eddh,lat,lon,precipitation_eddh,pressure_eddh,temperature,temperature_eddh,winddirection_eddh,windgust_eddh,windspeed_eddh</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,4.1,3.0,100.0,94.0,53.5443,9.926839999999999,,1023.0,4.1,3.0,160.0,0.0,7.2</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,1.7,3.0,96.0,94.0,53.61297,9.98145,,1023.0,2.3,3.0,160.0,0.0,7.2</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,2.4,3.0,98.0,94.0,53.57735,10.09428,,1023.0,2.7,3.0,160.0,0.0,7.2</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,3.0,3.0,94.0,94.0,53.68849,10.1335,,1023.0,3.9,3.0,160.0,0.0,7.2</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,4.2,3.0,76.0,94.0,53.6608,10.06555,,1023.0,,3.0,160.0,0.0,7.2</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,3.0,3.0,100.0,94.0,53.43252,10.297989999999999,,1023.0,3.0,3.0,160.0,0.0,7.2</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,1.9,3.0,92.0,94.0,53.68937,10.13025,,1023.0,3.1,3.0,160.0,0.0,7.2</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,3.5,3.0,100.0,94.0,53.6344,9.966560000000001,,1023.0,3.5,3.0,160.0,0.0,7.2</span>
<span class="pl-s">2016-01-01 00:00:00,CAVOC,3.6,3.0,99.0,94.0,53.46402,9.89157,,1023.0,3.7,3.0,160.0,0.0,7.2"""</span>)
<span class="pl-s1">data_df</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-en">read_csv</span>(<span class="pl-s1">csv_file</span>, <span class="pl-s1">parse_dates</span><span class="pl-c1">=</span>[<span class="pl-s">"datetime"</span>], <span class="pl-s1">index_col</span><span class="pl-c1">=</span><span class="pl-s">"datetime"</span>)
<span class="pl-s1">cloud_cover_df</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-en">get_dummies</span>(<span class="pl-s1">data_df</span>.<span class="pl-s1">cloudcover_eddh</span>, <span class="pl-s1">prefix</span><span class="pl-c1">=</span><span class="pl-s">"cloudcover_eddh"</span>)
<span class="pl-s1">df_hour</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-en">get_dummies</span>(<span class="pl-s1">data_df</span>.<span class="pl-s1">index</span>.<span class="pl-s1">hour</span>, <span class="pl-s1">prefix</span><span class="pl-c1">=</span><span class="pl-s">"hour"</span>)
<span class="pl-s1">data_df</span>.<span class="pl-en">reset_index</span>(<span class="pl-s1">inplace</span><span class="pl-c1">=</span><span class="pl-c1">True</span>, <span class="pl-s1">drop</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)
<span class="pl-s1">data_df</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-en">concat</span>([
<span class="pl-s1">data_df</span>,
<span class="pl-s1">df_hour</span>,
<span class="pl-s1">cloud_cover_df</span>
], <span class="pl-s1">axis</span><span class="pl-c1">=</span><span class="pl-c1">1</span>, <span class="pl-s1">ignore_index</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">I expect that the three dataframes are concatenated as wished. I know that the indices correspond so I do not need pandas to check that for me. Instead I get the following error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "<stdin>", line 5, in <module>
File "/informatik2/students/home/1kastner/.local/lib/python3.5/site-packages/pandas/core/reshape/concat.py", line 207, in concat
return op.get_result()
File "/informatik2/students/home/1kastner/.local/lib/python3.5/site-packages/pandas/core/reshape/concat.py", line 401, in get_result
indexers[ax] = obj_labels.reindex(new_labels)[1]
File "/informatik2/students/home/1kastner/.local/lib/python3.5/site-packages/pandas/core/indexes/base.py", line 2887, in reindex
indexer, missing = self.get_indexer_non_unique(target)
File "/informatik2/students/home/1kastner/.local/lib/python3.5/site-packages/pandas/core/indexes/base.py", line 2708, in get_indexer_non_unique
indexer, missing = self._engine.get_indexer_non_unique(tgt_values)
File "pandas/_libs/index.pyx", line 325, in pandas._libs.index.IndexEngine.get_indexer_non_unique (pandas/_libs/index.c:7722)
TypeError: 'NoneType' object is not iterable"><pre lang="Traceback" class="notranslate"><code class="notranslate"> File "<stdin>", line 5, in <module>
File "/informatik2/students/home/1kastner/.local/lib/python3.5/site-packages/pandas/core/reshape/concat.py", line 207, in concat
return op.get_result()
File "/informatik2/students/home/1kastner/.local/lib/python3.5/site-packages/pandas/core/reshape/concat.py", line 401, in get_result
indexers[ax] = obj_labels.reindex(new_labels)[1]
File "/informatik2/students/home/1kastner/.local/lib/python3.5/site-packages/pandas/core/indexes/base.py", line 2887, in reindex
indexer, missing = self.get_indexer_non_unique(target)
File "/informatik2/students/home/1kastner/.local/lib/python3.5/site-packages/pandas/core/indexes/base.py", line 2708, in get_indexer_non_unique
indexer, missing = self._engine.get_indexer_non_unique(tgt_values)
File "pandas/_libs/index.pyx", line 325, in pandas._libs.index.IndexEngine.get_indexer_non_unique (pandas/_libs/index.c:7722)
TypeError: 'NoneType' object is not iterable
</code></pre></div>
<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.10.0-33-generic<br>
machine: x86_64<br>
processor: x86_64<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_US.UTF-8<br>
LOCALE: en_US.UTF-8</p>
<p dir="auto">pandas: 0.20.3<br>
pytest: None<br>
pip: 9.0.1<br>
setuptools: 36.0.1<br>
Cython: None<br>
numpy: 1.13.1<br>
scipy: 0.17.0<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.1<br>
pytz: 2017.2<br>
blosc: None<br>
bottleneck: None<br>
tables: 3.2.2<br>
numexpr: 2.6.2<br>
feather: None<br>
matplotlib: 1.5.1<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: 0.7.3<br>
lxml: None<br>
bs4: 4.4.1<br>
html5lib: 0.999<br>
sqlalchemy: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
s3fs: None<br>
pandas_gbq: None<br>
pandas_datareader: None</p>
</details> | <p dir="auto">When concatting two dataframes where there are a) there are duplicate columns in one of the dataframes, and b) there are non-overlapping column names in both, then you get a IndexError:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [9]: df1 = pd.DataFrame(np.random.randn(3,3), columns=['A', 'A', 'B1'])
...: df2 = pd.DataFrame(np.random.randn(3,3), columns=['A', 'A', 'B2'])
In [10]: pd.concat([df1, df2])
Traceback (most recent call last):
File "<ipython-input-10-f61a1ab4009e>", line 1, in <module>
pd.concat([df1, df2])
...
File "c:\users\vdbosscj\scipy\pandas-joris\pandas\core\index.py", line 765, in take
taken = self.view(np.ndarray).take(indexer)
IndexError: index 3 is out of bounds for axis 0 with size 3"><pre class="notranslate"><code class="notranslate">In [9]: df1 = pd.DataFrame(np.random.randn(3,3), columns=['A', 'A', 'B1'])
...: df2 = pd.DataFrame(np.random.randn(3,3), columns=['A', 'A', 'B2'])
In [10]: pd.concat([df1, df2])
Traceback (most recent call last):
File "<ipython-input-10-f61a1ab4009e>", line 1, in <module>
pd.concat([df1, df2])
...
File "c:\users\vdbosscj\scipy\pandas-joris\pandas\core\index.py", line 765, in take
taken = self.view(np.ndarray).take(indexer)
IndexError: index 3 is out of bounds for axis 0 with size 3
</code></pre></div>
<p dir="auto">I don't know if it should work (although I suppose it should, as with only the duplicate columns it does work), but at least the error message is not really helpfull.</p> | 1 |
<ul dir="auto">
<li>Electron Version: 2.0.7</li>
<li>Operating System (Platform and Version): Ubuntu 16.04</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong><br>
The print task should be sent without showing the system dialog, and it should print the html content.</p>
<p dir="auto"><strong>Actual behavior</strong><br>
it is not doing anything at all.</p>
<p dir="auto"><strong>To Reproduce</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="secondWindow.webContents.print({silent: true, printBackground : false, deviceName : ''},(success) => {
if(success){
console.log(success);
secondWindow = null;
}
});"><pre class="notranslate"><span class="pl-s1">secondWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">print</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">silent</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">printBackground</span> : <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">deviceName</span> : <span class="pl-s">''</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">secondWindow</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-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><code class="notranslate">silent : false</code> option is printing the content but not calling the callback function. i don't want the user interaction when something need to be printed.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="secondWindow.webContents.print({silent: false, printBackground : false, deviceName : ''},(success) => {
if(success){
console.log(success);
secondWindow = null;
}
});"><pre class="notranslate"><span class="pl-s1">secondWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">print</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">silent</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">printBackground</span> : <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-c1">deviceName</span> : <span class="pl-s">''</span><span class="pl-kos">}</span><span class="pl-kos">,</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s1">success</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">secondWindow</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-kos">)</span><span class="pl-kos">;</span></pre></div> | 1 |
|
<h1 dir="auto">🚀 Feature request</h1>
<p dir="auto">The current <a href="https://github.com/huggingface/transformers/blob/3977b58437b8ce1ea1da6e31747d888efec2419b/src/transformers/pipelines/token_classification.py#L82">implementation of TokenClassificationPipeline</a> cannot do anything with text input beyond the length (measured in tokens) allowed by the model's number of positional embeddings. I think it would be useful to many users to have a setting in the pipeline that allows for a "sliding window" approach that can take documents longer than the <code class="notranslate">.config.max_position_embeddings</code> of the model in use.</p>
<p dir="auto">The modified version of <code class="notranslate">TokenClassificationPipeline</code> could be instantiated with the optional new params <code class="notranslate">window_size</code> (defaults to <code class="notranslate">model.max_position_embeddings - 2</code> to accomodate the <code class="notranslate">[CLS]</code> and <code class="notranslate">[SEP]</code> special tokens) and <code class="notranslate">stride</code> (defaults to <code class="notranslate">window_size / 2</code>, the user can disable the sliding window by setting <code class="notranslate">stride = 0</code>) like so:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="model, tokenizer = # Some model, some tokenizer
pipeline = TokenClassificationPipeline(model=model, tokenizer=tokenizer, aggregation_strategy='first', stride=254)"><pre class="notranslate"><code class="notranslate">model, tokenizer = # Some model, some tokenizer
pipeline = TokenClassificationPipeline(model=model, tokenizer=tokenizer, aggregation_strategy='first', stride=254)
</code></pre></div>
<h2 dir="auto">Motivation</h2>
<p dir="auto">I run tasks that involve doing named entity recognition on longer documents. I have to use my own modified subclass of <code class="notranslate">TokenClassificationPipeline</code> in order to do so, since the existing class does not support processing texts longer than the maximum number of position embeddings for the underlying models.</p>
<h2 dir="auto">Your contribution</h2>
<p dir="auto">I will submit a PR adding sliding window functionality to <code class="notranslate">TokenClassificationPipeline</code>. I have previously created a sliding window implementation of Transformers' NER Pipeline <a href="https://github.com/nlpsandbox/phi-annotator-huggingface/blob/634e1736837b50a190f42c2fc741b262e88bf3ac/server/openapi_server/huggingface.py#L15">here</a>, and will re-work this to work with TensorFlow and meet the code standards of HuggingFace/Transformers.</p> | <p dir="auto">Hi, I am trying to convert a fine-tuned GPT-Neo (125M) model to ONNX using the code below:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from transformers import pipeline, convert_graph_to_onnx, GPTNeoForCausalLM, GPT2Tokenizer
from pathlib import Path
import torch
model_name = "EleutherAI/gpt-neo-125M"
pipeline_name = "text-generation"
tokenizer = GPT2Tokenizer.from_pretrained("EleutherAI/gpt-neo-125M", bos_token='<|startoftext|>',
eos_token='<|endoftext|>', pad_token='<|pad|>')
nlp = pipeline(pipeline_name, model=model_name, tokenizer=tokenizer)
with torch.no_grad():
(
input_names,
output_names,
dynamic_axes,
tokens,
) = convert_graph_to_onnx.infer_shapes(nlp, "pt")
ordered_input_names, model_args = convert_graph_to_onnx.ensure_valid_input(
nlp.model, tokens, input_names
)
model_name = 'gpt-neo'
predictor_path = './' + model_name
model2 = GPTNeoForCausalLM.from_pretrained(predictor_path)
text = "I feel happy and "
prompt = f'<|startoftext|>Review: {text} Sentiment: <|endoftext|>'
encodings_dict = nlp.tokenizer(prompt, truncation=True, max_length=300, padding="max_length", return_tensors="pt")
torch.onnx.export(
model2,
(encodings_dict['input_ids'], encodings_dict['attention_mask']),
'model_test.onnx',
input_names=input_names,
output_names=output_names,
dynamic_axes=dynamic_axes,
do_constant_folding=True,
use_external_data_format=True, # Needed because of model size
enable_onnx_checker=True,
opset_version=13
)
"><pre class="notranslate"><code class="notranslate">from transformers import pipeline, convert_graph_to_onnx, GPTNeoForCausalLM, GPT2Tokenizer
from pathlib import Path
import torch
model_name = "EleutherAI/gpt-neo-125M"
pipeline_name = "text-generation"
tokenizer = GPT2Tokenizer.from_pretrained("EleutherAI/gpt-neo-125M", bos_token='<|startoftext|>',
eos_token='<|endoftext|>', pad_token='<|pad|>')
nlp = pipeline(pipeline_name, model=model_name, tokenizer=tokenizer)
with torch.no_grad():
(
input_names,
output_names,
dynamic_axes,
tokens,
) = convert_graph_to_onnx.infer_shapes(nlp, "pt")
ordered_input_names, model_args = convert_graph_to_onnx.ensure_valid_input(
nlp.model, tokens, input_names
)
model_name = 'gpt-neo'
predictor_path = './' + model_name
model2 = GPTNeoForCausalLM.from_pretrained(predictor_path)
text = "I feel happy and "
prompt = f'<|startoftext|>Review: {text} Sentiment: <|endoftext|>'
encodings_dict = nlp.tokenizer(prompt, truncation=True, max_length=300, padding="max_length", return_tensors="pt")
torch.onnx.export(
model2,
(encodings_dict['input_ids'], encodings_dict['attention_mask']),
'model_test.onnx',
input_names=input_names,
output_names=output_names,
dynamic_axes=dynamic_axes,
do_constant_folding=True,
use_external_data_format=True, # Needed because of model size
enable_onnx_checker=True,
opset_version=13
)
</code></pre></div>
<p dir="auto">But I get this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ValueError Traceback (most recent call last)
<ipython-input-15-024e093371a4> in <module>()
43 use_external_data_format=True, # Needed because of model size
44 enable_onnx_checker=True,
---> 45 opset_version=13
46 )
3 frames
/usr/local/lib/python3.7/dist-packages/torch/onnx/utils.py in _validate_dynamic_axes(dynamic_axes, model, input_names, output_names)
1300 for i, x in enumerate(value):
1301 if not isinstance(x, int):
-> 1302 raise ValueError("The type of axis index is expected to be an integer")
1303 if x in value_dict:
1304 warnings.warn("Duplicate dynamic axis index {} was provided for input {}."
ValueError: The type of axis index is expected to be an integer"><pre class="notranslate"><code class="notranslate">ValueError Traceback (most recent call last)
<ipython-input-15-024e093371a4> in <module>()
43 use_external_data_format=True, # Needed because of model size
44 enable_onnx_checker=True,
---> 45 opset_version=13
46 )
3 frames
/usr/local/lib/python3.7/dist-packages/torch/onnx/utils.py in _validate_dynamic_axes(dynamic_axes, model, input_names, output_names)
1300 for i, x in enumerate(value):
1301 if not isinstance(x, int):
-> 1302 raise ValueError("The type of axis index is expected to be an integer")
1303 if x in value_dict:
1304 warnings.warn("Duplicate dynamic axis index {} was provided for input {}."
ValueError: The type of axis index is expected to be an integer
</code></pre></div>
<p dir="auto">But if I remove dynamic_axes, I get this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="IndexError Traceback (most recent call last)
<ipython-input-16-89ddee8c10f8> in <module>()
43 use_external_data_format=True, # Needed because of model size
44 enable_onnx_checker=True,
---> 45 opset_version=13
46 )
15 frames
/usr/local/lib/python3.7/dist-packages/transformers/models/gpt_neo/modeling_gpt_neo.py in forward(self, input_ids, past_key_values, attention_mask, token_type_ids, position_ids, head_mask, inputs_embeds, use_cache, output_attentions, output_hidden_states, return_dict)
545 past_key_values = tuple([None] * len(self.h))
546 else:
--> 547 past_length = past_key_values[0][0].size(-2)
548
549 device = input_ids.device if input_ids is not None else inputs_embeds.device
IndexError: dimension specified as -2 but tensor has no dimensions"><pre class="notranslate"><code class="notranslate">IndexError Traceback (most recent call last)
<ipython-input-16-89ddee8c10f8> in <module>()
43 use_external_data_format=True, # Needed because of model size
44 enable_onnx_checker=True,
---> 45 opset_version=13
46 )
15 frames
/usr/local/lib/python3.7/dist-packages/transformers/models/gpt_neo/modeling_gpt_neo.py in forward(self, input_ids, past_key_values, attention_mask, token_type_ids, position_ids, head_mask, inputs_embeds, use_cache, output_attentions, output_hidden_states, return_dict)
545 past_key_values = tuple([None] * len(self.h))
546 else:
--> 547 past_length = past_key_values[0][0].size(-2)
548
549 device = input_ids.device if input_ids is not None else inputs_embeds.device
IndexError: dimension specified as -2 but tensor has no dimensions
</code></pre></div>
<p dir="auto">Can someone help me please?</p> | 0 |
<ul dir="auto">
<li>have a breakpoint in a loop</li>
<li>run and once hitting the breakpoint keep pressing play</li>
<li>
<blockquote>
<p dir="auto">notice that the feedback of resume and pause is not strong enough. It seems we animate/delay something which hides the state transitions.</p>
</blockquote>
</li>
</ul> | <p dir="auto">Hi Guys!<br>
If I create a new file in my workingdirectory ist doesn't show up. I have to refresh the list and then there is my new file. In a previous version the refresh was automatically there when I create a new file. The same thing applies to folders.<br>
My version of VSCode is 0.10.5</p> | 0 |
<p dir="auto">Hi, I am getting the error below. The same query runs without any problems when just a few records are returned by the where clause. I am currently running on a single node "quickstart" configuration.</p>
<p dir="auto">Thank You</p>
<p dir="auto">`2017-09-19 11:03:54 DEBUG DruidDao:414 - SQL: select A, B, C, D, E, G, H, I, L from dataSource where A in ('aValue' ) AND B in ('SomeVALUE' )<br>
[WARNING] /dl<br>
AvaticaClientRuntimeException: Remote driver error: IllegalStateException: DefaultQueryMetrics must not be modified from multiple threads. If it is needed to gather dimension or metric information from multiple threads or from an async thread, this information should explicitly be passed between threads (e. g. using Futures), or this DefaultQueryMetrics's ownerThread should be reassigned explicitly. Error -1 (00000) UNKNOWN</p>
<p dir="auto">java.lang.IllegalStateException: DefaultQueryMetrics must not be modified from multiple threads. If it is needed to gather dimension or metric information from multiple threads or from an async thread, this information should explicitly be passed between threads (e. g. using Futures), or this DefaultQueryMetrics's ownerThread should be reassigned explicitly<br>
at io.druid.query.DefaultQueryMetrics.checkModifiedFromOwnerThread(DefaultQueryMetrics.java:59)<br>
at io.druid.query.DefaultQueryMetrics.reportMetric(DefaultQueryMetrics.java:253)<br>
at io.druid.query.DefaultQueryMetrics.reportCpuTime(DefaultQueryMetrics.java:231)<br>
at io.druid.query.CPUTimeMetricQueryRunner$1.after(CPUTimeMetricQueryRunner.java:86)<br>
at io.druid.java.util.common.guava.WrappingYielder.close(WrappingYielder.java:96)<br>
at io.druid.java.util.common.guava.Yielders$2.close(Yielders.java:73)<br>
at io.druid.java.util.common.guava.ConcatSequence.wrapYielder(ConcatSequence.java:123)<br>
at io.druid.java.util.common.guava.ConcatSequence.access$000(ConcatSequence.java:29)<br>
at io.druid.java.util.common.guava.ConcatSequence$3.next(ConcatSequence.java:143)<br>
at io.druid.sql.avatica.DruidStatement.nextFrame(DruidStatement.java:277)<br>
at io.druid.sql.avatica.DruidMeta.fetch(DruidMeta.java:209)<br>
at org.apache.calcite.avatica.remote.LocalService.apply(LocalService.java:252)<br>
at org.apache.calcite.avatica.remote.Service$FetchRequest.accept(Service.java:1350)<br>
at org.apache.calcite.avatica.remote.Service$FetchRequest.accept(Service.java:1317)<br>
at org.apache.calcite.avatica.remote.AbstractHandler.apply(AbstractHandler.java:95)<br>
at org.apache.calcite.avatica.remote.JsonHandler.apply(JsonHandler.java:52)<br>
at org.apache.calcite.avatica.server.AvaticaJsonHandler.handle(AvaticaJsonHandler.java:129)<br>
at io.druid.sql.avatica.DruidAvaticaHandler.handle(DruidAvaticaHandler.java:63)<br>
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)<br>
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)<br>
at org.eclipse.jetty.server.Server.handle(Server.java:534)<br>
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)<br>
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)<br>
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283)<br>
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108)<br>
at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)<br>
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)<br>
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)<br>
at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)<br>
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)<br>
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)<br>
at java.lang.Thread.run(Thread.java:748)<br>
Suppressed: java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: DefaultQueryMetrics must not be modified from multiple threads. If it is needed to gather dimension or metric information from multiple threads or from an async thread, this information should explicitly be passed between threads (e. g. using Futures), or this DefaultQueryMetrics's ownerThread should be reassigned explicitly<br>
at com.google.common.base.Throwables.propagate(Throwables.java:160)<br>
at io.druid.sql.avatica.DruidStatement.close(DruidStatement.java:335)<br>
at io.druid.sql.avatica.DruidStatement.nextFrame(DruidStatement.java:290)<br>
... 22 more<br>
Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalStateException: DefaultQueryMetrics must not be modified from multiple threads. If it is needed to gather dimension or metric information from multiple threads or from an async thread, this information should explicitly be passed between threads (e. g. using Futures), or this DefaultQueryMetrics's ownerThread should be reassigned explicitly<br>
at java.util.concurrent.FutureTask.report(FutureTask.java:122)<br>
at java.util.concurrent.FutureTask.get(FutureTask.java:192)<br>
at io.druid.sql.avatica.DruidStatement.close(DruidStatement.java:319)<br>
... 23 more<br>
Caused by: java.lang.IllegalStateException: DefaultQueryMetrics must not be modified from multiple threads. If it is needed to gather dimension or metric information from multiple threads or from an async thread, this information should explicitly be passed between threads (e. g. using Futures), or this DefaultQueryMetrics's ownerThread should be reassigned explicitly<br>
at io.druid.query.DefaultQueryMetrics.checkModifiedFromOwnerThread(DefaultQueryMetrics.java:59)<br>
at io.druid.query.DefaultQueryMetrics.reportMetric(DefaultQueryMetrics.java:253)<br>
at io.druid.query.DefaultQueryMetrics.reportCpuTime(DefaultQueryMetrics.java:231)<br>
at io.druid.query.CPUTimeMetricQueryRunner$1.after(CPUTimeMetricQueryRunner.java:86)<br>
at io.druid.java.util.common.guava.WrappingYielder.close(WrappingYielder.java:96)<br>
at io.druid.java.util.common.guava.ConcatSequence$3.close(ConcatSequence.java:157)<br>
at io.druid.java.util.common.guava.ConcatSequence$3.close(ConcatSequence.java:156)<br>
at io.druid.sql.avatica.DruidStatement.lambda$close$1(DruidStatement.java:315)<br>
at java.util.concurrent.FutureTask.run(FutureTask.java:266)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)<br>
... 1 more</p>
<p dir="auto">at org.apache.calcite.avatica.remote.Service$ErrorResponse.toException(Service.java:2476)<br>
at org.apache.calcite.avatica.remote.JsonService.decode(JsonService.java:55)<br>
at org.apache.calcite.avatica.remote.JsonService.apply(JsonService.java:140)<br>
at org.apache.calcite.avatica.remote.RemoteMeta$14.call(RemoteMeta.java:309)<br>
at org.apache.calcite.avatica.remote.RemoteMeta$14.call(RemoteMeta.java:306)<br>
at org.apache.calcite.avatica.AvaticaConnection.invokeWithRetries(AvaticaConnection.java:756)<br>
at org.apache.calcite.avatica.remote.RemoteMeta.fetch(RemoteMeta.java:305)<br>
at org.apache.calcite.avatica.MetaImpl$FetchIterator.moveNext(MetaImpl.java:1606)<br>
at org.apache.calcite.avatica.MetaImpl$FetchIterator.next(MetaImpl.java:1591)<br>
at org.apache.calcite.avatica.util.IteratorCursor.next(IteratorCursor.java:46)<br>
at org.apache.calcite.avatica.AvaticaResultSet.next(AvaticaResultSet.java:239)<br>
at ... (DruidDao.java:1181)<br>
at ... (Download.java:75)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)<br>
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)<br>
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:833)<br>
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1650)<br>
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:206)<br>
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1637)<br>
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:533)<br>
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)<br>
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548)<br>
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)<br>
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:190)<br>
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)<br>
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:188)<br>
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1253)<br>
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:168)<br>
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)<br>
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)<br>
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:166)<br>
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1155)<br>
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)<br>
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:219)<br>
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126)<br>
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)<br>
at org.eclipse.jetty.server.Server.handle(Server.java:564)<br>
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:317)<br>
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)<br>
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:279)<br>
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:110)<br>
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:124)<br>
at org.eclipse.jetty.util.thread.Invocable.invokePreferred(Invocable.java:128)<br>
at org.eclipse.jetty.util.thread.Invocable$InvocableExecutor.invoke(Invocable.java:222)<br>
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:294)<br>
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(EatWhatYouKill.java:126)<br>
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:673)<br>
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:591)<br>
at java.lang.Thread.run(Thread.java:748)`</p> | <p dir="auto">Today we have 2 ways to create a druid dimension based on a lookup.<br>
The first one (old way) is as an extraction function <code class="notranslate">ExtractionFn</code> and the second is via lookup dimension spec <code class="notranslate">LookupDimensionSpec</code>.<br>
Chronologically speaking the LookupDimensionSpec was introduced after ExtractionDimensionSpec.<br>
The reason behind this is the fact that lookups can offer more functionalities like unApply, unApplyAll, bulk lookups or the fact that one dimension can map to multiple values use case.<br>
IMHO This means it is better for lookup to be independent from extraction function from a design perspective. Now that we ended up with 2 way of doing things, i guess it is time to unify it.<br>
Benefits.</p>
<ul dir="auto">
<li>-Will be able to support the case where we have a one to many mapping as lookups</li>
<li>Ensure that the logic of the mapping is consistent for both filtering and aggregation. This is really important if we want to support the use case mapping one to many</li>
<li>-Avoid to have duplicate code where issue like this occurs <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="158273807" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/3065" data-hovercard-type="pull_request" data-hovercard-url="/apache/druid/pull/3065/hovercard" href="https://github.com/apache/druid/pull/3065">#3065</a></li>
<li>-Support the bulk lookup issues <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="157243320" data-permission-text="Title is private" data-url="https://github.com/apache/druid/issues/3030" data-hovercard-type="issue" data-hovercard-url="/apache/druid/issues/3030/hovercard" href="https://github.com/apache/druid/issues/3030">#3030</a></li>
</ul>
<p dir="auto">To achieve that is to make filters accept dimension spec instead of just dimension as a string and extraction function.<br>
Then make the dimensionSpec use the decorate method since getExtractionFn is deprecated anyway.<br>
Also we have to make all the filters work with either decoration of selector or extraction function.</p> | 0 |
<p dir="auto">Hi,</p>
<p dir="auto">Should be great to be able to perform a grouping of computed values using the pipeline aggregation range bucket.</p>
<p dir="auto">Thanks,</p>
<p dir="auto">David</p> | <p dir="auto">Let's say the data set is transactions made by users and the question we want to ask is "Which users have transactions totalling between 100 - 200, 200 - 300, etc.?"</p>
<p dir="auto">At the moment, there doesn't seem to be a way to do this in one query.</p>
<p dir="auto">Given documents like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""user": user1,
"credit": 50"><pre class="notranslate"><code class="notranslate">"user": user1,
"credit": 50
</code></pre></div>
<p dir="auto">we can answer questions such as "Show me only the users that have transactions totalling more than 100" by using a <code class="notranslate">bucket_selector</code> like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""aggs": {
"users": {
"terms": {
"field": "user"
},
"aggs": {
"sum_credit": {
"sum": {
"field": "credit"
}
},
"the_pipeline_agg": {
"bucket_selector": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"script": "sumCredit > 100"
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">"aggs": {
"users": {
"terms": {
"field": "user"
},
"aggs": {
"sum_credit": {
"sum": {
"field": "credit"
}
},
"the_pipeline_agg": {
"bucket_selector": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"script": "sumCredit > 100"
}
}
}
}
}
</code></pre></div>
<p dir="auto">And now we could form ranges on the client side by running several of these queries in parallel.</p>
<p dir="auto">But to answer the original question we would need some form of range pipeline aggregation like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""bucket_range": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"ranges": [
{ "to": 100 },
{ "from": 100, "to": 200 }
]
}"><pre class="notranslate"><code class="notranslate">"bucket_range": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"ranges": [
{ "to": 100 },
{ "from": 100, "to": 200 }
]
}
</code></pre></div>
<p dir="auto">Or maybe even a more generic "bucket defining" pipeline agg, e.g.:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""bucket_definer": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"bucket_script": "floor(sumCredit / 100)"
}"><pre class="notranslate"><code class="notranslate">"bucket_definer": {
"buckets_path": {
"sumCredit": "sum_credit"
},
"bucket_script": "floor(sumCredit / 100)"
}
</code></pre></div>
<p dir="auto">This would define automatically define buckets for 0-100, 100-200, and so on.</p> | 1 |
<h2 dir="auto">Checklist</h2>
<p dir="auto">Happens on master and previously released versions as well.</p>
<h2 dir="auto">Steps to reproduce</h2>
<p dir="auto">See </p><div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/celery/celery/blob/b2668607c909c61becd151905b4525190c19ff4a/celery/backends/redis.py#L22">celery/celery/backends/redis.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 22
in
<a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/b2668607c909c61becd151905b4525190c19ff4a">b266860</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="L22" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="22"></td>
<td id="LC22" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">from</span> . <span class="pl-k">import</span> <span class="pl-s1">async</span>, <span class="pl-s1">base</span> </td>
</tr>
</tbody></table>
</div>
</div>
and <div class="Box Box--condensed my-2">
<div class="Box-header f6">
<p class="mb-0 text-bold">
<a href="https://github.com/celery/celery/blob/b2668607c909c61becd151905b4525190c19ff4a/celery/backends/rpc.py#L20">celery/celery/backends/rpc.py</a>
</p>
<p class="mb-0 color-fg-muted">
Line 20
in
<a data-pjax="true" class="commit-tease-sha" href="/celery/celery/commit/b2668607c909c61becd151905b4525190c19ff4a">b266860</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="L20" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="20"></td>
<td id="LC20" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">from</span> .<span class="pl-s1">async</span> <span class="pl-k">import</span> <span class="pl-v">AsyncBackendMixin</span>, <span class="pl-v">BaseResultConsumer</span> </td>
</tr>
</tbody></table>
</div>
</div>
and <a href="https://github.com/celery/celery/blob/master/celery/backends/async.py">https://github.com/celery/celery/blob/master/celery/backends/async.py</a><p></p>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Module should not be named async.</p>
<h2 dir="auto">Actual behavior</h2>
<p dir="auto">Module is named async.</p>
<h2 dir="auto">More info</h2>
<p dir="auto">I fail to run 3.7 test easily, but this leads to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "celery/backends/redis.py", line 22
from . import async, base
^
SyntaxError: invalid syntax"><pre class="notranslate"><code class="notranslate"> File "celery/backends/redis.py", line 22
from . import async, base
^
SyntaxError: invalid syntax
</code></pre></div> | <h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have 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"> 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"> I have checked the <a href="https://github.com/celery/celery/commits/main">commit log</a><br>
to find out if the same feature was already implemented in the<br>
main 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">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>I want to using the return task_id to moniter whether the task was success or not in difference environment not the task function revoked in django view.<br>
For example:<br>
the celery task revoked in django view, task=task1.delay(),<br>
and then i want to consumers.py of websocket environment to moniter the task1 status, when it success, i want to trigger a function to send a message to frontend html.</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">None</p>
<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> | 0 |
<p dir="auto"><code class="notranslate">.text-right</code>, <code class="notranslate">.text-center</code>, <code class="notranslate">.text-left</code> don't have any affect when applied to <code class="notranslate"><td></code> elements. I haven't checked, but I assume that's because the CSS specifies <code class="notranslate">p.text-right</code> etc.</p> | <p dir="auto">With the following code, "foo" is aligned to left instead of right</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<table class="table">
<tr>
<td class="text-right">foo</td>
</tr>
</table>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">table</span> <span class="pl-c1">class</span>="<span class="pl-s">table</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">tr</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">td</span> <span class="pl-c1">class</span>="<span class="pl-s">text-right</span>"<span class="pl-kos">></span>foo<span class="pl-kos"></</span><span class="pl-ent">td</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">tr</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">table</span><span class="pl-kos">></span></pre></div> | 1 |
<h3 dir="auto">Bug summary</h3>
<p dir="auto">When using symlog scale for an axis, a false warning is initially generated - independant of the data to plot - as soon as the mouse is moved over the axes.</p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt
ax = plt.figure().add_subplot()
ax.set_yscale('symlog')
plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>().<span class="pl-en">add_subplot</span>()
<span class="pl-s1">ax</span>.<span class="pl-en">set_yscale</span>(<span class="pl-s">'symlog'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div>
<h3 dir="auto">Actual outcome</h3>
<p dir="auto">UserWarning: All values for SymLogScale are below linthresh, making it effectively linear. You likely should lower the value of linthresh.</p>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">"Nothing"</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto">... maybe related to TkAgg?</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">Windows</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">3.7.0</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">TkAgg</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">3.11.2</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Installation</h3>
<p dir="auto">pip</p> | <p dir="auto">Matplotlib plots are shown in reduced resolution: every pixel of the plot takes 4 physical pixels.<br>
Version: 1.2.0<br>
To reproduce just plot anything on retina macbook.<br>
<a href="https://f.cloud.github.com/assets/281344/435640/616c37a6-aff2-11e2-9ff0-7cd425d21fce.png">Screen Shot 2013-04-28 at 14 56 02 </a></p> | 0 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-write-reusable-javascript-with-functions" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-write-reusable-javascript-with-functions</a> has an issue. Please describe how to reproduce it, and include links to screenshots if possible.</p>
<p dir="auto">I got the right answer, but the question wasn't a good guide. I suspect the question can be tightened up. Should I propose replacement text? You 'issue readers' likely know better.</p> | <p dir="auto"><a href="http://www.freecodecamp.com/challenges/waypoint-write-reusable-javascript-with-functions" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-write-reusable-javascript-with-functions</a></p>
<p dir="auto">In this waypoint you learn functions but a few things are confusing to new people in my opinion:</p>
<p dir="auto"><strong>1) Showing functions written two different ways without any explanation:</strong></p>
<p dir="auto">On the code you see:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ourFunction = function() {
return a - b;
};"><pre class="notranslate"><code class="notranslate">ourFunction = function() {
return a - b;
};
</code></pre></div>
<p dir="auto">but the description shows a function written like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function functionName (a, b) {
return(a + b);
}"><pre class="notranslate"><code class="notranslate">function functionName (a, b) {
return(a + b);
}
</code></pre></div>
<p dir="auto">If this is your first time seeing this it could bring unnecessary confusion in my mind.</p>
<p dir="auto"><strong>2.) The function shown in the code does not pass any arguments.</strong><br>
This code shown again does not have anything passed in and uses the global variables. Being new this could cause unnecessary confusion without understanding how functions work:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ourFunction = function() {
return a - b;
};"><pre class="notranslate"><code class="notranslate">ourFunction = function() {
return a - b;
};
</code></pre></div>
<p dir="auto">I suggest removing the <code class="notranslate">ourFunction = function() { return a -b; };</code> in the code or maybe explaining how the values are getting into the function by passing them or globally.</p> | 1 |
<p dir="auto">The current code for <code class="notranslate">str::not_utf8</code> condition does this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" cond.raise(fmt!("from_bytes: input is not UTF-8; first bad byte is %u",
first_bad_byte as uint))"><pre class="notranslate"><code class="notranslate"> cond.raise(fmt!("from_bytes: input is not UTF-8; first bad byte is %u",
first_bad_byte as uint))
</code></pre></div>
<p dir="auto">It might be more reasonable for condition handlers to recover in this situation if they had a reference to the original byte vector, rather than just a string describing what was wrong.</p>
<p dir="auto">(In one case, the byte vector being passed is a <code class="notranslate">~[u8]</code>, but in another it is <code class="notranslate">&[u8]</code>; in the latter, case, attempting to do this would run into <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="12003195" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/5370" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/5370/hovercard" href="https://github.com/rust-lang/rust/issues/5370">#5370</a>, unless we were willing to allocate a copy when raising the condition, which is probably not a good idea.)</p>
<p dir="auto">(Update: blake2-ppc makes a reasonable suggestion in his comment below, though it involves a more substantial revision to the code. I've generalized the title of this ticket accordingly.)</p> | <p dir="auto">Currently even this simple <code class="notranslate">cat</code> program:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="use io::ReaderUtil;
fn main() {
for io::stdin().each_line |line| { io::println(line); }
}"><pre class="notranslate"><code class="notranslate">use io::ReaderUtil;
fn main() {
for io::stdin().each_line |line| { io::println(line); }
}
</code></pre></div>
<p dir="auto">...fails on the broken or invalid UTF-8 strings (or possibly in other character encodings, as this example illustrates):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ echo 깨진 글자 | iconv -f utf-8 -t cp949 | ./test
rust: task failed at 'Assertion is_utf8(vv) failed', [...]/rust/src/libcore/str.rs:50
rust: domain main @0x7fcf32815e10 root task failed"><pre class="notranslate"><code class="notranslate">$ echo 깨진 글자 | iconv -f utf-8 -t cp949 | ./test
rust: task failed at 'Assertion is_utf8(vv) failed', [...]/rust/src/libcore/str.rs:50
rust: domain main @0x7fcf32815e10 root task failed
</code></pre></div>
<p dir="auto">...due to the byte sequence is assumed to be in UTF-8 (which is not). But there is currently no standard way to fix broken UTF-8 strings by replacing offending substrings by some other valid UTF-8, so it is hard to fix this kind of bugs.</p>
<p dir="auto">This issue is ultimately linked to the general character encoding handling (libiconv binding, perhaps?) and a strict distinction between byte sequence and Unicode (UTF-8) string. I found Python's approach reasonable (bytes and str are separated, converted to each other via <code class="notranslate">encode</code> and <code class="notranslate">decode</code> methods, normal file <code class="notranslate">open</code> reads bytes, <code class="notranslate">codecs.open</code> with an encoding converts them to str), but I'm really not sure about the actual interface.</p> | 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.35.1]</li>
<li>Operating System: [Ubuntu 22.04.2]</li>
<li>Browser: [WebKit, Mobile Safari]</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto">workflow:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="name: Playwright Tests
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '20'
- name: Cache Node modules
id: npm_cache
uses: actions/cache@v3
with:
key: nm-pw-${{ hashFiles('yarn.lock') }}
path: |
node_modules
~/.cache/ms-playwright
- if: ${{ steps.npm_cache.outputs.cache-hit != 'true' }}
run: |
yarn install --frozen-lockfile
npx playwright install --with-deps
npx playwright install-deps
- name: Run Playwright tests
run: yarn playwright test
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30"><pre class="notranslate"><span class="pl-ent">name</span>: <span class="pl-s">Playwright Tests</span>
<span class="pl-ent">on</span>:
<span class="pl-ent">push</span>:
<span class="pl-ent">branches</span>: <span class="pl-s">[main, master]</span>
<span class="pl-ent">pull_request</span>:
<span class="pl-ent">branches</span>: <span class="pl-s">[main, master]</span>
<span class="pl-ent">jobs</span>:
<span class="pl-ent">test</span>:
<span class="pl-ent">timeout-minutes</span>: <span class="pl-c1">5</span>
<span class="pl-ent">runs-on</span>: <span class="pl-s">ubuntu-latest</span>
<span class="pl-ent">steps</span>:
- <span class="pl-ent">uses</span>: <span class="pl-s">actions/checkout@v3</span>
- <span class="pl-ent">uses</span>: <span class="pl-s">actions/setup-node@v3</span>
<span class="pl-ent">with</span>:
<span class="pl-ent">node-version</span>: <span class="pl-s"><span class="pl-pds">'</span>20<span class="pl-pds">'</span></span>
- <span class="pl-ent">name</span>: <span class="pl-s">Cache Node modules</span>
<span class="pl-ent">id</span>: <span class="pl-s">npm_cache</span>
<span class="pl-ent">uses</span>: <span class="pl-s">actions/cache@v3</span>
<span class="pl-ent">with</span>:
<span class="pl-ent">key</span>: <span class="pl-s">nm-pw-${{ hashFiles('yarn.lock') }}</span>
<span class="pl-ent">path</span>: <span class="pl-s">|</span>
<span class="pl-s"> node_modules</span>
<span class="pl-s"> ~/.cache/ms-playwright</span>
<span class="pl-s"></span>
<span class="pl-s"></span> - <span class="pl-ent">if</span>: <span class="pl-s">${{ steps.npm_cache.outputs.cache-hit != 'true' }}</span>
<span class="pl-ent">run</span>: <span class="pl-s">|</span>
<span class="pl-s"> yarn install --frozen-lockfile</span>
<span class="pl-s"> npx playwright install --with-deps</span>
<span class="pl-s"> npx playwright install-deps</span>
<span class="pl-s"></span>
<span class="pl-s"></span> - <span class="pl-ent">name</span>: <span class="pl-s">Run Playwright tests</span>
<span class="pl-ent">run</span>: <span class="pl-s">yarn playwright test</span>
- <span class="pl-ent">uses</span>: <span class="pl-s">actions/upload-artifact@v3</span>
<span class="pl-ent">if</span>: <span class="pl-s">always()</span>
<span class="pl-ent">with</span>:
<span class="pl-ent">name</span>: <span class="pl-s">playwright-report</span>
<span class="pl-ent">path</span>: <span class="pl-s">playwright-report/</span>
<span class="pl-ent">retention-days</span>: <span class="pl-c1">30</span></pre></div>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto"><a href="https://github.com/budarin/zustand-clean-architecture">repository</a></p>
<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { defineConfig, devices } from '@playwright/test';
/**
* Read environment variables from file.
* https://github.com/motdotla/dotenv
*/
// require('dotenv').config();
/**
* See https://playwright.dev/docs/test-configuration.
*/
export default defineConfig({
testDir: './src/server/__tests__',
/* Run tests in files in parallel */
fullyParallel: true,
/* Fail the build on CI if you accidentally left test.only in the source code. */
forbidOnly: !!process.env.CI,
/* Retry on CI only */
retries: process.env.CI ? 2 : 0,
/* Opt out of parallel tests on CI. */
workers: process.env.CI ? 1 : undefined,
/* Reporter to use. See https://playwright.dev/docs/test-reporters */
reporter: 'list',
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
baseURL: 'http://127.0.0.1:3000',
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: 'on-first-retry',
},
/* Configure projects for major browsers */
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'] },
},
{
name: 'firefox',
use: { ...devices['Desktop Firefox'] },
},
{
name: 'webkit',
use: { ...devices['Desktop Safari'] },
},
// Test against mobile viewports. */
{
name: 'Mobile Chrome',
use: { ...devices['Pixel 5'] },
},
{
name: 'Mobile Safari',
use: { ...devices['iPhone 12'] },
},
/* Test against branded browsers. */
// {
// name: 'Microsoft Edge',
// use: { ...devices['Desktop Edge'], channel: 'msedge' },
// },
// {
// name: 'Google Chrome',
// use: { ..devices['Desktop Chrome'], channel: 'chrome' },
// },
],
/* Run your local dev server before starting the tests */
webServer: {
command: 'yarn start-client',
url: 'http://127.0.0.1:3000/',
reuseExistingServer: !process.env.CI,
},
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span><span class="pl-kos">,</span> <span class="pl-s1">devices</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span><span class="pl-kos">;</span>
<span class="pl-c">/**</span>
<span class="pl-c"> * Read environment variables from file.</span>
<span class="pl-c"> * https://github.com/motdotla/dotenv</span>
<span class="pl-c"> */</span>
<span class="pl-c">// require('dotenv').config();</span>
<span class="pl-c">/**</span>
<span class="pl-c"> * See https://playwright.dev/docs/test-configuration.</span>
<span class="pl-c"> */</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">testDir</span>: <span class="pl-s">'./src/server/__tests__'</span><span class="pl-kos">,</span>
<span class="pl-c">/* Run tests in files in parallel */</span>
<span class="pl-c1">fullyParallel</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c">/* Fail the build on CI if you accidentally left test.only in the source code. */</span>
<span class="pl-c1">forbidOnly</span>: <span class="pl-c1">!</span><span class="pl-c1">!</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span><span class="pl-kos">,</span>
<span class="pl-c">/* Retry on CI only */</span>
<span class="pl-c1">retries</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">2</span> : <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-c">/* Opt out of parallel tests on CI. */</span>
<span class="pl-c1">workers</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span> ? <span class="pl-c1">1</span> : <span class="pl-c1">undefined</span><span class="pl-kos">,</span>
<span class="pl-c">/* Reporter to use. See https://playwright.dev/docs/test-reporters */</span>
<span class="pl-c1">reporter</span>: <span class="pl-s">'list'</span><span class="pl-kos">,</span>
<span class="pl-c">/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span>
<span class="pl-c">/* Base URL to use in actions like `await page.goto('/')`. */</span>
<span class="pl-c1">baseURL</span>: <span class="pl-s">'http://127.0.0.1:3000'</span><span class="pl-kos">,</span>
<span class="pl-c">/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */</span>
<span class="pl-c1">trace</span>: <span class="pl-s">'on-first-retry'</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c">/* Configure projects for major browsers */</span>
<span class="pl-c1">projects</span>: <span class="pl-kos">[</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'chromium'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Chrome'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'firefox'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Firefox'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'webkit'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Desktop Safari'</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">// Test against mobile viewports. */</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'Mobile Chrome'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'Pixel 5'</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">{</span>
<span class="pl-c1">name</span>: <span class="pl-s">'Mobile Safari'</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span> ...<span class="pl-s1">devices</span><span class="pl-kos">[</span><span class="pl-s">'iPhone 12'</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">/* Test against branded browsers. */</span>
<span class="pl-c">// {</span>
<span class="pl-c">// name: 'Microsoft Edge',</span>
<span class="pl-c">// use: { ...devices['Desktop Edge'], channel: 'msedge' },</span>
<span class="pl-c">// },</span>
<span class="pl-c">// {</span>
<span class="pl-c">// name: 'Google Chrome',</span>
<span class="pl-c">// use: { ..devices['Desktop Chrome'], channel: 'chrome' },</span>
<span class="pl-c">// },</span>
<span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-c">/* Run your local dev server before starting the tests */</span>
<span class="pl-c1">webServer</span>: <span class="pl-kos">{</span>
<span class="pl-c1">command</span>: <span class="pl-s">'yarn start-client'</span><span class="pl-kos">,</span>
<span class="pl-c1">url</span>: <span class="pl-s">'http://127.0.0.1:3000/'</span><span class="pl-kos">,</span>
<span class="pl-c1">reuseExistingServer</span>: <span class="pl-c1">!</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">CI</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>[make 1st PR]</li>
<li>[Merge it (tests in GHA will pass successfully)]</li>
</ul>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/8055157/247968299-8bd20de5-f9ed-481b-bf7d-bbcca8366506.png"><img width="1047" alt="image" src="https://user-images.githubusercontent.com/8055157/247968299-8bd20de5-f9ed-481b-bf7d-bbcca8366506.png" style="max-width: 100%;"></a>
- [Make another PR]
- [tests in GHA will fail with the error]
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/8055157/247969779-b1b1e229-8d01-4fad-ad42-09d2df537c44.png"><img width="1047" alt="image" src="https://user-images.githubusercontent.com/8055157/247969779-b1b1e229-8d01-4fad-ad42-09d2df537c44.png" style="max-width: 100%;"></a>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/8055157/247968641-0b4b66af-516e-400b-92f8-739292759ea5.png"><img width="1047" alt="image" src="https://user-images.githubusercontent.com/8055157/247968641-0b4b66af-516e-400b-92f8-739292759ea5.png" style="max-width: 100%;"></a>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/8055157/247968784-066a13fa-2f57-4491-b152-f070204ff8bb.png"><img width="1047" alt="image" src="https://user-images.githubusercontent.com/8055157/247968784-066a13fa-2f57-4491-b152-f070204ff8bb.png" style="max-width: 100%;"></a>
<p dir="auto"><strong>Expected</strong><br>
Expected to pass tests when cache for the dependencies is created</p>
<p dir="auto"><strong>Actual</strong><br>
Tests pass only if there is no cache with dependencies</p>
<p dir="auto">However, there is a strange thing - not all tests fail, tests only for Webkit and Mobile Safari do not pass</p> | <h3 dir="auto">Your question</h3>
<p dir="auto"><g-emoji class="g-emoji" alias="wave" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44b.png">👋</g-emoji> I have a question about using regex.</p>
<p dir="auto">Say there is an element on page as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<img .... data-permalink="2021-08-09/hello-world.png">"><pre class="notranslate"><code class="notranslate"><img .... data-permalink="2021-08-09/hello-world.png">
</code></pre></div>
<p dir="auto">I would like to use regex to match the element like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="await page.waitForSelector( 'img[data-permalink="/*world*/i"' );"><pre class="notranslate"><code class="notranslate">await page.waitForSelector( 'img[data-permalink="/*world*/i"' );
</code></pre></div>
<p dir="auto">However when I try using regex in the Playwright debugger it does not appear to match anything, unfortunately.<br>
Question: is this possible? If not, is this something that may be on the roadmap?</p>
<hr>
<p dir="auto">Background: in my use case, I am attempting to verify that a file upload has taken place as expected. I have only the file name to work with, and the file name is added as an attribute to the resulting <code class="notranslate"><img></code> element.<br>
The caveat is that the attribute holding the file name can possibly not match the actual file name 100%, due to sanitization as well as duplicate existing file resulting in something like this possibly happening:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2021-08-09/hello-world-1.png"><pre class="notranslate"><code class="notranslate">2021-08-09/hello-world-1.png
</code></pre></div>
<p dir="auto">Now, I realize I can wait for the <code class="notranslate"><img></code> element, then extract the <code class="notranslate">data-permalink</code> attribute from the resulting ElementHandle, then check if it contains <code class="notranslate">world</code>, but that is a bit tedious.</p>
<p dir="auto">Thanks!</p> | 0 |
<p dir="auto">I use the cifar10 model train my own TFRecord dataset ,it's running on Ubuntu 14.4 without error,but getting these errors when I run it on Mac or GPU server。And I am sure the labels of my dataset are right ,I don't know why get labels bigger than 10 ,I just have 10 classifications。</p>
<p dir="auto">I use this code write images and labels in binfile:</p>
<p dir="auto">image_raw = image.tostring()<br>
example = tf.train.Example(features=tf.train.Features(feature={<br>
'image_raw' : _bytes_feature(image_raw),<br>
'height' : _int64_feature(image.shape[0]),<br>
'width' : _int64_feature(image.shape[1]),<br>
'deepth' : _int64_feature(image.shape[2]),<br>
'label' : _int64_feature(label)<br>
}))<br>
writer.write(example.SerializeToString())<br>
writer.close()</p>
<p dir="auto">The errors:</p>
<p dir="auto">W tensorflow/core/framework/op_kernel.cc:975] Invalid argument: Received a label value of 245 which is outside the valid range of [0, 10). Label values: 180 96 226 166 162 179 147 115 162 141 150 136 129 118 162 141 78 154 133 155 89 184 116 179 176 70 209 177 65 177 89 36 80 139 117 187 115 182 106 42 203 120 48 72 96 126 74 123 134 115 112 154 128 163 64 113 35 140 198 193 189 67 164 110 117 61 215 186 189 84 95 206 163 82 122 160 37 179 236 157 140 181 178 128 67 114 43 211 143 70 0 91 184 142 172 127 80 160 127 90 62 151 158 23 180 192 21 97 125 94 98 136 125 190 158 128 119 30 198 111 206 66 137 126 245 210 158 188<br>
Traceback (most recent call last):<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 137, in <br>
tf.app.run()<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run<br>
sys.exit(main(sys.argv[:1] + flags_passthrough))<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 133, in main<br>
train()<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 103, in train<br>
_, loss_value = sess.run([train_op, loss])<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 766, in run<br>
run_metadata_ptr)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 964, in _run<br>
feed_dict_string, options, run_metadata)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 1014, in _do_run<br>
target_list, options, run_metadata)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 1034, in _do_call<br>
raise type(e)(node_def, op, message)<br>
tensorflow.python.framework.errors_impl.InvalidArgumentError: Received a label value of 245 which is outside the valid range of [0, 10). Label values: 180 96 226 166 162 179 147 115 162 141 150 136 129 118 162 141 78 154 133 155 89 184 116 179 176 70 209 177 65 177 89 36 80 139 117 187 115 182 106 42 203 120 48 72 96 126 74 123 134 115 112 154 128 163 64 113 35 140 198 193 189 67 164 110 117 61 215 186 189 84 95 206 163 82 122 160 37 179 236 157 140 181 178 128 67 114 43 211 143 70 0 91 184 142 172 127 80 160 127 90 62 151 158 23 180 192 21 97 125 94 98 136 125 190 158 128 119 30 198 111 206 66 137 126 245 210 158 188<br>
[[Node: cross_entropy_per_example/cross_entropy_per_example = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](softmax_linear/softmax_linear, Cast_4)]]</p>
<p dir="auto">Caused by op u'cross_entropy_per_example/cross_entropy_per_example', defined at:<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 137, in <br>
tf.app.run()<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run<br>
sys.exit(main(sys.argv[:1] + flags_passthrough))<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 133, in main<br>
train()<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 76, in train<br>
loss = cifar10.loss(logits, labels)<br>
File "/Users/yangk/cifar10/cifar10.py", line 289, in loss<br>
logits, labels, name='cross_entropy_per_example')<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1537, in sparse_softmax_cross_entropy_with_logits<br>
precise_logits, labels, name=name)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 2378, in _sparse_softmax_cross_entropy_with_logits<br>
features=features, labels=labels, name=name)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op<br>
op_def=op_def)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 2371, in create_op<br>
original_op=self._default_original_op, op_def=op_def)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 1258, in <strong>init</strong><br>
self._traceback = _extract_stack()</p>
<p dir="auto">InvalidArgumentError (see above for traceback): Received a label value of 245 which is outside the valid range of [0, 10). Label values: 180 96 226 166 162 179 147 115 162 141 150 136 129 118 162 141 78 154 133 155 89 184 116 179 176 70 209 177 65 177 89 36 80 139 117 187 115 182 106 42 203 120 48 72 96 126 74 123 134 115 112 154 128 163 64 113 35 140 198 193 189 67 164 110 117 61 215 186 189 84 95 206 163 82 122 160 37 179 236 157 140 181 178 128 67 114 43 211 143 70 0 91 184 142 172 127 80 160 127 90 62 151 158 23 180 192 21 97 125 94 98 136 125 190 158 128 119 30 198 111 206 66 137 126 245 210 158 188<br>
[[Node: cross_entropy_per_example/cross_entropy_per_example = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](softmax_linear/softmax_linear, Cast_4)]]</p> | <p dir="auto">I use cifar10 model training my dataset,which is made by tf.python_io.TFRecordWriter() .<br>
I am sure labels in dataset are right,because it's running ok on Ubuntu PC but get Error Invalid argument: Received a label value of 255 which is outside the valid range of [0, 10) on Mac and GPU Server.</p>
<p dir="auto">W tensorflow/core/framework/op_kernel.cc:975] Invalid argument: Received a label value of 255 which is outside the valid range of [0, 10). Label values: 65 229 184 161 102 117 112 160 66 93 107 117 131 122 129 132 113 163 149 130 75 52 109 84 161 165 99 203 82 42 57 179 155 63 126 49 172 50 144 224 152 220 164 82 195 169 171 125 107 127 70 60 93 115 165 143 78 116 60 153 113 62 89 175 125 90 85 178 167 200 133 168 125 92 62 93 166 141 98 172 102 103 72 179 138 108 49 176 46 70 55 101 141 144 107 126 60 146 108 77 125 59 58 109 171 107 63 151 55 93 172 131 52 128 75 167 255 97 108 171 113 130 77 166 150 132 62 196<br>
Traceback (most recent call last):<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 137, in <br>
tf.app.run()<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run<br>
sys.exit(main(sys.argv[:1] + flags_passthrough))<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 133, in main<br>
train()<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 103, in train<br>
_, loss_value = sess.run([train_op, loss])<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 766, in run<br>
run_metadata_ptr)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 964, in _run<br>
feed_dict_string, options, run_metadata)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 1014, in _do_run<br>
target_list, options, run_metadata)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/client/session.py", line 1034, in _do_call<br>
raise type(e)(node_def, op, message)<br>
tensorflow.python.framework.errors_impl.InvalidArgumentError: Received a label value of 255 which is outside the valid range of [0, 10). Label values: 65 229 184 161 102 117 112 160 66 93 107 117 131 122 129 132 113 163 149 130 75 52 109 84 161 165 99 203 82 42 57 179 155 63 126 49 172 50 144 224 152 220 164 82 195 169 171 125 107 127 70 60 93 115 165 143 78 116 60 153 113 62 89 175 125 90 85 178 167 200 133 168 125 92 62 93 166 141 98 172 102 103 72 179 138 108 49 176 46 70 55 101 141 144 107 126 60 146 108 77 125 59 58 109 171 107 63 151 55 93 172 131 52 128 75 167 255 97 108 171 113 130 77 166 150 132 62 196<br>
[[Node: cross_entropy_per_example/cross_entropy_per_example = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](softmax_linear/softmax_linear, Cast_4)]]</p>
<p dir="auto">Caused by op u'cross_entropy_per_example/cross_entropy_per_example', defined at:<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 137, in <br>
tf.app.run()<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/platform/app.py", line 43, in run<br>
sys.exit(main(sys.argv[:1] + flags_passthrough))<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 133, in main<br>
train()<br>
File "/Users/yangk/cifar10/cifar10_train.py", line 76, in train<br>
loss = cifar10.loss(logits, labels)<br>
File "/Users/yangk/cifar10/cifar10.py", line 289, in loss<br>
logits, labels, name='cross_entropy_per_example')<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/ops/nn_ops.py", line 1537, in sparse_softmax_cross_entropy_with_logits<br>
precise_logits, labels, name=name)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/ops/gen_nn_ops.py", line 2378, in _sparse_softmax_cross_entropy_with_logits<br>
features=features, labels=labels, name=name)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 763, in apply_op<br>
op_def=op_def)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 2371, in create_op<br>
original_op=self._default_original_op, op_def=op_def)<br>
File "/Library/Python/2.7/site-packages/tensorflow/python/framework/ops.py", line 1258, in <strong>init</strong><br>
self._traceback = _extract_stack()</p>
<p dir="auto">InvalidArgumentError (see above for traceback): Received a label value of 255 which is outside the valid range of [0, 10). Label values: 65 229 184 161 102 117 112 160 66 93 107 117 131 122 129 132 113 163 149 130 75 52 109 84 161 165 99 203 82 42 57 179 155 63 126 49 172 50 144 224 152 220 164 82 195 169 171 125 107 127 70 60 93 115 165 143 78 116 60 153 113 62 89 175 125 90 85 178 167 200 133 168 125 92 62 93 166 141 98 172 102 103 72 179 138 108 49 176 46 70 55 101 141 144 107 126 60 146 108 77 125 59 58 109 171 107 63 151 55 93 172 131 52 128 75 167 255 97 108 171 113 130 77 166 150 132 62 196<br>
[[Node: cross_entropy_per_example/cross_entropy_per_example = SparseSoftmaxCrossEntropyWithLogits[T=DT_FLOAT, Tlabels=DT_INT64, _device="/job:localhost/replica:0/task:0/cpu:0"](softmax_linear/softmax_linear, Cast_4)]]</p> | 1 |
<p dir="auto">[ x] feature request</p>
<p dir="auto"><strong>Current behavior</strong><br>
currently renderer.setElementStyle can not set !important<br>
renderer.setElementStyle(el, styleProperty, styleValue)</p>
<p dir="auto"><strong>Expected behavior</strong><br>
renderer.setElementStyle(el, styleProperty, styleValue, important)<br>
important could be a optional boolean</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
to be able to set !important programmatically</p>
<p dir="auto">Angular 2.0.2</p>
<ul dir="auto">
<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"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Both options will fail:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ngStyle]="{'color':'red !important'}"
[style.color]="'red !important'""><pre class="notranslate"><code class="notranslate">[ngStyle]="{'color':'red !important'}"
[style.color]="'red !important'"
</code></pre></div>
<p dir="auto"><strong>Expected behavior</strong><br>
<code class="notranslate">!important</code> is valid css usecase.</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
<a href="https://plnkr.co/edit/abOMwv3tcYnnjqjCe4ff?p=preview" rel="nofollow">https://plnkr.co/edit/abOMwv3tcYnnjqjCe4ff?p=preview</a></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0</li>
<li><strong>Browser:</strong> [all ]</li>
<li><strong>Language:</strong> [TypeScript 1.8.11]</li>
</ul> | 1 |
<p dir="auto">Error log:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Starting Deno language server...
version: 1.34.1 (release, x86_64-unknown-linux-gnu)
executable: /home/olivier-faure/.cargo/bin/deno
Connected to "Visual Studio Code" 1.78.2
Enabling import suggestions for: https://deno.land
Server ready.
============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.
Platform: linux x86_64
Version: 1.34.1
Args: ["/home/olivier-faure/.cargo/bin/deno", "lsp"]
thread '<unnamed>' panicked at 'called `Option::unwrap()` on a `None` value', /home/olivier-faure/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dprint-swc-ext-0.9.0/src/view/generated.rs:14469:17
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
[Info - 1:25:24 PM] Connection to server got closed. Server will restart."><pre class="notranslate">Starting Deno language server...
version: 1.34.1 (release, x86_64-unknown-linux-gnu)
executable: /home/olivier-faure/.cargo/bin/deno
Connected to <span class="pl-s"><span class="pl-pds">"</span>Visual Studio Code<span class="pl-pds">"</span></span> 1.78.2
Enabling import suggestions for: https://deno.land
Server ready.
============================================================
Deno has panicked. This is a bug <span class="pl-k">in</span> Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var <span class="pl-c1">set</span> and include the backtrace <span class="pl-k">in</span> your report.
Platform: linux x86_64
Version: 1.34.1
Args: [<span class="pl-s"><span class="pl-pds">"</span>/home/olivier-faure/.cargo/bin/deno<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>lsp<span class="pl-pds">"</span></span>]
thread <span class="pl-s"><span class="pl-pds">'</span><unnamed><span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>called `Option::unwrap()` on a `None` value<span class="pl-pds">'</span></span>, /home/olivier-faure/.cargo/registry/src/index.crates.io-6f17d22bba15001f/dprint-swc-ext-0.9.0/src/view/generated.rs:14469:17
note: run with <span class="pl-s"><span class="pl-pds">`</span>RUST_BACKTRACE=1<span class="pl-pds">`</span></span> environment variable to display a backtrace
[Info - 1:25:24 PM] Connection to server got closed. Server will restart.</pre></div>
<p dir="auto"><a href="https://gist.github.com/PoignardAzur/b25b3dee719c51ec9c274ce2dd41c681">Full log here</a>, though it's mostly the same on loop.</p>
<p dir="auto">The error reccommends running the language server with RUST_BACKTRACE=1, but I don't know how to do that from VsCode. I installed deno with <code class="notranslate">cargo install</code>.</p>
<p dir="auto"><code class="notranslate">deno lsp</code> alone doesn't give me any error.</p> | <p dir="auto">Deno has panicked. This is a bug in Deno. Please report this<br>
at <a href="https://github.com/denoland/deno/issues/new">https://github.com/denoland/deno/issues/new</a>.<br>
If you can reliably reproduce this panic, include the<br>
reproduction steps and re-run with the RUST_BACKTRACE=1 env<br>
var set and include the backtrace in your report.</p>
<p dir="auto">Platform: linux x86_64<br>
Version: 1.33.3<br>
Args: ["/home/.../.cargo/bin/deno", "lsp"]</p>
<p dir="auto">thread '' panicked at 'called <code class="notranslate">Option::unwrap()</code> on a <code class="notranslate">None</code> value', /home/.../.cargo/registry/src/index.crates.io-6f17d22bba15001f/dprint-swc-ext-0.9.0/src/view/generated.rs:14469:17<br>
note: run with <code class="notranslate">RUST_BACKTRACE=1</code> environment variable to display a backtrace<br>
[Error - 11:23:00] The Deno Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted. See the output for more information</p> | 1 |
<p dir="auto">Canonical example <code class="notranslate">[None, ..10]</code> doesn't work for a generic <code class="notranslate">[Option<T>, ..10]</code>. It's possible to write a macro to accomplish this, but it sucks that that's necessary.</p> | <p dir="auto">This should be fixable by special casing this (the type isn't copyable, but for this specific case the variant is).</p>
<p dir="auto">This problem only exists with fixed-size vectors since <code class="notranslate">vec::from_fn(10, |_| None)</code> works with non-copyable types.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikomatsakis/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikomatsakis">@nikomatsakis</a> thinks this should be fixable</p> | 1 |
<p dir="auto">I have been using the fill_between function before and recently I have started receiving an <code class="notranslate">IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed</code> . I also tried some examples using the fill_between function in your documentation (<a href="https://matplotlib.org/stable/gallery/lines_bars_and_markers/fill_between_alpha.html#sphx-glr-gallery-lines-bars-and-markers-fill-between-alpha-py" rel="nofollow">https://matplotlib.org/stable/gallery/lines_bars_and_markers/fill_between_alpha.html#sphx-glr-gallery-lines-bars-and-markers-fill-between-alpha-py</a>) and was receiving the same error each time. I am currently using matplotlib version 3.5.1 and python version 3.10.6</p> | <h3 dir="auto">Bug summary</h3>
<p dir="auto">There is a test in <code class="notranslate">astropy</code> that started breaking when using matplotlib + numpy 1.24.0.dev0+896.g5ecaf36cd . Same error using stable matplotlib and matplotlib from the nightly wheel.</p>
<p dir="auto">The actual test is at <a href="https://github.com/astropy/astropy/blob/75f9b60b5521ed8dae08611ddf766c95ce421801/astropy/visualization/tests/test_units.py#L24">https://github.com/astropy/astropy/blob/75f9b60b5521ed8dae08611ddf766c95ce421801/astropy/visualization/tests/test_units.py#L24</a> but I will give reproducible example without astropy below.</p>
<p dir="auto">Example log with the astropy failure: <a href="https://github.com/astropy/astropy/actions/runs/3198205490/jobs/5222440278">https://github.com/astropy/astropy/actions/runs/3198205490/jobs/5222440278</a></p>
<h3 dir="auto">Code for reproduction</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib
import matplotlib.pyplot as plt
matplotlib.use('agg')
plt.figure()
plt.plot([1, 2, 3], [3, 4, 5], label='label')
plt.plot([1.05, 2.10, 3.15], [3.050, 3.025, 3.010])
plt.fill_between([1, 3], [3, 5], [3.050, 3.010]) # IndexError"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</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">matplotlib</span>.<span class="pl-en">use</span>(<span class="pl-s">'agg'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], [<span class="pl-c1">3</span>, <span class="pl-c1">4</span>, <span class="pl-c1">5</span>], <span class="pl-s1">label</span><span class="pl-c1">=</span><span class="pl-s">'label'</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">plot</span>([<span class="pl-c1">1.05</span>, <span class="pl-c1">2.10</span>, <span class="pl-c1">3.15</span>], [<span class="pl-c1">3.050</span>, <span class="pl-c1">3.025</span>, <span class="pl-c1">3.010</span>])
<span class="pl-s1">plt</span>.<span class="pl-en">fill_between</span>([<span class="pl-c1">1</span>, <span class="pl-c1">3</span>], [<span class="pl-c1">3</span>, <span class="pl-c1">5</span>], [<span class="pl-c1">3.050</span>, <span class="pl-c1">3.010</span>]) <span class="pl-c"># IndexError</span></pre></div>
<h3 dir="auto">Actual outcome</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File .../matplotlib/pyplot.py:2514, in fill_between(x, y1, y2, where, interpolate, step, data, **kwargs)
2510 @_copy_docstring_and_deprecators(Axes.fill_between)
2511 def fill_between(
2512 x, y1, y2=0, where=None, interpolate=False, step=None, *,
2513 data=None, **kwargs):
-> 2514 return gca().fill_between(
2515 x, y1, y2=y2, where=where, interpolate=interpolate, step=step,
2516 **({"data": data} if data is not None else {}), **kwargs)
File .../matplotlib/__init__.py:1423, in _preprocess_data.<locals>.inner(ax, data, *args, **kwargs)
1420 @functools.wraps(func)
1421 def inner(ax, *args, data=None, **kwargs):
1422 if data is None:
-> 1423 return func(ax, *map(sanitize_sequence, args), **kwargs)
1425 bound = new_sig.bind(ax, *args, **kwargs)
1426 auto_label = (bound.arguments.get(label_namer)
1427 or bound.kwargs.get(label_namer))
File .../matplotlib/axes/_axes.py:5335, in Axes.fill_between(self, x, y1, y2, where, interpolate, step, **kwargs)
5333 def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
5334 step=None, **kwargs):
-> 5335 return self._fill_between_x_or_y(
5336 "x", x, y1, y2,
5337 where=where, interpolate=interpolate, step=step, **kwargs)
File .../matplotlib/axes/_axes.py:5263, in Axes._fill_between_x_or_y(self, ind_dir, ind, dep1, dep2, where, interpolate, step, **kwargs)
5259 ind, dep1, dep2 = np.broadcast_arrays(
5260 np.atleast_1d(ind), dep1, dep2, subok=True)
5262 polys = []
-> 5263 for idx0, idx1 in cbook.contiguous_regions(where):
5264 indslice = ind[idx0:idx1]
5265 dep1slice = dep1[idx0:idx1]
File .../matplotlib/cbook/__init__.py:1333, in contiguous_regions(mask)
1330 return []
1332 # Find the indices of region changes, and correct offset
-> 1333 idx, = np.nonzero(mask[:-1] != mask[1:])
1334 idx += 1
1336 # List operations are faster for moderately sized arrays
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed"><pre class="notranslate"><code class="notranslate">File .../matplotlib/pyplot.py:2514, in fill_between(x, y1, y2, where, interpolate, step, data, **kwargs)
2510 @_copy_docstring_and_deprecators(Axes.fill_between)
2511 def fill_between(
2512 x, y1, y2=0, where=None, interpolate=False, step=None, *,
2513 data=None, **kwargs):
-> 2514 return gca().fill_between(
2515 x, y1, y2=y2, where=where, interpolate=interpolate, step=step,
2516 **({"data": data} if data is not None else {}), **kwargs)
File .../matplotlib/__init__.py:1423, in _preprocess_data.<locals>.inner(ax, data, *args, **kwargs)
1420 @functools.wraps(func)
1421 def inner(ax, *args, data=None, **kwargs):
1422 if data is None:
-> 1423 return func(ax, *map(sanitize_sequence, args), **kwargs)
1425 bound = new_sig.bind(ax, *args, **kwargs)
1426 auto_label = (bound.arguments.get(label_namer)
1427 or bound.kwargs.get(label_namer))
File .../matplotlib/axes/_axes.py:5335, in Axes.fill_between(self, x, y1, y2, where, interpolate, step, **kwargs)
5333 def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
5334 step=None, **kwargs):
-> 5335 return self._fill_between_x_or_y(
5336 "x", x, y1, y2,
5337 where=where, interpolate=interpolate, step=step, **kwargs)
File .../matplotlib/axes/_axes.py:5263, in Axes._fill_between_x_or_y(self, ind_dir, ind, dep1, dep2, where, interpolate, step, **kwargs)
5259 ind, dep1, dep2 = np.broadcast_arrays(
5260 np.atleast_1d(ind), dep1, dep2, subok=True)
5262 polys = []
-> 5263 for idx0, idx1 in cbook.contiguous_regions(where):
5264 indslice = ind[idx0:idx1]
5265 dep1slice = dep1[idx0:idx1]
File .../matplotlib/cbook/__init__.py:1333, in contiguous_regions(mask)
1330 return []
1332 # Find the indices of region changes, and correct offset
-> 1333 idx, = np.nonzero(mask[:-1] != mask[1:])
1334 idx += 1
1336 # List operations are faster for moderately sized arrays
IndexError: too many indices for array: array is 0-dimensional, but 1 were indexed
</code></pre></div>
<h3 dir="auto">Expected outcome</h3>
<p dir="auto">No error.</p>
<h3 dir="auto">Additional information</h3>
<p dir="auto">Only with numpy 1.24.0.dev0+896.g5ecaf36cd but not with stable numpy.</p>
<h3 dir="auto">Operating system</h3>
<p dir="auto">Debian or Ubuntu</p>
<h3 dir="auto">Matplotlib Version</h3>
<p dir="auto">stable or nightly</p>
<h3 dir="auto">Matplotlib Backend</h3>
<p dir="auto">agg</p>
<h3 dir="auto">Python version</h3>
<p dir="auto">3.10 and 3.11</p>
<h3 dir="auto">Jupyter version</h3>
<p dir="auto">N/A</p>
<h3 dir="auto">Installation</h3>
<p dir="auto">pip</p> | 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">ansible-playbook</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.2.0"><pre class="notranslate"><code class="notranslate">ansible 2.2.2.0
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">Debian Jessie</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">Duplicate role in a playbook is played only once, this changes behaviour compared to ansible-playbook 2.2.1.0</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: my_hosts
roles:
- { role: a }
- { role: a }"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">my_hosts</span>
<span class="pl-ent">roles</span>:
- <span class="pl-s">{ role: a }</span>
- <span class="pl-s">{ role: a }</span></pre></div>
<p dir="auto">Run:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -i hosts playbook.yaml"><pre class="notranslate"><code class="notranslate">ansible-playbook -i hosts playbook.yaml
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">with 2.2.1.0:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [my_hosts] ****************************************************************
TASK [setup] *******************************************************************
ok: [my_host]
TASK [a : debug] ***************************************************************
ok: [my_host] => {
"msg": "test a"
}
TASK [a : debug] ***************************************************************
ok: [my_host] => {
"msg": "test a"
}
PLAY RECAP *********************************************************************
my_host : ok=3 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [my_hosts] ****************************************************************
TASK [setup] *******************************************************************
ok: [my_host]
TASK [a : debug] ***************************************************************
ok: [my_host] => {
"msg": "test a"
}
TASK [a : debug] ***************************************************************
ok: [my_host] => {
"msg": "test a"
}
PLAY RECAP *********************************************************************
my_host : ok=3 changed=0 unreachable=0 failed=0
</code></pre></div>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">with 2.2.2.0:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [my_hosts] ****************************************************************
TASK [setup] *******************************************************************
ok: [my_host]
TASK [a : debug] ***************************************************************
ok: [my_host] => {
"msg": "test a"
}
PLAY RECAP *********************************************************************
my_host : ok=2 changed=0 unreachable=0 failed=0"><pre class="notranslate"><code class="notranslate">PLAY [my_hosts] ****************************************************************
TASK [setup] *******************************************************************
ok: [my_host]
TASK [a : debug] ***************************************************************
ok: [my_host] => {
"msg": "test a"
}
PLAY RECAP *********************************************************************
my_host : ok=2 changed=0 unreachable=0 failed=0
</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">ec2_ami_find</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
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/usr/share/ansible', u'library']
python version = 2.7.13 (default, Apr 4 2017, 08:44:49) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]"><pre class="notranslate"><code class="notranslate">ansible 2.3.0.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/usr/share/ansible', u'library']
python version = 2.7.13 (default, Apr 4 2017, 08:44:49) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<p dir="auto">pip install --upgrade ansible</p>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">MAC OSX</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">with ansible 2.2 ec2_ami_find was working. Right after the upgrade it started failing with 'Image' object has no attribute 'creationDate' error.<br>
I have quick workaround commenting out line 393 in ec2_ami_find.py but the playbook work only on my local laptop that way.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: Some name
ec2_ami_find:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
region: "{{ vpc_region }}"
name: "myAMI-*"
sort: name
sort_order: descending
sort_end: 1
no_result_action: fail
state: available
register: ami
"><pre class="notranslate"><code class="notranslate"> - name: Some name
ec2_ami_find:
aws_access_key: "{{ aws_access_key }}"
aws_secret_key: "{{ aws_secret_key }}"
region: "{{ vpc_region }}"
name: "myAMI-*"
sort: name
sort_order: descending
sort_end: 1
no_result_action: fail
state: available
register: ami
</code></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">to return AMIs</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<p dir="auto">Using module file /usr/local/lib/python2.7/site-packages/ansible/modules/cloud/amazon/ec2_ami_find.py<br>
ESTABLISH LOCAL CONNECTION FOR USER: ysimeonov<br>
EXEC /bin/sh -c 'echo ~ && sleep 0'<br>
EXEC /bin/sh -c '( umask 77 && mkdir -p "<code class="notranslate">echo /Users/ysimeonov/.ansible/tmp/ansible-tmp-1493146368.66-222958382107587</code>" && echo ansible-tmp-1493146368.66-222958382107587="<code class="notranslate">echo /Users/ysimeonov/.ansible/tmp/ansible-tmp-1493146368.66-222958382107587</code>" ) && sleep 0'<br>
PUT /var/folders/6f/dxlpfp7521s25qc6gk1pr4jr0000gp/T/tmpQeCvFU TO /Users/ysimeonov/.ansible/tmp/ansible-tmp-1493146368.66-222958382107587/ec2_ami_find.py<br>
EXEC /bin/sh -c 'chmod u+x /Users/ysimeonov/.ansible/tmp/ansible-tmp-1493146368.66-222958382107587/ /Users/ysimeonov/.ansible/tmp/ansible-tmp-1493146368.66-222958382107587/ec2_ami_find.py && sleep 0'<br>
EXEC /bin/sh -c '/usr/bin/python /Users/ysimeonov/.ansible/tmp/ansible-tmp-1493146368.66-222958382107587/ec2_ami_find.py; rm -rf "/Users/ysimeonov/.ansible/tmp/ansible-tmp-1493146368.66-222958382107587/" > /dev/null 2>&1 && sleep 0'<br>
The full traceback is:<br>
Traceback (most recent call last):<br>
File "/var/folders/6f/dxlpfp7521s25qc6gk1pr4jr0000gp/T/ansible_DzojF6/ansible_module_ec2_ami_find.py", line 439, in <br>
main()<br>
File "/var/folders/6f/dxlpfp7521s25qc6gk1pr4jr0000gp/T/ansible_DzojF6/ansible_module_ec2_ami_find.py", line 393, in main<br>
'creationDate': image.creationDate,<br>
AttributeError: 'Image' object has no attribute 'creationDate'</p>
<p dir="auto">fatal: [localhost]: FAILED! => {<br>
"changed": false,<br>
"failed": true,<br>
"module_stderr": "Traceback (most recent call last):\n File "/var/folders/6f/dxlpfp7521s25qc6gk1pr4jr0000gp/T/ansible_DzojF6/ansible_module_ec2_ami_find.py", line 439, in \n main()\n File "/var/folders/6f/dxlpfp7521s25qc6gk1pr4jr0000gp/T/ansible_DzojF6/ansible_module_ec2_ami_find.py", line 393, in main\n 'creationDate': image.creationDate,\nAttributeError: 'Image' object has no attribute 'creationDate'\n",<br>
"module_stdout": "",<br>
"msg": "MODULE FAILURE",<br>
"rc": 0<br>
}</p> | 0 |
<p dir="auto">In below screenshot, I am scanning the database for a categorical called <code class="notranslate">classification_id</code> with the value <code class="notranslate">50ef44b795e6e42cd2000001</code> but I am getting a data-row where the categorical has the value 50ef44b795e6e42cd6000001`.</p>
<p dir="auto">How is this possible? Note that my list of categorical is huge, more than 4 million entries, with 12 million total rows. (Yes, on average, each classification_id appears 3 times.)</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/69774/10439330/7755e45a-70f6-11e5-9dc6-26ee7359d95a.png"><img width="931" alt="screenshot 2015-10-12 15 31 25" src="https://cloud.githubusercontent.com/assets/69774/10439330/7755e45a-70f6-11e5-9dc6-26ee7359d95a.png" style="max-width: 100%;"></a></p>
<p dir="auto">On a side note: The display of this one row of numpy in the line with <code class="notranslate">.values</code> at the end takes a lot of time, possibly due to large size of the Categorical, can that be avoided somehow?</p>
<p dir="auto">Here's my required meta-data for the bug report:<br>
pandas Version: 0.17.0</p>
<h2 dir="auto">INSTALLED VERSIONS</h2>
<p dir="auto">commit: None<br>
python: 3.4.3.final.0<br>
python-bits: 64<br>
OS: Darwin<br>
OS-release: 14.5.0<br>
machine: x86_64<br>
processor: i386<br>
byteorder: little<br>
LC_ALL: None<br>
LANG: en_US.UTF-8</p>
<p dir="auto">pandas: 0.17.0<br>
nose: 1.3.7<br>
pip: 7.1.2<br>
setuptools: 18.3.2<br>
Cython: None<br>
numpy: 1.10.0<br>
scipy: 0.16.0<br>
statsmodels: None<br>
IPython: 4.1.0-dev<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.4.2<br>
pytz: 2015.6<br>
blosc: None<br>
bottleneck: None<br>
tables: 3.2.2<br>
numexpr: 2.4.4<br>
matplotlib: 1.4.3<br>
openpyxl: None<br>
xlrd: None<br>
xlwt: None<br>
xlsxwriter: None<br>
lxml: None<br>
bs4: None<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: 1.0.8<br>
pymysql: None<br>
psycopg2: None</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="# Your code here
cdef inline void remove_var(double val, double *nobs, double *mean_x,
double *ssqdm_x) nogil:
""" remove a value from the var calc """
cdef double delta
# Not NaN
if val == val:
nobs[0] = nobs[0] - 1
if nobs[0]:
# a part of Welford's method for the online variance-calculation
# https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance
delta = val - mean_x[0]
mean_x[0] = mean_x[0] - delta / nobs[0]
ssqdm_x[0] = ssqdm_x[0] - ((nobs[0] + 1) * delta ** 2) / nobs[0]
else:
mean_x[0] = 0
ssqdm_x[0] = 0
nobs is a pointer to a double and is incremented and decrement accordingly as add_var and remove_var are called. if nobs == 0, then you want to reset mean_x and ssqdm_x to 0 as you do in the else condition. my question is this -- isn't it possible that nobs could be some epsilon value and not exactly equal to 0.0 ? I dont know floating point math that well, and it could be fine since all we do is incrememt by1 or decrement by 1 so it could be fine. just wondering in case this should be:
if abs(nbos[0]) < 1e-11 or something
thanks
"><pre class="notranslate"><span class="pl-c"># Your code here</span>
<span class="pl-s1">cdef</span> <span class="pl-s1">inline</span> <span class="pl-s1">void</span> <span class="pl-en">remove_var</span>(<span class="pl-s1">double</span> <span class="pl-s1">val</span>, <span class="pl-s1">double</span> <span class="pl-c1">*</span><span class="pl-s1">nobs</span>, <span class="pl-s1">double</span> <span class="pl-c1">*</span><span class="pl-s1">mean_x</span>,
<span class="pl-s1">double</span> <span class="pl-c1">*</span><span class="pl-s1">ssqdm_x</span>) <span class="pl-s1">nogil</span>:
<span class="pl-s">""" remove a value from the var calc """</span>
<span class="pl-s1">cdef</span> <span class="pl-s1">double</span> <span class="pl-s1">delta</span>
<span class="pl-c"># Not NaN</span>
<span class="pl-k">if</span> <span class="pl-s1">val</span> <span class="pl-c1">==</span> <span class="pl-s1">val</span>:
<span class="pl-s1">nobs</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-s1">nobs</span>[<span class="pl-c1">0</span>] <span class="pl-c1">-</span> <span class="pl-c1">1</span>
<span class="pl-k">if</span> <span class="pl-s1">nobs</span>[<span class="pl-c1">0</span>]:
<span class="pl-c"># a part of Welford's method for the online variance-calculation</span>
<span class="pl-c"># https://en.wikipedia.org/wiki/Algorithms_for_calculating_variance</span>
<span class="pl-s1">delta</span> <span class="pl-c1">=</span> <span class="pl-s1">val</span> <span class="pl-c1">-</span> <span class="pl-s1">mean_x</span>[<span class="pl-c1">0</span>]
<span class="pl-s1">mean_x</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-s1">mean_x</span>[<span class="pl-c1">0</span>] <span class="pl-c1">-</span> <span class="pl-s1">delta</span> <span class="pl-c1">/</span> <span class="pl-s1">nobs</span>[<span class="pl-c1">0</span>]
<span class="pl-s1">ssqdm_x</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-s1">ssqdm_x</span>[<span class="pl-c1">0</span>] <span class="pl-c1">-</span> ((<span class="pl-s1">nobs</span>[<span class="pl-c1">0</span>] <span class="pl-c1">+</span> <span class="pl-c1">1</span>) <span class="pl-c1">*</span> <span class="pl-s1">delta</span> <span class="pl-c1">**</span> <span class="pl-c1">2</span>) <span class="pl-c1">/</span> <span class="pl-s1">nobs</span>[<span class="pl-c1">0</span>]
<span class="pl-k">else</span>:
<span class="pl-s1">mean_x</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-s1">ssqdm_x</span>[<span class="pl-c1">0</span>] <span class="pl-c1">=</span> <span class="pl-c1">0</span>
<span class="pl-s1">nobs</span> <span class="pl-c1">is</span> <span class="pl-s1">a</span> <span class="pl-s1">pointer</span> <span class="pl-s1">to</span> <span class="pl-s1">a</span> <span class="pl-s1">double</span> <span class="pl-c1">and</span> <span class="pl-s1">is</span> <span class="pl-s1">incremented</span> <span class="pl-c1">and</span> <span class="pl-s1">decrement</span> <span class="pl-s1">accordingly</span> <span class="pl-k">as</span> <span class="pl-s1">add_var</span> <span class="pl-c1">and</span> <span class="pl-s1">remove_var</span> <span class="pl-s1">are</span> <span class="pl-s1">called</span>. <span class="pl-s1">if</span> <span class="pl-s1">nobs</span> <span class="pl-c1">==</span> <span class="pl-c1">0</span>, <span class="pl-s1">then</span> <span class="pl-s1">you</span> <span class="pl-s1">want</span> <span class="pl-s1">to</span> <span class="pl-s1">reset</span> <span class="pl-s1">mean_x</span> <span class="pl-c1">and</span> <span class="pl-s1">ssqdm_x</span> <span class="pl-s1">to</span> <span class="pl-c1">0</span> <span class="pl-k">as</span> <span class="pl-s1">you</span> <span class="pl-s1">do</span> <span class="pl-c1">in</span> <span class="pl-s1">the</span> <span class="pl-s1">else</span> <span class="pl-s1">condition</span>. <span class="pl-s1">my</span> <span class="pl-s1">question</span> <span class="pl-c1">is</span> <span class="pl-s1">this</span> <span class="pl-c1">-</span><span class="pl-c1">-</span> <span class="pl-s1">isn</span>'<span class="pl-s1">t</span> <span class="pl-s1">it</span> <span class="pl-s1">possible</span> <span class="pl-s1">that</span> <span class="pl-s1">nobs</span> <span class="pl-s1">could</span> <span class="pl-s1">be</span> <span class="pl-s1">some</span> <span class="pl-s1">epsilon</span> <span class="pl-s1">value</span> <span class="pl-c1">and</span> <span class="pl-c1">not</span> <span class="pl-s1">exactly</span> <span class="pl-s1">equal</span> <span class="pl-s1">to</span> <span class="pl-c1">0.0</span> ? <span class="pl-v">I</span> <span class="pl-s1">dont</span> <span class="pl-s1">know</span> <span class="pl-s1">floating</span> <span class="pl-s1">point</span> <span class="pl-s1">math</span> <span class="pl-s1">that</span> <span class="pl-s1">well</span>, <span class="pl-s1">and</span> <span class="pl-s1">it</span> <span class="pl-s1">could</span> <span class="pl-s1">be</span> <span class="pl-s1">fine</span> <span class="pl-s1">since</span> <span class="pl-s1">all</span> <span class="pl-s1">we</span> <span class="pl-s1">do</span> <span class="pl-c1">is</span> <span class="pl-s1">incrememt</span> <span class="pl-s1">by1</span> <span class="pl-c1">or</span> <span class="pl-s1">decrement</span> <span class="pl-s1">by</span> <span class="pl-c1">1</span> <span class="pl-s1">so</span> <span class="pl-s1">it</span> <span class="pl-s1">could</span> <span class="pl-s1">be</span> <span class="pl-s1">fine</span>. <span class="pl-s1">just</span> <span class="pl-s1">wondering</span> <span class="pl-c1">in</span> <span class="pl-s1">case</span> <span class="pl-s1">this</span> <span class="pl-s1">should</span> <span class="pl-s1">be</span>:
<span class="pl-s1">if</span> <span class="pl-en">abs</span>(<span class="pl-s1">nbos</span>[<span class="pl-c1">0</span>]) <span class="pl-c1"><</span> <span class="pl-c1">1e-11</span> <span class="pl-c1">or</span> <span class="pl-s1">something</span>
<span class="pl-s1">thanks</span>
</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">[this should explain <strong>why</strong> the current behaviour is a problem and why the expected output is a better solution.]</p>
<p dir="auto"><strong>Note</strong>: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!</p>
<p dir="auto"><strong>Note</strong>: Many problems can be resolved by simply upgrading <code class="notranslate">pandas</code> to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check if <code class="notranslate">master</code> addresses this issue, but that is not necessary.</p>
<p dir="auto">For documentation-related issues, you can check the latest versions of the docs on <code class="notranslate">master</code> here:</p>
<p dir="auto"><a href="https://pandas-docs.github.io/pandas-docs-travis/" rel="nofollow">https://pandas-docs.github.io/pandas-docs-travis/</a></p>
<p dir="auto">If the issue has not been resolved there, go ahead and file it in the issue tracker.</p>
<h4 dir="auto">Expected Output</h4>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
<p dir="auto">[paste the output of <code class="notranslate">pd.show_versions()</code> here below this line]</p>
</details> | 0 |
<h2 dir="auto">Problem</h2>
<p dir="auto">I build dashboards on a “dev” instance, export them, and import the archive on the “prod” one; all via CLI.<br>
I grant access to these dashboards to certain roles using RBAC — i.e. I edit dashboard properties and add one (or more) user group(s) to the “Role” selector (e.g. <code class="notranslate">guest</code> in the example below):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37387755/144847565-b01a7b74-e9be-4d95-8533-772d6f727093.png"><img src="https://user-images.githubusercontent.com/37387755/144847565-b01a7b74-e9be-4d95-8533-772d6f727093.png" alt="bépobépo_shadow" style="max-width: 100%;"></a></p>
<p dir="auto">However, <strong>the dashboard's YAML file in the export does not include any mention of the role(s) I grant access to</strong>.</p>
<p dir="auto">So I then need to grant access to these roles again, after the exported archive get imported on “prod”.</p>
<h2 dir="auto">Wished solution</h2>
<p dir="auto">I would like that <strong>the imported dashboards grant the same RBAC authorisations as their exported counterpart</strong>.</p>
<p dir="auto">Practically, this means that I would like to:</p>
<ul dir="auto">
<li>be able to track RBAC roles on the YAML file of an exported dashboard,</li>
<li>be able to set RBAC roles of an imported dashboard, based on the imported YAML file data.</li>
</ul>
<h2 dir="auto">Alternative</h2>
<p dir="auto">Manual work… but I'm afraid I'm lazy <g-emoji class="g-emoji" alias="wink" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f609.png">😉</g-emoji></p>
<h2 dir="auto">Additional context</h2>
<p dir="auto">Both dev and prod are running Superset 1.3.2, alongside the following feature flags:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="FEATURE_FLAGS = {
"VERSIONED_EXPORT": True,
"DASHBOARD_RBAC": True,
}"><pre class="notranslate"><span class="pl-v">FEATURE_FLAGS</span> <span class="pl-c1">=</span> {
<span class="pl-s">"VERSIONED_EXPORT"</span>: <span class="pl-c1">True</span>,
<span class="pl-s">"DASHBOARD_RBAC"</span>: <span class="pl-c1">True</span>,
}</pre></div> | <p dir="auto">Make sure these boxes are checked before submitting your issue - thank you!</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the superset logs for python stacktraces and included it here as text if any</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have reproduced the issue with at least the latest released version of superset</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the issue tracker for the same issue and I haven't found one similar</li>
</ul>
<h3 dir="auto">Superset version</h3>
<p dir="auto">23.3</p>
<h3 dir="auto">Expected results</h3>
<p dir="auto">Dashboard with chart inside</p>
<h3 dir="auto">Actual results</h3>
<p dir="auto">When I create a new dashboard it appears empty, to circumvent this problem I have to add manually [] in the "Position JSON" field.</p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Create a new dashboard or create a new chart and add to a new dashboard</p> | 0 |
<p dir="auto">issue/a/a.go:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package a
/*
static long long mod(long long a, long long b) { return a % b; }
*/
import "C"
func F(a, b int64) int64 {
return int64(C.mod(C.longlong(a), C.longlong(b)))
}"><pre class="notranslate"><code class="notranslate">package a
/*
static long long mod(long long a, long long b) { return a % b; }
*/
import "C"
func F(a, b int64) int64 {
return int64(C.mod(C.longlong(a), C.longlong(b)))
}
</code></pre></div>
<p dir="auto">issue/b/b.go exactly the same except "package b" instead of "package a".</p>
<p dir="auto">issue/main.go:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main
import (
"fmt"
"issue/a"
"issue/b"
)
func main() {
fmt.Println(a.F(1, 1), b.F(1, 1))
}
GOARCH=386 go build issue
# issue
/var/tmp/go-link-0Vel41/000001.o: In function `__moddi3':
(.text+0x70): multiple definition of `__moddi3'
/var/tmp/go-link-0Vel41/000000.o:(.text+0x70): first defined here
collect2: error: ld returned 1 exit status
/home/iant/go/pkg/tool/linux_amd64/8l: running gcc failed: unsuccessful exit status 0x100"><pre class="notranslate"><code class="notranslate">package main
import (
"fmt"
"issue/a"
"issue/b"
)
func main() {
fmt.Println(a.F(1, 1), b.F(1, 1))
}
GOARCH=386 go build issue
# issue
/var/tmp/go-link-0Vel41/000001.o: In function `__moddi3':
(.text+0x70): multiple definition of `__moddi3'
/var/tmp/go-link-0Vel41/000000.o:(.text+0x70): first defined here
collect2: error: ld returned 1 exit status
/home/iant/go/pkg/tool/linux_amd64/8l: running gcc failed: unsuccessful exit status 0x100
</code></pre></div>
<p dir="auto">The problem is that for GOARCH=386 both object files require __moddi3. The go command links both cgo objects against libgcc, because of issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51280334" data-permission-text="Title is private" data-url="https://github.com/golang/go/issues/3261" data-hovercard-type="issue" data-hovercard-url="/golang/go/issues/3261/hovercard" href="https://github.com/golang/go/issues/3261">#3261</a>. So both object files define __moddi3, and the linker complains.</p>
<p dir="auto">On systems that support external linking, which I think is everything but Windows, it should no longer be necessary to link libgcc into each cgo object file. Unless, of course, the standard packages that use cgo (net, crypto/x509) use a libgcc function.</p> | <pre class="notranslate">This issue perplexes me to the point that I'm not able to reproduce it using a minimal
example.
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="43012566" data-permission-text="Title is private" data-url="https://github.com/andlabs/ui/issues/29" data-hovercard-type="issue" data-hovercard-url="/andlabs/ui/issues/29/hovercard" href="https://github.com/andlabs/ui/issues/29">andlabs/ui#29</a>
A bunch of people have reported in my GUI package (github.com/andlabs/ui) is spitting
out numerous errors such as
github.com/andlabs/ui(.text): undefined: github.com/andlabs/ui(/1124)
github.com/andlabs/ui(.text): undefined: github.com/andlabs/ui(/1081)
github.com/andlabs/ui(.text): undefined: github.com/andlabs/ui(/1031)
github.com/andlabs/ui(.text): undefined: github.com/andlabs/ui(/982)
during the executable link process.
What Wessie in #go-nuts and myself have gathered is:
- this happens with any configuration of gcc 4.9.x from MinGW-w64
- this happens on real Windows, not with the Linux cross-compilers
- Windows version doesn't matter (I've confirmed this with the Windows 10 Technical
Preview)
As mentioned, I tried writing several different possible minimal examples, but none of
them have exhibited this problem.
Thanks...</pre> | 0 |
<p dir="auto">As long as current page is a Flutter page, the home button returns to the desktop, you can return from the launcher icon to the original page; but in the native Activity, then the state is lost, the return page is MainActivity</p>
<h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>In android native SecondActivity , press home key back to desktop</li>
<li>click launcher icon enter app , and the MainActivity shows</li>
<li>But in Flutter pages , i don't have this problem</li>
</ol>
<h2 dir="auto">Logs</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></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>
<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">Let me preface this by saying I've looked at the 4 other reports of seg faults and none of their solutions have worked for me, so I'm not trying to post a duplicate.</p>
<h2 dir="auto">Logs</h2>
<p dir="auto">My application constantly crashes in debug mode at random intervals and in random places within the app.</p>
<p dir="auto">This is the fault:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="F/libc ( 4707): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x50f5b in tid 4734 (Thread-2), pid 4707 (e.nativetechapp)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.023/4931629:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 4707, tid: 4734, name: Thread-2 >>> com.example.nativetechapp <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x50f5b
eax 00000000 ebx d353396c ecx cb4c8448 edx d3512048
esi 00050f5b edi d260ddb8
xcs 00000023 xds 0000002b xes 0000002b xfs 0000006b xss 0000002b
eip d311ada2 ebp d260cba8 esp d260cb70 flags 00010202
backtrace:
#00 pc 00b0ada2 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#01 pc 00d7d8df /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#02 pc 00d7e779 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#03 pc 00d8b850 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#04 pc 00d8e973 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#05 pc 00d9e6b2 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#06 pc 00dadc19 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#07 pc 00e06079 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#08 pc 00e030f4 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#09 pc 00e00776 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#10 pc 00dffe62 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#11 pc 00dff88c /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#12 pc 000005ae <anonymous:d1500000>
#13 pc 00000619 <anonymous:d1500000>
#14 pc 000112a7 <anonymous:b6200000>
#15 pc 0003675a <anonymous:b6200000>
#16 pc 00017ece <anonymous:c4a80000>
#17 pc 000112a7 <anonymous:b6200000>
#18 pc 0002921a <anonymous:c8300000>
#19 pc 0002561e <anonymous:c8300000>
#20 pc 000253b6 <anonymous:c8300000>
#21 pc 000112a7 <anonymous:b6200000>
#22 pc 00015eae <anonymous:c8300000>
#23 pc 00013cb9 <anonymous:c8300000>
#24 pc 00015658 <anonymous:c8300000>
#25 pc 00015093 <anonymous:c8300000>
#26 pc 000105c0 <anonymous:c8300000>
#27 pc 0000aa67 <anonymous:c8300000>
#28 pc 00003df9 <anonymous:c8300000>
#29 pc 00002e33 <anonymous:d07c0000>
#30 pc 0001bd9e <anonymous:c7d80000>
#31 pc 0002ca76 <anonymous:c7180000>
#32 pc 0001ba96 <anonymous:cf980000>
#33 pc 00009e7d <anonymous:c7d80000>
#34 pc 000009af <anonymous:d1500000>
#35 pc 00a5ba54 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#36 pc 00b59c7f /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#37 pc 00e3d2e9 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#38 pc 008dda90 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#39 pc 0067f746 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#40 pc 0068ff53 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#41 pc 0062d957 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#42 pc 0065c737 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#43 pc 0065c682 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#44 pc 0065e9ee /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#45 pc 00014af7 /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39)
#46 pc 00015936 /system/lib/libutils.so (android::Looper::pollInner(int)+982)
#47 pc 000154d6 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+118)
#48 pc 0000ff10 /system/lib/libandroid.so (ALooper_pollOnce+96)
#49 pc 0065eaf1 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#50 pc 0065adc4 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#51 pc 0065cf9d /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#52 pc 00071445 /system/lib/libc.so (__pthread_start(void*)+53)
#53 pc 000205db /system/lib/libc.so (__start_thread+75)
#54 pc 0001ec16 /system/lib/libc.so (__bionic_clone+70)
Lost connection to device."><pre class="notranslate"><code class="notranslate">F/libc ( 4707): Fatal signal 11 (SIGSEGV), code 1, fault addr 0x50f5b in tid 4734 (Thread-2), pid 4707 (e.nativetechapp)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:8.1.0/OSM1.180201.023/4931629:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 4707, tid: 4734, name: Thread-2 >>> com.example.nativetechapp <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x50f5b
eax 00000000 ebx d353396c ecx cb4c8448 edx d3512048
esi 00050f5b edi d260ddb8
xcs 00000023 xds 0000002b xes 0000002b xfs 0000006b xss 0000002b
eip d311ada2 ebp d260cba8 esp d260cb70 flags 00010202
backtrace:
#00 pc 00b0ada2 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#01 pc 00d7d8df /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#02 pc 00d7e779 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#03 pc 00d8b850 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#04 pc 00d8e973 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#05 pc 00d9e6b2 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#06 pc 00dadc19 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#07 pc 00e06079 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#08 pc 00e030f4 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#09 pc 00e00776 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#10 pc 00dffe62 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#11 pc 00dff88c /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#12 pc 000005ae <anonymous:d1500000>
#13 pc 00000619 <anonymous:d1500000>
#14 pc 000112a7 <anonymous:b6200000>
#15 pc 0003675a <anonymous:b6200000>
#16 pc 00017ece <anonymous:c4a80000>
#17 pc 000112a7 <anonymous:b6200000>
#18 pc 0002921a <anonymous:c8300000>
#19 pc 0002561e <anonymous:c8300000>
#20 pc 000253b6 <anonymous:c8300000>
#21 pc 000112a7 <anonymous:b6200000>
#22 pc 00015eae <anonymous:c8300000>
#23 pc 00013cb9 <anonymous:c8300000>
#24 pc 00015658 <anonymous:c8300000>
#25 pc 00015093 <anonymous:c8300000>
#26 pc 000105c0 <anonymous:c8300000>
#27 pc 0000aa67 <anonymous:c8300000>
#28 pc 00003df9 <anonymous:c8300000>
#29 pc 00002e33 <anonymous:d07c0000>
#30 pc 0001bd9e <anonymous:c7d80000>
#31 pc 0002ca76 <anonymous:c7180000>
#32 pc 0001ba96 <anonymous:cf980000>
#33 pc 00009e7d <anonymous:c7d80000>
#34 pc 000009af <anonymous:d1500000>
#35 pc 00a5ba54 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#36 pc 00b59c7f /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#37 pc 00e3d2e9 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#38 pc 008dda90 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#39 pc 0067f746 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#40 pc 0068ff53 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#41 pc 0062d957 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#42 pc 0065c737 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#43 pc 0065c682 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#44 pc 0065e9ee /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#45 pc 00014af7 /system/lib/libutils.so (android::SimpleLooperCallback::handleEvent(int, int, void*)+39)
#46 pc 00015936 /system/lib/libutils.so (android::Looper::pollInner(int)+982)
#47 pc 000154d6 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+118)
#48 pc 0000ff10 /system/lib/libandroid.so (ALooper_pollOnce+96)
#49 pc 0065eaf1 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#50 pc 0065adc4 /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#51 pc 0065cf9d /data/app/com.example.nativetechapp-jtHZrwGwHPOl2GiLDsbXlg==/lib/x86/libflutter.so (offset 0x5b9000)
#52 pc 00071445 /system/lib/libc.so (__pthread_start(void*)+53)
#53 pc 000205db /system/lib/libc.so (__start_thread+75)
#54 pc 0001ec16 /system/lib/libc.so (__bionic_clone+70)
Lost connection to device.
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="flutter run --verbose
[ +17 ms] executing: [/home/shoxter/workspace/flutter/] git rev-parse
--abbrev-ref --symbolic @{u}
[ +20 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/home/shoxter/workspace/flutter/] git rev-parse
--abbrev-ref HEAD
[ +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ ] executing: [/home/shoxter/workspace/flutter/] git ls-remote --get-url
origin
[ +5 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [/home/shoxter/workspace/flutter/] git log -n 1
--pretty=format:%H
[ +4 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] 5391447fae6209bb21a89e6a5a6583cac1af9b4b
[ ] executing: [/home/shoxter/workspace/flutter/] git log -n 1
--pretty=format:%ar
[ +4 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 13 days ago
[ ] executing: [/home/shoxter/workspace/flutter/] git describe --match
v*.*.* --first-parent --long --tags
[ +4 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long
--tags
[ ] v1.0.0-0-g5391447
[ +45 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb devices -l
[ +5 ms] Exit code 0 from: /home/shoxter/Android/Sdk/platform-tools/adb
devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_gphone_x86
model:Android_SDK_built_for_x86 device:generic_x86
[ +97 ms] Found plugin flutter_card_io at
/home/shoxter/workspace/flutter/.pub-cache/git/flutter_card_io-c5394d84726829f87
4167485d23fab2ec84ac246/
[ +4 ms] Found plugin flutter_stetho at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_steth
o-0.2.1/
[ +4 ms] Found plugin fluttertoast at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-
2.1.2/
[ +3 ms] Found plugin local_auth at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/local_auth-0.
3.0/
[ +4 ms] Found plugin path_provider at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider
-0.4.1/
[ +9 ms] Found plugin url_launcher at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-
4.0.1/
[ +55 ms] Found plugin flutter_card_io at
/home/shoxter/workspace/flutter/.pub-cache/git/flutter_card_io-c5394d84726829f87
4167485d23fab2ec84ac246/
[ +2 ms] Found plugin flutter_stetho at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_steth
o-0.2.1/
[ +1 ms] Found plugin fluttertoast at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-
2.1.2/
[ +1 ms] Found plugin local_auth at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/local_auth-0.
3.0/
[ +2 ms] Found plugin path_provider at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider
-0.4.1/
[ +6 ms] Found plugin url_launcher at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-
4.0.1/
[ +18 ms] /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell
getprop
[ +23 ms] ro.hardware = ranchu
[ +11 ms] Using hardware rendering with device Android SDK built for x86. If
you get
graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
[ +516 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[ +13 ms] Initializing gradle...
[ +5 ms] Using gradle from
/home/shoxter/workspace/native_tech_app/android/gradlew.
[ +114 ms] executing: /home/shoxter/workspace/native_tech_app/android/gradlew -v
[ +417 ms]
------------------------------------------------------------
Gradle 4.4
------------------------------------------------------------
Build time: 2017-12-06 09:05:06 UTC
Revision: cf7821a6f79f8e2a598df21780e3ff7ce8db2b82
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on
February 2 2017
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01)
OS: Linux 4.10.0-38-generic amd64
[ ] Initializing gradle... (completed)
[ ] Resolving dependencies...
[ ] executing: [/home/shoxter/workspace/native_tech_app/android/]
/home/shoxter/workspace/native_tech_app/android/gradlew app:properties
[ +504 ms]
------------------------------------------------------------
Project :app
------------------------------------------------------------
allprojects: [project ':app']
android:
com.android.build.gradle.AppExtension_Decorated@2464d5fe
androidDependencies: task ':app:androidDependencies'
ant:
org.gradle.api.internal.project.DefaultAntBuilder@5e02b547
antBuilderFactory:
org.gradle.api.internal.project.DefaultAntBuilderFactory@5ca
ba4f0
archivesBaseName: app
artifacts:
org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler
_Decorated@f0865b9
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
assembleAndroidTest: task ':app:assembleAndroidTest'
assembleDebug: task ':app:assembleDebug'
assembleDebugAndroidTest: task
':app:assembleDebugAndroidTest'
assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
assembleDynamicProfile: task ':app:assembleDynamicProfile'
assembleDynamicProfileUnitTest: task
':app:assembleDynamicProfileUnitTest'
assembleDynamicRelease: task ':app:assembleDynamicRelease'
assembleDynamicReleaseUnitTest: task
':app:assembleDynamicReleaseUnitTest'
assembleProfile: task ':app:assembleProfile'
assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
assembleRelease: task ':app:assembleRelease'
assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
baseClassLoaderScope:
org.gradle.api.internal.initialization.DefaultClassLoaderSco
pe@dc19a83
buildDependents: task ':app:buildDependents'
buildDir: /home/shoxter/workspace/native_tech_app/build/app
buildFile:
/home/shoxter/workspace/native_tech_app/android/app/build.gr
adle
buildNeeded: task ':app:buildNeeded'
buildOutputs: BaseVariantOutput container
buildPath: :
buildScriptSource:
org.gradle.groovy.scripts.TextResourceScriptSource@46a2aef1
buildscript:
org.gradle.api.internal.initialization.DefaultScriptHandler@
47af0ef1
bundleAppClassesDebug: task ':app:bundleAppClassesDebug'
bundleAppClassesDebugAndroidTest: task
':app:bundleAppClassesDebugAndroidTest'
bundleAppClassesDebugUnitTest: task
':app:bundleAppClassesDebugUnitTest'
bundleAppClassesDynamicProfile: task
':app:bundleAppClassesDynamicProfile'
bundleAppClassesDynamicProfileUnitTest: task
':app:bundleAppClassesDynamicProfileUnitTest'
bundleAppClassesDynamicRelease: task
':app:bundleAppClassesDynamicRelease'
bundleAppClassesDynamicReleaseUnitTest: task
':app:bundleAppClassesDynamicReleaseUnitTest'
bundleAppClassesProfile: task ':app:bundleAppClassesProfile'
bundleAppClassesProfileUnitTest: task
':app:bundleAppClassesProfileUnitTest'
bundleAppClassesRelease: task ':app:bundleAppClassesRelease'
bundleAppClassesReleaseUnitTest: task
':app:bundleAppClassesReleaseUnitTest'
bundleDebugAndroidTestResources: task
':app:bundleDebugAndroidTestResources'
bundleDebugResources: task ':app:bundleDebugResources'
bundleDynamicProfileResources: task
':app:bundleDynamicProfileResources'
bundleDynamicReleaseResources: task
':app:bundleDynamicReleaseResources'
bundleProfileResources: task ':app:bundleProfileResources'
bundleReleaseResources: task ':app:bundleReleaseResources'
check: task ':app:check'
checkDebugManifest: task ':app:checkDebugManifest'
checkDynamicProfileManifest: task
':app:checkDynamicProfileManifest'
checkDynamicReleaseManifest: task
':app:checkDynamicReleaseManifest'
checkProfileManifest: task ':app:checkProfileManifest'
checkReleaseManifest: task ':app:checkReleaseManifest'
childProjects: {}
class: class
org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope:
org.gradle.api.internal.initialization.DefaultClassLoaderSco
pe@b469e10
cleanBuildCache: task ':app:cleanBuildCache'
compileDebugAidl: task ':app:compileDebugAidl'
compileDebugAndroidTestAidl: task
':app:compileDebugAndroidTestAidl'
compileDebugAndroidTestJavaWithJavac: task
':app:compileDebugAndroidTestJavaWithJavac'
compileDebugAndroidTestNdk: task
':app:compileDebugAndroidTestNdk'
compileDebugAndroidTestRenderscript: task
':app:compileDebugAndroidTestRenderscript'
compileDebugAndroidTestShaders: task
':app:compileDebugAndroidTestShaders'
compileDebugAndroidTestSources: task
':app:compileDebugAndroidTestSources'
compileDebugJavaWithJavac: task
':app:compileDebugJavaWithJavac'
compileDebugNdk: task ':app:compileDebugNdk'
compileDebugRenderscript: task
':app:compileDebugRenderscript'
compileDebugShaders: task ':app:compileDebugShaders'
compileDebugSources: task ':app:compileDebugSources'
compileDebugUnitTestJavaWithJavac: task
':app:compileDebugUnitTestJavaWithJavac'
compileDebugUnitTestSources: task
':app:compileDebugUnitTestSources'
compileDynamicProfileAidl: task
':app:compileDynamicProfileAidl'
compileDynamicProfileJavaWithJavac: task
':app:compileDynamicProfileJavaWithJavac'
compileDynamicProfileNdk: task
':app:compileDynamicProfileNdk'
compileDynamicProfileRenderscript: task
':app:compileDynamicProfileRenderscript'
compileDynamicProfileShaders: task
':app:compileDynamicProfileShaders'
compileDynamicProfileSources: task
':app:compileDynamicProfileSources'
compileDynamicProfileUnitTestJavaWithJavac: task
':app:compileDynamicProfileUnitTestJavaWithJavac'
compileDynamicProfileUnitTestSources: task
':app:compileDynamicProfileUnitTestSources'
compileDynamicReleaseAidl: task
':app:compileDynamicReleaseAidl'
compileDynamicReleaseJavaWithJavac: task
':app:compileDynamicReleaseJavaWithJavac'
compileDynamicReleaseNdk: task
':app:compileDynamicReleaseNdk'
compileDynamicReleaseRenderscript: task
':app:compileDynamicReleaseRenderscript'
compileDynamicReleaseShaders: task
':app:compileDynamicReleaseShaders'
compileDynamicReleaseSources: task
':app:compileDynamicReleaseSources'
compileDynamicReleaseUnitTestJavaWithJavac: task
':app:compileDynamicReleaseUnitTestJavaWithJavac'
compileDynamicReleaseUnitTestSources: task
':app:compileDynamicReleaseUnitTestSources'
compileLint: task ':app:compileLint'
compileProfileAidl: task ':app:compileProfileAidl'
compileProfileJavaWithJavac: task
':app:compileProfileJavaWithJavac'
compileProfileNdk: task ':app:compileProfileNdk'
compileProfileRenderscript: task
':app:compileProfileRenderscript'
compileProfileShaders: task ':app:compileProfileShaders'
compileProfileSources: task ':app:compileProfileSources'
compileProfileUnitTestJavaWithJavac: task
':app:compileProfileUnitTestJavaWithJavac'
compileProfileUnitTestSources: task
':app:compileProfileUnitTestSources'
compileReleaseAidl: task ':app:compileReleaseAidl'
compileReleaseJavaWithJavac: task
':app:compileReleaseJavaWithJavac'
compileReleaseNdk: task ':app:compileReleaseNdk'
compileReleaseRenderscript: task
':app:compileReleaseRenderscript'
compileReleaseShaders: task ':app:compileReleaseShaders'
compileReleaseSources: task ':app:compileReleaseSources'
compileReleaseUnitTestJavaWithJavac: task
':app:compileReleaseUnitTestJavaWithJavac'
compileReleaseUnitTestSources: task
':app:compileReleaseUnitTestSources'
components: SoftwareComponentInternal set
configurationActions:
org.gradle.configuration.project.DefaultProjectConfiguration
ActionContainer@ad20879
configurationTargetIdentifier:
org.gradle.configuration.ConfigurationTargetIdentifier$1@595
4eaf4
configurations: configuration container
connectedAndroidTest: task ':app:connectedAndroidTest'
connectedCheck: task ':app:connectedCheck'
connectedDebugAndroidTest: task
':app:connectedDebugAndroidTest'
consumeConfigAttr: task ':app:consumeConfigAttr'
convention:
org.gradle.api.internal.plugins.DefaultConvention@6633afa9
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsDynamicProfile: task
':app:copyFlutterAssetsDynamicProfile'
copyFlutterAssetsDynamicRelease: task
':app:copyFlutterAssetsDynamicRelease'
copyFlutterAssetsProfile: task
':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task
':app:copyFlutterAssetsRelease'
createDebugCompatibleScreenManifests: task
':app:createDebugCompatibleScreenManifests'
createDynamicProfileCompatibleScreenManifests: task
':app:createDynamicProfileCompatibleScreenManifests'
createDynamicReleaseCompatibleScreenManifests: task
':app:createDynamicReleaseCompatibleScreenManifests'
createProfileCompatibleScreenManifests: task
':app:createProfileCompatibleScreenManifests'
createReleaseCompatibleScreenManifests: task
':app:createReleaseCompatibleScreenManifests'
defaultArtifacts:
org.gradle.api.internal.plugins.DefaultArtifactPublicationSe
t_Decorated@59ba0b61
defaultTasks: []
deferredProjectConfiguration:
org.gradle.api.internal.project.DeferredProjectConfiguration
@433151ef
dependencies:
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDe
pendencyHandler_Decorated@3d4c1037
depth: 1
description: null
deviceAndroidTest: task ':app:deviceAndroidTest'
deviceCheck: task ':app:deviceCheck'
displayName: project ':app'
distsDir:
/home/shoxter/workspace/native_tech_app/build/app/distributi
ons
distsDirName: distributions
docsDir:
/home/shoxter/workspace/native_tech_app/build/app/docs
docsDirName: docs
ext:
org.gradle.api.internal.plugins.DefaultExtraPropertiesExtens
ion@46f9bed0
extensions:
org.gradle.api.internal.plugins.DefaultConvention@6633afa9
extractProguardFiles: task ':app:extractProguardFiles'
fileOperations:
org.gradle.api.internal.file.DefaultFileOperations@4f91446d
fileResolver:
org.gradle.api.internal.file.BaseDirFileResolver@6e6da59
flutter: FlutterExtension_Decorated@5b76af1a
flutterBuildDebug: task ':app:flutterBuildDebug'
flutterBuildDynamicProfile: task
':app:flutterBuildDynamicProfile'
flutterBuildDynamicRelease: task
':app:flutterBuildDynamicRelease'
flutterBuildProfile: task ':app:flutterBuildProfile'
flutterBuildRelease: task ':app:flutterBuildRelease'
flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
generateDebugAndroidTestAssets: task
':app:generateDebugAndroidTestAssets'
generateDebugAndroidTestBuildConfig: task
':app:generateDebugAndroidTestBuildConfig'
generateDebugAndroidTestResValues: task
':app:generateDebugAndroidTestResValues'
generateDebugAndroidTestResources: task
':app:generateDebugAndroidTestResources'
generateDebugAndroidTestSources: task
':app:generateDebugAndroidTestSources'
generateDebugAssets: task ':app:generateDebugAssets'
generateDebugBuildConfig: task
':app:generateDebugBuildConfig'
generateDebugResValues: task ':app:generateDebugResValues'
generateDebugResources: task ':app:generateDebugResources'
generateDebugSources: task ':app:generateDebugSources'
generateDynamicProfileAssets: task
':app:generateDynamicProfileAssets'
generateDynamicProfileBuildConfig: task
':app:generateDynamicProfileBuildConfig'
generateDynamicProfileResValues: task
':app:generateDynamicProfileResValues'
generateDynamicProfileResources: task
':app:generateDynamicProfileResources'
generateDynamicProfileSources: task
':app:generateDynamicProfileSources'
generateDynamicReleaseAssets: task
':app:generateDynamicReleaseAssets'
generateDynamicReleaseBuildConfig: task
':app:generateDynamicReleaseBuildConfig'
generateDynamicReleaseResValues: task
':app:generateDynamicReleaseResValues'
generateDynamicReleaseResources: task
':app:generateDynamicReleaseResources'
generateDynamicReleaseSources: task
':app:generateDynamicReleaseSources'
generateProfileAssets: task ':app:generateProfileAssets'
generateProfileBuildConfig: task
':app:generateProfileBuildConfig'
generateProfileResValues: task
':app:generateProfileResValues'
generateProfileResources: task
':app:generateProfileResources'
generateProfileSources: task ':app:generateProfileSources'
generateReleaseAssets: task ':app:generateReleaseAssets'
generateReleaseBuildConfig: task
':app:generateReleaseBuildConfig'
generateReleaseResValues: task
':app:generateReleaseResValues'
generateReleaseResources: task
':app:generateReleaseResources'
generateReleaseSources: task ':app:generateReleaseSources'
gradle: build 'android'
group: android
identityPath: :app
inheritedScope:
org.gradle.api.internal.ExtensibleDynamicObject$InheritedDyn
amicObject@5072859a
installDebug: task ':app:installDebug'
installDebugAndroidTest: task ':app:installDebugAndroidTest'
installDynamicProfile: task ':app:installDynamicProfile'
installDynamicRelease: task ':app:installDynamicRelease'
installProfile: task ':app:installProfile'
installRelease: task ':app:installRelease'
javaPreCompileDebug: task ':app:javaPreCompileDebug'
javaPreCompileDebugAndroidTest: task
':app:javaPreCompileDebugAndroidTest'
javaPreCompileDebugUnitTest: task
':app:javaPreCompileDebugUnitTest'
javaPreCompileDynamicProfile: task
':app:javaPreCompileDynamicProfile'
javaPreCompileDynamicProfileUnitTest: task
':app:javaPreCompileDynamicProfileUnitTest'
javaPreCompileDynamicRelease: task
':app:javaPreCompileDynamicRelease'
javaPreCompileDynamicReleaseUnitTest: task
':app:javaPreCompileDynamicReleaseUnitTest'
javaPreCompileProfile: task ':app:javaPreCompileProfile'
javaPreCompileProfileUnitTest: task
':app:javaPreCompileProfileUnitTest'
javaPreCompileRelease: task ':app:javaPreCompileRelease'
javaPreCompileReleaseUnitTest: task
':app:javaPreCompileReleaseUnitTest'
layout:
org.gradle.api.internal.file.DefaultProjectLayout@150501d5
libsDir:
/home/shoxter/workspace/native_tech_app/build/app/libs
libsDirName: libs
lint: task ':app:lint'
lintDebug: task ':app:lintDebug'
lintDynamicProfile: task ':app:lintDynamicProfile'
lintDynamicRelease: task ':app:lintDynamicRelease'
lintProfile: task ':app:lintProfile'
lintRelease: task ':app:lintRelease'
lintVitalRelease: task ':app:lintVitalRelease'
logger:
org.gradle.internal.logging.slf4j.OutputEventListenerBackedL
ogger@7cc13810
logging:
org.gradle.internal.logging.services.DefaultLoggingManager@2
581253e
mainApkListPersistenceDebug: task
':app:mainApkListPersistenceDebug'
mainApkListPersistenceDebugAndroidTest: task
':app:mainApkListPersistenceDebugAndroidTest'
mainApkListPersistenceDynamicProfile: task
':app:mainApkListPersistenceDynamicProfile'
mainApkListPersistenceDynamicRelease: task
':app:mainApkListPersistenceDynamicRelease'
mainApkListPersistenceProfile: task
':app:mainApkListPersistenceProfile'
mainApkListPersistenceRelease: task
':app:mainApkListPersistenceRelease'
mergeDebugAndroidTestAssets: task
':app:mergeDebugAndroidTestAssets'
mergeDebugAndroidTestJniLibFolders: task
':app:mergeDebugAndroidTestJniLibFolders'
mergeDebugAndroidTestResources: task
':app:mergeDebugAndroidTestResources'
mergeDebugAndroidTestShaders: task
':app:mergeDebugAndroidTestShaders'
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
mergeDebugResources: task ':app:mergeDebugResources'
mergeDebugShaders: task ':app:mergeDebugShaders'
mergeDynamicProfileAssets: task
':app:mergeDynamicProfileAssets'
mergeDynamicProfileJniLibFolders: task
':app:mergeDynamicProfileJniLibFolders'
mergeDynamicProfileResources: task
':app:mergeDynamicProfileResources'
mergeDynamicProfileShaders: task
':app:mergeDynamicProfileShaders'
mergeDynamicReleaseAssets: task
':app:mergeDynamicReleaseAssets'
mergeDynamicReleaseJniLibFolders: task
':app:mergeDynamicReleaseJniLibFolders'
mergeDynamicReleaseResources: task
':app:mergeDynamicReleaseResources'
mergeDynamicReleaseShaders: task
':app:mergeDynamicReleaseShaders'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeProfileJniLibFolders: task
':app:mergeProfileJniLibFolders'
mergeProfileResources: task ':app:mergeProfileResources'
mergeProfileShaders: task ':app:mergeProfileShaders'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
mergeReleaseJniLibFolders: task
':app:mergeReleaseJniLibFolders'
mergeReleaseResources: task ':app:mergeReleaseResources'
mergeReleaseShaders: task ':app:mergeReleaseShaders'
mockableAndroidJar: task ':app:mockableAndroidJar'
modelRegistry:
org.gradle.model.internal.registry.DefaultModelRegistry@4be1
40eb
modelSchemaStore:
org.gradle.model.internal.manage.schema.extract.DefaultModel
SchemaStore@a9a86b9
module:
org.gradle.api.internal.artifacts.ProjectBackedModule@2505ca
3f
name: app
normalization:
org.gradle.normalization.internal.DefaultInputNormalizationH
andler_Decorated@ffb5258
objects:
org.gradle.api.internal.model.DefaultObjectFactory@32cde1db
org.gradle.jvmargs: -Xmx1536M
packageDebug: task ':app:packageDebug'
packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
packageDynamicProfile: task ':app:packageDynamicProfile'
packageDynamicRelease: task ':app:packageDynamicRelease'
packageProfile: task ':app:packageProfile'
packageRelease: task ':app:packageRelease'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
platformAttrExtractor: task ':app:platformAttrExtractor'
pluginManager:
org.gradle.api.internal.plugins.DefaultPluginManager_Decorat
ed@1ec98a69
plugins: [org.gradle.api.plugins.HelpTasksPlugin@6af7c921,
com.android.build.gradle.api.AndroidBasePlugin@696c810,
org.gradle.language.base.plugins.LifecycleBasePlugin@20510e2
c, org.gradle.api.plugins.BasePlugin@5e050c3e,
org.gradle.api.plugins.ReportingBasePlugin@482d26d5,
org.gradle.platform.base.plugins.ComponentBasePlugin@485e64a
5,
org.gradle.language.base.plugins.LanguageBasePlugin@69e4e8f5
,
org.gradle.platform.base.plugins.BinaryBasePlugin@4c16e77c,
org.gradle.api.plugins.JavaBasePlugin@32f75bf6,
com.android.build.gradle.AppPlugin@796a4f8e,
FlutterPlugin@2bb0a230]
preBuild: task ':app:preBuild'
preDebugAndroidTestBuild: task
':app:preDebugAndroidTestBuild'
preDebugBuild: task ':app:preDebugBuild'
preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
preDynamicProfileBuild: task ':app:preDynamicProfileBuild'
preDynamicProfileUnitTestBuild: task
':app:preDynamicProfileUnitTestBuild'
preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild'
preDynamicReleaseUnitTestBuild: task
':app:preDynamicReleaseUnitTestBuild'
preProfileBuild: task ':app:preProfileBuild'
preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
preReleaseBuild: task ':app:preReleaseBuild'
preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
prepareLintJar: task ':app:prepareLintJar'
preparePUBLISHED_DEXDebugAndroidTestForPublishing: task
':app:preparePUBLISHED_DEXDebugAndroidTestForPublishing'
preparePUBLISHED_DEXDebugForPublishing: task
':app:preparePUBLISHED_DEXDebugForPublishing'
preparePUBLISHED_DEXDynamicProfileForPublishing: task
':app:preparePUBLISHED_DEXDynamicProfileForPublishing'
preparePUBLISHED_DEXDynamicReleaseForPublishing: task
':app:preparePUBLISHED_DEXDynamicReleaseForPublishing'
preparePUBLISHED_DEXProfileForPublishing: task
':app:preparePUBLISHED_DEXProfileForPublishing'
preparePUBLISHED_DEXReleaseForPublishing: task
':app:preparePUBLISHED_DEXReleaseForPublishing'
preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing: task
':app:preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing
'
preparePUBLISHED_JAVA_RESDebugForPublishing: task
':app:preparePUBLISHED_JAVA_RESDebugForPublishing'
preparePUBLISHED_JAVA_RESDynamicProfileForPublishing: task
':app:preparePUBLISHED_JAVA_RESDynamicProfileForPublishing'
preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing: task
':app:preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing'
preparePUBLISHED_JAVA_RESProfileForPublishing: task
':app:preparePUBLISHED_JAVA_RESProfileForPublishing'
preparePUBLISHED_JAVA_RESReleaseForPublishing: task
':app:preparePUBLISHED_JAVA_RESReleaseForPublishing'
preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublishing:
task
':app:preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublish
ing'
preparePUBLISHED_NATIVE_LIBSDebugForPublishing: task
':app:preparePUBLISHED_NATIVE_LIBSDebugForPublishing'
preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishing:
task
':app:preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishin
g'
preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishing:
task
':app:preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishin
g'
preparePUBLISHED_NATIVE_LIBSProfileForPublishing: task
':app:preparePUBLISHED_NATIVE_LIBSProfileForPublishing'
preparePUBLISHED_NATIVE_LIBSReleaseForPublishing: task
':app:preparePUBLISHED_NATIVE_LIBSReleaseForPublishing'
processDebugAndroidTestJavaRes: task
':app:processDebugAndroidTestJavaRes'
processDebugAndroidTestManifest: task
':app:processDebugAndroidTestManifest'
processDebugAndroidTestResources: task
':app:processDebugAndroidTestResources'
processDebugJavaRes: task ':app:processDebugJavaRes'
processDebugManifest: task ':app:processDebugManifest'
processDebugResources: task ':app:processDebugResources'
processDebugUnitTestJavaRes: task
':app:processDebugUnitTestJavaRes'
processDynamicProfileJavaRes: task
':app:processDynamicProfileJavaRes'
processDynamicProfileManifest: task
':app:processDynamicProfileManifest'
processDynamicProfileResources: task
':app:processDynamicProfileResources'
processDynamicProfileUnitTestJavaRes: task
':app:processDynamicProfileUnitTestJavaRes'
processDynamicReleaseJavaRes: task
':app:processDynamicReleaseJavaRes'
processDynamicReleaseManifest: task
':app:processDynamicReleaseManifest'
processDynamicReleaseResources: task
':app:processDynamicReleaseResources'
processDynamicReleaseUnitTestJavaRes: task
':app:processDynamicReleaseUnitTestJavaRes'
processOperations:
org.gradle.api.internal.file.DefaultFileOperations@4f91446d
processProfileJavaRes: task ':app:processProfileJavaRes'
processProfileManifest: task ':app:processProfileManifest'
processProfileResources: task ':app:processProfileResources'
processProfileUnitTestJavaRes: task
':app:processProfileUnitTestJavaRes'
processReleaseJavaRes: task ':app:processReleaseJavaRes'
processReleaseManifest: task ':app:processReleaseManifest'
processReleaseResources: task ':app:processReleaseResources'
processReleaseUnitTestJavaRes: task
':app:processReleaseUnitTestJavaRes'
project: project ':app'
projectConfigurator:
org.gradle.api.internal.project.BuildOperationCrossProjectCo
nfigurator@5fee7743
projectDir:
/home/shoxter/workspace/native_tech_app/android/app
projectEvaluationBroadcaster: ProjectEvaluationListener
broadcast
projectEvaluator:
org.gradle.configuration.project.LifecycleProjectEvaluator@a
d29774
projectPath: :app
projectRegistry:
org.gradle.api.internal.project.DefaultProjectRegistry@57cc7
ccc
properties: {...}
providers:
org.gradle.api.internal.provider.DefaultProviderFactory@5343
c746
reportBuildArtifactsDebug: task
':app:reportBuildArtifactsDebug'
reportBuildArtifactsDynamicProfile: task
':app:reportBuildArtifactsDynamicProfile'
reportBuildArtifactsDynamicRelease: task
':app:reportBuildArtifactsDynamicRelease'
reportBuildArtifactsProfile: task
':app:reportBuildArtifactsProfile'
reportBuildArtifactsRelease: task
':app:reportBuildArtifactsRelease'
reporting:
org.gradle.api.reporting.ReportingExtension_Decorated@5042e9
e
reportsDir:
/home/shoxter/workspace/native_tech_app/build/app/reports
repositories: repository container
resolveConfigAttr: task ':app:resolveConfigAttr'
resourceLoader:
org.gradle.internal.resource.transfer.DefaultUriTextResource
Loader@29fc1512
resources:
org.gradle.api.internal.resources.DefaultResourceHandler@378
b5e6e
rootDir: /home/shoxter/workspace/native_tech_app/android
rootProject: root project 'android'
script: false
scriptHandlerFactory:
org.gradle.api.internal.initialization.DefaultScriptHandlerF
actory@3957e4f
scriptPluginFactory:
org.gradle.configuration.ScriptPluginFactorySelector@27c1c07
d
serviceRegistryFactory:
org.gradle.internal.service.scopes.ProjectScopeServices$4@6e
dc0512
services: ProjectScopeServices
signingReport: task ':app:signingReport'
sourceCompatibility: 1.8
sourceSets: SourceSet container
splitsDiscoveryTaskDebug: task
':app:splitsDiscoveryTaskDebug'
splitsDiscoveryTaskDynamicProfile: task
':app:splitsDiscoveryTaskDynamicProfile'
splitsDiscoveryTaskDynamicRelease: task
':app:splitsDiscoveryTaskDynamicRelease'
splitsDiscoveryTaskProfile: task
':app:splitsDiscoveryTaskProfile'
splitsDiscoveryTaskRelease: task
':app:splitsDiscoveryTaskRelease'
standardOutputCapture:
org.gradle.internal.logging.services.DefaultLoggingManager@2
581253e
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
test: task ':app:test'
testDebugUnitTest: task ':app:testDebugUnitTest'
testDynamicProfileUnitTest: task
':app:testDynamicProfileUnitTest'
testDynamicReleaseUnitTest: task
':app:testDynamicReleaseUnitTest'
testProfileUnitTest: task ':app:testProfileUnitTest'
testReleaseUnitTest: task ':app:testReleaseUnitTest'
testReportDir:
/home/shoxter/workspace/native_tech_app/build/app/reports/te
sts
testReportDirName: tests
testResultsDir:
/home/shoxter/workspace/native_tech_app/build/app/test-resul
ts
testResultsDirName: test-results
transformClassesWithDexBuilderForDebug: task
':app:transformClassesWithDexBuilderForDebug'
transformClassesWithDexBuilderForDebugAndroidTest: task
':app:transformClassesWithDexBuilderForDebugAndroidTest'
transformClassesWithDexBuilderForDynamicProfile: task
':app:transformClassesWithDexBuilderForDynamicProfile'
transformClassesWithDexBuilderForDynamicRelease: task
':app:transformClassesWithDexBuilderForDynamicRelease'
transformClassesWithDexBuilderForProfile: task
':app:transformClassesWithDexBuilderForProfile'
transformClassesWithDexBuilderForRelease: task
':app:transformClassesWithDexBuilderForRelease'
transformDexArchiveWithDexMergerForDebug: task
':app:transformDexArchiveWithDexMergerForDebug'
transformDexArchiveWithDexMergerForDebugAndroidTest: task
':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
transformDexArchiveWithDexMergerForDynamicProfile: task
':app:transformDexArchiveWithDexMergerForDynamicProfile'
transformDexArchiveWithDexMergerForDynamicRelease: task
':app:transformDexArchiveWithDexMergerForDynamicRelease'
transformDexArchiveWithDexMergerForProfile: task
':app:transformDexArchiveWithDexMergerForProfile'
transformDexArchiveWithDexMergerForRelease: task
':app:transformDexArchiveWithDexMergerForRelease'
transformDexArchiveWithExternalLibsDexMergerForDebug: task
':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidT
est: task
':app:transformDexArchiveWithExternalLibsDexMergerForDebugAn
droidTest'
transformDexArchiveWithExternalLibsDexMergerForDynamicProfil
e: task
':app:transformDexArchiveWithExternalLibsDexMergerForDynamic
Profile'
transformDexArchiveWithExternalLibsDexMergerForDynamicReleas
e: task
':app:transformDexArchiveWithExternalLibsDexMergerForDynamic
Release'
transformDexArchiveWithExternalLibsDexMergerForProfile: task
':app:transformDexArchiveWithExternalLibsDexMergerForProfile
'
transformDexArchiveWithExternalLibsDexMergerForRelease: task
':app:transformDexArchiveWithExternalLibsDexMergerForRelease
'
transformNativeLibsWithMergeJniLibsForDebug: task
':app:transformNativeLibsWithMergeJniLibsForDebug'
transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task
':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest
'
transformNativeLibsWithMergeJniLibsForDynamicProfile: task
':app:transformNativeLibsWithMergeJniLibsForDynamicProfile'
transformNativeLibsWithMergeJniLibsForDynamicRelease: task
':app:transformNativeLibsWithMergeJniLibsForDynamicRelease'
transformNativeLibsWithMergeJniLibsForProfile: task
':app:transformNativeLibsWithMergeJniLibsForProfile'
transformNativeLibsWithMergeJniLibsForRelease: task
':app:transformNativeLibsWithMergeJniLibsForRelease'
transformResourcesWithMergeJavaResForDebug: task
':app:transformResourcesWithMergeJavaResForDebug'
transformResourcesWithMergeJavaResForDebugAndroidTest: task
':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
transformResourcesWithMergeJavaResForDebugUnitTest: task
':app:transformResourcesWithMergeJavaResForDebugUnitTest'
transformResourcesWithMergeJavaResForDynamicProfile: task
':app:transformResourcesWithMergeJavaResForDynamicProfile'
transformResourcesWithMergeJavaResForDynamicProfileUnitTest:
task
':app:transformResourcesWithMergeJavaResForDynamicProfileUni
tTest'
transformResourcesWithMergeJavaResForDynamicRelease: task
':app:transformResourcesWithMergeJavaResForDynamicRelease'
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest:
task
':app:transformResourcesWithMergeJavaResForDynamicReleaseUni
tTest'
transformResourcesWithMergeJavaResForProfile: task
':app:transformResourcesWithMergeJavaResForProfile'
transformResourcesWithMergeJavaResForProfileUnitTest: task
':app:transformResourcesWithMergeJavaResForProfileUnitTest'
transformResourcesWithMergeJavaResForRelease: task
':app:transformResourcesWithMergeJavaResForRelease'
transformResourcesWithMergeJavaResForReleaseUnitTest: task
':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
uninstallAll: task ':app:uninstallAll'
uninstallDebug: task ':app:uninstallDebug'
uninstallDebugAndroidTest: task
':app:uninstallDebugAndroidTest'
uninstallDynamicProfile: task ':app:uninstallDynamicProfile'
uninstallDynamicRelease: task ':app:uninstallDynamicRelease'
uninstallProfile: task ':app:uninstallProfile'
uninstallRelease: task ':app:uninstallRelease'
validateSigningDebug: task ':app:validateSigningDebug'
validateSigningDebugAndroidTest: task
':app:validateSigningDebugAndroidTest'
validateSigningDynamicProfile: task
':app:validateSigningDynamicProfile'
validateSigningDynamicRelease: task
':app:validateSigningDynamicRelease'
validateSigningProfile: task ':app:validateSigningProfile'
validateSigningRelease: task ':app:validateSigningRelease'
version: unspecified
writeDebugApplicationId: task ':app:writeDebugApplicationId'
writeDynamicProfileApplicationId: task
':app:writeDynamicProfileApplicationId'
writeDynamicReleaseApplicationId: task
':app:writeDynamicReleaseApplicationId'
writeProfileApplicationId: task
':app:writeProfileApplicationId'
writeReleaseApplicationId: task
':app:writeReleaseApplicationId'
1 actionable task: 1 executed
[ +24 ms] executing: [/home/shoxter/workspace/native_tech_app/android/]
/home/shoxter/workspace/native_tech_app/android/gradlew app:tasks --all
[ +511 ms]
------------------------------------------------------------
All tasks runnable from project :app
------------------------------------------------------------
Android tasks
-------------
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for each variant.
sourceSets - Prints out all the source sets defined in this project.
Build tasks
-----------
assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug builds.
assembleDynamicProfile - Assembles all DynamicProfile builds.
assembleDynamicRelease - Assembles all DynamicRelease builds.
assembleProfile - Assembles all Profile builds.
assembleRelease - Assembles all Release builds.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
clean - Deletes the build directory.
cleanBuildCache - Deletes the build cache directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileDynamicProfileSources
compileDynamicProfileUnitTestSources
compileDynamicReleaseSources
compileDynamicReleaseUnitTestSources
compileProfileSources
compileProfileUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
mockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in project ':app'.
components - Displays the components produced by project ':app'. [incubating]
dependencies - Displays all dependencies declared in project ':app'.
dependencyInsight - Displays the insight into a specific dependency in project ':app'.
dependentComponents - Displays the dependent components of components in project ':app'. [incubating]
help - Displays a help message.
model - Displays the configuration model of project ':app'. [incubating]
projects - Displays the sub-projects of project ':app'.
properties - Displays the properties of project ':app'.
tasks - Displays the tasks runnable from project ':app'.
Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
installDynamicProfile - Installs the DynamicProfile build.
installDynamicRelease - Installs the DynamicRelease build.
installProfile - Installs the Profile build.
installRelease - Installs the Release build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallDynamicProfile - Uninstalls the DynamicProfile build.
uninstallDynamicRelease - Uninstalls the DynamicRelease build.
uninstallProfile - Uninstalls the Profile build.
uninstallRelease - Uninstalls the Release build.
Verification tasks
------------------
check - Runs all checks.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.
deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.
deviceCheck - Runs all device checks using Device Providers and Test Servers.
lint - Runs lint on all variants.
lintDebug - Runs lint on the Debug build.
lintDynamicProfile - Runs lint on the DynamicProfile build.
lintDynamicRelease - Runs lint on the DynamicRelease build.
lintProfile - Runs lint on the Profile build.
lintRelease - Runs lint on the Release build.
lintVitalRelease - Runs lint on just the fatal issues in the release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testDynamicProfileUnitTest - Run unit tests for the dynamicProfile build.
testDynamicReleaseUnitTest - Run unit tests for the dynamicRelease build.
testProfileUnitTest - Run unit tests for the profile build.
testReleaseUnitTest - Run unit tests for the release build.
Other tasks
-----------
assembleDebugAndroidTest
assembleDebugUnitTest
assembleDynamicProfileUnitTest
assembleDynamicReleaseUnitTest
assembleProfileUnitTest
assembleReleaseUnitTest
bundleAppClassesDebug
bundleAppClassesDebugAndroidTest
bundleAppClassesDebugUnitTest
bundleAppClassesDynamicProfile
bundleAppClassesDynamicProfileUnitTest
bundleAppClassesDynamicRelease
bundleAppClassesDynamicReleaseUnitTest
bundleAppClassesProfile
bundleAppClassesProfileUnitTest
bundleAppClassesRelease
bundleAppClassesReleaseUnitTest
bundleDebugAndroidTestResources
bundleDebugResources
bundleDynamicProfileResources
bundleDynamicReleaseResources
bundleProfileResources
bundleReleaseResources
checkDebugManifest
checkDynamicProfileManifest
checkDynamicReleaseManifest
checkProfileManifest
checkReleaseManifest
compileDebugAidl
compileDebugAndroidTestAidl
compileDebugAndroidTestJavaWithJavac
compileDebugAndroidTestNdk
compileDebugAndroidTestRenderscript
compileDebugAndroidTestShaders
compileDebugJavaWithJavac
compileDebugNdk
compileDebugRenderscript
compileDebugShaders
compileDebugUnitTestJavaWithJavac
compileDynamicProfileAidl
compileDynamicProfileJavaWithJavac
compileDynamicProfileNdk
compileDynamicProfileRenderscript
compileDynamicProfileShaders
compileDynamicProfileUnitTestJavaWithJavac
compileDynamicReleaseAidl
compileDynamicReleaseJavaWithJavac
compileDynamicReleaseNdk
compileDynamicReleaseRenderscript
compileDynamicReleaseShaders
compileDynamicReleaseUnitTestJavaWithJavac
compileLint
compileProfileAidl
compileProfileJavaWithJavac
compileProfileNdk
compileProfileRenderscript
compileProfileShaders
compileProfileUnitTestJavaWithJavac
compileReleaseAidl
compileReleaseJavaWithJavac
compileReleaseNdk
compileReleaseRenderscript
compileReleaseShaders
compileReleaseUnitTestJavaWithJavac
consumeConfigAttr
copyFlutterAssetsDebug
copyFlutterAssetsDynamicProfile
copyFlutterAssetsDynamicRelease
copyFlutterAssetsProfile
copyFlutterAssetsRelease
createDebugCompatibleScreenManifests
createDynamicProfileCompatibleScreenManifests
createDynamicReleaseCompatibleScreenManifests
createProfileCompatibleScreenManifests
createReleaseCompatibleScreenManifests
extractProguardFiles
flutterBuildDebug
flutterBuildDynamicProfile
flutterBuildDynamicRelease
flutterBuildProfile
flutterBuildRelease
flutterBuildX86Jar
generateDebugAndroidTestAssets
generateDebugAndroidTestBuildConfig
generateDebugAndroidTestResources
generateDebugAndroidTestResValues
generateDebugAndroidTestSources
generateDebugAssets
generateDebugBuildConfig
generateDebugResources
generateDebugResValues
generateDebugSources
generateDynamicProfileAssets
generateDynamicProfileBuildConfig
generateDynamicProfileResources
generateDynamicProfileResValues
generateDynamicProfileSources
generateDynamicReleaseAssets
generateDynamicReleaseBuildConfig
generateDynamicReleaseResources
generateDynamicReleaseResValues
generateDynamicReleaseSources
generateProfileAssets
generateProfileBuildConfig
generateProfileResources
generateProfileResValues
generateProfileSources
generateReleaseAssets
generateReleaseBuildConfig
generateReleaseResources
generateReleaseResValues
generateReleaseSources
javaPreCompileDebug
javaPreCompileDebugAndroidTest
javaPreCompileDebugUnitTest
javaPreCompileDynamicProfile
javaPreCompileDynamicProfileUnitTest
javaPreCompileDynamicRelease
javaPreCompileDynamicReleaseUnitTest
javaPreCompileProfile
javaPreCompileProfileUnitTest
javaPreCompileRelease
javaPreCompileReleaseUnitTest
mainApkListPersistenceDebug
mainApkListPersistenceDebugAndroidTest
mainApkListPersistenceDynamicProfile
mainApkListPersistenceDynamicRelease
mainApkListPersistenceProfile
mainApkListPersistenceRelease
mergeDebugAndroidTestAssets
mergeDebugAndroidTestJniLibFolders
mergeDebugAndroidTestResources
mergeDebugAndroidTestShaders
mergeDebugAssets
mergeDebugJniLibFolders
mergeDebugResources
mergeDebugShaders
mergeDynamicProfileAssets
mergeDynamicProfileJniLibFolders
mergeDynamicProfileResources
mergeDynamicProfileShaders
mergeDynamicReleaseAssets
mergeDynamicReleaseJniLibFolders
mergeDynamicReleaseResources
mergeDynamicReleaseShaders
mergeProfileAssets
mergeProfileJniLibFolders
mergeProfileResources
mergeProfileShaders
mergeReleaseAssets
mergeReleaseJniLibFolders
mergeReleaseResources
mergeReleaseShaders
packageDebug
packageDebugAndroidTest
packageDynamicProfile
packageDynamicRelease
packageProfile
packageRelease
platformAttrExtractor
preBuild
preDebugAndroidTestBuild
preDebugBuild
preDebugUnitTestBuild
preDynamicProfileBuild
preDynamicProfileUnitTestBuild
preDynamicReleaseBuild
preDynamicReleaseUnitTestBuild
prepareLintJar
preparePUBLISHED_DEXDebugAndroidTestForPublishing
preparePUBLISHED_DEXDebugForPublishing
preparePUBLISHED_DEXDynamicProfileForPublishing
preparePUBLISHED_DEXDynamicReleaseForPublishing
preparePUBLISHED_DEXProfileForPublishing
preparePUBLISHED_DEXReleaseForPublishing
preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing
preparePUBLISHED_JAVA_RESDebugForPublishing
preparePUBLISHED_JAVA_RESDynamicProfileForPublishing
preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing
preparePUBLISHED_JAVA_RESProfileForPublishing
preparePUBLISHED_JAVA_RESReleaseForPublishing
preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublishing
preparePUBLISHED_NATIVE_LIBSDebugForPublishing
preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishing
preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishing
preparePUBLISHED_NATIVE_LIBSProfileForPublishing
preparePUBLISHED_NATIVE_LIBSReleaseForPublishing
preProfileBuild
preProfileUnitTestBuild
preReleaseBuild
preReleaseUnitTestBuild
processDebugAndroidTestJavaRes
processDebugAndroidTestManifest
processDebugAndroidTestResources
processDebugJavaRes
processDebugManifest
processDebugResources
processDebugUnitTestJavaRes
processDynamicProfileJavaRes
processDynamicProfileManifest
processDynamicProfileResources
processDynamicProfileUnitTestJavaRes
processDynamicReleaseJavaRes
processDynamicReleaseManifest
processDynamicReleaseResources
processDynamicReleaseUnitTestJavaRes
processProfileJavaRes
processProfileManifest
processProfileResources
processProfileUnitTestJavaRes
processReleaseJavaRes
processReleaseManifest
processReleaseResources
processReleaseUnitTestJavaRes
reportBuildArtifactsDebug
reportBuildArtifactsDynamicProfile
reportBuildArtifactsDynamicRelease
reportBuildArtifactsProfile
reportBuildArtifactsRelease
resolveConfigAttr
splitsDiscoveryTaskDebug
splitsDiscoveryTaskDynamicProfile
splitsDiscoveryTaskDynamicRelease
splitsDiscoveryTaskProfile
splitsDiscoveryTaskRelease
transformClassesWithDexBuilderForDebug
transformClassesWithDexBuilderForDebugAndroidTest
transformClassesWithDexBuilderForDynamicProfile
transformClassesWithDexBuilderForDynamicRelease
transformClassesWithDexBuilderForProfile
transformClassesWithDexBuilderForRelease
transformDexArchiveWithDexMergerForDebug
transformDexArchiveWithDexMergerForDebugAndroidTest
transformDexArchiveWithDexMergerForDynamicProfile
transformDexArchiveWithDexMergerForDynamicRelease
transformDexArchiveWithDexMergerForProfile
transformDexArchiveWithDexMergerForRelease
transformDexArchiveWithExternalLibsDexMergerForDebug
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease
transformDexArchiveWithExternalLibsDexMergerForProfile
transformDexArchiveWithExternalLibsDexMergerForRelease
transformNativeLibsWithMergeJniLibsForDebug
transformNativeLibsWithMergeJniLibsForDebugAndroidTest
transformNativeLibsWithMergeJniLibsForDynamicProfile
transformNativeLibsWithMergeJniLibsForDynamicRelease
transformNativeLibsWithMergeJniLibsForProfile
transformNativeLibsWithMergeJniLibsForRelease
transformResourcesWithMergeJavaResForDebug
transformResourcesWithMergeJavaResForDebugAndroidTest
transformResourcesWithMergeJavaResForDebugUnitTest
transformResourcesWithMergeJavaResForDynamicProfile
transformResourcesWithMergeJavaResForDynamicProfileUnitTest
transformResourcesWithMergeJavaResForDynamicRelease
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest
transformResourcesWithMergeJavaResForProfile
transformResourcesWithMergeJavaResForProfileUnitTest
transformResourcesWithMergeJavaResForRelease
transformResourcesWithMergeJavaResForReleaseUnitTest
validateSigningDebug
validateSigningDebugAndroidTest
validateSigningDynamicProfile
validateSigningDynamicRelease
validateSigningProfile
validateSigningRelease
writeDebugApplicationId
writeDynamicProfileApplicationId
writeDynamicReleaseApplicationId
writeProfileApplicationId
writeReleaseApplicationId
Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.
1 actionable task: 1 executed
[ +2 ms] Resolving dependencies... (completed)
[ ] executing: /home/shoxter/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/shoxter/workspace/native_tech_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +6 ms] Exit code 0 from: /home/shoxter/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/shoxter/workspace/native_tech_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
A: package="com.example.nativetechapp" (Raw: "com.example.nativetechapp")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=17)
A: android:name(0x01010003)="android.permission.ACCESS_FINE_LOCATION" (Raw: "android.permission.ACCESS_FINE_LOCATION")
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.ACCESS_COARSE_LOCATION" (Raw: "android.permission.ACCESS_COARSE_LOCATION")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
E: uses-permission (line=20)
A: android:name(0x01010003)="android.permission.USE_FINGERPRINT" (Raw: "android.permission.USE_FINGERPRINT")
E: uses-permission (line=21)
A: android:name(0x01010003)="android.permission.VIBRATE" (Raw: "android.permission.VIBRATE")
E: uses-feature (line=23)
A: android:name(0x01010003)="android.hardware.camera" (Raw: "android.hardware.camera")
A: android:required(0x0101028e)=(type 0x12)0x0
E: uses-feature (line=26)
A: android:name(0x01010003)="android.hardware.camera.autofocus" (Raw: "android.hardware.camera.autofocus")
A: android:required(0x0101028e)=(type 0x12)0x0
E: application (line=36)
A: android:label(0x01010001)="native_tech_app" (Raw: "native_tech_app")
A: android:icon(0x01010002)=@0x7f090000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: meta-data (line=41)
A: android:name(0x01010003)="com.google.android.maps.v2.API_KEY" (Raw: "com.google.android.maps.v2.API_KEY")
A: android:value(0x01010024)="AIzaSyCivvNNl4Prd5fldlYrSdYYq0iRITU8ldE" (Raw: "AIzaSyCivvNNl4Prd5fldlYrSdYYq0iRITU8ldE")
E: activity (line=45)
A: android:theme(0x01010000)=@0x7f0b0001
A: android:name(0x01010003)="com.example.nativetechapp.MainActivity" (Raw: "com.example.nativetechapp.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=59)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=63)
E: action (line=64)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=66)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: activity (line=69)
A: android:theme(0x01010000)=@0x1030007
A: android:name(0x01010003)="io.flutter.plugins.urllauncher.UrlLauncherPlugin$WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.UrlLauncherPlugin$WebViewActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=74)
A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION")
A: android:value(0x01010024)="26.1.0" (Raw: "26.1.0")
E: activity (line=78)
A: android:name(0x01010003)="io.card.payment.CardIOActivity" (Raw: "io.card.payment.CardIOActivity")
A: android:configChanges(0x0101001f)=(type 0x11)0xa0
E: activity (line=81)
A: android:name(0x01010003)="io.card.payment.DataEntryActivity" (Raw: "io.card.payment.DataEntryActivity")
E: meta-data (line=83)
A: android:name(0x01010003)="android.arch.lifecycle.VERSION" (Raw: "android.arch.lifecycle.VERSION")
A: android:value(0x01010024)="27.0.0-SNAPSHOT" (Raw: "27.0.0-SNAPSHOT")
[ +3 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +11 ms] Exit code 0 from: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of main
12-13 09:01:00.009 D/hwcomposer( 1438): hw_composer sent 72 syncs in 67s
[ +1 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time
[ +325 ms] DependencyChecker: nothing is modified after 2018-12-13 09:00:34.267.
[ +1 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb version
[ +12 ms] Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as /home/shoxter/Android/Sdk/platform-tools/adb
[ +1 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb start-server
[ +39 ms] Building APK
[ +8 ms] Gradle task 'assembleDebug'...
[ +1 ms] executing: [/home/shoxter/workspace/native_tech_app/android/] /home/shoxter/workspace/native_tech_app/android/gradlew -Pverbose=true -Ptarget=/home/shoxter/workspace/native_tech_app/lib/main.dart -Ptrack-widget-creation=false
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +986 ms] 180 actionable tasks: 3 executed, 177 up-to-date
[ +333 ms] Gradle task 'assembleDebug'... (completed)
[ +48 ms] calculateSha: LocalDirectory: '/home/shoxter/workspace/native_tech_app/build/app/outputs/apk'/app.apk
[ +483 ms] Built build/app/outputs/apk/debug/app-debug.apk.
[ ] executing: /home/shoxter/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/shoxter/workspace/native_tech_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +6 ms] Exit code 0 from: /home/shoxter/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/shoxter/workspace/native_tech_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
A: package="com.example.nativetechapp" (Raw: "com.example.nativetechapp")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=17)
A: android:name(0x01010003)="android.permission.ACCESS_FINE_LOCATION" (Raw: "android.permission.ACCESS_FINE_LOCATION")
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.ACCESS_COARSE_LOCATION" (Raw: "android.permission.ACCESS_COARSE_LOCATION")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
E: uses-permission (line=20)
A: android:name(0x01010003)="android.permission.USE_FINGERPRINT" (Raw: "android.permission.USE_FINGERPRINT")
E: uses-permission (line=21)
A: android:name(0x01010003)="android.permission.VIBRATE" (Raw: "android.permission.VIBRATE")
E: uses-feature (line=23)
A: android:name(0x01010003)="android.hardware.camera" (Raw: "android.hardware.camera")
A: android:required(0x0101028e)=(type 0x12)0x0
E: uses-feature (line=26)
A: android:name(0x01010003)="android.hardware.camera.autofocus" (Raw: "android.hardware.camera.autofocus")
A: android:required(0x0101028e)=(type 0x12)0x0
E: application (line=36)
A: android:label(0x01010001)="native_tech_app" (Raw: "native_tech_app")
A: android:icon(0x01010002)=@0x7f090000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: meta-data (line=41)
A: android:name(0x01010003)="com.google.android.maps.v2.API_KEY" (Raw: "com.google.android.maps.v2.API_KEY")
A: android:value(0x01010024)="AIzaSyCivvNNl4Prd5fldlYrSdYYq0iRITU8ldE" (Raw: "AIzaSyCivvNNl4Prd5fldlYrSdYYq0iRITU8ldE")
E: activity (line=45)
A: android:theme(0x01010000)=@0x7f0b0001
A: android:name(0x01010003)="com.example.nativetechapp.MainActivity" (Raw: "com.example.nativetechapp.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=59)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=63)
E: action (line=64)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=66)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: activity (line=69)
A: android:theme(0x01010000)=@0x1030007
A: android:name(0x01010003)="io.flutter.plugins.urllauncher.UrlLauncherPlugin$WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.UrlLauncherPlugin$WebViewActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=74)
A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION")
A: android:value(0x01010024)="26.1.0" (Raw: "26.1.0")
E: activity (line=78)
A: android:name(0x01010003)="io.card.payment.CardIOActivity" (Raw: "io.card.payment.CardIOActivity")
A: android:configChanges(0x0101001f)=(type 0x11)0xa0
E: activity (line=81)
A: android:name(0x01010003)="io.card.payment.DataEntryActivity" (Raw: "io.card.payment.DataEntryActivity")
E: meta-data (line=83)
A: android:name(0x01010003)="android.arch.lifecycle.VERSION" (Raw: "android.arch.lifecycle.VERSION")
A: android:value(0x01010024)="27.0.0-SNAPSHOT" (Raw: "27.0.0-SNAPSHOT")
[ ] Stopping app 'app.apk' on Android SDK built for x86.
[ ] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.nativetechapp
[ +292 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.nativetechapp
[ +223 ms] package:com.example.nativetechapp
[ +1 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.nativetechapp.sha1
[ +12 ms] 623be40f43130df8b9b522a08541675565eed160
[ ] Latest build already installed.
[ ] Android SDK built for x86 startApp
[ ] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode
true com.example.nativetechapp/com.example.nativetechapp.MainActivity
[ +28 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.nativetechapp/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +328 ms] Observatory URL on device: http://127.0.0.1:46895/
[ ] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:46895
[ +7 ms] 39165
[ ] Forwarded host port 39165 to device port 46895 for Observatory
[ +5 ms] Connecting to service protocol: http://127.0.0.1:39165/
[ +157 ms] Successfully connected to service protocol: http://127.0.0.1:39165/
[ +1 ms] Sending to VM service: getVM({})
[ +45 ms] Result: {type: VM, name: vm, architectureBits: 32, targetCPU: ia32, hostCPU: Android virtual processor, version: 2.1.0-dev.9.4.flutter-f9ebf21297 (Thu Nov 8 23:00:07 2018 +0100) on "android_ia32", _profilerMode: VM,
_nativeZoneMemoryUsage: 0, pid: 6367, s...
[ +2 ms] Sending to VM service: getIsolate({isolateId: isolates/490023866})
[ +2 ms] Sending to VM service: _flutter.listViews({})
[ +2 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xedcb4f8c, isolate: {type: @Isolate, fixedId: true, id: isolates/490023866, name: main.dart$main-490023866, number: 490023866}}]}
[ +3 ms] DevFS: Creating new filesystem on the device (null)
[ ] Sending to VM service: _createDevFS({fsName: native_tech_app})
[ +67 ms] Result: {type: Isolate, fixedId: true, id: isolates/490023866, name: main.dart:main(), number: 490023866, _originNumber: 490023866, startTime: 1544709664869, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger,
collections: 2, avgCollectionPeriod...
[ +12 ms] Result: {type: FileSystem, name: native_tech_app, uri: file:///data/user/0/com.example.nativetechapp/cache/native_tech_appFYZXPY/native_tech_app/}
[ ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.nativetechapp/cache/native_tech_appFYZXPY/native_tech_app/)
[ +1 ms] Updating assets
[ +105 ms] Syncing files to device Android SDK built for x86...
[ +1 ms] DevFS: Starting sync from LocalDirectory: '/home/shoxter/workspace/native_tech_app'
[ ] Scanning project files
[ +12 ms] Scanning package files
[ +61 ms] Scanning asset files
[ ] Scanning for deleted files
[ +11 ms] Compiling dart to kernel with 1002 updated files
[ +4 ms] /home/shoxter/workspace/flutter/bin/cache/dart-sdk/bin/dart /home/shoxter/workspace/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/shoxter/workspace/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /home/shoxter/workspace/native_tech_app/.packages --filesystem-scheme
org-dartlang-root
[ +1 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +12 ms] D/ ( 6367): HostConnection::get() New Host Connection established 0xe6387740, tid 6385
[ +67 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe3a2c240: ver 2 0 (tinfo 0xe6383330)
[ +86 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +37 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +13 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +79 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +899 ms] Updating files
[ +98 ms] DevFS: Sync finished
[ ] Syncing files to device Android SDK built for x86... (completed)
[ ] Synced 0.9MB.
[ ] Sending to VM service: _flutter.listViews({})
[ +3 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xedcb4f8c, isolate: {type: @Isolate, fixedId: true, id: isolates/490023866, name: main.dart$main-490023866, number: 490023866}}]}
[ ] Connected to _flutterView/0xedcb4f8c.
[ +1 ms] 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[ ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:39165/
[ ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
[ +377 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)"><pre class="notranslate"><code class="notranslate">flutter run --verbose
[ +17 ms] executing: [/home/shoxter/workspace/flutter/] git rev-parse
--abbrev-ref --symbolic @{u}
[ +20 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] origin/stable
[ ] executing: [/home/shoxter/workspace/flutter/] git rev-parse
--abbrev-ref HEAD
[ +4 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] stable
[ ] executing: [/home/shoxter/workspace/flutter/] git ls-remote --get-url
origin
[ +5 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] https://github.com/flutter/flutter.git
[ ] executing: [/home/shoxter/workspace/flutter/] git log -n 1
--pretty=format:%H
[ +4 ms] Exit code 0 from: git log -n 1 --pretty=format:%H
[ ] 5391447fae6209bb21a89e6a5a6583cac1af9b4b
[ ] executing: [/home/shoxter/workspace/flutter/] git log -n 1
--pretty=format:%ar
[ +4 ms] Exit code 0 from: git log -n 1 --pretty=format:%ar
[ ] 13 days ago
[ ] executing: [/home/shoxter/workspace/flutter/] git describe --match
v*.*.* --first-parent --long --tags
[ +4 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long
--tags
[ ] v1.0.0-0-g5391447
[ +45 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb devices -l
[ +5 ms] Exit code 0 from: /home/shoxter/Android/Sdk/platform-tools/adb
devices -l
[ ] List of devices attached
emulator-5554 device product:sdk_gphone_x86
model:Android_SDK_built_for_x86 device:generic_x86
[ +97 ms] Found plugin flutter_card_io at
/home/shoxter/workspace/flutter/.pub-cache/git/flutter_card_io-c5394d84726829f87
4167485d23fab2ec84ac246/
[ +4 ms] Found plugin flutter_stetho at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_steth
o-0.2.1/
[ +4 ms] Found plugin fluttertoast at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-
2.1.2/
[ +3 ms] Found plugin local_auth at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/local_auth-0.
3.0/
[ +4 ms] Found plugin path_provider at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider
-0.4.1/
[ +9 ms] Found plugin url_launcher at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-
4.0.1/
[ +55 ms] Found plugin flutter_card_io at
/home/shoxter/workspace/flutter/.pub-cache/git/flutter_card_io-c5394d84726829f87
4167485d23fab2ec84ac246/
[ +2 ms] Found plugin flutter_stetho at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_steth
o-0.2.1/
[ +1 ms] Found plugin fluttertoast at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/fluttertoast-
2.1.2/
[ +1 ms] Found plugin local_auth at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/local_auth-0.
3.0/
[ +2 ms] Found plugin path_provider at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider
-0.4.1/
[ +6 ms] Found plugin url_launcher at
/home/shoxter/workspace/flutter/.pub-cache/hosted/pub.dartlang.org/url_launcher-
4.0.1/
[ +18 ms] /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell
getprop
[ +23 ms] ro.hardware = ranchu
[ +11 ms] Using hardware rendering with device Android SDK built for x86. If
you get
graphics artifacts, consider enabling software rendering with
"--enable-software-rendering".
[ +516 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[ +13 ms] Initializing gradle...
[ +5 ms] Using gradle from
/home/shoxter/workspace/native_tech_app/android/gradlew.
[ +114 ms] executing: /home/shoxter/workspace/native_tech_app/android/gradlew -v
[ +417 ms]
------------------------------------------------------------
Gradle 4.4
------------------------------------------------------------
Build time: 2017-12-06 09:05:06 UTC
Revision: cf7821a6f79f8e2a598df21780e3ff7ce8db2b82
Groovy: 2.4.12
Ant: Apache Ant(TM) version 1.9.9 compiled on
February 2 2017
JVM: 1.8.0_152-release (JetBrains s.r.o 25.152-b01)
OS: Linux 4.10.0-38-generic amd64
[ ] Initializing gradle... (completed)
[ ] Resolving dependencies...
[ ] executing: [/home/shoxter/workspace/native_tech_app/android/]
/home/shoxter/workspace/native_tech_app/android/gradlew app:properties
[ +504 ms]
------------------------------------------------------------
Project :app
------------------------------------------------------------
allprojects: [project ':app']
android:
com.android.build.gradle.AppExtension_Decorated@2464d5fe
androidDependencies: task ':app:androidDependencies'
ant:
org.gradle.api.internal.project.DefaultAntBuilder@5e02b547
antBuilderFactory:
org.gradle.api.internal.project.DefaultAntBuilderFactory@5ca
ba4f0
archivesBaseName: app
artifacts:
org.gradle.api.internal.artifacts.dsl.DefaultArtifactHandler
_Decorated@f0865b9
asDynamicObject: DynamicObject for project ':app'
assemble: task ':app:assemble'
assembleAndroidTest: task ':app:assembleAndroidTest'
assembleDebug: task ':app:assembleDebug'
assembleDebugAndroidTest: task
':app:assembleDebugAndroidTest'
assembleDebugUnitTest: task ':app:assembleDebugUnitTest'
assembleDynamicProfile: task ':app:assembleDynamicProfile'
assembleDynamicProfileUnitTest: task
':app:assembleDynamicProfileUnitTest'
assembleDynamicRelease: task ':app:assembleDynamicRelease'
assembleDynamicReleaseUnitTest: task
':app:assembleDynamicReleaseUnitTest'
assembleProfile: task ':app:assembleProfile'
assembleProfileUnitTest: task ':app:assembleProfileUnitTest'
assembleRelease: task ':app:assembleRelease'
assembleReleaseUnitTest: task ':app:assembleReleaseUnitTest'
baseClassLoaderScope:
org.gradle.api.internal.initialization.DefaultClassLoaderSco
pe@dc19a83
buildDependents: task ':app:buildDependents'
buildDir: /home/shoxter/workspace/native_tech_app/build/app
buildFile:
/home/shoxter/workspace/native_tech_app/android/app/build.gr
adle
buildNeeded: task ':app:buildNeeded'
buildOutputs: BaseVariantOutput container
buildPath: :
buildScriptSource:
org.gradle.groovy.scripts.TextResourceScriptSource@46a2aef1
buildscript:
org.gradle.api.internal.initialization.DefaultScriptHandler@
47af0ef1
bundleAppClassesDebug: task ':app:bundleAppClassesDebug'
bundleAppClassesDebugAndroidTest: task
':app:bundleAppClassesDebugAndroidTest'
bundleAppClassesDebugUnitTest: task
':app:bundleAppClassesDebugUnitTest'
bundleAppClassesDynamicProfile: task
':app:bundleAppClassesDynamicProfile'
bundleAppClassesDynamicProfileUnitTest: task
':app:bundleAppClassesDynamicProfileUnitTest'
bundleAppClassesDynamicRelease: task
':app:bundleAppClassesDynamicRelease'
bundleAppClassesDynamicReleaseUnitTest: task
':app:bundleAppClassesDynamicReleaseUnitTest'
bundleAppClassesProfile: task ':app:bundleAppClassesProfile'
bundleAppClassesProfileUnitTest: task
':app:bundleAppClassesProfileUnitTest'
bundleAppClassesRelease: task ':app:bundleAppClassesRelease'
bundleAppClassesReleaseUnitTest: task
':app:bundleAppClassesReleaseUnitTest'
bundleDebugAndroidTestResources: task
':app:bundleDebugAndroidTestResources'
bundleDebugResources: task ':app:bundleDebugResources'
bundleDynamicProfileResources: task
':app:bundleDynamicProfileResources'
bundleDynamicReleaseResources: task
':app:bundleDynamicReleaseResources'
bundleProfileResources: task ':app:bundleProfileResources'
bundleReleaseResources: task ':app:bundleReleaseResources'
check: task ':app:check'
checkDebugManifest: task ':app:checkDebugManifest'
checkDynamicProfileManifest: task
':app:checkDynamicProfileManifest'
checkDynamicReleaseManifest: task
':app:checkDynamicReleaseManifest'
checkProfileManifest: task ':app:checkProfileManifest'
checkReleaseManifest: task ':app:checkReleaseManifest'
childProjects: {}
class: class
org.gradle.api.internal.project.DefaultProject_Decorated
classLoaderScope:
org.gradle.api.internal.initialization.DefaultClassLoaderSco
pe@b469e10
cleanBuildCache: task ':app:cleanBuildCache'
compileDebugAidl: task ':app:compileDebugAidl'
compileDebugAndroidTestAidl: task
':app:compileDebugAndroidTestAidl'
compileDebugAndroidTestJavaWithJavac: task
':app:compileDebugAndroidTestJavaWithJavac'
compileDebugAndroidTestNdk: task
':app:compileDebugAndroidTestNdk'
compileDebugAndroidTestRenderscript: task
':app:compileDebugAndroidTestRenderscript'
compileDebugAndroidTestShaders: task
':app:compileDebugAndroidTestShaders'
compileDebugAndroidTestSources: task
':app:compileDebugAndroidTestSources'
compileDebugJavaWithJavac: task
':app:compileDebugJavaWithJavac'
compileDebugNdk: task ':app:compileDebugNdk'
compileDebugRenderscript: task
':app:compileDebugRenderscript'
compileDebugShaders: task ':app:compileDebugShaders'
compileDebugSources: task ':app:compileDebugSources'
compileDebugUnitTestJavaWithJavac: task
':app:compileDebugUnitTestJavaWithJavac'
compileDebugUnitTestSources: task
':app:compileDebugUnitTestSources'
compileDynamicProfileAidl: task
':app:compileDynamicProfileAidl'
compileDynamicProfileJavaWithJavac: task
':app:compileDynamicProfileJavaWithJavac'
compileDynamicProfileNdk: task
':app:compileDynamicProfileNdk'
compileDynamicProfileRenderscript: task
':app:compileDynamicProfileRenderscript'
compileDynamicProfileShaders: task
':app:compileDynamicProfileShaders'
compileDynamicProfileSources: task
':app:compileDynamicProfileSources'
compileDynamicProfileUnitTestJavaWithJavac: task
':app:compileDynamicProfileUnitTestJavaWithJavac'
compileDynamicProfileUnitTestSources: task
':app:compileDynamicProfileUnitTestSources'
compileDynamicReleaseAidl: task
':app:compileDynamicReleaseAidl'
compileDynamicReleaseJavaWithJavac: task
':app:compileDynamicReleaseJavaWithJavac'
compileDynamicReleaseNdk: task
':app:compileDynamicReleaseNdk'
compileDynamicReleaseRenderscript: task
':app:compileDynamicReleaseRenderscript'
compileDynamicReleaseShaders: task
':app:compileDynamicReleaseShaders'
compileDynamicReleaseSources: task
':app:compileDynamicReleaseSources'
compileDynamicReleaseUnitTestJavaWithJavac: task
':app:compileDynamicReleaseUnitTestJavaWithJavac'
compileDynamicReleaseUnitTestSources: task
':app:compileDynamicReleaseUnitTestSources'
compileLint: task ':app:compileLint'
compileProfileAidl: task ':app:compileProfileAidl'
compileProfileJavaWithJavac: task
':app:compileProfileJavaWithJavac'
compileProfileNdk: task ':app:compileProfileNdk'
compileProfileRenderscript: task
':app:compileProfileRenderscript'
compileProfileShaders: task ':app:compileProfileShaders'
compileProfileSources: task ':app:compileProfileSources'
compileProfileUnitTestJavaWithJavac: task
':app:compileProfileUnitTestJavaWithJavac'
compileProfileUnitTestSources: task
':app:compileProfileUnitTestSources'
compileReleaseAidl: task ':app:compileReleaseAidl'
compileReleaseJavaWithJavac: task
':app:compileReleaseJavaWithJavac'
compileReleaseNdk: task ':app:compileReleaseNdk'
compileReleaseRenderscript: task
':app:compileReleaseRenderscript'
compileReleaseShaders: task ':app:compileReleaseShaders'
compileReleaseSources: task ':app:compileReleaseSources'
compileReleaseUnitTestJavaWithJavac: task
':app:compileReleaseUnitTestJavaWithJavac'
compileReleaseUnitTestSources: task
':app:compileReleaseUnitTestSources'
components: SoftwareComponentInternal set
configurationActions:
org.gradle.configuration.project.DefaultProjectConfiguration
ActionContainer@ad20879
configurationTargetIdentifier:
org.gradle.configuration.ConfigurationTargetIdentifier$1@595
4eaf4
configurations: configuration container
connectedAndroidTest: task ':app:connectedAndroidTest'
connectedCheck: task ':app:connectedCheck'
connectedDebugAndroidTest: task
':app:connectedDebugAndroidTest'
consumeConfigAttr: task ':app:consumeConfigAttr'
convention:
org.gradle.api.internal.plugins.DefaultConvention@6633afa9
copyFlutterAssetsDebug: task ':app:copyFlutterAssetsDebug'
copyFlutterAssetsDynamicProfile: task
':app:copyFlutterAssetsDynamicProfile'
copyFlutterAssetsDynamicRelease: task
':app:copyFlutterAssetsDynamicRelease'
copyFlutterAssetsProfile: task
':app:copyFlutterAssetsProfile'
copyFlutterAssetsRelease: task
':app:copyFlutterAssetsRelease'
createDebugCompatibleScreenManifests: task
':app:createDebugCompatibleScreenManifests'
createDynamicProfileCompatibleScreenManifests: task
':app:createDynamicProfileCompatibleScreenManifests'
createDynamicReleaseCompatibleScreenManifests: task
':app:createDynamicReleaseCompatibleScreenManifests'
createProfileCompatibleScreenManifests: task
':app:createProfileCompatibleScreenManifests'
createReleaseCompatibleScreenManifests: task
':app:createReleaseCompatibleScreenManifests'
defaultArtifacts:
org.gradle.api.internal.plugins.DefaultArtifactPublicationSe
t_Decorated@59ba0b61
defaultTasks: []
deferredProjectConfiguration:
org.gradle.api.internal.project.DeferredProjectConfiguration
@433151ef
dependencies:
org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDe
pendencyHandler_Decorated@3d4c1037
depth: 1
description: null
deviceAndroidTest: task ':app:deviceAndroidTest'
deviceCheck: task ':app:deviceCheck'
displayName: project ':app'
distsDir:
/home/shoxter/workspace/native_tech_app/build/app/distributi
ons
distsDirName: distributions
docsDir:
/home/shoxter/workspace/native_tech_app/build/app/docs
docsDirName: docs
ext:
org.gradle.api.internal.plugins.DefaultExtraPropertiesExtens
ion@46f9bed0
extensions:
org.gradle.api.internal.plugins.DefaultConvention@6633afa9
extractProguardFiles: task ':app:extractProguardFiles'
fileOperations:
org.gradle.api.internal.file.DefaultFileOperations@4f91446d
fileResolver:
org.gradle.api.internal.file.BaseDirFileResolver@6e6da59
flutter: FlutterExtension_Decorated@5b76af1a
flutterBuildDebug: task ':app:flutterBuildDebug'
flutterBuildDynamicProfile: task
':app:flutterBuildDynamicProfile'
flutterBuildDynamicRelease: task
':app:flutterBuildDynamicRelease'
flutterBuildProfile: task ':app:flutterBuildProfile'
flutterBuildRelease: task ':app:flutterBuildRelease'
flutterBuildX86Jar: task ':app:flutterBuildX86Jar'
generateDebugAndroidTestAssets: task
':app:generateDebugAndroidTestAssets'
generateDebugAndroidTestBuildConfig: task
':app:generateDebugAndroidTestBuildConfig'
generateDebugAndroidTestResValues: task
':app:generateDebugAndroidTestResValues'
generateDebugAndroidTestResources: task
':app:generateDebugAndroidTestResources'
generateDebugAndroidTestSources: task
':app:generateDebugAndroidTestSources'
generateDebugAssets: task ':app:generateDebugAssets'
generateDebugBuildConfig: task
':app:generateDebugBuildConfig'
generateDebugResValues: task ':app:generateDebugResValues'
generateDebugResources: task ':app:generateDebugResources'
generateDebugSources: task ':app:generateDebugSources'
generateDynamicProfileAssets: task
':app:generateDynamicProfileAssets'
generateDynamicProfileBuildConfig: task
':app:generateDynamicProfileBuildConfig'
generateDynamicProfileResValues: task
':app:generateDynamicProfileResValues'
generateDynamicProfileResources: task
':app:generateDynamicProfileResources'
generateDynamicProfileSources: task
':app:generateDynamicProfileSources'
generateDynamicReleaseAssets: task
':app:generateDynamicReleaseAssets'
generateDynamicReleaseBuildConfig: task
':app:generateDynamicReleaseBuildConfig'
generateDynamicReleaseResValues: task
':app:generateDynamicReleaseResValues'
generateDynamicReleaseResources: task
':app:generateDynamicReleaseResources'
generateDynamicReleaseSources: task
':app:generateDynamicReleaseSources'
generateProfileAssets: task ':app:generateProfileAssets'
generateProfileBuildConfig: task
':app:generateProfileBuildConfig'
generateProfileResValues: task
':app:generateProfileResValues'
generateProfileResources: task
':app:generateProfileResources'
generateProfileSources: task ':app:generateProfileSources'
generateReleaseAssets: task ':app:generateReleaseAssets'
generateReleaseBuildConfig: task
':app:generateReleaseBuildConfig'
generateReleaseResValues: task
':app:generateReleaseResValues'
generateReleaseResources: task
':app:generateReleaseResources'
generateReleaseSources: task ':app:generateReleaseSources'
gradle: build 'android'
group: android
identityPath: :app
inheritedScope:
org.gradle.api.internal.ExtensibleDynamicObject$InheritedDyn
amicObject@5072859a
installDebug: task ':app:installDebug'
installDebugAndroidTest: task ':app:installDebugAndroidTest'
installDynamicProfile: task ':app:installDynamicProfile'
installDynamicRelease: task ':app:installDynamicRelease'
installProfile: task ':app:installProfile'
installRelease: task ':app:installRelease'
javaPreCompileDebug: task ':app:javaPreCompileDebug'
javaPreCompileDebugAndroidTest: task
':app:javaPreCompileDebugAndroidTest'
javaPreCompileDebugUnitTest: task
':app:javaPreCompileDebugUnitTest'
javaPreCompileDynamicProfile: task
':app:javaPreCompileDynamicProfile'
javaPreCompileDynamicProfileUnitTest: task
':app:javaPreCompileDynamicProfileUnitTest'
javaPreCompileDynamicRelease: task
':app:javaPreCompileDynamicRelease'
javaPreCompileDynamicReleaseUnitTest: task
':app:javaPreCompileDynamicReleaseUnitTest'
javaPreCompileProfile: task ':app:javaPreCompileProfile'
javaPreCompileProfileUnitTest: task
':app:javaPreCompileProfileUnitTest'
javaPreCompileRelease: task ':app:javaPreCompileRelease'
javaPreCompileReleaseUnitTest: task
':app:javaPreCompileReleaseUnitTest'
layout:
org.gradle.api.internal.file.DefaultProjectLayout@150501d5
libsDir:
/home/shoxter/workspace/native_tech_app/build/app/libs
libsDirName: libs
lint: task ':app:lint'
lintDebug: task ':app:lintDebug'
lintDynamicProfile: task ':app:lintDynamicProfile'
lintDynamicRelease: task ':app:lintDynamicRelease'
lintProfile: task ':app:lintProfile'
lintRelease: task ':app:lintRelease'
lintVitalRelease: task ':app:lintVitalRelease'
logger:
org.gradle.internal.logging.slf4j.OutputEventListenerBackedL
ogger@7cc13810
logging:
org.gradle.internal.logging.services.DefaultLoggingManager@2
581253e
mainApkListPersistenceDebug: task
':app:mainApkListPersistenceDebug'
mainApkListPersistenceDebugAndroidTest: task
':app:mainApkListPersistenceDebugAndroidTest'
mainApkListPersistenceDynamicProfile: task
':app:mainApkListPersistenceDynamicProfile'
mainApkListPersistenceDynamicRelease: task
':app:mainApkListPersistenceDynamicRelease'
mainApkListPersistenceProfile: task
':app:mainApkListPersistenceProfile'
mainApkListPersistenceRelease: task
':app:mainApkListPersistenceRelease'
mergeDebugAndroidTestAssets: task
':app:mergeDebugAndroidTestAssets'
mergeDebugAndroidTestJniLibFolders: task
':app:mergeDebugAndroidTestJniLibFolders'
mergeDebugAndroidTestResources: task
':app:mergeDebugAndroidTestResources'
mergeDebugAndroidTestShaders: task
':app:mergeDebugAndroidTestShaders'
mergeDebugAssets: task ':app:mergeDebugAssets'
mergeDebugJniLibFolders: task ':app:mergeDebugJniLibFolders'
mergeDebugResources: task ':app:mergeDebugResources'
mergeDebugShaders: task ':app:mergeDebugShaders'
mergeDynamicProfileAssets: task
':app:mergeDynamicProfileAssets'
mergeDynamicProfileJniLibFolders: task
':app:mergeDynamicProfileJniLibFolders'
mergeDynamicProfileResources: task
':app:mergeDynamicProfileResources'
mergeDynamicProfileShaders: task
':app:mergeDynamicProfileShaders'
mergeDynamicReleaseAssets: task
':app:mergeDynamicReleaseAssets'
mergeDynamicReleaseJniLibFolders: task
':app:mergeDynamicReleaseJniLibFolders'
mergeDynamicReleaseResources: task
':app:mergeDynamicReleaseResources'
mergeDynamicReleaseShaders: task
':app:mergeDynamicReleaseShaders'
mergeProfileAssets: task ':app:mergeProfileAssets'
mergeProfileJniLibFolders: task
':app:mergeProfileJniLibFolders'
mergeProfileResources: task ':app:mergeProfileResources'
mergeProfileShaders: task ':app:mergeProfileShaders'
mergeReleaseAssets: task ':app:mergeReleaseAssets'
mergeReleaseJniLibFolders: task
':app:mergeReleaseJniLibFolders'
mergeReleaseResources: task ':app:mergeReleaseResources'
mergeReleaseShaders: task ':app:mergeReleaseShaders'
mockableAndroidJar: task ':app:mockableAndroidJar'
modelRegistry:
org.gradle.model.internal.registry.DefaultModelRegistry@4be1
40eb
modelSchemaStore:
org.gradle.model.internal.manage.schema.extract.DefaultModel
SchemaStore@a9a86b9
module:
org.gradle.api.internal.artifacts.ProjectBackedModule@2505ca
3f
name: app
normalization:
org.gradle.normalization.internal.DefaultInputNormalizationH
andler_Decorated@ffb5258
objects:
org.gradle.api.internal.model.DefaultObjectFactory@32cde1db
org.gradle.jvmargs: -Xmx1536M
packageDebug: task ':app:packageDebug'
packageDebugAndroidTest: task ':app:packageDebugAndroidTest'
packageDynamicProfile: task ':app:packageDynamicProfile'
packageDynamicRelease: task ':app:packageDynamicRelease'
packageProfile: task ':app:packageProfile'
packageRelease: task ':app:packageRelease'
parent: root project 'android'
parentIdentifier: root project 'android'
path: :app
platformAttrExtractor: task ':app:platformAttrExtractor'
pluginManager:
org.gradle.api.internal.plugins.DefaultPluginManager_Decorat
ed@1ec98a69
plugins: [org.gradle.api.plugins.HelpTasksPlugin@6af7c921,
com.android.build.gradle.api.AndroidBasePlugin@696c810,
org.gradle.language.base.plugins.LifecycleBasePlugin@20510e2
c, org.gradle.api.plugins.BasePlugin@5e050c3e,
org.gradle.api.plugins.ReportingBasePlugin@482d26d5,
org.gradle.platform.base.plugins.ComponentBasePlugin@485e64a
5,
org.gradle.language.base.plugins.LanguageBasePlugin@69e4e8f5
,
org.gradle.platform.base.plugins.BinaryBasePlugin@4c16e77c,
org.gradle.api.plugins.JavaBasePlugin@32f75bf6,
com.android.build.gradle.AppPlugin@796a4f8e,
FlutterPlugin@2bb0a230]
preBuild: task ':app:preBuild'
preDebugAndroidTestBuild: task
':app:preDebugAndroidTestBuild'
preDebugBuild: task ':app:preDebugBuild'
preDebugUnitTestBuild: task ':app:preDebugUnitTestBuild'
preDynamicProfileBuild: task ':app:preDynamicProfileBuild'
preDynamicProfileUnitTestBuild: task
':app:preDynamicProfileUnitTestBuild'
preDynamicReleaseBuild: task ':app:preDynamicReleaseBuild'
preDynamicReleaseUnitTestBuild: task
':app:preDynamicReleaseUnitTestBuild'
preProfileBuild: task ':app:preProfileBuild'
preProfileUnitTestBuild: task ':app:preProfileUnitTestBuild'
preReleaseBuild: task ':app:preReleaseBuild'
preReleaseUnitTestBuild: task ':app:preReleaseUnitTestBuild'
prepareLintJar: task ':app:prepareLintJar'
preparePUBLISHED_DEXDebugAndroidTestForPublishing: task
':app:preparePUBLISHED_DEXDebugAndroidTestForPublishing'
preparePUBLISHED_DEXDebugForPublishing: task
':app:preparePUBLISHED_DEXDebugForPublishing'
preparePUBLISHED_DEXDynamicProfileForPublishing: task
':app:preparePUBLISHED_DEXDynamicProfileForPublishing'
preparePUBLISHED_DEXDynamicReleaseForPublishing: task
':app:preparePUBLISHED_DEXDynamicReleaseForPublishing'
preparePUBLISHED_DEXProfileForPublishing: task
':app:preparePUBLISHED_DEXProfileForPublishing'
preparePUBLISHED_DEXReleaseForPublishing: task
':app:preparePUBLISHED_DEXReleaseForPublishing'
preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing: task
':app:preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing
'
preparePUBLISHED_JAVA_RESDebugForPublishing: task
':app:preparePUBLISHED_JAVA_RESDebugForPublishing'
preparePUBLISHED_JAVA_RESDynamicProfileForPublishing: task
':app:preparePUBLISHED_JAVA_RESDynamicProfileForPublishing'
preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing: task
':app:preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing'
preparePUBLISHED_JAVA_RESProfileForPublishing: task
':app:preparePUBLISHED_JAVA_RESProfileForPublishing'
preparePUBLISHED_JAVA_RESReleaseForPublishing: task
':app:preparePUBLISHED_JAVA_RESReleaseForPublishing'
preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublishing:
task
':app:preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublish
ing'
preparePUBLISHED_NATIVE_LIBSDebugForPublishing: task
':app:preparePUBLISHED_NATIVE_LIBSDebugForPublishing'
preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishing:
task
':app:preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishin
g'
preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishing:
task
':app:preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishin
g'
preparePUBLISHED_NATIVE_LIBSProfileForPublishing: task
':app:preparePUBLISHED_NATIVE_LIBSProfileForPublishing'
preparePUBLISHED_NATIVE_LIBSReleaseForPublishing: task
':app:preparePUBLISHED_NATIVE_LIBSReleaseForPublishing'
processDebugAndroidTestJavaRes: task
':app:processDebugAndroidTestJavaRes'
processDebugAndroidTestManifest: task
':app:processDebugAndroidTestManifest'
processDebugAndroidTestResources: task
':app:processDebugAndroidTestResources'
processDebugJavaRes: task ':app:processDebugJavaRes'
processDebugManifest: task ':app:processDebugManifest'
processDebugResources: task ':app:processDebugResources'
processDebugUnitTestJavaRes: task
':app:processDebugUnitTestJavaRes'
processDynamicProfileJavaRes: task
':app:processDynamicProfileJavaRes'
processDynamicProfileManifest: task
':app:processDynamicProfileManifest'
processDynamicProfileResources: task
':app:processDynamicProfileResources'
processDynamicProfileUnitTestJavaRes: task
':app:processDynamicProfileUnitTestJavaRes'
processDynamicReleaseJavaRes: task
':app:processDynamicReleaseJavaRes'
processDynamicReleaseManifest: task
':app:processDynamicReleaseManifest'
processDynamicReleaseResources: task
':app:processDynamicReleaseResources'
processDynamicReleaseUnitTestJavaRes: task
':app:processDynamicReleaseUnitTestJavaRes'
processOperations:
org.gradle.api.internal.file.DefaultFileOperations@4f91446d
processProfileJavaRes: task ':app:processProfileJavaRes'
processProfileManifest: task ':app:processProfileManifest'
processProfileResources: task ':app:processProfileResources'
processProfileUnitTestJavaRes: task
':app:processProfileUnitTestJavaRes'
processReleaseJavaRes: task ':app:processReleaseJavaRes'
processReleaseManifest: task ':app:processReleaseManifest'
processReleaseResources: task ':app:processReleaseResources'
processReleaseUnitTestJavaRes: task
':app:processReleaseUnitTestJavaRes'
project: project ':app'
projectConfigurator:
org.gradle.api.internal.project.BuildOperationCrossProjectCo
nfigurator@5fee7743
projectDir:
/home/shoxter/workspace/native_tech_app/android/app
projectEvaluationBroadcaster: ProjectEvaluationListener
broadcast
projectEvaluator:
org.gradle.configuration.project.LifecycleProjectEvaluator@a
d29774
projectPath: :app
projectRegistry:
org.gradle.api.internal.project.DefaultProjectRegistry@57cc7
ccc
properties: {...}
providers:
org.gradle.api.internal.provider.DefaultProviderFactory@5343
c746
reportBuildArtifactsDebug: task
':app:reportBuildArtifactsDebug'
reportBuildArtifactsDynamicProfile: task
':app:reportBuildArtifactsDynamicProfile'
reportBuildArtifactsDynamicRelease: task
':app:reportBuildArtifactsDynamicRelease'
reportBuildArtifactsProfile: task
':app:reportBuildArtifactsProfile'
reportBuildArtifactsRelease: task
':app:reportBuildArtifactsRelease'
reporting:
org.gradle.api.reporting.ReportingExtension_Decorated@5042e9
e
reportsDir:
/home/shoxter/workspace/native_tech_app/build/app/reports
repositories: repository container
resolveConfigAttr: task ':app:resolveConfigAttr'
resourceLoader:
org.gradle.internal.resource.transfer.DefaultUriTextResource
Loader@29fc1512
resources:
org.gradle.api.internal.resources.DefaultResourceHandler@378
b5e6e
rootDir: /home/shoxter/workspace/native_tech_app/android
rootProject: root project 'android'
script: false
scriptHandlerFactory:
org.gradle.api.internal.initialization.DefaultScriptHandlerF
actory@3957e4f
scriptPluginFactory:
org.gradle.configuration.ScriptPluginFactorySelector@27c1c07
d
serviceRegistryFactory:
org.gradle.internal.service.scopes.ProjectScopeServices$4@6e
dc0512
services: ProjectScopeServices
signingReport: task ':app:signingReport'
sourceCompatibility: 1.8
sourceSets: SourceSet container
splitsDiscoveryTaskDebug: task
':app:splitsDiscoveryTaskDebug'
splitsDiscoveryTaskDynamicProfile: task
':app:splitsDiscoveryTaskDynamicProfile'
splitsDiscoveryTaskDynamicRelease: task
':app:splitsDiscoveryTaskDynamicRelease'
splitsDiscoveryTaskProfile: task
':app:splitsDiscoveryTaskProfile'
splitsDiscoveryTaskRelease: task
':app:splitsDiscoveryTaskRelease'
standardOutputCapture:
org.gradle.internal.logging.services.DefaultLoggingManager@2
581253e
state: project state 'EXECUTED'
status: integration
subprojects: []
targetCompatibility: 1.8
tasks: task set
test: task ':app:test'
testDebugUnitTest: task ':app:testDebugUnitTest'
testDynamicProfileUnitTest: task
':app:testDynamicProfileUnitTest'
testDynamicReleaseUnitTest: task
':app:testDynamicReleaseUnitTest'
testProfileUnitTest: task ':app:testProfileUnitTest'
testReleaseUnitTest: task ':app:testReleaseUnitTest'
testReportDir:
/home/shoxter/workspace/native_tech_app/build/app/reports/te
sts
testReportDirName: tests
testResultsDir:
/home/shoxter/workspace/native_tech_app/build/app/test-resul
ts
testResultsDirName: test-results
transformClassesWithDexBuilderForDebug: task
':app:transformClassesWithDexBuilderForDebug'
transformClassesWithDexBuilderForDebugAndroidTest: task
':app:transformClassesWithDexBuilderForDebugAndroidTest'
transformClassesWithDexBuilderForDynamicProfile: task
':app:transformClassesWithDexBuilderForDynamicProfile'
transformClassesWithDexBuilderForDynamicRelease: task
':app:transformClassesWithDexBuilderForDynamicRelease'
transformClassesWithDexBuilderForProfile: task
':app:transformClassesWithDexBuilderForProfile'
transformClassesWithDexBuilderForRelease: task
':app:transformClassesWithDexBuilderForRelease'
transformDexArchiveWithDexMergerForDebug: task
':app:transformDexArchiveWithDexMergerForDebug'
transformDexArchiveWithDexMergerForDebugAndroidTest: task
':app:transformDexArchiveWithDexMergerForDebugAndroidTest'
transformDexArchiveWithDexMergerForDynamicProfile: task
':app:transformDexArchiveWithDexMergerForDynamicProfile'
transformDexArchiveWithDexMergerForDynamicRelease: task
':app:transformDexArchiveWithDexMergerForDynamicRelease'
transformDexArchiveWithDexMergerForProfile: task
':app:transformDexArchiveWithDexMergerForProfile'
transformDexArchiveWithDexMergerForRelease: task
':app:transformDexArchiveWithDexMergerForRelease'
transformDexArchiveWithExternalLibsDexMergerForDebug: task
':app:transformDexArchiveWithExternalLibsDexMergerForDebug'
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidT
est: task
':app:transformDexArchiveWithExternalLibsDexMergerForDebugAn
droidTest'
transformDexArchiveWithExternalLibsDexMergerForDynamicProfil
e: task
':app:transformDexArchiveWithExternalLibsDexMergerForDynamic
Profile'
transformDexArchiveWithExternalLibsDexMergerForDynamicReleas
e: task
':app:transformDexArchiveWithExternalLibsDexMergerForDynamic
Release'
transformDexArchiveWithExternalLibsDexMergerForProfile: task
':app:transformDexArchiveWithExternalLibsDexMergerForProfile
'
transformDexArchiveWithExternalLibsDexMergerForRelease: task
':app:transformDexArchiveWithExternalLibsDexMergerForRelease
'
transformNativeLibsWithMergeJniLibsForDebug: task
':app:transformNativeLibsWithMergeJniLibsForDebug'
transformNativeLibsWithMergeJniLibsForDebugAndroidTest: task
':app:transformNativeLibsWithMergeJniLibsForDebugAndroidTest
'
transformNativeLibsWithMergeJniLibsForDynamicProfile: task
':app:transformNativeLibsWithMergeJniLibsForDynamicProfile'
transformNativeLibsWithMergeJniLibsForDynamicRelease: task
':app:transformNativeLibsWithMergeJniLibsForDynamicRelease'
transformNativeLibsWithMergeJniLibsForProfile: task
':app:transformNativeLibsWithMergeJniLibsForProfile'
transformNativeLibsWithMergeJniLibsForRelease: task
':app:transformNativeLibsWithMergeJniLibsForRelease'
transformResourcesWithMergeJavaResForDebug: task
':app:transformResourcesWithMergeJavaResForDebug'
transformResourcesWithMergeJavaResForDebugAndroidTest: task
':app:transformResourcesWithMergeJavaResForDebugAndroidTest'
transformResourcesWithMergeJavaResForDebugUnitTest: task
':app:transformResourcesWithMergeJavaResForDebugUnitTest'
transformResourcesWithMergeJavaResForDynamicProfile: task
':app:transformResourcesWithMergeJavaResForDynamicProfile'
transformResourcesWithMergeJavaResForDynamicProfileUnitTest:
task
':app:transformResourcesWithMergeJavaResForDynamicProfileUni
tTest'
transformResourcesWithMergeJavaResForDynamicRelease: task
':app:transformResourcesWithMergeJavaResForDynamicRelease'
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest:
task
':app:transformResourcesWithMergeJavaResForDynamicReleaseUni
tTest'
transformResourcesWithMergeJavaResForProfile: task
':app:transformResourcesWithMergeJavaResForProfile'
transformResourcesWithMergeJavaResForProfileUnitTest: task
':app:transformResourcesWithMergeJavaResForProfileUnitTest'
transformResourcesWithMergeJavaResForRelease: task
':app:transformResourcesWithMergeJavaResForRelease'
transformResourcesWithMergeJavaResForReleaseUnitTest: task
':app:transformResourcesWithMergeJavaResForReleaseUnitTest'
uninstallAll: task ':app:uninstallAll'
uninstallDebug: task ':app:uninstallDebug'
uninstallDebugAndroidTest: task
':app:uninstallDebugAndroidTest'
uninstallDynamicProfile: task ':app:uninstallDynamicProfile'
uninstallDynamicRelease: task ':app:uninstallDynamicRelease'
uninstallProfile: task ':app:uninstallProfile'
uninstallRelease: task ':app:uninstallRelease'
validateSigningDebug: task ':app:validateSigningDebug'
validateSigningDebugAndroidTest: task
':app:validateSigningDebugAndroidTest'
validateSigningDynamicProfile: task
':app:validateSigningDynamicProfile'
validateSigningDynamicRelease: task
':app:validateSigningDynamicRelease'
validateSigningProfile: task ':app:validateSigningProfile'
validateSigningRelease: task ':app:validateSigningRelease'
version: unspecified
writeDebugApplicationId: task ':app:writeDebugApplicationId'
writeDynamicProfileApplicationId: task
':app:writeDynamicProfileApplicationId'
writeDynamicReleaseApplicationId: task
':app:writeDynamicReleaseApplicationId'
writeProfileApplicationId: task
':app:writeProfileApplicationId'
writeReleaseApplicationId: task
':app:writeReleaseApplicationId'
1 actionable task: 1 executed
[ +24 ms] executing: [/home/shoxter/workspace/native_tech_app/android/]
/home/shoxter/workspace/native_tech_app/android/gradlew app:tasks --all
[ +511 ms]
------------------------------------------------------------
All tasks runnable from project :app
------------------------------------------------------------
Android tasks
-------------
androidDependencies - Displays the Android dependencies of the project.
signingReport - Displays the signing info for each variant.
sourceSets - Prints out all the source sets defined in this project.
Build tasks
-----------
assemble - Assembles all variants of all applications and secondary packages.
assembleAndroidTest - Assembles all the Test applications.
assembleDebug - Assembles all Debug builds.
assembleDynamicProfile - Assembles all DynamicProfile builds.
assembleDynamicRelease - Assembles all DynamicRelease builds.
assembleProfile - Assembles all Profile builds.
assembleRelease - Assembles all Release builds.
build - Assembles and tests this project.
buildDependents - Assembles and tests this project and all projects that depend on it.
buildNeeded - Assembles and tests this project and all projects it depends on.
clean - Deletes the build directory.
cleanBuildCache - Deletes the build cache directory.
compileDebugAndroidTestSources
compileDebugSources
compileDebugUnitTestSources
compileDynamicProfileSources
compileDynamicProfileUnitTestSources
compileDynamicReleaseSources
compileDynamicReleaseUnitTestSources
compileProfileSources
compileProfileUnitTestSources
compileReleaseSources
compileReleaseUnitTestSources
mockableAndroidJar - Creates a version of android.jar that's suitable for unit tests.
Help tasks
----------
buildEnvironment - Displays all buildscript dependencies declared in project ':app'.
components - Displays the components produced by project ':app'. [incubating]
dependencies - Displays all dependencies declared in project ':app'.
dependencyInsight - Displays the insight into a specific dependency in project ':app'.
dependentComponents - Displays the dependent components of components in project ':app'. [incubating]
help - Displays a help message.
model - Displays the configuration model of project ':app'. [incubating]
projects - Displays the sub-projects of project ':app'.
properties - Displays the properties of project ':app'.
tasks - Displays the tasks runnable from project ':app'.
Install tasks
-------------
installDebug - Installs the Debug build.
installDebugAndroidTest - Installs the android (on device) tests for the Debug build.
installDynamicProfile - Installs the DynamicProfile build.
installDynamicRelease - Installs the DynamicRelease build.
installProfile - Installs the Profile build.
installRelease - Installs the Release build.
uninstallAll - Uninstall all applications.
uninstallDebug - Uninstalls the Debug build.
uninstallDebugAndroidTest - Uninstalls the android (on device) tests for the Debug build.
uninstallDynamicProfile - Uninstalls the DynamicProfile build.
uninstallDynamicRelease - Uninstalls the DynamicRelease build.
uninstallProfile - Uninstalls the Profile build.
uninstallRelease - Uninstalls the Release build.
Verification tasks
------------------
check - Runs all checks.
connectedAndroidTest - Installs and runs instrumentation tests for all flavors on connected devices.
connectedCheck - Runs all device checks on currently connected devices.
connectedDebugAndroidTest - Installs and runs the tests for debug on connected devices.
deviceAndroidTest - Installs and runs instrumentation tests using all Device Providers.
deviceCheck - Runs all device checks using Device Providers and Test Servers.
lint - Runs lint on all variants.
lintDebug - Runs lint on the Debug build.
lintDynamicProfile - Runs lint on the DynamicProfile build.
lintDynamicRelease - Runs lint on the DynamicRelease build.
lintProfile - Runs lint on the Profile build.
lintRelease - Runs lint on the Release build.
lintVitalRelease - Runs lint on just the fatal issues in the release build.
test - Run unit tests for all variants.
testDebugUnitTest - Run unit tests for the debug build.
testDynamicProfileUnitTest - Run unit tests for the dynamicProfile build.
testDynamicReleaseUnitTest - Run unit tests for the dynamicRelease build.
testProfileUnitTest - Run unit tests for the profile build.
testReleaseUnitTest - Run unit tests for the release build.
Other tasks
-----------
assembleDebugAndroidTest
assembleDebugUnitTest
assembleDynamicProfileUnitTest
assembleDynamicReleaseUnitTest
assembleProfileUnitTest
assembleReleaseUnitTest
bundleAppClassesDebug
bundleAppClassesDebugAndroidTest
bundleAppClassesDebugUnitTest
bundleAppClassesDynamicProfile
bundleAppClassesDynamicProfileUnitTest
bundleAppClassesDynamicRelease
bundleAppClassesDynamicReleaseUnitTest
bundleAppClassesProfile
bundleAppClassesProfileUnitTest
bundleAppClassesRelease
bundleAppClassesReleaseUnitTest
bundleDebugAndroidTestResources
bundleDebugResources
bundleDynamicProfileResources
bundleDynamicReleaseResources
bundleProfileResources
bundleReleaseResources
checkDebugManifest
checkDynamicProfileManifest
checkDynamicReleaseManifest
checkProfileManifest
checkReleaseManifest
compileDebugAidl
compileDebugAndroidTestAidl
compileDebugAndroidTestJavaWithJavac
compileDebugAndroidTestNdk
compileDebugAndroidTestRenderscript
compileDebugAndroidTestShaders
compileDebugJavaWithJavac
compileDebugNdk
compileDebugRenderscript
compileDebugShaders
compileDebugUnitTestJavaWithJavac
compileDynamicProfileAidl
compileDynamicProfileJavaWithJavac
compileDynamicProfileNdk
compileDynamicProfileRenderscript
compileDynamicProfileShaders
compileDynamicProfileUnitTestJavaWithJavac
compileDynamicReleaseAidl
compileDynamicReleaseJavaWithJavac
compileDynamicReleaseNdk
compileDynamicReleaseRenderscript
compileDynamicReleaseShaders
compileDynamicReleaseUnitTestJavaWithJavac
compileLint
compileProfileAidl
compileProfileJavaWithJavac
compileProfileNdk
compileProfileRenderscript
compileProfileShaders
compileProfileUnitTestJavaWithJavac
compileReleaseAidl
compileReleaseJavaWithJavac
compileReleaseNdk
compileReleaseRenderscript
compileReleaseShaders
compileReleaseUnitTestJavaWithJavac
consumeConfigAttr
copyFlutterAssetsDebug
copyFlutterAssetsDynamicProfile
copyFlutterAssetsDynamicRelease
copyFlutterAssetsProfile
copyFlutterAssetsRelease
createDebugCompatibleScreenManifests
createDynamicProfileCompatibleScreenManifests
createDynamicReleaseCompatibleScreenManifests
createProfileCompatibleScreenManifests
createReleaseCompatibleScreenManifests
extractProguardFiles
flutterBuildDebug
flutterBuildDynamicProfile
flutterBuildDynamicRelease
flutterBuildProfile
flutterBuildRelease
flutterBuildX86Jar
generateDebugAndroidTestAssets
generateDebugAndroidTestBuildConfig
generateDebugAndroidTestResources
generateDebugAndroidTestResValues
generateDebugAndroidTestSources
generateDebugAssets
generateDebugBuildConfig
generateDebugResources
generateDebugResValues
generateDebugSources
generateDynamicProfileAssets
generateDynamicProfileBuildConfig
generateDynamicProfileResources
generateDynamicProfileResValues
generateDynamicProfileSources
generateDynamicReleaseAssets
generateDynamicReleaseBuildConfig
generateDynamicReleaseResources
generateDynamicReleaseResValues
generateDynamicReleaseSources
generateProfileAssets
generateProfileBuildConfig
generateProfileResources
generateProfileResValues
generateProfileSources
generateReleaseAssets
generateReleaseBuildConfig
generateReleaseResources
generateReleaseResValues
generateReleaseSources
javaPreCompileDebug
javaPreCompileDebugAndroidTest
javaPreCompileDebugUnitTest
javaPreCompileDynamicProfile
javaPreCompileDynamicProfileUnitTest
javaPreCompileDynamicRelease
javaPreCompileDynamicReleaseUnitTest
javaPreCompileProfile
javaPreCompileProfileUnitTest
javaPreCompileRelease
javaPreCompileReleaseUnitTest
mainApkListPersistenceDebug
mainApkListPersistenceDebugAndroidTest
mainApkListPersistenceDynamicProfile
mainApkListPersistenceDynamicRelease
mainApkListPersistenceProfile
mainApkListPersistenceRelease
mergeDebugAndroidTestAssets
mergeDebugAndroidTestJniLibFolders
mergeDebugAndroidTestResources
mergeDebugAndroidTestShaders
mergeDebugAssets
mergeDebugJniLibFolders
mergeDebugResources
mergeDebugShaders
mergeDynamicProfileAssets
mergeDynamicProfileJniLibFolders
mergeDynamicProfileResources
mergeDynamicProfileShaders
mergeDynamicReleaseAssets
mergeDynamicReleaseJniLibFolders
mergeDynamicReleaseResources
mergeDynamicReleaseShaders
mergeProfileAssets
mergeProfileJniLibFolders
mergeProfileResources
mergeProfileShaders
mergeReleaseAssets
mergeReleaseJniLibFolders
mergeReleaseResources
mergeReleaseShaders
packageDebug
packageDebugAndroidTest
packageDynamicProfile
packageDynamicRelease
packageProfile
packageRelease
platformAttrExtractor
preBuild
preDebugAndroidTestBuild
preDebugBuild
preDebugUnitTestBuild
preDynamicProfileBuild
preDynamicProfileUnitTestBuild
preDynamicReleaseBuild
preDynamicReleaseUnitTestBuild
prepareLintJar
preparePUBLISHED_DEXDebugAndroidTestForPublishing
preparePUBLISHED_DEXDebugForPublishing
preparePUBLISHED_DEXDynamicProfileForPublishing
preparePUBLISHED_DEXDynamicReleaseForPublishing
preparePUBLISHED_DEXProfileForPublishing
preparePUBLISHED_DEXReleaseForPublishing
preparePUBLISHED_JAVA_RESDebugAndroidTestForPublishing
preparePUBLISHED_JAVA_RESDebugForPublishing
preparePUBLISHED_JAVA_RESDynamicProfileForPublishing
preparePUBLISHED_JAVA_RESDynamicReleaseForPublishing
preparePUBLISHED_JAVA_RESProfileForPublishing
preparePUBLISHED_JAVA_RESReleaseForPublishing
preparePUBLISHED_NATIVE_LIBSDebugAndroidTestForPublishing
preparePUBLISHED_NATIVE_LIBSDebugForPublishing
preparePUBLISHED_NATIVE_LIBSDynamicProfileForPublishing
preparePUBLISHED_NATIVE_LIBSDynamicReleaseForPublishing
preparePUBLISHED_NATIVE_LIBSProfileForPublishing
preparePUBLISHED_NATIVE_LIBSReleaseForPublishing
preProfileBuild
preProfileUnitTestBuild
preReleaseBuild
preReleaseUnitTestBuild
processDebugAndroidTestJavaRes
processDebugAndroidTestManifest
processDebugAndroidTestResources
processDebugJavaRes
processDebugManifest
processDebugResources
processDebugUnitTestJavaRes
processDynamicProfileJavaRes
processDynamicProfileManifest
processDynamicProfileResources
processDynamicProfileUnitTestJavaRes
processDynamicReleaseJavaRes
processDynamicReleaseManifest
processDynamicReleaseResources
processDynamicReleaseUnitTestJavaRes
processProfileJavaRes
processProfileManifest
processProfileResources
processProfileUnitTestJavaRes
processReleaseJavaRes
processReleaseManifest
processReleaseResources
processReleaseUnitTestJavaRes
reportBuildArtifactsDebug
reportBuildArtifactsDynamicProfile
reportBuildArtifactsDynamicRelease
reportBuildArtifactsProfile
reportBuildArtifactsRelease
resolveConfigAttr
splitsDiscoveryTaskDebug
splitsDiscoveryTaskDynamicProfile
splitsDiscoveryTaskDynamicRelease
splitsDiscoveryTaskProfile
splitsDiscoveryTaskRelease
transformClassesWithDexBuilderForDebug
transformClassesWithDexBuilderForDebugAndroidTest
transformClassesWithDexBuilderForDynamicProfile
transformClassesWithDexBuilderForDynamicRelease
transformClassesWithDexBuilderForProfile
transformClassesWithDexBuilderForRelease
transformDexArchiveWithDexMergerForDebug
transformDexArchiveWithDexMergerForDebugAndroidTest
transformDexArchiveWithDexMergerForDynamicProfile
transformDexArchiveWithDexMergerForDynamicRelease
transformDexArchiveWithDexMergerForProfile
transformDexArchiveWithDexMergerForRelease
transformDexArchiveWithExternalLibsDexMergerForDebug
transformDexArchiveWithExternalLibsDexMergerForDebugAndroidTest
transformDexArchiveWithExternalLibsDexMergerForDynamicProfile
transformDexArchiveWithExternalLibsDexMergerForDynamicRelease
transformDexArchiveWithExternalLibsDexMergerForProfile
transformDexArchiveWithExternalLibsDexMergerForRelease
transformNativeLibsWithMergeJniLibsForDebug
transformNativeLibsWithMergeJniLibsForDebugAndroidTest
transformNativeLibsWithMergeJniLibsForDynamicProfile
transformNativeLibsWithMergeJniLibsForDynamicRelease
transformNativeLibsWithMergeJniLibsForProfile
transformNativeLibsWithMergeJniLibsForRelease
transformResourcesWithMergeJavaResForDebug
transformResourcesWithMergeJavaResForDebugAndroidTest
transformResourcesWithMergeJavaResForDebugUnitTest
transformResourcesWithMergeJavaResForDynamicProfile
transformResourcesWithMergeJavaResForDynamicProfileUnitTest
transformResourcesWithMergeJavaResForDynamicRelease
transformResourcesWithMergeJavaResForDynamicReleaseUnitTest
transformResourcesWithMergeJavaResForProfile
transformResourcesWithMergeJavaResForProfileUnitTest
transformResourcesWithMergeJavaResForRelease
transformResourcesWithMergeJavaResForReleaseUnitTest
validateSigningDebug
validateSigningDebugAndroidTest
validateSigningDynamicProfile
validateSigningDynamicRelease
validateSigningProfile
validateSigningRelease
writeDebugApplicationId
writeDynamicProfileApplicationId
writeDynamicReleaseApplicationId
writeProfileApplicationId
writeReleaseApplicationId
Rules
-----
Pattern: clean<TaskName>: Cleans the output files of a task.
Pattern: build<ConfigurationName>: Assembles the artifacts of a configuration.
Pattern: upload<ConfigurationName>: Assembles and uploads the artifacts belonging to a configuration.
1 actionable task: 1 executed
[ +2 ms] Resolving dependencies... (completed)
[ ] executing: /home/shoxter/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/shoxter/workspace/native_tech_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +6 ms] Exit code 0 from: /home/shoxter/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/shoxter/workspace/native_tech_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
A: package="com.example.nativetechapp" (Raw: "com.example.nativetechapp")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=17)
A: android:name(0x01010003)="android.permission.ACCESS_FINE_LOCATION" (Raw: "android.permission.ACCESS_FINE_LOCATION")
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.ACCESS_COARSE_LOCATION" (Raw: "android.permission.ACCESS_COARSE_LOCATION")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
E: uses-permission (line=20)
A: android:name(0x01010003)="android.permission.USE_FINGERPRINT" (Raw: "android.permission.USE_FINGERPRINT")
E: uses-permission (line=21)
A: android:name(0x01010003)="android.permission.VIBRATE" (Raw: "android.permission.VIBRATE")
E: uses-feature (line=23)
A: android:name(0x01010003)="android.hardware.camera" (Raw: "android.hardware.camera")
A: android:required(0x0101028e)=(type 0x12)0x0
E: uses-feature (line=26)
A: android:name(0x01010003)="android.hardware.camera.autofocus" (Raw: "android.hardware.camera.autofocus")
A: android:required(0x0101028e)=(type 0x12)0x0
E: application (line=36)
A: android:label(0x01010001)="native_tech_app" (Raw: "native_tech_app")
A: android:icon(0x01010002)=@0x7f090000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: meta-data (line=41)
A: android:name(0x01010003)="com.google.android.maps.v2.API_KEY" (Raw: "com.google.android.maps.v2.API_KEY")
A: android:value(0x01010024)="AIzaSyCivvNNl4Prd5fldlYrSdYYq0iRITU8ldE" (Raw: "AIzaSyCivvNNl4Prd5fldlYrSdYYq0iRITU8ldE")
E: activity (line=45)
A: android:theme(0x01010000)=@0x7f0b0001
A: android:name(0x01010003)="com.example.nativetechapp.MainActivity" (Raw: "com.example.nativetechapp.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=59)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=63)
E: action (line=64)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=66)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: activity (line=69)
A: android:theme(0x01010000)=@0x1030007
A: android:name(0x01010003)="io.flutter.plugins.urllauncher.UrlLauncherPlugin$WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.UrlLauncherPlugin$WebViewActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=74)
A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION")
A: android:value(0x01010024)="26.1.0" (Raw: "26.1.0")
E: activity (line=78)
A: android:name(0x01010003)="io.card.payment.CardIOActivity" (Raw: "io.card.payment.CardIOActivity")
A: android:configChanges(0x0101001f)=(type 0x11)0xa0
E: activity (line=81)
A: android:name(0x01010003)="io.card.payment.DataEntryActivity" (Raw: "io.card.payment.DataEntryActivity")
E: meta-data (line=83)
A: android:name(0x01010003)="android.arch.lifecycle.VERSION" (Raw: "android.arch.lifecycle.VERSION")
A: android:value(0x01010024)="27.0.0-SNAPSHOT" (Raw: "27.0.0-SNAPSHOT")
[ +3 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +11 ms] Exit code 0 from: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ ] --------- beginning of main
12-13 09:01:00.009 D/hwcomposer( 1438): hw_composer sent 72 syncs in 67s
[ +1 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time
[ +325 ms] DependencyChecker: nothing is modified after 2018-12-13 09:00:34.267.
[ +1 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb version
[ +12 ms] Android Debug Bridge version 1.0.39
Revision 3db08f2c6889-android
Installed as /home/shoxter/Android/Sdk/platform-tools/adb
[ +1 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb start-server
[ +39 ms] Building APK
[ +8 ms] Gradle task 'assembleDebug'...
[ +1 ms] executing: [/home/shoxter/workspace/native_tech_app/android/] /home/shoxter/workspace/native_tech_app/android/gradlew -Pverbose=true -Ptarget=/home/shoxter/workspace/native_tech_app/lib/main.dart -Ptrack-widget-creation=false
-Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +986 ms] 180 actionable tasks: 3 executed, 177 up-to-date
[ +333 ms] Gradle task 'assembleDebug'... (completed)
[ +48 ms] calculateSha: LocalDirectory: '/home/shoxter/workspace/native_tech_app/build/app/outputs/apk'/app.apk
[ +483 ms] Built build/app/outputs/apk/debug/app-debug.apk.
[ ] executing: /home/shoxter/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/shoxter/workspace/native_tech_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[ +6 ms] Exit code 0 from: /home/shoxter/Android/Sdk/build-tools/28.0.3/aapt dump xmltree /home/shoxter/workspace/native_tech_app/build/app/outputs/apk/app.apk AndroidManifest.xml
[ ] N: android=http://schemas.android.com/apk/res/android
E: manifest (line=2)
A: android:versionCode(0x0101021b)=(type 0x10)0x1
A: android:versionName(0x0101021c)="1.0" (Raw: "1.0")
A: package="com.example.nativetechapp" (Raw: "com.example.nativetechapp")
E: uses-sdk (line=7)
A: android:minSdkVersion(0x0101020c)=(type 0x10)0x10
A: android:targetSdkVersion(0x01010270)=(type 0x10)0x1b
E: uses-permission (line=16)
A: android:name(0x01010003)="android.permission.INTERNET" (Raw: "android.permission.INTERNET")
E: uses-permission (line=17)
A: android:name(0x01010003)="android.permission.ACCESS_FINE_LOCATION" (Raw: "android.permission.ACCESS_FINE_LOCATION")
E: uses-permission (line=18)
A: android:name(0x01010003)="android.permission.ACCESS_COARSE_LOCATION" (Raw: "android.permission.ACCESS_COARSE_LOCATION")
E: uses-permission (line=19)
A: android:name(0x01010003)="android.permission.CAMERA" (Raw: "android.permission.CAMERA")
E: uses-permission (line=20)
A: android:name(0x01010003)="android.permission.USE_FINGERPRINT" (Raw: "android.permission.USE_FINGERPRINT")
E: uses-permission (line=21)
A: android:name(0x01010003)="android.permission.VIBRATE" (Raw: "android.permission.VIBRATE")
E: uses-feature (line=23)
A: android:name(0x01010003)="android.hardware.camera" (Raw: "android.hardware.camera")
A: android:required(0x0101028e)=(type 0x12)0x0
E: uses-feature (line=26)
A: android:name(0x01010003)="android.hardware.camera.autofocus" (Raw: "android.hardware.camera.autofocus")
A: android:required(0x0101028e)=(type 0x12)0x0
E: application (line=36)
A: android:label(0x01010001)="native_tech_app" (Raw: "native_tech_app")
A: android:icon(0x01010002)=@0x7f090000
A: android:name(0x01010003)="io.flutter.app.FlutterApplication" (Raw: "io.flutter.app.FlutterApplication")
A: android:debuggable(0x0101000f)=(type 0x12)0xffffffff
E: meta-data (line=41)
A: android:name(0x01010003)="com.google.android.maps.v2.API_KEY" (Raw: "com.google.android.maps.v2.API_KEY")
A: android:value(0x01010024)="AIzaSyCivvNNl4Prd5fldlYrSdYYq0iRITU8ldE" (Raw: "AIzaSyCivvNNl4Prd5fldlYrSdYYq0iRITU8ldE")
E: activity (line=45)
A: android:theme(0x01010000)=@0x7f0b0001
A: android:name(0x01010003)="com.example.nativetechapp.MainActivity" (Raw: "com.example.nativetechapp.MainActivity")
A: android:launchMode(0x0101001d)=(type 0x10)0x1
A: android:configChanges(0x0101001f)=(type 0x11)0x400035b4
A: android:windowSoftInputMode(0x0101022b)=(type 0x11)0x10
A: android:hardwareAccelerated(0x010102d3)=(type 0x12)0xffffffff
E: meta-data (line=59)
A: android:name(0x01010003)="io.flutter.app.android.SplashScreenUntilFirstFrame" (Raw: "io.flutter.app.android.SplashScreenUntilFirstFrame")
A: android:value(0x01010024)=(type 0x12)0xffffffff
E: intent-filter (line=63)
E: action (line=64)
A: android:name(0x01010003)="android.intent.action.MAIN" (Raw: "android.intent.action.MAIN")
E: category (line=66)
A: android:name(0x01010003)="android.intent.category.LAUNCHER" (Raw: "android.intent.category.LAUNCHER")
E: activity (line=69)
A: android:theme(0x01010000)=@0x1030007
A: android:name(0x01010003)="io.flutter.plugins.urllauncher.UrlLauncherPlugin$WebViewActivity" (Raw: "io.flutter.plugins.urllauncher.UrlLauncherPlugin$WebViewActivity")
A: android:exported(0x01010010)=(type 0x12)0x0
E: meta-data (line=74)
A: android:name(0x01010003)="android.support.VERSION" (Raw: "android.support.VERSION")
A: android:value(0x01010024)="26.1.0" (Raw: "26.1.0")
E: activity (line=78)
A: android:name(0x01010003)="io.card.payment.CardIOActivity" (Raw: "io.card.payment.CardIOActivity")
A: android:configChanges(0x0101001f)=(type 0x11)0xa0
E: activity (line=81)
A: android:name(0x01010003)="io.card.payment.DataEntryActivity" (Raw: "io.card.payment.DataEntryActivity")
E: meta-data (line=83)
A: android:name(0x01010003)="android.arch.lifecycle.VERSION" (Raw: "android.arch.lifecycle.VERSION")
A: android:value(0x01010024)="27.0.0-SNAPSHOT" (Raw: "27.0.0-SNAPSHOT")
[ ] Stopping app 'app.apk' on Android SDK built for x86.
[ ] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell am force-stop com.example.nativetechapp
[ +292 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell pm list packages com.example.nativetechapp
[ +223 ms] package:com.example.nativetechapp
[ +1 ms] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell cat /data/local/tmp/sky.com.example.nativetechapp.sha1
[ +12 ms] 623be40f43130df8b9b522a08541675565eed160
[ ] Latest build already installed.
[ ] Android SDK built for x86 startApp
[ ] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 shell am start -a android.intent.action.RUN -f 0x20000000 --ez enable-background-compilation true --ez enable-dart-profiling true --ez enable-checked-mode
true com.example.nativetechapp/com.example.nativetechapp.MainActivity
[ +28 ms] Starting: Intent { act=android.intent.action.RUN flg=0x20000000 cmp=com.example.nativetechapp/.MainActivity (has extras) }
[ ] Waiting for observatory port to be available...
[ +328 ms] Observatory URL on device: http://127.0.0.1:46895/
[ ] executing: /home/shoxter/Android/Sdk/platform-tools/adb -s emulator-5554 forward tcp:0 tcp:46895
[ +7 ms] 39165
[ ] Forwarded host port 39165 to device port 46895 for Observatory
[ +5 ms] Connecting to service protocol: http://127.0.0.1:39165/
[ +157 ms] Successfully connected to service protocol: http://127.0.0.1:39165/
[ +1 ms] Sending to VM service: getVM({})
[ +45 ms] Result: {type: VM, name: vm, architectureBits: 32, targetCPU: ia32, hostCPU: Android virtual processor, version: 2.1.0-dev.9.4.flutter-f9ebf21297 (Thu Nov 8 23:00:07 2018 +0100) on "android_ia32", _profilerMode: VM,
_nativeZoneMemoryUsage: 0, pid: 6367, s...
[ +2 ms] Sending to VM service: getIsolate({isolateId: isolates/490023866})
[ +2 ms] Sending to VM service: _flutter.listViews({})
[ +2 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xedcb4f8c, isolate: {type: @Isolate, fixedId: true, id: isolates/490023866, name: main.dart$main-490023866, number: 490023866}}]}
[ +3 ms] DevFS: Creating new filesystem on the device (null)
[ ] Sending to VM service: _createDevFS({fsName: native_tech_app})
[ +67 ms] Result: {type: Isolate, fixedId: true, id: isolates/490023866, name: main.dart:main(), number: 490023866, _originNumber: 490023866, startTime: 1544709664869, _heaps: {new: {type: HeapSpace, name: new, vmName: Scavenger,
collections: 2, avgCollectionPeriod...
[ +12 ms] Result: {type: FileSystem, name: native_tech_app, uri: file:///data/user/0/com.example.nativetechapp/cache/native_tech_appFYZXPY/native_tech_app/}
[ ] DevFS: Created new filesystem on the device (file:///data/user/0/com.example.nativetechapp/cache/native_tech_appFYZXPY/native_tech_app/)
[ +1 ms] Updating assets
[ +105 ms] Syncing files to device Android SDK built for x86...
[ +1 ms] DevFS: Starting sync from LocalDirectory: '/home/shoxter/workspace/native_tech_app'
[ ] Scanning project files
[ +12 ms] Scanning package files
[ +61 ms] Scanning asset files
[ ] Scanning for deleted files
[ +11 ms] Compiling dart to kernel with 1002 updated files
[ +4 ms] /home/shoxter/workspace/flutter/bin/cache/dart-sdk/bin/dart /home/shoxter/workspace/flutter/bin/cache/artifacts/engine/linux-x64/frontend_server.dart.snapshot --sdk-root
/home/shoxter/workspace/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --strong --target=flutter --output-dill build/app.dill --packages /home/shoxter/workspace/native_tech_app/.packages --filesystem-scheme
org-dartlang-root
[ +1 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +12 ms] D/ ( 6367): HostConnection::get() New Host Connection established 0xe6387740, tid 6385
[ +67 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe3a2c240: ver 2 0 (tinfo 0xe6383330)
[ +86 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +37 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +13 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +79 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
[ +899 ms] Updating files
[ +98 ms] DevFS: Sync finished
[ ] Syncing files to device Android SDK built for x86... (completed)
[ ] Synced 0.9MB.
[ ] Sending to VM service: _flutter.listViews({})
[ +3 ms] Result: {type: FlutterViewList, views: [{type: FlutterView, id: _flutterView/0xedcb4f8c, isolate: {type: @Isolate, fixedId: true, id: isolates/490023866, name: main.dart$main-490023866, number: 490023866}}]}
[ ] Connected to _flutterView/0xedcb4f8c.
[ +1 ms] 🔥 To hot reload changes while running, press "r". To hot restart (and rebuild state), press "R".
[ ] An Observatory debugger and profiler on Android SDK built for x86 is available at: http://127.0.0.1:39165/
[ ] For a more detailed help message, press "h". To detach, press "d"; to quit, press "q".
[ +377 ms] D/EGL_emulation( 6367): eglMakeCurrent: 0xe63843c0: ver 2 0 (tinfo 0xe63833a0)
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Analyzing native_tech_app...
info • Unused import: 'package:flutter_stetho/flutter_stetho.dart' • lib/main.dart:3:8 • unused_import
info • Unused import: 'package:redux_logging/redux_logging.dart' • lib/main.dart:14:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/services/auth.dart:12:9 • non_constant_identifier_names
info • Await only futures • lib/services/local-storage.dart:44:3 • await_only_futures
info • Unused import: 'credit-card-processing.dart' • lib/widgets/billing-panel.dart:9:8 • unused_import
info • The value of the local variable 'details' isn't used • lib/widgets/billing-panel.dart:264:31 • unused_local_variable
warning • The parameter 'equipment' is required • lib/widgets/se-equipment-section.dart:69:19 • missing_required_param
warning • The parameter 'selectedEquipment' is required • lib/widgets/se-equipment-section.dart:69:19 • missing_required_param
warning • The parameter 'equipment' is required • lib/widgets/se-equipment-section.dart:84:19 • missing_required_param"><pre class="notranslate"><code class="notranslate">Analyzing native_tech_app...
info • Unused import: 'package:flutter_stetho/flutter_stetho.dart' • lib/main.dart:3:8 • unused_import
info • Unused import: 'package:redux_logging/redux_logging.dart' • lib/main.dart:14:8 • unused_import
info • Name non-constant identifiers using lowerCamelCase • lib/services/auth.dart:12:9 • non_constant_identifier_names
info • Await only futures • lib/services/local-storage.dart:44:3 • await_only_futures
info • Unused import: 'credit-card-processing.dart' • lib/widgets/billing-panel.dart:9:8 • unused_import
info • The value of the local variable 'details' isn't used • lib/widgets/billing-panel.dart:264:31 • unused_local_variable
warning • The parameter 'equipment' is required • lib/widgets/se-equipment-section.dart:69:19 • missing_required_param
warning • The parameter 'selectedEquipment' is required • lib/widgets/se-equipment-section.dart:69:19 • missing_required_param
warning • The parameter 'equipment' is required • lib/widgets/se-equipment-section.dart:84:19 • missing_required_param
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
• Flutter version 1.0.0 at /home/shoxter/workspace/flutter
• Framework revision 5391447fae (13 days ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /home/shoxter/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /home/shoxter/Android/Sdk
• Java binary at: /home/shoxter/Documents/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] Android Studio (version 3.1)
• Android Studio at /home/shoxter/Documents/android-studio
• Flutter plugin version 29.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
• IntelliJ at /home/shoxter/Documents/idea-IU-181.5087.20
• Flutter plugin version 26.0.2
• Dart plugin version 181.4892.1
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at /home/shoxter/Documents/idea-IU-182.4892.20
• Flutter plugin version 30.0.2
• Dart plugin version 182.4999
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
• No issues found!"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel stable, v1.0.0, on Linux, locale en_US.UTF-8)
• Flutter version 1.0.0 at /home/shoxter/workspace/flutter
• Framework revision 5391447fae (13 days ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /home/shoxter/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /home/shoxter/Android/Sdk
• Java binary at: /home/shoxter/Documents/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
• All Android licenses accepted.
[✓] Android Studio (version 3.1)
• Android Studio at /home/shoxter/Documents/android-studio
• Flutter plugin version 29.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b01)
[✓] IntelliJ IDEA Ultimate Edition (version 2018.1)
• IntelliJ at /home/shoxter/Documents/idea-IU-181.5087.20
• Flutter plugin version 26.0.2
• Dart plugin version 181.4892.1
[✓] IntelliJ IDEA Ultimate Edition (version 2018.2)
• IntelliJ at /home/shoxter/Documents/idea-IU-182.4892.20
• Flutter plugin version 30.0.2
• Dart plugin version 182.4999
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
• No issues found!
</code></pre></div> | 0 |
<p dir="auto">I’m having an issue using the prediction probabilities for sparse SVM, where many of the predictions come out the same for my test instances. These probabilities are produced during cross validation, and when I plot an ROC curve for the folds, the results look very strange, as there are a handful of clustered points on the graph. Here is my cross validation code, I based it off of the samples on the scikit website:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="skf = StratifiedKFold(y, n_folds=numfolds)
for train_index, test_index in skf:
#split the training and testing sets
X_train, X_test = X_scaled[train_index], X_scaled[test_index]
y_train, y_test = y[train_index], y[test_index]
#train on the subset for this fold
print 'Training on fold ' + str(fold)
classifier = svm.SVC(C=C_val, kernel='rbf', gamma=gamma_val, probability=True)
probas_ = classifier.fit(X_train, y_train).predict_proba(X_test)
#Compute ROC curve and area the curve
fpr, tpr, thresholds = roc_curve(y_test, probas_[:, 1])
mean_tpr += interp(mean_fpr, fpr, tpr)
mean_tpr[0] = 0.0
roc_auc = auc(fpr, tpr)"><pre class="notranslate"><code class="notranslate">skf = StratifiedKFold(y, n_folds=numfolds)
for train_index, test_index in skf:
#split the training and testing sets
X_train, X_test = X_scaled[train_index], X_scaled[test_index]
y_train, y_test = y[train_index], y[test_index]
#train on the subset for this fold
print 'Training on fold ' + str(fold)
classifier = svm.SVC(C=C_val, kernel='rbf', gamma=gamma_val, probability=True)
probas_ = classifier.fit(X_train, y_train).predict_proba(X_test)
#Compute ROC curve and area the curve
fpr, tpr, thresholds = roc_curve(y_test, probas_[:, 1])
mean_tpr += interp(mean_fpr, fpr, tpr)
mean_tpr[0] = 0.0
roc_auc = auc(fpr, tpr)
</code></pre></div>
<p dir="auto">I’m just trying to figure out if there’s something I’m obviously missing here, since I used this same training set and SVM parameters with libsvm and got much better results. When I used libsvm and printed out the distances from the hyperplane for the CV test instances and then plotted the ROC, it came out much more like I expected, and a much better AUC. Since the decision_function() method is not supported for sparse matrices, I cannot recreate this functionality in scikit, and therefore have to rely on the prediction probabilities.</p>
<p dir="auto">There are 20k instances total, 10k positive and 10k negative, and I'm using 5-fold cross-validation. In the cross-validation results, there are several prediction values for which there are 1k-2k samples that all have the same prediction value, and there are only 3600 distinct prediction values over all of the folds for cross-validation. The resulting ROC looks like five big stair steps, with some little bits of fuzziness around the inner corners.</p>
<p dir="auto">I have many sparse features, so I'm hashing those into index ranges for different types of feature subsets, so one feature subset will be in the index range 1 million to 2 million, the next will be in the range 2 million to 3 million, etc.</p> | <p dir="auto">Add a test for the following:</p>
<p dir="auto">A sample weight of 2 (3, 4, 5, n) on a given sample should have the same effect as placing this sample 2 (3, 4, 5, n) times in the data. This should hold for many estimators, especially those that fully optimize a convex loss.</p> | 0 |
<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, found here (<a href="https://github.com/viaboxxsystems/deeplearning-showcase/blob/tensorflow_2.0/flaskApp.py">https://github.com/viaboxxsystems/deeplearning-showcase/blob/tensorflow_2.0/flaskApp.py</a>)</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): MAC OSX 10.14.4</li>
<li>TensorFlow version (use command below): 2.0.0-alpha0</li>
<li>Python version: Python 3.6.5</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture<br>
python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"<br>
v1.12.0-9492-g2c319fb415 2.0.0-alpha0</p>
<p dir="auto"><strong>Describe the current behavior</strong><br>
when running "flaskApp.py", After loading the model and trying to classify an image using "predict", it fails with the error:</p>
<blockquote>
<p dir="auto">tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable softmax/kernel from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/softmax/kernel/N10tensorflow3VarE does not exist.</p>
</blockquote>
<p dir="auto"><strong>Describe the expected behavior</strong><br>
a result of image classification should be returned.</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Steps to reproduce:</p>
<ul dir="auto">
<li><code class="notranslate">git clone https://github.com/viaboxxsystems/deeplearning-showcase.git</code></li>
<li><code class="notranslate">git checkout tensorflow_2.0</code></li>
<li>(if needed) <code class="notranslate">pip3 install -r requirements.txt</code></li>
<li><code class="notranslate">export FLASK_APP=flaskApp.py</code></li>
<li>start the app with <code class="notranslate">flask run</code></li>
<li>using Postman or curl send any image of a dog or cat to the app<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38561624/56967975-93abfd00-6b62-11e9-9de0-ef99356f8db4.png"><img src="https://user-images.githubusercontent.com/38561624/56967975-93abfd00-6b62-11e9-9de0-ef99356f8db4.png" alt="Screenshot 2019-04-30 at 16 10 57" style="max-width: 100%;"></a><br>
OR</li>
</ul>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="curl -X POST \
http://localhost:5000/net/MobileNet \
-H 'Postman-Token: ea35b79b-b34d-4be1-a80c-505c104050ec' \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F image=@/Users/haitham.b/Projects/ResearchProjects/CNNs/deeplearning-showcase/data/sample/valid/dogs/dog.1008.jpg"><pre class="notranslate"><code class="notranslate">curl -X POST \
http://localhost:5000/net/MobileNet \
-H 'Postman-Token: ea35b79b-b34d-4be1-a80c-505c104050ec' \
-H 'cache-control: no-cache' \
-H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \
-F image=@/Users/haitham.b/Projects/ResearchProjects/CNNs/deeplearning-showcase/data/sample/valid/dogs/dog.1008.jpg
</code></pre></div>
<p dir="auto"><strong>Other info / logs</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="E0430 13:36:10.374372 123145501933568 app.py:1761] Exception on /net/MobileNet [POST]
Traceback (most recent call last):
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/haitham.b/Projects/Virtualenvs/deeplearning-showcase/flaskApp.py", line 97, in use_net_to_classify_image
prediction, prob = predict(net_name, image)
File "/Users/haitham.b/Projects/Virtualenvs/deeplearning-showcase/flaskApp.py", line 59, in predict
output_probability = net_models[cnn_name].predict(post_processed_input_images)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py", line 1167, in predict
callbacks=callbacks)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/keras/engine/training_arrays.py", line 352, in model_iteration
batch_outs = f(ins_batch)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/keras/backend.py", line 3096, in __call__
run_metadata=self.run_metadata)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1440, in __call__
run_metadata_ptr)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 548, in __exit__
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable softmax/kernel from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/softmax/kernel/N10tensorflow3VarE does not exist.
[[{{node softmax/MatMul/ReadVariableOp}}]]"><pre class="notranslate"><code class="notranslate">E0430 13:36:10.374372 123145501933568 app.py:1761] Exception on /net/MobileNet [POST]
Traceback (most recent call last):
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 2292, in wsgi_app
response = self.full_dispatch_request()
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 1815, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 1718, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/_compat.py", line 35, in reraise
raise value
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 1813, in full_dispatch_request
rv = self.dispatch_request()
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/flask/app.py", line 1799, in dispatch_request
return self.view_functions[rule.endpoint](**req.view_args)
File "/Users/haitham.b/Projects/Virtualenvs/deeplearning-showcase/flaskApp.py", line 97, in use_net_to_classify_image
prediction, prob = predict(net_name, image)
File "/Users/haitham.b/Projects/Virtualenvs/deeplearning-showcase/flaskApp.py", line 59, in predict
output_probability = net_models[cnn_name].predict(post_processed_input_images)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/keras/engine/training.py", line 1167, in predict
callbacks=callbacks)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/keras/engine/training_arrays.py", line 352, in model_iteration
batch_outs = f(ins_batch)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/keras/backend.py", line 3096, in __call__
run_metadata=self.run_metadata)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1440, in __call__
run_metadata_ptr)
File "/Users/haitham.b/venv/tensorflow2.0alpha/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 548, in __exit__
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.FailedPreconditionError: Error while reading resource variable softmax/kernel from Container: localhost. This could mean that the variable was uninitialized. Not found: Resource localhost/softmax/kernel/N10tensorflow3VarE does not exist.
[[{{node softmax/MatMul/ReadVariableOp}}]]
</code></pre></div> | <p dir="auto"><em>Please make sure that this is a bug. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:bug_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes</li>
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 18.04</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): pip nightly</li>
<li>TensorFlow version (use command below): 2.0.0-dev20190415</li>
<li>Python version: 3.6</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto">You can collect some of this information using our environment capture <a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">script</a><br>
You can also obtain the TensorFlow version with<br>
python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"</p>
<p dir="auto"><strong>Describe the current behavior</strong><br>
The two following layers give different number of variable in <code class="notranslate">model.variables</code>. Keras duplicates shared variables in the variable list:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf
import numpy as np
class MLayer(tf.Module):
def __init__(self):
super(MLayer, self).__init__()
conv = tf.keras.layers.Conv2D(3, 3, 1, padding='SAME')
self.convs = [conv] * 7
def __call__(self, x):
for conv in self.convs:
x = conv(x)
return x
class KLayer(tf.keras.models.Model):
def __init__(self):
super(KLayer, self).__init__()
conv = tf.keras.layers.Conv2D(3, 3, 1, padding='SAME')
self.convs = [conv] * 7
def call(self, x):
for conv in self.convs:
x = conv(x)
return x
xnp = np.random.rand(1, 224, 224, 3)
x = tf.constant(xnp, tf.float32)
model = MLayer()
y = model(x)
v = [variable.name for variable in model.variables]
print(v, len(v))
model = KLayer()
y = model(x)
v = [variable.name for variable in model.variables]
print(v, len(v))"><pre class="notranslate"><code class="notranslate">import tensorflow as tf
import numpy as np
class MLayer(tf.Module):
def __init__(self):
super(MLayer, self).__init__()
conv = tf.keras.layers.Conv2D(3, 3, 1, padding='SAME')
self.convs = [conv] * 7
def __call__(self, x):
for conv in self.convs:
x = conv(x)
return x
class KLayer(tf.keras.models.Model):
def __init__(self):
super(KLayer, self).__init__()
conv = tf.keras.layers.Conv2D(3, 3, 1, padding='SAME')
self.convs = [conv] * 7
def call(self, x):
for conv in self.convs:
x = conv(x)
return x
xnp = np.random.rand(1, 224, 224, 3)
x = tf.constant(xnp, tf.float32)
model = MLayer()
y = model(x)
v = [variable.name for variable in model.variables]
print(v, len(v))
model = KLayer()
y = model(x)
v = [variable.name for variable in model.variables]
print(v, len(v))
</code></pre></div>
<p dir="auto">The first print:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="['conv2d/kernel:0', 'conv2d/bias:0'] 2"><pre class="notranslate"><code class="notranslate">['conv2d/kernel:0', 'conv2d/bias:0'] 2
</code></pre></div>
<p dir="auto">The second prints:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="['k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0'] 14"><pre class="notranslate"><code class="notranslate">['k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0', 'k_layer/conv2d_1/kernel:0', 'k_layer/conv2d_1/bias:0'] 14
</code></pre></div>
<p dir="auto"><strong>Describe the expected behavior</strong></p>
<p dir="auto">I would expect two layers have the same number of variables.</p>
<p dir="auto"><strong>Code to reproduce the issue</strong><br>
Provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
<p dir="auto"><strong>Other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p> | 0 |
<p dir="auto">I would have expected this to work, but it does not:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#[feature(macro_rules)];
macro_rules! test {
() => {
fn foo();
}
}
trait Foo {
test!()
}"><pre class="notranslate"><span class="pl-c1">#<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>macro_rules<span class="pl-kos">)</span><span class="pl-kos">]</span></span><span class="pl-kos">;</span>
<span class="pl-k">macro_rules!</span> test <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> foo<span class="pl-kos">(</span><span class="pl-kos">)</span>;
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-en">test</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Currently fails with this error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="test.rs:10:4: 10:8 error: unexpected token: `test`
test.rs:10 test!()
^~~~
task 'rustc' failed at 'explicit failure', /Users/mitsuhiko/Development/rust/src/libsyntax/diagnostic.rs:76
task '<main>' failed at 'explicit failure', /Users/mitsuhiko/Development/rust/src/librustc/lib.rs:441"><pre class="notranslate"><code class="notranslate">test.rs:10:4: 10:8 error: unexpected token: `test`
test.rs:10 test!()
^~~~
task 'rustc' failed at 'explicit failure', /Users/mitsuhiko/Development/rust/src/libsyntax/diagnostic.rs:76
task '<main>' failed at 'explicit failure', /Users/mitsuhiko/Development/rust/src/librustc/lib.rs:441
</code></pre></div> | <p dir="auto">The following code produces an ICE (using the latest nightly)</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="macro_rules! width(
($this:expr) => {
$this.width.unwrap()
}
);
struct HasInfo {
width: Option<usize>
}
impl HasInfo {
fn get_size(&mut self, n: usize) -> usize {
n
}
fn get_other(&mut self) -> usize {
self.get_size(width!(self))
}
}
fn main() {
println!("hello?");
}"><pre class="notranslate"><span class="pl-k">macro_rules!</span> width<span class="pl-kos">(</span>
<span class="pl-kos">(</span>$this<span class="pl-kos">:</span>expr<span class="pl-kos">)</span> => <span class="pl-kos">{</span>
$this.width.unwrap<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">struct</span> <span class="pl-smi">HasInfo</span> <span class="pl-kos">{</span>
<span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-smi">Option</span><span class="pl-kos"><</span><span class="pl-smi">usize</span><span class="pl-kos">></span>
<span class="pl-kos">}</span>
<span class="pl-k">impl</span> <span class="pl-smi">HasInfo</span> <span class="pl-kos">{</span>
<span class="pl-k">fn</span> <span class="pl-en">get_size</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">n</span><span class="pl-kos">:</span> <span class="pl-smi">usize</span><span class="pl-kos">)</span> -> <span class="pl-smi">usize</span> <span class="pl-kos">{</span>
n
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">get_other</span><span class="pl-kos">(</span><span class="pl-c1">&</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">)</span> -> <span class="pl-smi">usize</span> <span class="pl-kos">{</span>
<span class="pl-smi">self</span><span class="pl-kos">.</span><span class="pl-en">get_size</span><span class="pl-kos">(</span><span class="pl-en">width</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-smi">self</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"hello?"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Backtrace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 rustc test.rs
test.rs:17:30: 3:20 error: cannot use `self.width` because it was mutably borrowed
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'capacity overflow', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:330
stack backtrace:
1: 0x10834491f - sys::backtrace::write::hbd92b2f3b9d1f59bh7r
2: 0x10834cf80 - panicking::on_panic::hdc2c5977e67a233aUlw
3: 0x108308105 - rt::unwind::begin_unwind_inner::h01673f860cb84cd8D3v
4: 0x108308f3c - rt::unwind::begin_unwind_fmt::h9151fe47c4b99bcdJ2v
5: 0x10834cadc - rust_begin_unwind
6: 0x10839c7f5 - panicking::panic_fmt::he085f3b18c15d040hJy
7: 0x107ab1183 - codemap::CodeMap::span_to_lines::hb2f0d1a92c447e1btLA
8: 0x107af89eb - diagnostic::emit::h0cb83e197668e62aspC
9: 0x107af631c - diagnostic::EmitterWriter.Emitter::emit::h514d00ff1c0c52feamC
10: 0x107aa7969 - diagnostic::SpanHandler::span_err::h2e7e4e702a3c83e0gSB
11: 0x1054c5c43 - session::Session::span_err::hb309dbdc83438db3WGq
12: 0x104f015f4 - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>::consume_common::h37627587e5d63ecfQWa
13: 0x104f00fd1 - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>.euv..Delegate<'tcx>::consume::h70f8cd9f17ba9508Bea
14: 0x104f1530a - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h15185387293697103588
15: 0x104f11f2e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h15228336715392409603
16: 0x104f1531e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h15185387293697103588
17: 0x104f11f2e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h15228336715392409603
18: 0x104f1531e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h15185387293697103588
19: 0x104f30aef - borrowck::borrowck_fn::h4c8fd678dfdeee49NOe
20: 0x104f300dc - borrowck::BorrowckCtxt<'a, 'tcx>.Visitor<'v>::visit_fn::h55da20bf55e34495bGe
21: 0x104f32ab4 - visit::walk_impl_item::h12505514548441264404
22: 0x104f3378a - visit::walk_item::h2754692921043539544
23: 0x104f32c08 - borrowck::check_crate::h3db16b6efa27d8adQIe
24: 0x104a9b880 - driver::phase_3_run_analysis_passes::hba2077d3401024fbtGa
25: 0x104a7bd5c - driver::compile_input::hddc4eab8e7fc8420Qba
26: 0x104b3ac83 - run_compiler::hf4a5110b6d35543565b
27: 0x104b383ea - boxed::F.FnBox<A>::call_box::h8166354692369242215
28: 0x104b37947 - rt::unwind::try::try_fn::h645230996156021718
29: 0x1083cf488 - rust_try_inner
30: 0x1083cf475 - rust_try
31: 0x104b37c1d - boxed::F.FnBox<A>::call_box::h7235942386744103169
32: 0x10834b97d - sys::thread::Thread::new::thread_start::h7bede09625198736Cov
33: 0x7fff8b475267 - _pthread_body
34: 0x7fff8b4751e4 - _pthread_start"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 rustc test.rs
test.rs:17:30: 3:20 error: cannot use `self.width` because it was mutably borrowed
error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: https://github.com/rust-lang/rust/blob/master/CONTRIBUTING.md#bug-reports
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'capacity overflow', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/libcore/option.rs:330
stack backtrace:
1: 0x10834491f - sys::backtrace::write::hbd92b2f3b9d1f59bh7r
2: 0x10834cf80 - panicking::on_panic::hdc2c5977e67a233aUlw
3: 0x108308105 - rt::unwind::begin_unwind_inner::h01673f860cb84cd8D3v
4: 0x108308f3c - rt::unwind::begin_unwind_fmt::h9151fe47c4b99bcdJ2v
5: 0x10834cadc - rust_begin_unwind
6: 0x10839c7f5 - panicking::panic_fmt::he085f3b18c15d040hJy
7: 0x107ab1183 - codemap::CodeMap::span_to_lines::hb2f0d1a92c447e1btLA
8: 0x107af89eb - diagnostic::emit::h0cb83e197668e62aspC
9: 0x107af631c - diagnostic::EmitterWriter.Emitter::emit::h514d00ff1c0c52feamC
10: 0x107aa7969 - diagnostic::SpanHandler::span_err::h2e7e4e702a3c83e0gSB
11: 0x1054c5c43 - session::Session::span_err::hb309dbdc83438db3WGq
12: 0x104f015f4 - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>::consume_common::h37627587e5d63ecfQWa
13: 0x104f00fd1 - borrowck::check_loans::CheckLoanCtxt<'a, 'tcx>.euv..Delegate<'tcx>::consume::h70f8cd9f17ba9508Bea
14: 0x104f1530a - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h15185387293697103588
15: 0x104f11f2e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h15228336715392409603
16: 0x104f1531e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h15185387293697103588
17: 0x104f11f2e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::walk_expr::h15228336715392409603
18: 0x104f1531e - middle::expr_use_visitor::ExprUseVisitor<'d, 't, 'tcx, TYPER>::consume_expr::h15185387293697103588
19: 0x104f30aef - borrowck::borrowck_fn::h4c8fd678dfdeee49NOe
20: 0x104f300dc - borrowck::BorrowckCtxt<'a, 'tcx>.Visitor<'v>::visit_fn::h55da20bf55e34495bGe
21: 0x104f32ab4 - visit::walk_impl_item::h12505514548441264404
22: 0x104f3378a - visit::walk_item::h2754692921043539544
23: 0x104f32c08 - borrowck::check_crate::h3db16b6efa27d8adQIe
24: 0x104a9b880 - driver::phase_3_run_analysis_passes::hba2077d3401024fbtGa
25: 0x104a7bd5c - driver::compile_input::hddc4eab8e7fc8420Qba
26: 0x104b3ac83 - run_compiler::hf4a5110b6d35543565b
27: 0x104b383ea - boxed::F.FnBox<A>::call_box::h8166354692369242215
28: 0x104b37947 - rt::unwind::try::try_fn::h645230996156021718
29: 0x1083cf488 - rust_try_inner
30: 0x1083cf475 - rust_try
31: 0x104b37c1d - boxed::F.FnBox<A>::call_box::h7235942386744103169
32: 0x10834b97d - sys::thread::Thread::new::thread_start::h7bede09625198736Cov
33: 0x7fff8b475267 - _pthread_body
34: 0x7fff8b4751e4 - _pthread_start
</code></pre></div>
<p dir="auto">Probably an duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="75805042" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/25353" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/25353/hovercard" href="https://github.com/rust-lang/rust/issues/25353">#25353</a> or <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="70592189" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/24761" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/24761/hovercard" href="https://github.com/rust-lang/rust/issues/24761">#24761</a>. I opened a new bug since I was able to reduce it to a minimal example. This is not related to the borrow checker as it also crashes if I change <code class="notranslate">$this.width</code> to <code class="notranslate">$this.undefined</code>.</p> | 0 |
<p dir="auto">When maximized and then exited, it saves the sizes and not the maximization. And it ends up opening un-maximized, but with the maximized sizes.</p>
<p dir="auto"><strong>Correct behaviour should be:</strong> If maximized, use the value of last resize before maximization, but also flag the maximization.</p>
<p dir="auto">On Windows, resizing due to Aero-Snap behaviors should be not be saved, and ignored. Similar behavior to maximization has to be used for correctness.</p> | <p dir="auto">This error shows up when I save/close a file or for some files when I switch to that tab.</p>
<p dir="auto">v0.103.0 on Mac OS X 10.9.3 with the react editor enabled.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Uncaught Error: spawn ENOENT util.js:682 exports._errnoException
util.js:682 ChildProcess._handle.onexit
child_process.js:857 (anonymous function)
child_process.js:1005
_tickCallback node.js:605"><pre class="notranslate"><code class="notranslate">Uncaught Error: spawn ENOENT util.js:682 exports._errnoException
util.js:682 ChildProcess._handle.onexit
child_process.js:857 (anonymous function)
child_process.js:1005
_tickCallback node.js:605
</code></pre></div> | 0 |
<p dir="auto">when i use the javatype of LocalDateTime mapped to sql timestamp,the resultset can not call LocalDateTimeTypeHandler rightly to finish converting, framework throws ' java.sql.SQLFeatureNotSupportedException: getObject with type',i wonder why?</p> | <p dir="auto">Please answer these questions before submitting your issue. Thanks!<br>
com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '162887478624124928' for key 'PRIMARY'</p>
<h3 dir="auto">Which version of Sharding-Jdbc do you using?</h3>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">不知道为啥会出现主键冲突的情况</p>
<h3 dir="auto">Actual behavior</h3>
<h3 dir="auto">Steps to reproduce the behavior</h3>
<h3 dir="auto">Please provide the reproduce example codes (such as github link)</h3>
<p dir="auto">Code should based on <a href="https://github.com/shardingjdbc/sharding-jdbc-example">https://github.com/shardingjdbc/sharding-jdbc-example</a></p> | 0 |
<h1 dir="auto">Feature request</h1>
<h2 dir="auto">Is your feature request related to a problem? Please describe.</h2>
<p dir="auto">I was excited to see a static site generator in Next. I want to write a prototype of a site, which would end up using Next. I'd love the prototype to be static so I can zip it up and send to someone who isn't tech savvy unzip and run the html. The issue is that someone needs to make the html run on "server" ie <code class="notranslate">serve</code></p>
<h2 dir="auto">Describe the solution you'd like</h2>
<p dir="auto">Allow an option for <code class="notranslate">next export</code> which lets things run without a server. As far as I can tell the main issue is the way things are routed, followed by the way clicking <code class="notranslate"><Link></code> is counted.</p>
<h2 dir="auto">Describe alternatives you've considered</h2>
<p dir="auto">I tried detecting an environment variable to do an update like this:</p>
<p dir="auto"><code class="notranslate">correctedHref = </code>file:///C:${prefix}${href}/index.html`</p>
<p dir="auto">That made the <code class="notranslate">href=</code> point at an actual file, however clicking the link did nothing in the app, despite opening the link via source view showing what I wanted.</p> | <p dir="auto">There are many tags in the HTML which NextJS generates which contain absolute URLs. For example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="href="/_next/blah""><pre class="notranslate"><code class="notranslate">href="/_next/blah"
</code></pre></div>
<p dir="auto">I've added selenium + chrome headless testing to my Next project, and it works fine when I test <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a>, but when I do a <code class="notranslate">next export</code>, and then try to to test <code class="notranslate">file:///home/user/project_dir/out/index.html</code>, all of those absolute links are broken.I.e, it tries to fetch <code class="notranslate">file:///_next/blah</code> instead of: <code class="notranslate">file:///home/user/project_dir/out/_next/blah</code>.</p>
<p dir="auto">If I post-edit the generated HTML to make those links relative, then it all works fine.</p>
<p dir="auto">I need to be able to run my tests against the static files which are generated by export to ensure that they have been generated correctly before publishing.</p>
<p dir="auto">I suspect this is also an issue when people simply wish to run their nextjs application from a location other than the root of their website.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>v3.0.1-beta.15</td>
</tr>
<tr>
<td>node</td>
<td>v8.1.3</td>
</tr>
<tr>
<td>OS</td>
<td>Debian 9</td>
</tr>
<tr>
<td>browser</td>
<td>Google Chrome 59.0.3071.115</td>
</tr>
</tbody>
</table> | 1 |
<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/4455" rel="nofollow">http://code.opencv.org/issues/4455</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Jens Garstka on 2015-07-01 08:32
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: ml
|| Tracker: Bug
|| Difficulty: Easy
|| PR:
|| Platform: x64 / Linux"><pre class="notranslate"><code class="notranslate">|| Jens Garstka on 2015-07-01 08:32
|| Priority: Normal
|| Affected: branch 'master' (3.0-dev)
|| Category: ml
|| Tracker: Bug
|| Difficulty: Easy
|| PR:
|| Platform: x64 / Linux
</code></pre></div>
<h2 dir="auto">SVM write/load problems with kernels other than linear</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Within the implementation of the SVMs write and read methods (modules/ml/src/svm.cpp, lines 2022 ff and 2139 ff), the author makes the assumption, that support vector indices are not required in 2-class problems. That is probably correct if a linear kernel is used (i.e., when you have only one support vector). But with other kernels (in my case with an RBF kernel), the support vector indices are definitly required.
I've added a git diff where this questionable conditions are commented out. Without these lines everything works fine.
IMHO the lines should be removed."><pre class="notranslate"><code class="notranslate">Within the implementation of the SVMs write and read methods (modules/ml/src/svm.cpp, lines 2022 ff and 2139 ff), the author makes the assumption, that support vector indices are not required in 2-class problems. That is probably correct if a linear kernel is used (i.e., when you have only one support vector). But with other kernels (in my case with an RBF kernel), the support vector indices are definitly required.
I've added a git diff where this questionable conditions are commented out. Without these lines everything works fine.
IMHO the lines should be removed.
</code></pre></div>
<h2 dir="auto">History</h2>
<h5 dir="auto">Hyunjun Kim on 2015-07-03 07:35</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Hi, I was able to reproduce the error. I confirmed that cv::Algorithm::load() works well only with SVM::LINEAR kernel.
<pre>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include "opencv2/imgcodecs.hpp"
#include <opencv2/highgui.hpp>
#include <opencv2/ml.hpp>
using namespace cv;
using namespace cv::ml;
int main(int, char**)
{
// Data for visual representation
int width = 512, height = 512;
Mat image = Mat::zeros(height, width, CV_8UC3);
// Set up training data
int labels[4] = {1, -1, -1, -1};
Mat labelsMat(4, 1, CV_32SC1, labels);
float trainingData[4][2] = { {501, 10}, {255, 10}, {501, 255}, {10, 501} };
Mat trainingDataMat(4, 2, CV_32FC1, trainingData);
// Set up SVM's parameters
Ptr<ml::SVM> svm = ml::SVM::create();
svm->setType(ml::SVM::C_SVC);
svm->setKernel(SVM::INTER); // Algorithm::load() works well with SVM::LINEAR
svm->setTermCriteria(TermCriteria(TermCriteria::MAX_ITER, 100, 1e-6));
// Train the SVM
svm->train(ml::TrainData::create(trainingDataMat, ml::ROW_SAMPLE, labelsMat));
// Save and load SVM
svm->save("ex_svm.xml");
svm= cv::Algorithm::load<ml::SVM>("ex_svm.xml"); // something is wrong
Vec3b green(0,255,0), blue (255,0,0);
// Show the decision regions given by the SVM
for (int i = 0; i < image.rows; ++i)
for (int j = 0; j < image.cols; ++j)
{
Mat sampleMat = (Mat_<float>(1,2) << j,i);
float response = svm->predict(sampleMat);
if (response == 1)
image.at<Vec3b>(i,j) = green;
else if (response == -1)
image.at<Vec3b>(i,j) = blue;
}
// Show the training data
int thickness = -1;
int lineType = 8;
circle( image, Point(501, 10), 5, Scalar( 0, 0, 0), thickness, lineType );
circle( image, Point(255, 10), 5, Scalar(255, 255, 255), thickness, lineType );
circle( image, Point(501, 255), 5, Scalar(255, 255, 255), thickness, lineType );
circle( image, Point( 10, 501), 5, Scalar(255, 255, 255), thickness, lineType );
// Show support vectors
thickness = 2;
lineType = 8;
Mat sv = svm->getSupportVectors();
for (int i = 0; i < sv.rows; ++i)
{
const float* v = sv.ptr<float>(i);
circle( image, Point( (int) v[0], (int) v[1]), 6, Scalar(128, 128, 128), thickness, lineType);
}
imwrite("result.png", image); // save the image
imshow("SVM Simple Example", image); // show it to the user
waitKey(0);
}
</pre>"><pre class="notranslate"><code class="notranslate">Hi, I was able to reproduce the error. I confirmed that cv::Algorithm::load() works well only with SVM::LINEAR kernel.
<pre>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include "opencv2/imgcodecs.hpp"
#include <opencv2/highgui.hpp>
#include <opencv2/ml.hpp>
using namespace cv;
using namespace cv::ml;
int main(int, char**)
{
// Data for visual representation
int width = 512, height = 512;
Mat image = Mat::zeros(height, width, CV_8UC3);
// Set up training data
int labels[4] = {1, -1, -1, -1};
Mat labelsMat(4, 1, CV_32SC1, labels);
float trainingData[4][2] = { {501, 10}, {255, 10}, {501, 255}, {10, 501} };
Mat trainingDataMat(4, 2, CV_32FC1, trainingData);
// Set up SVM's parameters
Ptr<ml::SVM> svm = ml::SVM::create();
svm->setType(ml::SVM::C_SVC);
svm->setKernel(SVM::INTER); // Algorithm::load() works well with SVM::LINEAR
svm->setTermCriteria(TermCriteria(TermCriteria::MAX_ITER, 100, 1e-6));
// Train the SVM
svm->train(ml::TrainData::create(trainingDataMat, ml::ROW_SAMPLE, labelsMat));
// Save and load SVM
svm->save("ex_svm.xml");
svm= cv::Algorithm::load<ml::SVM>("ex_svm.xml"); // something is wrong
Vec3b green(0,255,0), blue (255,0,0);
// Show the decision regions given by the SVM
for (int i = 0; i < image.rows; ++i)
for (int j = 0; j < image.cols; ++j)
{
Mat sampleMat = (Mat_<float>(1,2) << j,i);
float response = svm->predict(sampleMat);
if (response == 1)
image.at<Vec3b>(i,j) = green;
else if (response == -1)
image.at<Vec3b>(i,j) = blue;
}
// Show the training data
int thickness = -1;
int lineType = 8;
circle( image, Point(501, 10), 5, Scalar( 0, 0, 0), thickness, lineType );
circle( image, Point(255, 10), 5, Scalar(255, 255, 255), thickness, lineType );
circle( image, Point(501, 255), 5, Scalar(255, 255, 255), thickness, lineType );
circle( image, Point( 10, 501), 5, Scalar(255, 255, 255), thickness, lineType );
// Show support vectors
thickness = 2;
lineType = 8;
Mat sv = svm->getSupportVectors();
for (int i = 0; i < sv.rows; ++i)
{
const float* v = sv.ptr<float>(i);
circle( image, Point( (int) v[0], (int) v[1]), 6, Scalar(128, 128, 128), thickness, lineType);
}
imwrite("result.png", image); // save the image
imshow("SVM Simple Example", image); // show it to the user
waitKey(0);
}
</pre>
</code></pre></div>
<h5 dir="auto">Maksim Shabunin on 2015-07-13 08:56</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- Assignee set to Maksim Shabunin"><pre class="notranslate"><code class="notranslate">- Assignee set to Maksim Shabunin
</code></pre></div> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 4.1.1</li>
<li>Operating System / Platform => Windows 10 64bit</li>
<li>Compiler => Visual Studio 2019 16.2.0</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I have an original image in green tones:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42886604/62464462-570d2480-b795-11e9-8773-86ff3e6953fd.png"><img src="https://user-images.githubusercontent.com/42886604/62464462-570d2480-b795-11e9-8773-86ff3e6953fd.png" alt="raw" style="max-width: 100%;"></a><br>
In legacy code with OpenCV 3.1.0 it was converted to normal colors with:<br>
<code class="notranslate">cv::cvtColor(Mat(size.height, size.width, CV_16UC1, rawRight.data), frameRight, color); // convert CV_8UC2 to CV_16UC1</code><br>
And it's work ok.<br>
But when I update OpenCV 4.1.1. And it began to work with problems. Instead of the image with normal colors received:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42886604/62464713-ff22ed80-b795-11e9-8a0a-7c8aebe3dec6.jpg"><img src="https://user-images.githubusercontent.com/42886604/62464713-ff22ed80-b795-11e9-8a0a-7c8aebe3dec6.jpg" alt="vBlahj5N1Vk" style="max-width: 100%;"></a><br>
I tried sorting through all the methods from enum:<br>
<a href="https://docs.opencv.org/4.1.1/d8/d01/group__imgproc__color__conversions.html#ga4e0972be5de079fed4e3a10e24ef5ef0" rel="nofollow">https://docs.opencv.org/4.1.1/d8/d01/group__imgproc__color__conversions.html#ga4e0972be5de079fed4e3a10e24ef5ef0</a><br>
but not one made the colors right.<br>
OpenCV gives the following image information:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[i] channels: 3
[i] pixel depth: 0 bits
[i] elemSize: 3 bytes
[i] elemSize1: 1 bytes
[i] type: CV_8UC3"><pre class="notranslate"><code class="notranslate">[i] channels: 3
[i] pixel depth: 0 bits
[i] elemSize: 3 bytes
[i] elemSize1: 1 bytes
[i] type: CV_8UC3
</code></pre></div>
<p dir="auto">I would be grateful for any help.</p> | 0 |
<p dir="auto">hi,</p>
<p dir="auto">i have a dialog with <code class="notranslate">autoScrollBodyContent={true}</code> and it works on a desktop. but when opening the dialog on a mobile device (nexus6), the scrollbar is not on the right edge of the dialog it is about 1cm inside the dialog. when using the chrome-inspector you can simulate this behaviour with other small devices too (iphone, etc).</p>
<p dir="auto">when removing the style</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25), 0 10px 18px rgba(0, 0, 0, 0.22); "><pre class="notranslate"><code class="notranslate">box-shadow: 0 14px 45px rgba(0, 0, 0, 0.25), 0 10px 18px rgba(0, 0, 0, 0.22);
</code></pre></div>
<p dir="auto">with the inspector, the scrollbar appears exactly on the right side of the dialog. but the shadow disappears :-(</p>
<p dir="auto">/usc</p> | <h3 dir="auto">Problem description</h3>
<p dir="auto">How can I make the Dialog scrollable in v1. I have a modal with a list in it, and the list goes off the page. I would like the ability to scroll down. I would like the scrollbar to be on the main browser window, rather than on the modal itself.</p>
<h3 dir="auto">Link to minimal working code that reproduces the issue</h3>
<h3 dir="auto">Versions</h3>
<ul dir="auto">
<li>Material-UI: 1</li>
<li>React:</li>
<li>Browser:</li>
</ul> | 1 |
<p dir="auto">When I type in Chinese, the word choice box is alway stay in the top left corner of the screen instead of following the cursor.</p> | <p dir="auto">This bug-tracker is monitored by Windows Console development team and other technical types. <strong>We like detail!</strong></p>
<p dir="auto">If you have a feature request, please post to <a href="https://wpdev.uservoice.com/forums/266908" rel="nofollow">the UserVoice</a>.</p>
<blockquote>
<p dir="auto"><strong>Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues</strong>. Instead, send dumps/traces to <a href="mailto:[email protected]">[email protected]</a>, referencing this GitHub issue.</p>
</blockquote>
<p dir="auto">Please use this form and describe your issue, concisely but precisely, with as much detail as possible</p>
<ul dir="auto">
<li>
<p dir="auto">Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)<br>
10.0.18890.1000</p>
</li>
<li>
<p dir="auto">What you're doing and what's happening: (Copy & paste specific commands and their output, or include screen shots)<br>
Build & run the new Windows Terminal, and type something using IME (I am using Microsoft Pinyin IME)</p>
</li>
<li>
<p dir="auto">What's wrong / what should be happening instead:<br>
The IME UI appears in the upper left corner of the screen, not following the current cursor.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/22699485/57271693-f6e9e200-70c2-11e9-8bf8-1247209846b5.png"><img src="https://user-images.githubusercontent.com/22699485/57271693-f6e9e200-70c2-11e9-8bf8-1247209846b5.png" alt="TIM截图20190507122302" style="max-width: 100%;"></a></p>
</li>
</ul> | 1 |
<p dir="auto">Hi,</p>
<ul dir="auto">
<li>
<p dir="auto">I use glide to load gif, it can be loaded and displayed in ImageView, but the display is not normal.</p>
</li>
<li>
<p dir="auto">I use another open source project(<a href="https://github.com/koral--/android-gif-drawable">GifDrawable</a>) that also support gif, the gif can be loaded and displayed normally in ImageView.</p>
</li>
<li>
<p dir="auto">Use glide and gifdrawable to load gif effect is as follows.</p>
<table role="table">
<thead>
<tr>
<th>Use glide</th>
<th>Use gifdrawable</th>
</tr>
</thead>
<tbody>
<tr>
<td><a href="https://www.dropbox.com/s/doe062ghzpp5ryg/device-2015-09-18-113927.mp4?dl=0" rel="nofollow">https://www.dropbox.com/s/doe062ghzpp5ryg/device-2015-09-18-113927.mp4?dl=0</a></td>
<td><a href="https://www.dropbox.com/s/whuooxsn8wdd2kr/device-2015-09-18-114503.mp4?dl=0" rel="nofollow">https://www.dropbox.com/s/whuooxsn8wdd2kr/device-2015-09-18-114503.mp4?dl=0</a></td>
</tr>
</tbody>
</table>
</li>
<li>
<p dir="auto">I suspect this is a bug of glide.</p>
</li>
</ul> | <p dir="auto"><strong>Glide Version:</strong> 3.6.1<br>
<strong>Issue details:</strong><br>
While loading GIF's there is significant delay before showing <strong>only</strong> the second frame, and this happens only for the first loop, all the later loops goes with expected delay.</p>
<p dir="auto">So after doing some research, I thought it may be because Glide is resizing the frames, so I override resize operation using <code class="notranslate">override()</code>.</p>
<p dir="auto"><strong>Below is the Glide load line:</strong><br>
<code class="notranslate">Glide.with(this).load(trainingItem.getUrl()).asGif().override(Target.SIZE_ORIGINAL, Target.SIZE_ORIGINAL).diskCacheStrategy(DiskCacheStrategy.SOURCE).into(draweeView);</code></p>
<p dir="auto">But still there is significant delay before showing the next frame for the very first loop.<br>
Any suggestions/pointers?</p> | 1 |
<ul dir="auto">
<li>VSCode Version: 1.2.0</li>
<li>OS Version: Windows 10.0.10586</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>Make the font size larger than default in user settings</li>
<li>Write code that causes IntelliSense to raise a tooltip</li>
<li>Notice the truncated text due to the tooltip not growing to fit the content</li>
</ol>
<h3 dir="auto">Repro screenshot</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1445483/15939179/9f25fee6-2e44-11e6-877d-38051a02f9e2.png"><img src="https://cloud.githubusercontent.com/assets/1445483/15939179/9f25fee6-2e44-11e6-877d-38051a02f9e2.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Installing extensions and themes would be easier if there was a GUI to do so. It's currently somewhat hidden in the command palette, especially for users not familiar with similar editors.</p> | 0 |
<p dir="auto">Spinoff discussion of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="31034633" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/1373" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/1373/hovercard" href="https://github.com/facebook/react/issues/1373">#1373</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57415826" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/3128" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/3128/hovercard" href="https://github.com/facebook/react/issues/3128">#3128</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="58488892" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/3228" data-hovercard-type="issue" data-hovercard-url="/facebook/react/issues/3228/hovercard" href="https://github.com/facebook/react/issues/3228">#3228</a>.</p>
<p dir="auto">We're pretty sure that we need to change the current way refs work (see above). However, the new ref callbacks are also not ideal because it relies on some imperative code and suffers from timing issues like all imperative life-cycles. It is also not very convenient without arrow functions. Even with arrow functions it might suffer from performance issues.</p>
<p dir="auto">A few things refs tries to solve:</p>
<ul dir="auto">
<li>Imperative access to APIs that doesn't have declarative counter-parts yet. E.g. DOM layout.</li>
<li>Fast-path down the tree to update deeply to by-pass reconciliation. Perf-optimization.</li>
<li>Get the current state of a child that you don't want to control without duplicating state (which might possibly diverge).</li>
<li>Send signals/pulses downwards.</li>
</ul> | <p dir="auto">In Internet Explorer, a disabled radio button will fire an onChange event when double clicked. The checked state does not change, but the onChange event fires nonetheless.</p>
<p dir="auto"><a href="http://jsfiddle.net/abzosdau/4/" rel="nofollow">http://jsfiddle.net/abzosdau/4/</a></p> | 0 |
<p dir="auto">Hi all</p>
<p dir="auto">For some reason Launcher duplicates items on the list. It shows the application in the search list but also it duplicates that same application by showing .lnk file from the menu start folder for the same app. Please see the screenshot below:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/53837030/82354452-1bc8a300-9a01-11ea-8a0d-b69c828e0fb3.png"><img src="https://user-images.githubusercontent.com/53837030/82354452-1bc8a300-9a01-11ea-8a0d-b69c828e0fb3.png" alt="Annotation 2020-05-19 184232" style="max-width: 100%;"></a></p>
<p dir="auto">Do you think it is a bug. Perhaps we could exlude .lnk file in future updates as an option?</p> | <p dir="auto">Add tabs to each Fancy zone to allow multiple applications within each zone</p>
<p dir="auto">Adding tabs to each Zone will allow users to position multiple unrelated windows on limited screen real-estate. This is a must-have feature for PowerToys users with single screens, including laptops on the move.</p>
<p dir="auto">Add the capability that when a User drags a window onto a zone that is already occupied, provide an onfocus tab, thus allowing the user to place the window into the new tab. Once there are multiple windows in a zone, show tabs for each window.</p> | 0 |
<p dir="auto">when numpy is 1.11.3, distplot() is not working,<br>
but under numpy 1.11.1, it's working with warning:</p>
<blockquote>
<p dir="auto">Woking\path\lib\site-packages\statsmodels\nonparametric\kdetools.py:20: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future<br>
y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j</p>
</blockquote> | <p dir="auto">I can't get <code class="notranslate">kdeplot</code> or <code class="notranslate">distplot</code> to work with my <code class="notranslate">pd.Series</code> (or <code class="notranslate">np.array</code>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="u = np.array([ 3.41959 , 1.79315 , 1.17229 , 1.59909 , 1.27337 , 1.21917 , 2.60591 , 2.0571 , 1.83865 , 1.94869 , 1.65421 , 1.67777 , 1.23781 , 1.46352 , 1.41791 , 2.00387 , 2.51076 , 1.59734 , 1.32982 , 1.89372 , 1.40614 , 1.41747 , 1.34109 , 1.38647 , 1.49432 , 1.05335 , 1.03805 , 1.18631 , 1.06402 , 1.06929 , 1.12031 , 1.07605 , 1.25702 , 1.25158 , 1.06541 , 1.07368 , 1.00559 , 1.00555 , 1.54561 , 1.01144 , 1.79598 , 1.02094 , 1.36236 , 1.6214 , 1.09803 , 1.25866 , 0.987888, 0.993576, 1.25805 , 5.67273 , 1.20665 , 0.985643, 1.07809 , 1.22087 , 1.1201 , 1.0367 , 1.26575 , 1.0295 , 0.993422, 1.08648 , 1.32767 , 1.35376 , 0.98585 , 0.991962, 1.49533 , 1.04997 , 0.995653, 1.13044 , 1.12311 , 1.29017 , 1.6424 , 1.1599 , 1.26453 , 1.0633 , 1.00454 , 1.35529 , 0.990889, 1.19621 , 1.30717 , 1.32321 , 1.5471 , 1.13225 , 1.97847 , 1.17142 , 1.36377 , 2.14062 , 0.996708, 1.03417 , 1.03212 , 1.0082 , 1.06432 , 3.49213 , 4.28245 , 1.00274 , 1.09338 , 1.0156 , 1.13566 , 1.10697 , 1.56438 , 0.96706 ], dtype=float)
Se_u = pd.Series(u)
sns.kdeplot(Se_u)"><pre class="notranslate"><code class="notranslate">u = np.array([ 3.41959 , 1.79315 , 1.17229 , 1.59909 , 1.27337 , 1.21917 , 2.60591 , 2.0571 , 1.83865 , 1.94869 , 1.65421 , 1.67777 , 1.23781 , 1.46352 , 1.41791 , 2.00387 , 2.51076 , 1.59734 , 1.32982 , 1.89372 , 1.40614 , 1.41747 , 1.34109 , 1.38647 , 1.49432 , 1.05335 , 1.03805 , 1.18631 , 1.06402 , 1.06929 , 1.12031 , 1.07605 , 1.25702 , 1.25158 , 1.06541 , 1.07368 , 1.00559 , 1.00555 , 1.54561 , 1.01144 , 1.79598 , 1.02094 , 1.36236 , 1.6214 , 1.09803 , 1.25866 , 0.987888, 0.993576, 1.25805 , 5.67273 , 1.20665 , 0.985643, 1.07809 , 1.22087 , 1.1201 , 1.0367 , 1.26575 , 1.0295 , 0.993422, 1.08648 , 1.32767 , 1.35376 , 0.98585 , 0.991962, 1.49533 , 1.04997 , 0.995653, 1.13044 , 1.12311 , 1.29017 , 1.6424 , 1.1599 , 1.26453 , 1.0633 , 1.00454 , 1.35529 , 0.990889, 1.19621 , 1.30717 , 1.32321 , 1.5471 , 1.13225 , 1.97847 , 1.17142 , 1.36377 , 2.14062 , 0.996708, 1.03417 , 1.03212 , 1.0082 , 1.06432 , 3.49213 , 4.28245 , 1.00274 , 1.09338 , 1.0156 , 1.13566 , 1.10697 , 1.56438 , 0.96706 ], dtype=float)
Se_u = pd.Series(u)
sns.kdeplot(Se_u)
</code></pre></div>
<p dir="auto">This is the error I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-27-70aaa51b2d69> in <module>()
4 u = np.array([ 3.41959 , 1.79315 , 1.17229 , 1.59909 , 1.27337 , 1.21917 , 2.60591 , 2.0571 , 1.83865 , 1.94869 , 1.65421 , 1.67777 , 1.23781 , 1.46352 , 1.41791 , 2.00387 , 2.51076 , 1.59734 , 1.32982 , 1.89372 , 1.40614 , 1.41747 , 1.34109 , 1.38647 , 1.49432 , 1.05335 , 1.03805 , 1.18631 , 1.06402 , 1.06929 , 1.12031 , 1.07605 , 1.25702 , 1.25158 , 1.06541 , 1.07368 , 1.00559 , 1.00555 , 1.54561 , 1.01144 , 1.79598 , 1.02094 , 1.36236 , 1.6214 , 1.09803 , 1.25866 , 0.987888, 0.993576, 1.25805 , 5.67273 , 1.20665 , 0.985643, 1.07809 , 1.22087 , 1.1201 , 1.0367 , 1.26575 , 1.0295 , 0.993422, 1.08648 , 1.32767 , 1.35376 , 0.98585 , 0.991962, 1.49533 , 1.04997 , 0.995653, 1.13044 , 1.12311 , 1.29017 , 1.6424 , 1.1599 , 1.26453 , 1.0633 , 1.00454 , 1.35529 , 0.990889, 1.19621 , 1.30717 , 1.32321 , 1.5471 , 1.13225 , 1.97847 , 1.17142 , 1.36377 , 2.14062 , 0.996708, 1.03417 , 1.03212 , 1.0082 , 1.06432 , 3.49213 , 4.28245 , 1.00274 , 1.09338 , 1.0156 , 1.13566 , 1.10697 , 1.56438 , 0.96706 ], dtype=float)
5 Se_u = pd.Series(u)
----> 6 sns.kdeplot(Se_u)
/Users/jespinoz/anaconda/lib/python3.5/site-packages/seaborn/distributions.py in kdeplot(data, data2, shade, vertical, kernel, bw, gridsize, cut, clip, legend, cumulative, shade_lowest, ax, **kwargs)
602 ax = _univariate_kdeplot(data, shade, vertical, kernel, bw,
603 gridsize, cut, clip, legend, ax,
--> 604 cumulative=cumulative, **kwargs)
605
606 return ax
/Users/jespinoz/anaconda/lib/python3.5/site-packages/seaborn/distributions.py in _univariate_kdeplot(data, shade, vertical, kernel, bw, gridsize, cut, clip, legend, ax, cumulative, **kwargs)
268 x, y = _statsmodels_univariate_kde(data, kernel, bw,
269 gridsize, cut, clip,
--> 270 cumulative=cumulative)
271 else:
272 # Fall back to scipy if missing statsmodels
/Users/jespinoz/anaconda/lib/python3.5/site-packages/seaborn/distributions.py in _statsmodels_univariate_kde(data, kernel, bw, gridsize, cut, clip, cumulative)
326 fft = kernel == "gau"
327 kde = smnp.KDEUnivariate(data)
--> 328 kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)
329 if cumulative:
330 grid, y = kde.support, kde.cdf
/Users/jespinoz/anaconda/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py in fit(self, kernel, bw, fft, weights, gridsize, adjust, cut, clip)
144 density, grid, bw = kdensityfft(endog, kernel=kernel, bw=bw,
145 adjust=adjust, weights=weights, gridsize=gridsize,
--> 146 clip=clip, cut=cut)
147 else:
148 density, grid, bw = kdensity(endog, kernel=kernel, bw=bw,
/Users/jespinoz/anaconda/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py in kdensityfft(X, kernel, bw, weights, gridsize, adjust, clip, cut, retgrid)
504 zstar = silverman_transform(bw, gridsize, RANGE)*y # 3.49 in Silverman
505 # 3.50 w Gaussian kernel
--> 506 f = revrt(zstar)
507 if retgrid:
508 return f, grid, bw
/Users/jespinoz/anaconda/lib/python3.5/site-packages/statsmodels/nonparametric/kdetools.py in revrt(X, m)
18 if m is None:
19 m = len(X)
---> 20 y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j
21 return np.fft.irfft(y)*m
22
TypeError: slice indices must be integers or None or have an __index__ method"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-27-70aaa51b2d69> in <module>()
4 u = np.array([ 3.41959 , 1.79315 , 1.17229 , 1.59909 , 1.27337 , 1.21917 , 2.60591 , 2.0571 , 1.83865 , 1.94869 , 1.65421 , 1.67777 , 1.23781 , 1.46352 , 1.41791 , 2.00387 , 2.51076 , 1.59734 , 1.32982 , 1.89372 , 1.40614 , 1.41747 , 1.34109 , 1.38647 , 1.49432 , 1.05335 , 1.03805 , 1.18631 , 1.06402 , 1.06929 , 1.12031 , 1.07605 , 1.25702 , 1.25158 , 1.06541 , 1.07368 , 1.00559 , 1.00555 , 1.54561 , 1.01144 , 1.79598 , 1.02094 , 1.36236 , 1.6214 , 1.09803 , 1.25866 , 0.987888, 0.993576, 1.25805 , 5.67273 , 1.20665 , 0.985643, 1.07809 , 1.22087 , 1.1201 , 1.0367 , 1.26575 , 1.0295 , 0.993422, 1.08648 , 1.32767 , 1.35376 , 0.98585 , 0.991962, 1.49533 , 1.04997 , 0.995653, 1.13044 , 1.12311 , 1.29017 , 1.6424 , 1.1599 , 1.26453 , 1.0633 , 1.00454 , 1.35529 , 0.990889, 1.19621 , 1.30717 , 1.32321 , 1.5471 , 1.13225 , 1.97847 , 1.17142 , 1.36377 , 2.14062 , 0.996708, 1.03417 , 1.03212 , 1.0082 , 1.06432 , 3.49213 , 4.28245 , 1.00274 , 1.09338 , 1.0156 , 1.13566 , 1.10697 , 1.56438 , 0.96706 ], dtype=float)
5 Se_u = pd.Series(u)
----> 6 sns.kdeplot(Se_u)
/Users/jespinoz/anaconda/lib/python3.5/site-packages/seaborn/distributions.py in kdeplot(data, data2, shade, vertical, kernel, bw, gridsize, cut, clip, legend, cumulative, shade_lowest, ax, **kwargs)
602 ax = _univariate_kdeplot(data, shade, vertical, kernel, bw,
603 gridsize, cut, clip, legend, ax,
--> 604 cumulative=cumulative, **kwargs)
605
606 return ax
/Users/jespinoz/anaconda/lib/python3.5/site-packages/seaborn/distributions.py in _univariate_kdeplot(data, shade, vertical, kernel, bw, gridsize, cut, clip, legend, ax, cumulative, **kwargs)
268 x, y = _statsmodels_univariate_kde(data, kernel, bw,
269 gridsize, cut, clip,
--> 270 cumulative=cumulative)
271 else:
272 # Fall back to scipy if missing statsmodels
/Users/jespinoz/anaconda/lib/python3.5/site-packages/seaborn/distributions.py in _statsmodels_univariate_kde(data, kernel, bw, gridsize, cut, clip, cumulative)
326 fft = kernel == "gau"
327 kde = smnp.KDEUnivariate(data)
--> 328 kde.fit(kernel, bw, fft, gridsize=gridsize, cut=cut, clip=clip)
329 if cumulative:
330 grid, y = kde.support, kde.cdf
/Users/jespinoz/anaconda/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py in fit(self, kernel, bw, fft, weights, gridsize, adjust, cut, clip)
144 density, grid, bw = kdensityfft(endog, kernel=kernel, bw=bw,
145 adjust=adjust, weights=weights, gridsize=gridsize,
--> 146 clip=clip, cut=cut)
147 else:
148 density, grid, bw = kdensity(endog, kernel=kernel, bw=bw,
/Users/jespinoz/anaconda/lib/python3.5/site-packages/statsmodels/nonparametric/kde.py in kdensityfft(X, kernel, bw, weights, gridsize, adjust, clip, cut, retgrid)
504 zstar = silverman_transform(bw, gridsize, RANGE)*y # 3.49 in Silverman
505 # 3.50 w Gaussian kernel
--> 506 f = revrt(zstar)
507 if retgrid:
508 return f, grid, bw
/Users/jespinoz/anaconda/lib/python3.5/site-packages/statsmodels/nonparametric/kdetools.py in revrt(X, m)
18 if m is None:
19 m = len(X)
---> 20 y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j
21 return np.fft.irfft(y)*m
22
TypeError: slice indices must be integers or None or have an __index__ method
</code></pre></div>
<p dir="auto">but this works:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Se_u.plot(kind="kde")"><pre class="notranslate"><code class="notranslate">Se_u.plot(kind="kde")
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/9061708/22305748/9180bcec-e2f1-11e6-85b4-3a549d9dd765.png"><img src="https://cloud.githubusercontent.com/assets/9061708/22305748/9180bcec-e2f1-11e6-85b4-3a549d9dd765.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
My application is not always redirecting when I enter the URL into the address bar of Internet Explorer 11. Sometimes it works and sometimes it does not. I do not see this problem with the Chrome browser.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
When an user enters an URL into the address bar, my application should always redirect to the "page" associated with the URL.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
I cannot provide a <em>MINIMAL DEMO</em> of the problem via plnkr because I need to enter a value into the address bar for the application and that functionality is not supported by plnkr.</p>
<p dir="auto">To reproduce,</p>
<ol dir="auto">
<li>
<p dir="auto">First, get and build a starter project like the one from Angular class.<br>
<code class="notranslate">git clone --depth 1 https://github.com/angularclass/angular2-webpack-starter.git</code><br>
<code class="notranslate">cd angular2-webpack-starter </code><br>
<code class="notranslate">npm install </code><br>
<code class="notranslate">npm start </code></p>
</li>
<li>
<p dir="auto">When the application is ready, then open an internet explorer 11 browser, enter the URL "<a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a>" into the address bar, and press enter.</p>
</li>
<li>
<p dir="auto">Click on the hyperlink "Detail" in the page. Then select (CTRL-A) and copy (CTRL-C) the URL from the address bar. You should have copied "<a href="http://localhost:3000/#/detail" rel="nofollow">http://localhost:3000/#/detail</a>".</p>
</li>
<li>
<p dir="auto">Click on the hyperlink "Index" in the page to return to the home page.</p>
</li>
<li>
<p dir="auto">In the internet explorer address bar, replace the entire URL by pasting (CTRL-V) the URL from step 3, and press enter.</p>
</li>
<li>
<p dir="auto">This should redirect internet explorer to the detail page but sometimes it does not. If you do see the detail page, repeat steps 4 and 5 until you see the bug. I usually see the error by the third repetition.</p>
</li>
</ol>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0</li>
<li><strong>Browser:</strong> IE 11</li>
<li><strong>Language:</strong> TypeScript 2.0.3</li>
</ul> | <p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
The problem happened only on IE. After doing redirection by clicking on the link in page, if we enter the URL directly in address bar on browser, the page does not refresh. However, if we change from HashLocationStrategy to normal LocationStrategy. it works fine without any problem.</p>
<p dir="auto"><strong>Expected/desired behavior</strong></p>
<p dir="auto">Page should refresh if we enter the URL directly.</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>Angular Router version:</strong> 3.0.0-beta.2</li>
<li><strong>Browser:</strong> [IE 11 ]</li>
<li><strong>Language:</strong> [TypeScript X.X]</li>
</ul> | 1 |
<h2 dir="auto">Bug Report</h2>
<p dir="auto"><strong>For English only</strong>, other languages will not accept.</p>
<p dir="auto">Before report a bug, make sure you have:</p>
<ul dir="auto">
<li>Searched open and closed <a href="https://github.com/apache/shardingsphere/issues">GitHub issues</a>.</li>
<li>Read documentation: <a href="https://shardingsphere.apache.org/document/current/en/overview" rel="nofollow">ShardingSphere Doc</a>.</li>
</ul>
<p dir="auto">Please pay attention on issues you submitted, because we maybe need more details.<br>
If no response anymore and we cannot reproduce it on current information, we will <strong>close it</strong>.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of ShardingSphere did you use?</h3>
<p dir="auto"><code class="notranslate">e6328cb989cfb789189227892cb892740095d2d6</code></p>
<h3 dir="auto">Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?</h3>
<p dir="auto">ShardingSphere-Proxy</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">connect normal</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">cann't connect</p>
<h3 dir="auto">Reason analyze (If you can)</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.</h3>
<ol dir="auto">
<li>use server.yaml to start proxy</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mode:
type: Cluster
repository:
type: ZooKeeper
props:
namespace: 0715distsql
server-lists: 192.168.10.21:2181
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
maxRetries: 3
operationTimeoutMilliseconds: 500
overwrite: true
rules:
- !AUTHORITY
users:
- root@%:root
- sharding@:sharding
provider:
type: ALL_PERMITTED
- !SQL_PARSER
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
parseTreeCache:
initialCapacity: 128
maximumSize: 1024
props:
proxy-frontend-database-protocol-type: "openGauss""><pre class="notranslate"><code class="notranslate">mode:
type: Cluster
repository:
type: ZooKeeper
props:
namespace: 0715distsql
server-lists: 192.168.10.21:2181
retryIntervalMilliseconds: 500
timeToLiveSeconds: 60
maxRetries: 3
operationTimeoutMilliseconds: 500
overwrite: true
rules:
- !AUTHORITY
users:
- root@%:root
- sharding@:sharding
provider:
type: ALL_PERMITTED
- !SQL_PARSER
sqlCommentParseEnabled: true
sqlStatementCache:
initialCapacity: 2000
maximumSize: 65535
parseTreeCache:
initialCapacity: 128
maximumSize: 1024
props:
proxy-frontend-database-protocol-type: "openGauss"
</code></pre></div>
<ol start="2" dir="auto">
<li>use <code class="notranslate">gsql</code> connect proxy</li>
</ol>
<h3 dir="auto">Example codes for reproduce this issue (such as a github link).</h3> | <p dir="auto">For English only, other languages we will close it directly.</p>
<p dir="auto">Please answer these questions before submitting your issue. Thanks!</p>
<h3 dir="auto">Which version of Sharding-Sphere do you using?</h3>
<p dir="auto">2.0.3</p>
<h3 dir="auto">Which project do you using? Sharding-JDBC or Sharding-Proxy?</h3>
<p dir="auto">Sharding-JDBC</p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Sharding configuration is not configured locally, and sharding configuration is fully obtained from the reg center。</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">There must be an initial sharding configuration locally</p>
<h3 dir="auto">Reason analyze</h3>
<h3 dir="auto">Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc</h3>
<h3 dir="auto">For bug report, please <em>MUST</em> provide the reproduce example codes (such as a github link).</h3> | 0 |
<p dir="auto">Describe what you were doing when the bug occurred:</p>
<ol dir="auto">
<li>Start profiling</li>
<li>End profiling</li>
<li>Iterate over commits using arrows and/or bar graph</li>
</ol>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.2.1-3816ae7c3</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br>
at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br>
at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br>
at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)<br>
at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br>
at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br>
at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)</p>
<p dir="auto">Component stack: in vl<br>
in div<br>
in div<br>
in div<br>
in wo<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Li<br>
in $e<br>
in dn<br>
in Ca<br>
in Pc</p> | <p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p>
<p dir="auto">I got this error when I click 'Ranked'.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.0.4-3c6a219</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br>
at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<br>
at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br>
at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363</p>
<p dir="auto">Component stack: in _i<br>
in div<br>
in div<br>
in div<br>
in Or<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Ha<br>
in le<br>
in ve<br>
in ko<br>
in Ul</p> | 1 |
<p dir="auto">Hi,</p>
<p dir="auto">One thing that I miss from Cypress is <a href="https://www.npmjs.com/package/@cypress/react" rel="nofollow"><code class="notranslate">@cypress/react</code></a>, which gives the ability to test react components in the browser easily.</p>
<p dir="auto">It is possible to write test that looks like this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { mount } from '@cypress/react'
import { createElement } from 'react';
// A simple react component
const MyComponent = () => createElement('h1', null, 'Hello');
it('works', () => {
mount(createElement(MyComponent))
cy.contains('Hello').should('be.visible')
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">mount</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@cypress/react'</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">createElement</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'react'</span><span class="pl-kos">;</span>
<span class="pl-c">// A simple react component</span>
<span class="pl-k">const</span> <span class="pl-smi">MyComponent</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'h1'</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">'Hello'</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">'works'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-en">mount</span><span class="pl-kos">(</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-smi">MyComponent</span><span class="pl-kos">)</span><span class="pl-kos">)</span>
<span class="pl-s1">cy</span><span class="pl-kos">.</span><span class="pl-en">contains</span><span class="pl-kos">(</span><span class="pl-s">'Hello'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">should</span><span class="pl-kos">(</span><span class="pl-s">'be.visible'</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">I can see that this is very use-case-specific and maybe not be something that you want to include in playwright(?).</p>
<p dir="auto">But, it would be nice if it would be possible to accomplish the same thing.</p>
<p dir="auto">After looking at the <a href="https://github.com/cypress-io/cypress/blob/2c6cd9e09923c853ad96df3efc3496e27a7c1b3e/npm/react/src/mount.ts#L98">source code of <code class="notranslate">@cypress/react</code></a> I thought that this might be possible to do in playwright as well. So I tried it out:</p>
<h3 dir="auto">Attempt 1 – <code class="notranslate">page.$eval</code></h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { expect, test } from "@playwright/test";
import { render } from "react-dom";
import { createElement } from "react";
const MyComponent = () => createElement('h1', null, 'Hello');
test("basic test", async ({ page }) => {
// This is a page containing a div with id "root"
// The page can be created with fixtures: https://playwright.dev/docs/test-fixtures#worker-fixtures
await page.goto("http://localhost:3000/");
await page.$eval("#root", element => {
// This will render the component inside "element"
render(createElement(MyComponent), element);
});
const rootElement = page.locator("#root");
await expect(rootElement).toHaveText("Hello");
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">expect</span><span class="pl-kos">,</span> <span class="pl-s1">test</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">render</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"react-dom"</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">createElement</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-smi">MyComponent</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'h1'</span><span class="pl-kos">,</span> <span class="pl-c1">null</span><span class="pl-kos">,</span> <span class="pl-s">'Hello'</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"basic test"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-c">// This is a page containing a div with id "root"</span>
<span class="pl-c">// The page can be created with fixtures: https://playwright.dev/docs/test-fixtures#worker-fixtures</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">"http://localhost:3000/"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">$eval</span><span class="pl-kos">(</span><span class="pl-s">"#root"</span><span class="pl-kos">,</span> <span class="pl-s1">element</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-c">// This will render the component inside "element"</span>
<span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-smi">MyComponent</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">element</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-s1">rootElement</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">"#root"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">rootElement</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">"Hello"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">After running the test above with <code class="notranslate">npx playwright test</code> I got the error <code class="notranslate">page.$eval: ReferenceError: _reactDom is not defined</code> and I guess that is because the callback of <code class="notranslate">page.$eval</code> is serialized and passed to the browser context so closure does not work.</p>
<h3 dir="auto">Attempt 2 – <code class="notranslate">page.$eval</code> with arguments</h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test("basic test", async ({ page, port }) => {
await page.goto(`http://localhost:${port}/`);
await page.$eval("#root", (element, arg) => {
arg.render(arg.createElement(arg.MyComponent), element);
}, { render, createElement, MyComponent });
const rootElement = page.locator("#root");
await expect(rootElement).toHaveText("Hello");
});"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"basic test"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page<span class="pl-kos">,</span> port <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">`http://localhost:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">port</span><span class="pl-kos">}</span></span>/`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">$eval</span><span class="pl-kos">(</span><span class="pl-s">"#root"</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">element</span><span class="pl-kos">,</span> <span class="pl-s1">arg</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-s1">arg</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">arg</span><span class="pl-kos">.</span><span class="pl-c1">MyComponent</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">element</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> render<span class="pl-kos">,</span> createElement<span class="pl-kos">,</span> MyComponent <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">rootElement</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">"#root"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">rootElement</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">"Hello"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">This code gives me the following error: <code class="notranslate">page.$eval: Unexpected value</code>, and once again that is because of serialization.</p>
<h3 dir="auto">Attempt 3 – <code class="notranslate">page.exposeFunction</code></h3>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test("basic test", async ({ page, port }) => {
await page.goto(`http://localhost:${port}/`);
await page.exposeFunction('render', render);
await page.exposeFunction('createElement', createElement);
await page.exposeFunction('MyComponent', MyComponent);
await page.$eval("#root", element => {
const win: any = window;
win.render(win.createElement(win.MyComponent), element);
});
const rootElement = page.locator("#root");
await expect(rootElement).toHaveText("Hello");
});"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"basic test"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page<span class="pl-kos">,</span> port <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">`http://localhost:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">port</span><span class="pl-kos">}</span></span>/`</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">exposeFunction</span><span class="pl-kos">(</span><span class="pl-s">'render'</span><span class="pl-kos">,</span> <span class="pl-s1">render</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">exposeFunction</span><span class="pl-kos">(</span><span class="pl-s">'createElement'</span><span class="pl-kos">,</span> <span class="pl-s1">createElement</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">exposeFunction</span><span class="pl-kos">(</span><span class="pl-s">'MyComponent'</span><span class="pl-kos">,</span> <span class="pl-smi">MyComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">$eval</span><span class="pl-kos">(</span><span class="pl-s">"#root"</span><span class="pl-kos">,</span> <span class="pl-s1">element</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">win</span>: <span class="pl-smi">any</span> <span class="pl-c1">=</span> <span class="pl-smi">window</span><span class="pl-kos">;</span>
<span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s1">win</span><span class="pl-kos">.</span><span class="pl-c1">MyComponent</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-s1">element</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-s1">rootElement</span> <span class="pl-c1">=</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">"#root"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">rootElement</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveText</span><span class="pl-kos">(</span><span class="pl-s">"Hello"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I now get the following warning in the terminal: <code class="notranslate">Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: null.</code> and the following error in the browser console after some debugging: <code class="notranslate">Error: Target container is not a DOM element</code>. I once again blame serialization.</p>
<h3 dir="auto">Question</h3>
<p dir="auto">I understand that this might be tricky (with two contexts), and I have no idea how Cypress solves this but does anyone with more playwright experience have an idea how this can be solved?</p>
<p dir="auto">Thanks!</p> | <p dir="auto">guys, any plans to implement component testing for vue and react js applications.</p>
<hr>
<h3 dir="auto">Edit: From the maintainers.</h3>
<p dir="auto">A beta just launched, which supports Vue, React, and Svelte, see here: <a href="https://playwright.dev/docs/test-components" rel="nofollow">https://playwright.dev/docs/test-components</a></p> | 1 |
<p dir="auto">Reporting a bug.</p>
<p dir="auto">Using two way binding - with the <code class="notranslate">ngModel</code> directive - will work on the development - unminified - version of angular2; I expect the <code class="notranslate">ngModel</code> to work as well on the minified angular2, but it crashes and burns.</p>
<p dir="auto"><a href="http://plnkr.co/edit/5eXPbQyiHvMlq0R2fey6?p=preview" rel="nofollow">Working Minimal Example</a><br>
<a href="http://plnkr.co/edit/RiNK3EIB8004wobW9IUD?p=preview" rel="nofollow">Non Working Minimal Example</a></p>
<p dir="auto">The difference between the two plunkers is the usage of <code class="notranslate">.min.js</code> instead of <code class="notranslate">.dev.js</code> for the Angular2 library.</p>
<p dir="auto">Minified version and development versions should both work.</p>
<ul dir="auto">
<li>Angular version: 2.0.0-beta.8</li>
<li>Browser: [all ]</li>
<li>Language: [all]</li>
</ul>
<p dir="auto">The error - as reported by Chrome:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="EXCEPTION: No value accessor for '' in [aSimpleString in AppComponent@2:8]t.logError @ angular2.min.js:17t.logGroup @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 ORIGINAL EXCEPTION: No value accessor for ''t.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 ORIGINAL STACKTRACE:t.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 Error: No value accessor for ''
at new t (angular2.min.js:5)
at a (angular2.min.js:15)
at Object.i [as setUpControl] (angular2.min.js:15)
at t.ngOnChanges (angular2.min.js:12)
at e.ChangeDetector_AppComponent_0.detectChangesInRecordsInternal (viewFactory_AppComponent:45)
at e.detectChangesInRecords (angular2.min.js:6)
at e.runDetectChanges (angular2.min.js:6)
at e._detectChangesInViewChildren (angular2.min.js:6)
at e.runDetectChanges (angular2.min.js:6)
at e.detectChanges (angular2.min.js:6)t.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 ERROR CONTEXT:t.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 e {element: input, componentElement: my-app, context: AppComponent, locals: Object, injector: e…}componentElement: my-appcontext: AppComponentelement: inputexpression: "aSimpleString in AppComponent@2:8"injector: elocals: Object__proto__: et.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262"><pre class="notranslate"><code class="notranslate">EXCEPTION: No value accessor for '' in [aSimpleString in AppComponent@2:8]t.logError @ angular2.min.js:17t.logGroup @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 ORIGINAL EXCEPTION: No value accessor for ''t.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 ORIGINAL STACKTRACE:t.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 Error: No value accessor for ''
at new t (angular2.min.js:5)
at a (angular2.min.js:15)
at Object.i [as setUpControl] (angular2.min.js:15)
at t.ngOnChanges (angular2.min.js:12)
at e.ChangeDetector_AppComponent_0.detectChangesInRecordsInternal (viewFactory_AppComponent:45)
at e.detectChangesInRecords (angular2.min.js:6)
at e.runDetectChanges (angular2.min.js:6)
at e._detectChangesInViewChildren (angular2.min.js:6)
at e.runDetectChanges (angular2.min.js:6)
at e.detectChanges (angular2.min.js:6)t.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 ERROR CONTEXT:t.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
angular2.min.js:17 e {element: input, componentElement: my-app, context: AppComponent, locals: Object, injector: e…}componentElement: my-appcontext: AppComponentelement: inputexpression: "aSimpleString in AppComponent@2:8"injector: elocals: Object__proto__: et.logError @ angular2.min.js:17e.call @ angular2.min.js:1(anonymous function) @ angular2.min.js:9e._notifyOnError @ angular2.min.js:10o.StringMapWrapper.merge.onError @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1247(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$$internal$$tryCatch @ angular2-polyfills.js:468lib$es6$promise$$internal$$invokeCallback @ angular2-polyfills.js:480lib$es6$promise$$internal$$publish @ angular2-polyfills.js:451(anonymous function) @ angular2-polyfills.js:123r @ angular2.min.js:10Zone.run @ angular2-polyfills.js:1243(anonymous function) @ angular2.min.js:10zoneBoundFn @ angular2-polyfills.js:1220lib$es6$promise$asap$$flush @ angular2-polyfills.js:262
</code></pre></div> | <p dir="auto">When using minified bundles with SystemJS, and a simple snippet like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" <template ngFor #item [ngForOf]="items" #i="index">
<li>{{i}}</li>
<li *ngIf="i % 2 == 0">number is even</li>
</template>"><pre class="notranslate"><code class="notranslate"> <template ngFor #item [ngForOf]="items" #i="index">
<li>{{i}}</li>
<li *ngIf="i % 2 == 0">number is even</li>
</template>
</code></pre></div>
<p dir="auto">Will throw</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: this.directive_0_0.ngDoCheck is not a function"><pre class="notranslate"><code class="notranslate">TypeError: this.directive_0_0.ngDoCheck is not a function
</code></pre></div>
<p dir="auto">This is only reproducible with minified bundles, non-minified work correctly.</p>
<p dir="auto">As an example check this <a href="http://plnkr.co/edit/ZWiQqw3nR8xS1MRrpTry?p=preview" rel="nofollow">plnkr</a> (took it from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="125250401" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/6304" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/6304/hovercard?comment_id=170200989&comment_type=issue_comment" href="https://github.com/angular/angular/issues/6304#issuecomment-170200989">#6304 (comment)</a>). To reproduce switch between minified and unminified bundles.</p>
<p dir="auto">This is also reproducible with Webpack using this line in the config</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" plugins : [
new webpack.optimize.UglifyJsPlugin()
],"><pre class="notranslate"><code class="notranslate"> plugins : [
new webpack.optimize.UglifyJsPlugin()
],
</code></pre></div>
<p dir="auto">Am I missing something?</p> | 1 |
<p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.</p>
<p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto">My problem:<br>
<a href="http://stackoverflow.com/questions/42280894/tensorflow-wheel-install-not-supported?noredirect=1#comment71724208_42280894" rel="nofollow">http://stackoverflow.com/questions/42280894/tensorflow-wheel-install-not-supported?noredirect=1#comment71724208_42280894</a></p>
<p dir="auto">Following the instructions:<br>
<a href="https://www.tensorflow.org/install/install_windows" rel="nofollow">https://www.tensorflow.org/install/install_windows</a></p>
<p dir="auto">I had Python 3.5.2 installed, but following the instructions to install tensorflow according to the website automatically upgrades python to 3.6. The wheel is not supported.</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:</p>
<p dir="auto">Windows 7</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):</p>
<p dir="auto">Not applicable yet, as I am still trying to install the software, prior to running the scripts.</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>A link to the pip package you installed:</li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li>
</ol>
<p dir="auto">pip install --upgrade <a href="https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl</a></p>
<p dir="auto">If installed from source, provide</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li>
<li>The output of <code class="notranslate">bazel version</code></li>
</ol>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment or provide link).</p> | <p dir="auto">The current .whl does not support python 3.6. Please update to support the latest version of python. Thanks!</p>
<p dir="auto">C:\WINDOWS\system32>python --version<br>
Python 3.6.0</p>
<p dir="auto">C:\WINDOWS\system32>pip install --upgrade <a href="https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl" rel="nofollow">https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.1-cp35-cp35m-win_amd64.whl</a><br>
tensorflow-0.12.1-cp35-cp35m-win_amd64.whl is not a supported wheel on this platform.</p> | 1 |
<p dir="auto">NOTE: Only file GitHub issues for bugs and feature requests. All other topics will be closed.</p>
<p dir="auto">For general support from the community, see <a href="https://stackoverflow.com/questions/tagged/tensorflow" rel="nofollow">StackOverflow</a>.<br>
To make bugs and feature requests more easy to find and organize, we close issues that are deemed<br>
out of scope for GitHub Issues and point people to StackOverflow.</p>
<p dir="auto">For bugs or installation issues, please provide the following information.<br>
The more information you provide, the more easily we will be able to offer<br>
help and advice.</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):</p>
<p dir="auto">If installed from binary pip package, provide:</p>
<ol dir="auto">
<li>A link to the pip package you installed:</li>
<li>The output from <code class="notranslate">python -c "import tensorflow; print(tensorflow.__version__)"</code>.</li>
</ol>
<p dir="auto">If installed from source, provide</p>
<ol dir="auto">
<li>The commit hash (<code class="notranslate">git rev-parse HEAD</code>)</li>
<li>The output of <code class="notranslate">bazel version</code></li>
</ol>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<h3 dir="auto">Logs or other output that would be helpful</h3>
<p dir="auto">(If logs are large, please upload as attachment or provide link).</p>
<p dir="auto">bazel build -c opt --config=cuda //tensorflow/tools/pip_package:build_pip_package<br>
..<br>
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See <a href="http://bazel.io/docs/bazel-user-manual.html#sandboxing" rel="nofollow">http://bazel.io/docs/bazel-user-manual.html#sandboxing</a> for more information. You can turn off this warning via --ignore_unsupported_sandboxing.<br>
WARNING: /home/ammalik/TensorFlow/tensorflow/util/python/BUILD:11:16: in includes attribute of cc_library rule //util/python:python_headers: 'python_include' resolves to 'util/python/python_include' not in 'third_party'. This will be an error in the future.<br>
INFO: Found 1 target...<br>
ERROR: /home/ammalik/.cache/bazel/_bazel_ammalik/27908a9a0ff0347c2aebe63a8fa99002/external/zlib_archive/BUILD:7:1: undeclared inclusion(s) in rule '@zlib_archive//:zlib':<br>
this rule is missing dependency declarations for the following files included by 'external/zlib_archive/zlib-1.2.8/compress.c':<br>
'/opt/local/gcc/6.2.0/lib/gcc/x86_64-pc-linux-gnu/6.2.0/include-fixed/limits.h'<br>
'/opt/local/gcc/6.2.0/lib/gcc/x86_64-pc-linux-gnu/6.2.0/include-fixed/syslimits.h'<br>
'/opt/local/gcc/6.2.0/lib/gcc/x86_64-pc-linux-gnu/6.2.0/include/stddef.h'<br>
'/opt/local/gcc/6.2.0/lib/gcc/x86_64-pc-linux-gnu/6.2.0/include/stdarg.h'.<br>
Target //tensorflow/tools/pip_package:build_pip_package failed to build<br>
Use --verbose_failures to see the command lines of failed build steps.<br>
INFO: Elapsed time: 962.954s, Critical Path: 0.69s</p> | <p dir="auto">The following commands were run on a Fedora 23 64 bits on Tensorflow master, but I get similar results on the 0.8 branch.</p>
<p dir="auto">Using Bazel 0.2.1 on a laptop without graphics card:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt --verbose_failures //tensorflow/tools/pip_package:build_pip_package
INFO: Found 1 target...
ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':
this rule is missing dependency declarations for the following files included by 'external/re2/util/rune.cc':
'/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdarg.h'
'/lib/gcc/x86_64-redhat-linux/5.3.1/include/stddef.h'
'/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdint.h'.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 1.394s, Critical Path: 0.34s"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt --verbose_failures //tensorflow/tools/pip_package:build_pip_package
INFO: Found 1 target...
ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':
this rule is missing dependency declarations for the following files included by 'external/re2/util/rune.cc':
'/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdarg.h'
'/lib/gcc/x86_64-redhat-linux/5.3.1/include/stddef.h'
'/lib/gcc/x86_64-redhat-linux/5.3.1/include/stdint.h'.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
INFO: Elapsed time: 1.394s, Critical Path: 0.34s
</code></pre></div>
<p dir="auto">On a machine with Cuda 7.5 and cudnn 5 installed, GCC 4.9 built locally (but I get the same results with system's GCC 5.3.1):</p>
<p dir="auto">With bazel 0.1.1:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ bazel build -c opt --config=cuda --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package
Warning: ignoring LD_PRELOAD in environment.
ERROR: /home/david/gits/tensorflow/WORKSPACE:16:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: /home/david/gits/tensorflow/WORKSPACE:20:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: WORKSPACE file could not be parsed.
ERROR: no such package 'external': Package 'external' contains errors.
INFO: Elapsed time: 0.065s"><pre class="notranslate"><code class="notranslate">$ bazel build -c opt --config=cuda --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package
Warning: ignoring LD_PRELOAD in environment.
ERROR: /home/david/gits/tensorflow/WORKSPACE:16:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: /home/david/gits/tensorflow/WORKSPACE:20:6: First argument of load() is a path, not a label. It should start with a single slash if it is an absolute path..
ERROR: WORKSPACE file could not be parsed.
ERROR: no such package 'external': Package 'external' contains errors.
INFO: Elapsed time: 0.065s
</code></pre></div>
<p dir="auto">With Bazel 0.2.1:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --config=cuda --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package
Warning: ignoring LD_PRELOAD in environment.
Sending SIGTERM to previous Bazel server (pid=19634)... done.
.....
INFO: Found 1 target...
ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':
this rule is missing dependency declarations for the following files included by 'external/re2/re2/perl_groups.cc':
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/ctime'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/include/c++/4.9.3/vector'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_construct.h'
'/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_vector.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/vector.tcc'
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/algorithm'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algo.h'
'/home/david/.local/include/c++/4.9.3/bits/algorithmfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_heap.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_tempbuf.h'
'/home/david/.local/include/c++/4.9.3/random'
'/home/david/.local/include/c++/4.9.3/cmath'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/bits/random.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/opt_random.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/x86intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ia32intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm_malloc.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/emmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/pmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ammintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/smmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/popcntintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/wmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/immintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx2intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512fintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512erintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512pfintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512cdintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/shaintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lzcntintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmiintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmi2intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fmaintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/f16cintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rtmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xtestintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm3dnow.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/prfchwintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fma4intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xopintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lwpintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tbmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rdseedintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fxsrintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveoptintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/adxintrin.h'
'/home/david/.local/include/c++/4.9.3/bits/random.tcc'
'/home/david/.local/include/c++/4.9.3/numeric'
'/home/david/.local/include/c++/4.9.3/bits/stl_numeric.h'
'/home/david/.local/include/c++/4.9.3/map'
'/home/david/.local/include/c++/4.9.3/bits/stl_tree.h'
'/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_map.h'
'/home/david/.local/include/c++/4.9.3/tuple'
'/home/david/.local/include/c++/4.9.3/array'
'/home/david/.local/include/c++/4.9.3/stdexcept'
'/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_multimap.h'
'/home/david/.local/include/c++/4.9.3/stack'
'/home/david/.local/include/c++/4.9.3/deque'
'/home/david/.local/include/c++/4.9.3/bits/stl_deque.h'
'/home/david/.local/include/c++/4.9.3/bits/deque.tcc'
'/home/david/.local/include/c++/4.9.3/bits/stl_stack.h'
'/home/david/.local/include/c++/4.9.3/ostream'
'/home/david/.local/include/c++/4.9.3/ios'
'/home/david/.local/include/c++/4.9.3/bits/ios_base.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_classes.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_classes.tcc'
'/home/david/.local/include/c++/4.9.3/streambuf'
'/home/david/.local/include/c++/4.9.3/bits/streambuf.tcc'
'/home/david/.local/include/c++/4.9.3/bits/basic_ios.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_facets.h'
'/home/david/.local/include/c++/4.9.3/cwctype'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_base.h'
'/home/david/.local/include/c++/4.9.3/bits/streambuf_iterator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_facets.tcc'
'/home/david/.local/include/c++/4.9.3/bits/basic_ios.tcc'
'/home/david/.local/include/c++/4.9.3/bits/ostream.tcc'
'/home/david/.local/include/c++/4.9.3/set'
'/home/david/.local/include/c++/4.9.3/bits/stl_set.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_multiset.h'
'/home/david/.local/include/c++/4.9.3/tr1/unordered_set'
'/home/david/.local/include/c++/4.9.3/tr1/type_traits'
'/home/david/.local/include/c++/4.9.3/tr1/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/tr1/hashtable.h'
'/home/david/.local/include/c++/4.9.3/tr1/hashtable_policy.h'
'/home/david/.local/include/c++/4.9.3/tr1/unordered_set.h'
'/home/david/.local/include/c++/4.9.3/sstream'
'/home/david/.local/include/c++/4.9.3/istream'
'/home/david/.local/include/c++/4.9.3/bits/istream.tcc'
'/home/david/.local/include/c++/4.9.3/bits/sstream.tcc'.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps."><pre class="notranslate"><code class="notranslate">bazel build -c opt --config=cuda --spawn_strategy=standalone //tensorflow/tools/pip_package:build_pip_package
Warning: ignoring LD_PRELOAD in environment.
Sending SIGTERM to previous Bazel server (pid=19634)... done.
.....
INFO: Found 1 target...
ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':
this rule is missing dependency declarations for the following files included by 'external/re2/re2/perl_groups.cc':
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/ctime'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/include/c++/4.9.3/vector'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_construct.h'
'/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_vector.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/vector.tcc'
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/algorithm'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algo.h'
'/home/david/.local/include/c++/4.9.3/bits/algorithmfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_heap.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_tempbuf.h'
'/home/david/.local/include/c++/4.9.3/random'
'/home/david/.local/include/c++/4.9.3/cmath'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/bits/random.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/opt_random.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/x86intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ia32intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm_malloc.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/emmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/pmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ammintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/smmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/popcntintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/wmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/immintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx2intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512fintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512erintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512pfintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512cdintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/shaintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lzcntintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmiintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmi2intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fmaintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/f16cintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rtmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xtestintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm3dnow.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/prfchwintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fma4intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xopintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lwpintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tbmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rdseedintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fxsrintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveoptintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/adxintrin.h'
'/home/david/.local/include/c++/4.9.3/bits/random.tcc'
'/home/david/.local/include/c++/4.9.3/numeric'
'/home/david/.local/include/c++/4.9.3/bits/stl_numeric.h'
'/home/david/.local/include/c++/4.9.3/map'
'/home/david/.local/include/c++/4.9.3/bits/stl_tree.h'
'/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_map.h'
'/home/david/.local/include/c++/4.9.3/tuple'
'/home/david/.local/include/c++/4.9.3/array'
'/home/david/.local/include/c++/4.9.3/stdexcept'
'/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_multimap.h'
'/home/david/.local/include/c++/4.9.3/stack'
'/home/david/.local/include/c++/4.9.3/deque'
'/home/david/.local/include/c++/4.9.3/bits/stl_deque.h'
'/home/david/.local/include/c++/4.9.3/bits/deque.tcc'
'/home/david/.local/include/c++/4.9.3/bits/stl_stack.h'
'/home/david/.local/include/c++/4.9.3/ostream'
'/home/david/.local/include/c++/4.9.3/ios'
'/home/david/.local/include/c++/4.9.3/bits/ios_base.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_classes.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_classes.tcc'
'/home/david/.local/include/c++/4.9.3/streambuf'
'/home/david/.local/include/c++/4.9.3/bits/streambuf.tcc'
'/home/david/.local/include/c++/4.9.3/bits/basic_ios.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_facets.h'
'/home/david/.local/include/c++/4.9.3/cwctype'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_base.h'
'/home/david/.local/include/c++/4.9.3/bits/streambuf_iterator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_facets.tcc'
'/home/david/.local/include/c++/4.9.3/bits/basic_ios.tcc'
'/home/david/.local/include/c++/4.9.3/bits/ostream.tcc'
'/home/david/.local/include/c++/4.9.3/set'
'/home/david/.local/include/c++/4.9.3/bits/stl_set.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_multiset.h'
'/home/david/.local/include/c++/4.9.3/tr1/unordered_set'
'/home/david/.local/include/c++/4.9.3/tr1/type_traits'
'/home/david/.local/include/c++/4.9.3/tr1/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/tr1/hashtable.h'
'/home/david/.local/include/c++/4.9.3/tr1/hashtable_policy.h'
'/home/david/.local/include/c++/4.9.3/tr1/unordered_set.h'
'/home/david/.local/include/c++/4.9.3/sstream'
'/home/david/.local/include/c++/4.9.3/istream'
'/home/david/.local/include/c++/4.9.3/bits/istream.tcc'
'/home/david/.local/include/c++/4.9.3/bits/sstream.tcc'.
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer
Warning: ignoring LD_PRELOAD in environment.
INFO: Found 1 target...
ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':
this rule is missing dependency declarations for the following files included by 'external/re2/util/valgrind.cc':
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/ctime'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/include/c++/4.9.3/vector'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_construct.h'
'/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_vector.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/vector.tcc'
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/algorithm'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algo.h'
'/home/david/.local/include/c++/4.9.3/bits/algorithmfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_heap.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_tempbuf.h'
'/home/david/.local/include/c++/4.9.3/random'
'/home/david/.local/include/c++/4.9.3/cmath'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/bits/random.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/opt_random.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/x86intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ia32intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm_malloc.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/emmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/pmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ammintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/smmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/popcntintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/wmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/immintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx2intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512fintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512erintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512pfintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512cdintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/shaintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lzcntintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmiintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmi2intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fmaintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/f16cintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rtmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xtestintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm3dnow.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/prfchwintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fma4intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xopintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lwpintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tbmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rdseedintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fxsrintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveoptintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/adxintrin.h'
'/home/david/.local/include/c++/4.9.3/bits/random.tcc'
'/home/david/.local/include/c++/4.9.3/numeric'
'/home/david/.local/include/c++/4.9.3/bits/stl_numeric.h'
'/home/david/.local/include/c++/4.9.3/map'
'/home/david/.local/include/c++/4.9.3/bits/stl_tree.h'
'/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_map.h'
'/home/david/.local/include/c++/4.9.3/tuple'
'/home/david/.local/include/c++/4.9.3/array'
'/home/david/.local/include/c++/4.9.3/stdexcept'
'/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_multimap.h'
'/home/david/.local/include/c++/4.9.3/stack'
'/home/david/.local/include/c++/4.9.3/deque'
'/home/david/.local/include/c++/4.9.3/bits/stl_deque.h'
'/home/david/.local/include/c++/4.9.3/bits/deque.tcc'
'/home/david/.local/include/c++/4.9.3/bits/stl_stack.h'
'/home/david/.local/include/c++/4.9.3/ostream'
'/home/david/.local/include/c++/4.9.3/ios'
'/home/david/.local/include/c++/4.9.3/bits/ios_base.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_classes.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_classes.tcc'
'/home/david/.local/include/c++/4.9.3/streambuf'
'/home/david/.local/include/c++/4.9.3/bits/streambuf.tcc'
'/home/david/.local/include/c++/4.9.3/bits/basic_ios.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_facets.h'
'/home/david/.local/include/c++/4.9.3/cwctype'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_base.h'
'/home/david/.local/include/c++/4.9.3/bits/streambuf_iterator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_facets.tcc'
'/home/david/.local/include/c++/4.9.3/bits/basic_ios.tcc'
'/home/david/.local/include/c++/4.9.3/bits/ostream.tcc'
'/home/david/.local/include/c++/4.9.3/set'
'/home/david/.local/include/c++/4.9.3/bits/stl_set.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_multiset.h'
'/home/david/.local/include/c++/4.9.3/tr1/unordered_set'
'/home/david/.local/include/c++/4.9.3/tr1/type_traits'
'/home/david/.local/include/c++/4.9.3/tr1/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/tr1/hashtable.h'
'/home/david/.local/include/c++/4.9.3/tr1/hashtable_policy.h'
'/home/david/.local/include/c++/4.9.3/tr1/unordered_set.h'
'/home/david/.local/include/c++/4.9.3/sstream'
'/home/david/.local/include/c++/4.9.3/istream'
'/home/david/.local/include/c++/4.9.3/bits/istream.tcc'
'/home/david/.local/include/c++/4.9.3/bits/sstream.tcc'.
Target //tensorflow/cc:tutorials_example_trainer failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.889s, Critical Path: 2.49s"><pre class="notranslate"><code class="notranslate">bazel build -c opt --config=cuda //tensorflow/cc:tutorials_example_trainer
Warning: ignoring LD_PRELOAD in environment.
INFO: Found 1 target...
ERROR: /home/david/.cache/bazel/_bazel_david/47d00ffdd2fc0515138a34f138cebd63/external/re2/BUILD:9:1: undeclared inclusion(s) in rule '@re2//:re2':
this rule is missing dependency declarations for the following files included by 'external/re2/util/valgrind.cc':
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/ctime'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/include/c++/4.9.3/vector'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_construct.h'
'/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_vector.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/vector.tcc'
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/algorithm'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algo.h'
'/home/david/.local/include/c++/4.9.3/bits/algorithmfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_heap.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_tempbuf.h'
'/home/david/.local/include/c++/4.9.3/random'
'/home/david/.local/include/c++/4.9.3/cmath'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/bits/random.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/opt_random.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/x86intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ia32intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm_malloc.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/emmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/pmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/ammintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/smmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/popcntintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/wmmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/immintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avxintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx2intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512fintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512erintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512pfintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/avx512cdintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/shaintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lzcntintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmiintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/bmi2intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fmaintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/f16cintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rtmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xtestintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/mm3dnow.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/prfchwintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fma4intrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xopintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/lwpintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/tbmintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/rdseedintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/fxsrintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/xsaveoptintrin.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/adxintrin.h'
'/home/david/.local/include/c++/4.9.3/bits/random.tcc'
'/home/david/.local/include/c++/4.9.3/numeric'
'/home/david/.local/include/c++/4.9.3/bits/stl_numeric.h'
'/home/david/.local/include/c++/4.9.3/map'
'/home/david/.local/include/c++/4.9.3/bits/stl_tree.h'
'/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_map.h'
'/home/david/.local/include/c++/4.9.3/tuple'
'/home/david/.local/include/c++/4.9.3/array'
'/home/david/.local/include/c++/4.9.3/stdexcept'
'/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_multimap.h'
'/home/david/.local/include/c++/4.9.3/stack'
'/home/david/.local/include/c++/4.9.3/deque'
'/home/david/.local/include/c++/4.9.3/bits/stl_deque.h'
'/home/david/.local/include/c++/4.9.3/bits/deque.tcc'
'/home/david/.local/include/c++/4.9.3/bits/stl_stack.h'
'/home/david/.local/include/c++/4.9.3/ostream'
'/home/david/.local/include/c++/4.9.3/ios'
'/home/david/.local/include/c++/4.9.3/bits/ios_base.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_classes.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_classes.tcc'
'/home/david/.local/include/c++/4.9.3/streambuf'
'/home/david/.local/include/c++/4.9.3/bits/streambuf.tcc'
'/home/david/.local/include/c++/4.9.3/bits/basic_ios.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_facets.h'
'/home/david/.local/include/c++/4.9.3/cwctype'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_base.h'
'/home/david/.local/include/c++/4.9.3/bits/streambuf_iterator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/ctype_inline.h'
'/home/david/.local/include/c++/4.9.3/bits/locale_facets.tcc'
'/home/david/.local/include/c++/4.9.3/bits/basic_ios.tcc'
'/home/david/.local/include/c++/4.9.3/bits/ostream.tcc'
'/home/david/.local/include/c++/4.9.3/set'
'/home/david/.local/include/c++/4.9.3/bits/stl_set.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_multiset.h'
'/home/david/.local/include/c++/4.9.3/tr1/unordered_set'
'/home/david/.local/include/c++/4.9.3/tr1/type_traits'
'/home/david/.local/include/c++/4.9.3/tr1/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/tr1/hashtable.h'
'/home/david/.local/include/c++/4.9.3/tr1/hashtable_policy.h'
'/home/david/.local/include/c++/4.9.3/tr1/unordered_set.h'
'/home/david/.local/include/c++/4.9.3/sstream'
'/home/david/.local/include/c++/4.9.3/istream'
'/home/david/.local/include/c++/4.9.3/bits/istream.tcc'
'/home/david/.local/include/c++/4.9.3/bits/sstream.tcc'.
Target //tensorflow/cc:tutorials_example_trainer failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 2.889s, Critical Path: 2.49s
</code></pre></div>
<p dir="auto">With Bazel 0.1.5:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel build -c opt --config=cuda --verbose_failures //tensorflow/cc:tutorials_example_trainer
Warning: ignoring LD_PRELOAD in environment.
INFO: Found 1 target...
ERROR: /home/david/gits/tensorflow/google/protobuf/BUILD:64:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf':
this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/io/strtod.cc':
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/include/c++/4.9.3/cstring'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/cstddef'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'.
Target //tensorflow/cc:tutorials_example_trainer failed to build
INFO: Elapsed time: 2.634s, Critical Path: 2.21s
$ bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone //tensorflow/cc:tutorials_example_trainer
Warning: ignoring LD_PRELOAD in environment.
INFO: Found 1 target...
ERROR: /home/david/gits/tensorflow/google/protobuf/BUILD:64:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf':
this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/substitute.cc':
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/cstddef'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'
'/home/david/.local/include/c++/4.9.3/vector'
'/home/david/.local/include/c++/4.9.3/bits/stl_construct.h'
'/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_vector.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h'
'/home/david/.local/include/c++/4.9.3/bits/vector.tcc'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/unordered_map'
'/home/david/.local/include/c++/4.9.3/tuple'
'/home/david/.local/include/c++/4.9.3/array'
'/home/david/.local/include/c++/4.9.3/stdexcept'
'/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h'
'/home/david/.local/include/c++/4.9.3/bits/hashtable.h'
'/home/david/.local/include/c++/4.9.3/bits/hashtable_policy.h'
'/home/david/.local/include/c++/4.9.3/bits/unordered_map.h'
'/home/david/.local/include/c++/4.9.3/unordered_set'
'/home/david/.local/include/c++/4.9.3/bits/unordered_set.h'.
Target //tensorflow/cc:tutorials_example_trainer failed to build
ERROR: /home/david/gits/tensorflow/tensorflow/cc/BUILD:28:1 undeclared inclusion(s) in rule '//google/protobuf:protobuf':
this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/substitute.cc':
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/cstddef'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'
'/home/david/.local/include/c++/4.9.3/vector'
'/home/david/.local/include/c++/4.9.3/bits/stl_construct.h'
'/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_vector.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h'
'/home/david/.local/include/c++/4.9.3/bits/vector.tcc'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/unordered_map'
'/home/david/.local/include/c++/4.9.3/tuple'
'/home/david/.local/include/c++/4.9.3/array'
'/home/david/.local/include/c++/4.9.3/stdexcept'
'/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h'
'/home/david/.local/include/c++/4.9.3/bits/hashtable.h'
'/home/david/.local/include/c++/4.9.3/bits/hashtable_policy.h'
'/home/david/.local/include/c++/4.9.3/bits/unordered_map.h'
'/home/david/.local/include/c++/4.9.3/unordered_set'
'/home/david/.local/include/c++/4.9.3/bits/unordered_set.h'.
INFO: Elapsed time: 0.999s, Critical Path: 0.80s"><pre class="notranslate"><code class="notranslate">bazel build -c opt --config=cuda --verbose_failures //tensorflow/cc:tutorials_example_trainer
Warning: ignoring LD_PRELOAD in environment.
INFO: Found 1 target...
ERROR: /home/david/gits/tensorflow/google/protobuf/BUILD:64:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf':
this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/io/strtod.cc':
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/include/c++/4.9.3/cstring'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/cstddef'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'.
Target //tensorflow/cc:tutorials_example_trainer failed to build
INFO: Elapsed time: 2.634s, Critical Path: 2.21s
$ bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone //tensorflow/cc:tutorials_example_trainer
Warning: ignoring LD_PRELOAD in environment.
INFO: Found 1 target...
ERROR: /home/david/gits/tensorflow/google/protobuf/BUILD:64:1: undeclared inclusion(s) in rule '//google/protobuf:protobuf':
this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/substitute.cc':
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/cstddef'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'
'/home/david/.local/include/c++/4.9.3/vector'
'/home/david/.local/include/c++/4.9.3/bits/stl_construct.h'
'/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_vector.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h'
'/home/david/.local/include/c++/4.9.3/bits/vector.tcc'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/unordered_map'
'/home/david/.local/include/c++/4.9.3/tuple'
'/home/david/.local/include/c++/4.9.3/array'
'/home/david/.local/include/c++/4.9.3/stdexcept'
'/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h'
'/home/david/.local/include/c++/4.9.3/bits/hashtable.h'
'/home/david/.local/include/c++/4.9.3/bits/hashtable_policy.h'
'/home/david/.local/include/c++/4.9.3/bits/unordered_map.h'
'/home/david/.local/include/c++/4.9.3/unordered_set'
'/home/david/.local/include/c++/4.9.3/bits/unordered_set.h'.
Target //tensorflow/cc:tutorials_example_trainer failed to build
ERROR: /home/david/gits/tensorflow/tensorflow/cc/BUILD:28:1 undeclared inclusion(s) in rule '//google/protobuf:protobuf':
this rule is missing dependency declarations for the following files included by 'google/protobuf/src/google/protobuf/stubs/substitute.cc':
'/home/david/.local/include/c++/4.9.3/string'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++config.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/os_defines.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/cpu_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/stringfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/memoryfwd.h'
'/home/david/.local/include/c++/4.9.3/bits/char_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_algobase.h'
'/home/david/.local/include/c++/4.9.3/bits/functexcept.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/cpp_type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/type_traits.h'
'/home/david/.local/include/c++/4.9.3/ext/numeric_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_pair.h'
'/home/david/.local/include/c++/4.9.3/bits/move.h'
'/home/david/.local/include/c++/4.9.3/bits/concept_check.h'
'/home/david/.local/include/c++/4.9.3/type_traits'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_types.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator_base_funcs.h'
'/home/david/.local/include/c++/4.9.3/debug/debug.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_iterator.h'
'/home/david/.local/include/c++/4.9.3/bits/ptr_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/predefined_ops.h'
'/home/david/.local/include/c++/4.9.3/bits/postypes.h'
'/home/david/.local/include/c++/4.9.3/cwchar'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdarg.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stddef.h'
'/home/david/.local/include/c++/4.9.3/cstdint'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/stdint.h'
'/home/david/.local/include/c++/4.9.3/bits/allocator.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/new_allocator.h'
'/home/david/.local/include/c++/4.9.3/new'
'/home/david/.local/include/c++/4.9.3/exception'
'/home/david/.local/include/c++/4.9.3/bits/atomic_lockfree_defines.h'
'/home/david/.local/include/c++/4.9.3/bits/exception_ptr.h'
'/home/david/.local/include/c++/4.9.3/bits/nested_exception.h'
'/home/david/.local/include/c++/4.9.3/bits/localefwd.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/c++locale.h'
'/home/david/.local/include/c++/4.9.3/clocale'
'/home/david/.local/include/c++/4.9.3/iosfwd'
'/home/david/.local/include/c++/4.9.3/cctype'
'/home/david/.local/include/c++/4.9.3/bits/ostream_insert.h'
'/home/david/.local/include/c++/4.9.3/bits/cxxabi_forced.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_function.h'
'/home/david/.local/include/c++/4.9.3/backward/binders.h'
'/home/david/.local/include/c++/4.9.3/bits/range_access.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.h'
'/home/david/.local/include/c++/4.9.3/ext/atomicity.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/gthr-default.h'
'/home/david/.local/include/c++/4.9.3/x86_64-unknown-linux-gnu/bits/atomic_word.h'
'/home/david/.local/include/c++/4.9.3/initializer_list'
'/home/david/.local/include/c++/4.9.3/ext/string_conversions.h'
'/home/david/.local/include/c++/4.9.3/cstdlib'
'/home/david/.local/include/c++/4.9.3/cstdio'
'/home/david/.local/include/c++/4.9.3/cerrno'
'/home/david/.local/include/c++/4.9.3/bits/functional_hash.h'
'/home/david/.local/include/c++/4.9.3/bits/hash_bytes.h'
'/home/david/.local/include/c++/4.9.3/bits/basic_string.tcc'
'/home/david/.local/include/c++/4.9.3/cstddef'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/limits.h'
'/home/david/.local/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include-fixed/syslimits.h'
'/home/david/.local/include/c++/4.9.3/utility'
'/home/david/.local/include/c++/4.9.3/bits/stl_relops.h'
'/home/david/.local/include/c++/4.9.3/vector'
'/home/david/.local/include/c++/4.9.3/bits/stl_construct.h'
'/home/david/.local/include/c++/4.9.3/ext/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/alloc_traits.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_uninitialized.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_vector.h'
'/home/david/.local/include/c++/4.9.3/bits/stl_bvector.h'
'/home/david/.local/include/c++/4.9.3/bits/vector.tcc'
'/home/david/.local/include/c++/4.9.3/limits'
'/home/david/.local/include/c++/4.9.3/unordered_map'
'/home/david/.local/include/c++/4.9.3/tuple'
'/home/david/.local/include/c++/4.9.3/array'
'/home/david/.local/include/c++/4.9.3/stdexcept'
'/home/david/.local/include/c++/4.9.3/bits/uses_allocator.h'
'/home/david/.local/include/c++/4.9.3/ext/aligned_buffer.h'
'/home/david/.local/include/c++/4.9.3/bits/hashtable.h'
'/home/david/.local/include/c++/4.9.3/bits/hashtable_policy.h'
'/home/david/.local/include/c++/4.9.3/bits/unordered_map.h'
'/home/david/.local/include/c++/4.9.3/unordered_set'
'/home/david/.local/include/c++/4.9.3/bits/unordered_set.h'.
INFO: Elapsed time: 0.999s, Critical Path: 0.80s
</code></pre></div>
<p dir="auto">Bazel 2.2b fails when tensorflow tries to parse the version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone //tensorflow/cc:tutorials_example_trainer
Warning: ignoring LD_PRELOAD in environment.
Sending SIGTERM to previous Bazel server (pid=24216)... done.
......
ERROR: /home/david/gits/tensorflow/WORKSPACE:21:1: Traceback (most recent call last):
File "/home/david/gits/tensorflow/WORKSPACE", line 21
check_version("0.1.4")
File "/home/david/gits/tensorflow/tensorflow/tensorflow.bzl", line 22, in check_version
_parse_bazel_version(native.bazel_version)
File "/home/david/gits/tensorflow/tensorflow/tensorflow.bzl", line 15, in _parse_bazel_version
int(number)
invalid literal for int(): "2b".
ERROR: Error evaluating WORKSPACE file.
ERROR: no such package 'external': Package 'external' contains errors.
INFO: Elapsed time: 0.610s"><pre class="notranslate"><code class="notranslate"> bazel build -c opt --config=cuda --verbose_failures --spawn_strategy=standalone //tensorflow/cc:tutorials_example_trainer
Warning: ignoring LD_PRELOAD in environment.
Sending SIGTERM to previous Bazel server (pid=24216)... done.
......
ERROR: /home/david/gits/tensorflow/WORKSPACE:21:1: Traceback (most recent call last):
File "/home/david/gits/tensorflow/WORKSPACE", line 21
check_version("0.1.4")
File "/home/david/gits/tensorflow/tensorflow/tensorflow.bzl", line 22, in check_version
_parse_bazel_version(native.bazel_version)
File "/home/david/gits/tensorflow/tensorflow/tensorflow.bzl", line 15, in _parse_bazel_version
int(number)
invalid literal for int(): "2b".
ERROR: Error evaluating WORKSPACE file.
ERROR: no such package 'external': Package 'external' contains errors.
INFO: Elapsed time: 0.610s
</code></pre></div>
<p dir="auto">Correcting that mistake I get a bulld error again:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" bazel build -c opt --config=cuda --spawn_strategy=standalone --verbose_failures //tensorflow/tools/pip_package:build_pip_package
Warning: ignoring LD_PRELOAD in environment.
ERROR: no such package 'external': Package 'external' contains errors.
INFO: Elapsed time: 0.084s"><pre class="notranslate"><code class="notranslate"> bazel build -c opt --config=cuda --spawn_strategy=standalone --verbose_failures //tensorflow/tools/pip_package:build_pip_package
Warning: ignoring LD_PRELOAD in environment.
ERROR: no such package 'external': Package 'external' contains errors.
INFO: Elapsed time: 0.084s
</code></pre></div>
<p dir="auto">How can I get it to work? I am interested in building Tensorflow with vector instructions for my laptop and linking against the latest cudnn for my workstation.</p> | 1 |
<p dir="auto">Now that PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35792428" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/6511" data-hovercard-type="pull_request" data-hovercard-url="/elastic/elasticsearch/pull/6511/hovercard" href="https://github.com/elastic/elasticsearch/pull/6511">#6511</a> has been merged, self referential parent/child support is explicitly disabled. Self referential parent/child was never explicitly supported. It wasn't documented and no tests existed for this parent/child use case. A long time ago it used to work, but since 0.90 self referential parent/child has not been working correctly. See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="40732496" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/7357" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/7357/hovercard" href="https://github.com/elastic/elasticsearch/issues/7357">#7357</a>.</p>
<p dir="auto">Right now we need to know what is a parent document and what is a child document. We do this via the <code class="notranslate">_type</code> field. The issue with self referential parent child is that we use the same type for both parent and child document and therefore we can't distinguish between parent and child document.</p>
<p dir="auto">I think we can get around this issue by using the fact if a document has a <code class="notranslate">_parent</code> field instead of the <code class="notranslate">type</code> field for identification. I think this works okay for single level relationships (a parent type and a child type), but for multi level relationships (a parent type, child type and grandchild type) I don't think this works out as what is requested in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="45901510" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/8100" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/8100/hovercard" href="https://github.com/elastic/elasticsearch/issues/8100">#8100</a>.</p> | <p dir="auto">Users can provide various intervals for the date histogram but application code doesn't know which interval was chosen at query time. Knowing this is particularly useful when building client-side visualizations where an axis is required or labels need to be generated.</p> | 0 |
<p dir="auto">show the code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="axios.defaults.retry = 4;
axios.interceptors.response.use(undefined, (err) => {
console.log(err.config)
});"><pre class="notranslate"><span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">defaults</span><span class="pl-kos">.</span><span class="pl-c1">retry</span> <span class="pl-c1">=</span> <span class="pl-c1">4</span><span class="pl-kos">;</span>
<span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">response</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-c1">undefined</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">err</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-s1">err</span><span class="pl-kos">.</span><span class="pl-c1">config</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">result:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24989439/65499868-e8288e00-def0-11e9-8071-1dffdc10b84e.png"><img src="https://user-images.githubusercontent.com/24989439/65499868-e8288e00-def0-11e9-8071-1dffdc10b84e.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Expected behavior</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24989439/65500182-7a309680-def1-11e9-8cac-f1edd736fca9.png"><img src="https://user-images.githubusercontent.com/24989439/65500182-7a309680-def1-11e9-8cac-f1edd736fca9.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Environment:</strong></p>
<ul dir="auto">
<li>Axios Version [0.19.0]</li>
<li>OS: [OSX 10.12.6]</li>
<li>Browser [Chrome]</li>
<li>Browser Version [77.0.3865.90]</li>
</ul> | <p dir="auto">So, if I understand it right, in 0.19.0 you've added <code class="notranslate">mergeConfig</code><br>
And this function filter config and remove custom properties from it.<br>
It broke my solution for cancellation:</p>
<p dir="auto">How it works:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const requestManager = new RequestManager();
const instance = axios.create();
requestManager.patchAxiosInstance(instance);
const search = q =>
instance.get('/search', {
cancelable: true, // this is no longer possible in 0.19.0
params: { q },
});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">requestManager</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">RequestManager</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">instance</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">requestManager</span><span class="pl-kos">.</span><span class="pl-en">patchAxiosInstance</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-en">search</span> <span class="pl-c1">=</span> <span class="pl-s1">q</span> <span class="pl-c1">=></span>
<span class="pl-s1">instance</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/search'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>
<span class="pl-c1">cancelable</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c">// this is no longer possible in 0.19.0</span>
<span class="pl-c1">params</span>: <span class="pl-kos">{</span> q <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"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/7009699/58960132-2ddd1180-87af-11e9-8eb1-3542c4d0b1c1.png"><img src="https://user-images.githubusercontent.com/7009699/58960132-2ddd1180-87af-11e9-8eb1-3542c4d0b1c1.png" alt="Screenshot 2019-06-05 at 16 30 01" style="max-width: 100%;"></a></p>
<p dir="auto">The solution:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="class RequestManager {
constructor() {
this.pendingRequests = new Map();
}
patchAxiosInstance(instance) {
instance.interceptors.request.use(config => {
if (!config.cancelable) return config; // this is no longer possible in 0.19.0
const source = axios.CancelToken.source();
const requestId = `${config.method}_${config.url}`;
const cancelToken = source.token;
this.addRequest(requestId, source.cancel);
return { ...config, cancelToken, requestId };
});
instance.interceptors.response.use(response => {
const { requestId } = response.config; // this is no longer possible in 0.19.0
if (requestId) {
this.removeRequest(requestId);
}
return response;
});
}
addRequest(requestId, cancelFn) {
this.cancelRequest(requestId);
this.pendingRequests.set(requestId, cancelFn);
}
removeRequest(requestId) {
this.pendingRequests.delete(requestId);
}
cancelRequest(requestId) {
if (this.pendingRequests.has(requestId)) {
const cancelFn = this.pendingRequests.get(requestId);
cancelFn();
this.removeRequest(requestId);
}
}
}"><pre class="notranslate"><span class="pl-k">class</span> <span class="pl-v">RequestManager</span> <span class="pl-kos">{</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-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">pendingRequests</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Map</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">patchAxiosInstance</span><span class="pl-kos">(</span><span class="pl-s1">instance</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">instance</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">request</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">config</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">cancelable</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">config</span><span class="pl-kos">;</span> <span class="pl-c">// this is no longer possible in 0.19.0</span>
<span class="pl-k">const</span> <span class="pl-s1">source</span> <span class="pl-c1">=</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-c1">CancelToken</span><span class="pl-kos">.</span><span class="pl-en">source</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">requestId</span> <span class="pl-c1">=</span> <span class="pl-s">`<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">method</span><span class="pl-kos">}</span></span>_<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">config</span><span class="pl-kos">.</span><span class="pl-c1">url</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">cancelToken</span> <span class="pl-c1">=</span> <span class="pl-s1">source</span><span class="pl-kos">.</span><span class="pl-c1">token</span><span class="pl-kos">;</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">addRequest</span><span class="pl-kos">(</span><span class="pl-s1">requestId</span><span class="pl-kos">,</span> <span class="pl-s1">source</span><span class="pl-kos">.</span><span class="pl-c1">cancel</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span> ...<span class="pl-s1">config</span><span class="pl-kos">,</span> cancelToken<span class="pl-kos">,</span> requestId <span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">instance</span><span class="pl-kos">.</span><span class="pl-c1">interceptors</span><span class="pl-kos">.</span><span class="pl-c1">response</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">response</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-kos">{</span> requestId <span class="pl-kos">}</span> <span class="pl-c1">=</span> <span class="pl-s1">response</span><span class="pl-kos">.</span><span class="pl-c1">config</span><span class="pl-kos">;</span> <span class="pl-c">// this is no longer possible in 0.19.0</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">requestId</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">removeRequest</span><span class="pl-kos">(</span><span class="pl-s1">requestId</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">response</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">addRequest</span><span class="pl-kos">(</span><span class="pl-s1">requestId</span><span class="pl-kos">,</span> <span class="pl-s1">cancelFn</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">cancelRequest</span><span class="pl-kos">(</span><span class="pl-s1">requestId</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">pendingRequests</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">requestId</span><span class="pl-kos">,</span> <span class="pl-s1">cancelFn</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">removeRequest</span><span class="pl-kos">(</span><span class="pl-s1">requestId</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">pendingRequests</span><span class="pl-kos">.</span><span class="pl-en">delete</span><span class="pl-kos">(</span><span class="pl-s1">requestId</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-en">cancelRequest</span><span class="pl-kos">(</span><span class="pl-s1">requestId</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">pendingRequests</span><span class="pl-kos">.</span><span class="pl-en">has</span><span class="pl-kos">(</span><span class="pl-s1">requestId</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">cancelFn</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">pendingRequests</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s1">requestId</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">cancelFn</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-en">removeRequest</span><span class="pl-kos">(</span><span class="pl-s1">requestId</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">So, is it possible to relax filter in <code class="notranslate">mergeConfig</code> for custom properties? Because sometimes it is needed and very helpful in interceptors or somewhere else.</p> | 1 |
<p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.0.5-5441b09</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br>
at xi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:277765)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<br>
at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br>
at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363</p>
<p dir="auto">Component stack: in xi<br>
in div<br>
in div<br>
in div<br>
in Ir<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Wa<br>
in ce<br>
in be<br>
in So<br>
in Vl</p> | <p dir="auto">PLEASE INCLUDE REPRO INSTRUCTIONS AND EXAMPLE CODE</p>
<p dir="auto">I got this error when I click 'Ranked'.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.0.4-3c6a219</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11441<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11387)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:11920)<br>
at _i (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:277123)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:98280)<br>
at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br>
at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363</p>
<p dir="auto">Component stack: in _i<br>
in div<br>
in div<br>
in div<br>
in Or<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Ha<br>
in le<br>
in ve<br>
in ko<br>
in Ul</p> | 1 |
<p dir="auto">On Ubuntu 14.04:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tkelman@nanosoldier4:~/Julia/julia-0.5$ ./julia -e 'versioninfo()' && make test-reflection
Julia Version 0.5.0-dev+3719
Commit cc43988* (2016-04-23 09:07 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
JULIA test/reflection
* reflection julia: /home/tkelman/Julia/julia-0.5/src/codegen.cpp:1330: uint64_t compute_obj_symsize(const llvm::object::ObjectFile*, uint64_t): Assertion `hi == 0' failed.
signal (6): Aborted
while loading /home/tkelman/Julia/julia-0.5/test/reflection.jl, in expression starting on line 40
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x2b82ba6f3b85)
__assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
[inline] at /home/tkelman/Julia/julia-0.5/src/codegen.cpp:1330
compute_obj_symsize at /home/tkelman/Julia/julia-0.5/src/codegen.cpp:1412
_dump_function at ./reflection.jl:288
unknown function (ip: 0x2b84bfcb4366)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
test_bin_reflection at /home/tkelman/Julia/julia-0.5/test/reflection.jl:16
unknown function (ip: 0x2b84bfcc04b4)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/test/reflection.jl:22
test_code_reflections at /home/tkelman/Julia/julia-0.5/test/reflection.jl:29
unknown function (ip: 0x2b84bfc747a3)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
do_call at /home/tkelman/Julia/julia-0.5/src/interpreter.c:58
eval at /home/tkelman/Julia/julia-0.5/src/interpreter.c:181
jl_toplevel_eval_flex at /home/tkelman/Julia/julia-0.5/src/toplevel.c:535
[inline] at /home/tkelman/Julia/julia-0.5/src/toplevel.c:423
jl_toplevel_eval_flex at /home/tkelman/Julia/julia-0.5/src/toplevel.c:170
jl_toplevel_eval_flex at /home/tkelman/Julia/julia-0.5/src/toplevel.c:433
jl_parse_eval_all at /home/tkelman/Julia/julia-0.5/src/ast.c:794
jl_load at /home/tkelman/Julia/julia-0.5/src/toplevel.c:573
include at ./boot.jl:233
unknown function (ip: 0x2b82bbfef7c5)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
include_from_node1 at ./loading.jl:425
unknown function (ip: 0x2b82bc2103d5)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at ./util.jl:179
runtests at /home/tkelman/Julia/julia-0.5/test/testdefs.jl:7
[inline] at ./promotion.jl:229
#283 at ./multi.jl:774
run_work_thunk at ./multi.jl:747
unknown function (ip: 0x2b82b83f1246)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
remotecall_fetch at ./multi.jl:794
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/src/julia.h:1339
jl_apply at /home/tkelman/Julia/julia-0.5/src/builtins.c:505
unknown function (ip: 0x2b82b83db0f8)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/src/julia.h:1339
jl_apply at /home/tkelman/Julia/julia-0.5/src/builtins.c:505
[inline] at ./promotion.jl:229
remotecall_fetch at ./multi.jl:810
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/src/julia.h:1339
jl_apply at /home/tkelman/Julia/julia-0.5/src/builtins.c:505
unknown function (ip: 0x2b82b83d90f8)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/test/runtests.jl:36
#15 at ./task.jl:308
unknown function (ip: 0x2b82b83d79df)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/src/julia.h:1339
jl_apply at /home/tkelman/Julia/julia-0.5/src/task.c:249
unknown function (ip: 0xffffffffffffffff)
Allocations: 2299972 (Pool: 2298593; Big: 1379); GC: 3
Aborted
make[1]: *** [reflection] Error 134
make: *** [test-reflection] Error 2"><pre class="notranslate"><code class="notranslate">tkelman@nanosoldier4:~/Julia/julia-0.5$ ./julia -e 'versioninfo()' && make test-reflection
Julia Version 0.5.0-dev+3719
Commit cc43988* (2016-04-23 09:07 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Xeon(R) CPU E3-1241 v3 @ 3.50GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
JULIA test/reflection
* reflection julia: /home/tkelman/Julia/julia-0.5/src/codegen.cpp:1330: uint64_t compute_obj_symsize(const llvm::object::ObjectFile*, uint64_t): Assertion `hi == 0' failed.
signal (6): Aborted
while loading /home/tkelman/Julia/julia-0.5/test/reflection.jl, in expression starting on line 40
gsignal at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
abort at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
unknown function (ip: 0x2b82ba6f3b85)
__assert_fail at /lib/x86_64-linux-gnu/libc.so.6 (unknown line)
[inline] at /home/tkelman/Julia/julia-0.5/src/codegen.cpp:1330
compute_obj_symsize at /home/tkelman/Julia/julia-0.5/src/codegen.cpp:1412
_dump_function at ./reflection.jl:288
unknown function (ip: 0x2b84bfcb4366)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
test_bin_reflection at /home/tkelman/Julia/julia-0.5/test/reflection.jl:16
unknown function (ip: 0x2b84bfcc04b4)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/test/reflection.jl:22
test_code_reflections at /home/tkelman/Julia/julia-0.5/test/reflection.jl:29
unknown function (ip: 0x2b84bfc747a3)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
do_call at /home/tkelman/Julia/julia-0.5/src/interpreter.c:58
eval at /home/tkelman/Julia/julia-0.5/src/interpreter.c:181
jl_toplevel_eval_flex at /home/tkelman/Julia/julia-0.5/src/toplevel.c:535
[inline] at /home/tkelman/Julia/julia-0.5/src/toplevel.c:423
jl_toplevel_eval_flex at /home/tkelman/Julia/julia-0.5/src/toplevel.c:170
jl_toplevel_eval_flex at /home/tkelman/Julia/julia-0.5/src/toplevel.c:433
jl_parse_eval_all at /home/tkelman/Julia/julia-0.5/src/ast.c:794
jl_load at /home/tkelman/Julia/julia-0.5/src/toplevel.c:573
include at ./boot.jl:233
unknown function (ip: 0x2b82bbfef7c5)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
include_from_node1 at ./loading.jl:425
unknown function (ip: 0x2b82bc2103d5)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at ./util.jl:179
runtests at /home/tkelman/Julia/julia-0.5/test/testdefs.jl:7
[inline] at ./promotion.jl:229
#283 at ./multi.jl:774
run_work_thunk at ./multi.jl:747
unknown function (ip: 0x2b82b83f1246)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
remotecall_fetch at ./multi.jl:794
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/src/julia.h:1339
jl_apply at /home/tkelman/Julia/julia-0.5/src/builtins.c:505
unknown function (ip: 0x2b82b83db0f8)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/src/julia.h:1339
jl_apply at /home/tkelman/Julia/julia-0.5/src/builtins.c:505
[inline] at ./promotion.jl:229
remotecall_fetch at ./multi.jl:810
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/src/julia.h:1339
jl_apply at /home/tkelman/Julia/julia-0.5/src/builtins.c:505
unknown function (ip: 0x2b82b83d90f8)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/test/runtests.jl:36
#15 at ./task.jl:308
unknown function (ip: 0x2b82b83d79df)
[inline] at /home/tkelman/Julia/julia-0.5/src/julia_internal.h:69
jl_call_method_internal at /home/tkelman/Julia/julia-0.5/src/gf.c:1430
[inline] at /home/tkelman/Julia/julia-0.5/src/julia.h:1339
jl_apply at /home/tkelman/Julia/julia-0.5/src/task.c:249
unknown function (ip: 0xffffffffffffffff)
Allocations: 2299972 (Pool: 2298593; Big: 1379); GC: 3
Aborted
make[1]: *** [reflection] Error 134
make: *** [test-reflection] Error 2
</code></pre></div>
<p dir="auto">edit: probably duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="149897029" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/15971" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/15971/hovercard" href="https://github.com/JuliaLang/julia/issues/15971">#15971</a></p> | <p dir="auto">A common idiom for testing if values in a collection <code class="notranslate">C</code> are unique is</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="length(unique(C))==length(C)"><pre class="notranslate"><span class="pl-c1">length</span>(<span class="pl-c1">unique</span>(C))<span class="pl-k">==</span><span class="pl-c1">length</span>(C)</pre></div>
<p dir="auto">or variations, eg when the length <code class="notranslate">n</code> is known,</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="length(unique(C))==n"><pre class="notranslate"><span class="pl-c1">length</span>(<span class="pl-c1">unique</span>(C))<span class="pl-k">==</span>n</pre></div>
<p dir="auto">These show up in various tests, assertions, inner constructors. However, if the goal is only to test for uniqueness, not to obtain a list of unique elements, then something like</p>
<div class="highlight highlight-source-julia notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="function isunique(C)
seen = Set{eltype(C)}()
for x in C
if in(x, seen)
return false
else
push!(seen, x)
end
end
true
end"><pre class="notranslate"><span class="pl-k">function</span> <span class="pl-en">isunique</span>(C)
seen <span class="pl-k">=</span> <span class="pl-c1">Set</span><span class="pl-c1">{eltype(C)}</span>()
<span class="pl-k">for</span> x <span class="pl-k">in</span> C
<span class="pl-k">if</span> <span class="pl-c1">in</span>(x, seen)
<span class="pl-k">return</span> <span class="pl-c1">false</span>
<span class="pl-k">else</span>
<span class="pl-c1">push!</span>(seen, x)
<span class="pl-k">end</span>
<span class="pl-k">end</span>
<span class="pl-c1">true</span>
<span class="pl-k">end</span></pre></div>
<p dir="auto">is much more efficient: it can terminate early and avoids the construction of the intermediate array. Also, programmer's the intent is more clear.</p>
<p dir="auto">I am of course reluctant to suggest adding functions to <code class="notranslate">Base</code>, but it would good to have <code class="notranslate">unique</code> and <code class="notranslate">isunique</code> in the same module.</p> | 0 |
<p dir="auto">Importing from <code class="notranslate">three/examples/jsm/.../<module></code> causes bundlers (tested with rollup) to include the library twice (or multiple times).</p>
<p dir="auto">For example, when doing <code class="notranslate">import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls'</code>, the bundler will follow the import and in the OrbitControls.js the imports come from <a href="https://github.com/mrdoob/three.js/blob/dev/examples/jsm/controls/OrbitControls.js#L18"><code class="notranslate">../../../build/three.module.js</code></a>. However, there is no way for the (external) bundler to know that <code class="notranslate">../../../build/three.module.js</code> is the same module as <code class="notranslate">three</code>.</p>
<p dir="auto">A solution for this would be to treat the examples modules as external packages and import from <code class="notranslate">three</code> instead of <code class="notranslate">../../../build/three.module.js</code>. This might break the rollup config of three.js, but it should be possible to tell rollup that <code class="notranslate">three</code> is an alias for the main entry point of three (<code class="notranslate">src/Three.js</code>).</p> | <h5 dir="auto">Description of the problem</h5>
<p dir="auto">In version R90 I have an atlas that is loaded/created with:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new THREE.TextureLoader(manager).load(url, function(t){
//Upload to gpu
renderer.setTexture2D(t, 0);
//Frames is the atlas data.
for (name in frames)
{
var frame = frames[name];
var tex = t.clone();
tex.uuid = t.uuid; // prevents loading texture multiple times
tex.repeat.set(frame.w / t.image.width, frame.h / t.image.height);
tex.offset.x = ((frame.x) / t.image.width);
tex.offset.y = 1 - (frame.h / t.image.height) - (frame.y / t.image.height);
tex.needsUpdate = true;
//AssetManager is just a map for quick access to textures.
AssetManager.add(n, tex);
}
});"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-c1">THREE</span><span class="pl-kos">.</span><span class="pl-c1">TextureLoader</span><span class="pl-kos">(</span><span class="pl-s1">manager</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">(</span><span class="pl-s1">url</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-kos">)</span><span class="pl-kos">{</span>
<span class="pl-c">//Upload to gpu </span>
<span class="pl-s1">renderer</span><span class="pl-kos">.</span><span class="pl-en">setTexture2D</span><span class="pl-kos">(</span><span class="pl-s1">t</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">//Frames is the atlas data.</span>
<span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-s1">name</span> <span class="pl-k">in</span> <span class="pl-s1">frames</span><span class="pl-kos">)</span>
<span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">frame</span> <span class="pl-c1">=</span> <span class="pl-s1">frames</span><span class="pl-kos">[</span><span class="pl-s1">name</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">tex</span> <span class="pl-c1">=</span> <span class="pl-s1">t</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-s1">tex</span><span class="pl-kos">.</span><span class="pl-c1">uuid</span> <span class="pl-c1">=</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">uuid</span><span class="pl-kos">;</span> <span class="pl-c">// prevents loading texture multiple times</span>
<span class="pl-s1">tex</span><span class="pl-kos">.</span><span class="pl-c1">repeat</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s1">frame</span><span class="pl-kos">.</span><span class="pl-c1">w</span> <span class="pl-c1">/</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">width</span><span class="pl-kos">,</span> <span class="pl-s1">frame</span><span class="pl-kos">.</span><span class="pl-c1">h</span> <span class="pl-c1">/</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">height</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">tex</span><span class="pl-kos">.</span><span class="pl-c1">offset</span><span class="pl-kos">.</span><span class="pl-c1">x</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">frame</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">)</span> <span class="pl-c1">/</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">width</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">tex</span><span class="pl-kos">.</span><span class="pl-c1">offset</span><span class="pl-kos">.</span><span class="pl-c1">y</span> <span class="pl-c1">=</span> <span class="pl-c1">1</span> <span class="pl-c1">-</span> <span class="pl-kos">(</span><span class="pl-s1">frame</span><span class="pl-kos">.</span><span class="pl-c1">h</span> <span class="pl-c1">/</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">height</span><span class="pl-kos">)</span> <span class="pl-c1">-</span> <span class="pl-kos">(</span><span class="pl-s1">frame</span><span class="pl-kos">.</span><span class="pl-c1">y</span> <span class="pl-c1">/</span> <span class="pl-s1">t</span><span class="pl-kos">.</span><span class="pl-c1">image</span><span class="pl-kos">.</span><span class="pl-c1">height</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">tex</span><span class="pl-kos">.</span><span class="pl-c1">needsUpdate</span> <span class="pl-c1">=</span> <span class="pl-c1">true</span><span class="pl-kos">;</span>
<span class="pl-c">//AssetManager is just a map for quick access to textures.</span>
<span class="pl-v">AssetManager</span><span class="pl-kos">.</span><span class="pl-en">add</span><span class="pl-kos">(</span><span class="pl-s1">n</span><span class="pl-kos">,</span> <span class="pl-s1">tex</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">In addition to atlas I have large equirectangular textures loaded. With version 90 (and 89) renderer.info.memory says 23 textures when scene is being rendered and it keeps at that whenever objects found in the scene are set to visible / invisible.</p>
<p dir="auto">With R91 and newer the texture count starts to ramp up quickly. Initial state has textures set at 79 (most likely due to overlay ui which has lots of assets all found in one atlas. Whenever I click an area where object is and it is set to visible then the count jumps by some sum (depending on what the object is). All of the textures used on objects are found in another atlas image.</p>
<p dir="auto">Checking with the debugger in R90 and R89 texture upload is done only initially. In R91+ it happens everytime an object is set to visible (one that has not been visible before).</p>
<p dir="auto">Will provide an example after I find some images I can distribute freely.</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=""> r94</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r93</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r92</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r91</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 (67.0.3396.87)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Firefox (61.0)</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li>
</ul>
<p dir="auto">Most likely also IE. Cannot test with one at the moment.</p>
<h5 dir="auto">OS</h5>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> All of them</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Windows</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> macOS</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> iOS</li>
</ul>
<h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5>
<p dir="auto">GPU used in tested is nvidia 1060 and 770.</p> | 0 |
<p dir="auto">I don't understand the compile toolchain very well, and I haven't yet gotten good profile info (see <a href="https://groups.google.com/d/msg/julia-dev/RKAahOwppNs/Kg0TFx_SBwAJ" rel="nofollow">https://groups.google.com/d/msg/julia-dev/RKAahOwppNs/Kg0TFx_SBwAJ</a>), but at least for the SubArray tests I'm guessing that <a href="https://github.com/JuliaLang/julia/blob/c70ab26bb677c92f0d8e0ae41c3035217a4b111f/src/dump.c#L622">this line</a>, via <code class="notranslate">jl_compress_ast</code>, is an enormous bottleneck in compilation. I inserted a debugging line,</p>
<div class="highlight highlight-source-diff notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="diff --git a/src/dump.c b/src/dump.c
index e11bff5..9c3c96f 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -618,6 +618,7 @@ static int is_ast_node(jl_value_t *v)
static int literal_val_id(jl_value_t *v)
{
+ jl_printf(JL_STDOUT, "len = %d\n", jl_array_len(tree_literal_values));
for(int i=0; i < jl_array_len(tree_literal_values); i++) {
if (jl_egal(jl_cellref(tree_literal_values,i), v))
return i;"><pre class="notranslate"><span class="pl-c1">diff --git a/src/dump.c b/src/dump.c</span>
index e11bff5..9c3c96f 100644
<span class="pl-md">--- a/src/dump.c</span>
<span class="pl-mi1">+++ b/src/dump.c</span>
<span class="pl-mdr">@@ -618,6 +618,7 @@</span> static int is_ast_node(jl_value_t *v)
static int literal_val_id(jl_value_t *v)
{
<span class="pl-mi1"><span class="pl-mi1">+</span> jl_printf(JL_STDOUT, "len = %d\n", jl_array_len(tree_literal_values));</span>
for(int i=0; i < jl_array_len(tree_literal_values); i++) {
if (jl_egal(jl_cellref(tree_literal_values,i), v))
return i;</pre></div>
<p dir="auto">and saw that most of the lengths were around 10k or so. That's a heck of a lot of calls to <code class="notranslate">jl_egal</code>. Is there anything that can be done to reduce this number?</p> | <p dir="auto">Hey all,</p>
<p dir="auto">Recently, I've made changes to <a href="https://github.com/jkaye2012/Redis.jl">Redis.jl</a> to transition from v0.3 to v0.4. I'd like to tag the latest version so that users can stop getting deprecation warnings in their v0.4 code. Unfortunately, I've ran into an issue that I can't seem to resolve.</p>
<p dir="auto">This code was working under v0.3: <a href="https://github.com/jkaye2012/Redis.jl/blob/master/src/client.jl#L47">https://github.com/jkaye2012/Redis.jl/blob/master/src/client.jl#L47</a></p>
<p dir="auto">Under v0.4, <code class="notranslate">nb_available()</code> seems to always be returning 0. I know that there is data available to the socket; I see it being sent from the Redis server, and if I change the code to use a blocking read, the data is read in as expected (the API can't actually use a blocking read for reasons detailed in that code).</p>
<p dir="auto">Is this an issue in nb_available, or am I misunderstanding something? Is there another way that I should be trying to accomplish this?</p>
<p dir="auto">Thanks,<br>
Jordan</p> | 0 |
<p dir="auto">I am having trouble configuring the latest master branch (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/dbe7ee0dfa9e5ab26284522379f2747510fc267b/hovercard" href="https://github.com/tensorflow/tensorflow/commit/dbe7ee0dfa9e5ab26284522379f2747510fc267b"><tt>dbe7ee0</tt></a>). When I run <code class="notranslate">./configure</code>, I get:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: Evaluation of query "deps((//... union @bazel_tools//tools/jdk:toolchain))" failed: errors were encountered while computing transitive closure.
Configuration finished"><pre class="notranslate"><code class="notranslate">ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:213:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:signature'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:meta_graph_portable_proto': target 'meta_graph_portable_proto' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: [...]/tensorflow/tensorflow/contrib/session_bundle/BUILD:107:1: no such target '//tensorflow/core:android_lib_lite': target 'android_lib_lite' not declared in package 'tensorflow/core' defined by [...]/tensorflow/tensorflow/core/BUILD and referenced by '//tensorflow/contrib/session_bundle:session_bundle'.
ERROR: Evaluation of query "deps((//... union @bazel_tools//tools/jdk:toolchain))" failed: errors were encountered while computing transitive closure.
Configuration finished
</code></pre></div>
<p dir="auto">To summarize, the dependencies that are included inside the <code class="notranslate">if_android</code> and <code class="notranslate">if_ios</code> are not found. They don't exist in the repository, so that is not that surprising. What is more surprising though is that my vanilla installation is not returning empty lists when <code class="notranslate">if_android</code> is called. I haven't looked into how those functions work, so not sure why that is happening.</p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Setup: CentOS, Bazel 0.3.1, CUDA 7.5, CuDNN 5.1, Tensorflow master (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/dbe7ee0dfa9e5ab26284522379f2747510fc267b/hovercard" href="https://github.com/tensorflow/tensorflow/commit/dbe7ee0dfa9e5ab26284522379f2747510fc267b"><tt>dbe7ee0</tt></a>)</p>
<p dir="auto">I run <code class="notranslate">configure</code> and set it up for GPU support. Actually, I don't think this is criticial, but first I had to open up <code class="notranslate">configure</code> and add <code class="notranslate">--output_base=...</code> on the two calls to <code class="notranslate">bazel</code>, since my setup requires a custom cache directory.</p>
<h3 dir="auto">Fix</h3>
<p dir="auto">The <code class="notranslate">if_...</code> lines were added in <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/ed87884e50e1a50f7dc7b36dc7a7ff225442bee0/hovercard" href="https://github.com/tensorflow/tensorflow/commit/ed87884e50e1a50f7dc7b36dc7a7ff225442bee0"><tt>ed87884</tt></a>, so a fix that I know works is to use its parent commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/7705791619f5e851687e9a63b4315087e189f8be/hovercard" href="https://github.com/tensorflow/tensorflow/commit/7705791619f5e851687e9a63b4315087e189f8be"><tt>7705791</tt></a>.</p> | <p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>Linux Ubuntu 16.04</li>
<li>Python 3.6.7</li>
<li>packages: logging 0.5.1.2, tensorflow 2.0.0-alpha0</li>
</ul>
<p dir="auto">When importing <code class="notranslate">tensorflow</code> any logging user-defined config is ignored and tf config is used instead. Here is an example where logging format and level is changed. Note that the <code class="notranslate">info</code> isn't printed at all.</p>
<p dir="auto">Code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import logging
import tensorflow
logging.basicConfig(level=logging.INFO, format="%(levelname)s %(message)s")
logger = logging.getLogger(__name__)
logger.info("Some info")
logger.error("Some error")"><pre class="notranslate"><code class="notranslate">import logging
import tensorflow
logging.basicConfig(level=logging.INFO, format="%(levelname)s %(message)s")
logger = logging.getLogger(__name__)
logger.info("Some info")
logger.error("Some error")
</code></pre></div>
<p dir="auto">Output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="WARNING: Logging before flag parsing goes to stderr.
E0425 11:22:27.150884 140450657982208 temp.py:9] Some error"><pre class="notranslate"><code class="notranslate">WARNING: Logging before flag parsing goes to stderr.
E0425 11:22:27.150884 140450657982208 temp.py:9] Some error
</code></pre></div>
<p dir="auto">Expected output (as if you delete <code class="notranslate">import tensorflow</code> or with older version of <code class="notranslate">tf</code>):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO Some info
ERROR Some error"><pre class="notranslate"><code class="notranslate">INFO Some info
ERROR Some error
</code></pre></div> | 0 |
<p dir="auto">Hi everyone,</p>
<p dir="auto">Sorry in advance if it's duplicated. Feel free to link me to the original issue</p>
<h1 dir="auto">Bug report</h1>
<p dir="auto">getInitialProps is called but doesn't return any props</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">I'm using a combination of all of the examples listed below :</p>
<ul dir="auto">
<li>custom-server-express</li>
<li>with-<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-css">next-css</a></li>
<li>with-<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-routes">next-routes</a></li>
<li>with-react-i18next</li>
<li>with-redux</li>
</ul>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Returning the props and access them in the render method and all the other lifecycle methods</p>
<h2 dir="auto">Code</h2>
<p dir="auto">My routes are declared in /src/routes.js and it looks like this</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const routes = require('next-routes')
module.exports = routes()
.add({ name: 'HomePage', pattern: '/', page: '/Home/Home' })
.add('test')"><pre class="notranslate"><code class="notranslate">const routes = require('next-routes')
module.exports = routes()
.add({ name: 'HomePage', pattern: '/', page: '/Home/Home' })
.add('test')
</code></pre></div>
<p dir="auto">and here is the code of my homepage in /src/pages/Home/Home</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class HomePage extends Component {
static async getInitialProps({ reduxStore, query, req }) {
const isServer = !!req
if (isServer) {
const locale = utils.parseLanguage(req.headers['accept-language'])
const device = utils.parseUA(req.headers['user-agent'])
const { pathname } = utils.parseUrl(req.url)
await Promise.all([
reduxStore.dispatch(detectDeviceType(device)),
reduxStore.dispatch(updateAppRoute({ pathname, query })),
reduxStore.dispatch(fetchChartsWeek(locale)),
reduxStore.dispatch(fetchTrendings(locale)),
])
}
return { isServer, query }
}
componentDidMount() {
console.log(this.props) // everything i need but no query or isServer..."><pre class="notranslate"><code class="notranslate">class HomePage extends Component {
static async getInitialProps({ reduxStore, query, req }) {
const isServer = !!req
if (isServer) {
const locale = utils.parseLanguage(req.headers['accept-language'])
const device = utils.parseUA(req.headers['user-agent'])
const { pathname } = utils.parseUrl(req.url)
await Promise.all([
reduxStore.dispatch(detectDeviceType(device)),
reduxStore.dispatch(updateAppRoute({ pathname, query })),
reduxStore.dispatch(fetchChartsWeek(locale)),
reduxStore.dispatch(fetchTrendings(locale)),
])
}
return { isServer, query }
}
componentDidMount() {
console.log(this.props) // everything i need but no query or isServer...
</code></pre></div>
<p dir="auto">a simpler exemple in /src/pages/test.js</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" static async getInitialProps({ req }) {
const isServer = !!req
return { isServer }
}
render() {
console.log(this.props) // {}"><pre class="notranslate"><code class="notranslate"> static async getInitialProps({ req }) {
const isServer = !!req
return { isServer }
}
render() {
console.log(this.props) // {}
</code></pre></div>
<p dir="auto">I really need to know whether the page is being rendered by the server or the client as i don't want to show placeholders when it is SSR and only display them when we naviguate to the page client side, so that in componentDidMount i would like to show placeholders and fetch data only when isServer = false if that makes sense.</p>
<p dir="auto">Does anyone already accountered this issue ?<br>
I really would like to switch to Nextjs. Currently we have our code base running in a CRA setup. We now have trouble with SEO so switching to nextjs seemed to be a great solution. However it is those kind of issues that are keeping me from adopting it completely :(</p>
<p dir="auto">Any help or suggestions would be really appreciated</p>
<p dir="auto">Thanks in advance</p> | <p dir="auto">When downloading, installing and running the Material UI example application, I am met with the following compile error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="These dependencies were not found:
* react-dom/lib/EventConstants in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
* react-dom/lib/EventPluginHub in ./node_modules/react-tap-event-plugin/src/injectTapEventPlugin.js
* react-dom/lib/EventPluginUtils in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
* react-dom/lib/EventPropagators in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
* react-dom/lib/SyntheticUIEvent in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
* react-dom/lib/ViewportMetrics in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
To install them, you can run: npm install --save react-dom/lib/EventConstants react-dom/lib/EventPluginHub react-dom/lib/EventPluginUtils react-dom/lib/EventPropagators react-dom/lib/SyntheticUIEvent react-dom/lib/ViewportMetrics
{ Invariant Violation: injectTapEventPlugin(): Can only be called once per application lifecycle.
It is recommended to call injectTapEventPlugin() just before you call ReactDOM.render(). If you are using an external library which calls injectTapEventPlugin() itself, please contact the maintainer as it shouldn't be called in library code and should be injected by the application.
at invariant (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/fbjs/lib/invariant.js:42:15)
at injectTapEventPlugin (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/react-tap-event-plugin/src/injectTapEventPlugin.js:11:5)
at Object.<anonymous> (/Users/michaelfriedman/Local/projects/with-material-ui-app/pages/index.js:14:3)
at Module._compile (module.js:635:30)
at Module._compile (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/source-map-support/source-map-support.js:492:25)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17) name: 'Invariant Violation', framesToPop: 1 }
{ Invariant Violation: injectTapEventPlugin(): Can only be called once per application lifecycle.
It is recommended to call injectTapEventPlugin() just before you call ReactDOM.render(). If you are using an external library which calls injectTapEventPlugin() itself, please contact the maintainer as it shouldn't be called in library code and should be injected by the application.
at invariant (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/fbjs/lib/invariant.js:42:15)
at injectTapEventPlugin (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/react-tap-event-plugin/src/injectTapEventPlugin.js:11:5)
at Object.<anonymous> (/Users/michaelfriedman/Local/projects/with-material-ui-app/pages/index.js:14:3)
at Module._compile (module.js:635:30)
at Module._compile (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/source-map-support/source-map-support.js:492:25)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17) name: 'Invariant Violation', framesToPop: 1 }"><pre class="notranslate"><code class="notranslate">These dependencies were not found:
* react-dom/lib/EventConstants in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
* react-dom/lib/EventPluginHub in ./node_modules/react-tap-event-plugin/src/injectTapEventPlugin.js
* react-dom/lib/EventPluginUtils in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
* react-dom/lib/EventPropagators in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
* react-dom/lib/SyntheticUIEvent in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
* react-dom/lib/ViewportMetrics in ./node_modules/react-tap-event-plugin/src/TapEventPlugin.js
To install them, you can run: npm install --save react-dom/lib/EventConstants react-dom/lib/EventPluginHub react-dom/lib/EventPluginUtils react-dom/lib/EventPropagators react-dom/lib/SyntheticUIEvent react-dom/lib/ViewportMetrics
{ Invariant Violation: injectTapEventPlugin(): Can only be called once per application lifecycle.
It is recommended to call injectTapEventPlugin() just before you call ReactDOM.render(). If you are using an external library which calls injectTapEventPlugin() itself, please contact the maintainer as it shouldn't be called in library code and should be injected by the application.
at invariant (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/fbjs/lib/invariant.js:42:15)
at injectTapEventPlugin (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/react-tap-event-plugin/src/injectTapEventPlugin.js:11:5)
at Object.<anonymous> (/Users/michaelfriedman/Local/projects/with-material-ui-app/pages/index.js:14:3)
at Module._compile (module.js:635:30)
at Module._compile (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/source-map-support/source-map-support.js:492:25)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17) name: 'Invariant Violation', framesToPop: 1 }
{ Invariant Violation: injectTapEventPlugin(): Can only be called once per application lifecycle.
It is recommended to call injectTapEventPlugin() just before you call ReactDOM.render(). If you are using an external library which calls injectTapEventPlugin() itself, please contact the maintainer as it shouldn't be called in library code and should be injected by the application.
at invariant (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/fbjs/lib/invariant.js:42:15)
at injectTapEventPlugin (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/react-tap-event-plugin/src/injectTapEventPlugin.js:11:5)
at Object.<anonymous> (/Users/michaelfriedman/Local/projects/with-material-ui-app/pages/index.js:14:3)
at Module._compile (module.js:635:30)
at Module._compile (/Users/michaelfriedman/Local/projects/with-material-ui-app/node_modules/source-map-support/source-map-support.js:492:25)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17) name: 'Invariant Violation', framesToPop: 1 }
</code></pre></div>
<ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>4.2.1</td>
</tr>
<tr>
<td>node</td>
<td>8.9.1</td>
</tr>
<tr>
<td>OS</td>
<td>High Sierra</td>
</tr>
<tr>
<td>browser</td>
<td>Firefox Developer Edition</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table> | 0 |
<p dir="auto">As pointed out in <a href="http://stackoverflow.com/questions/16976365/two-meshes-same-texture-different-offset" rel="nofollow">this</a> stackoverflow question, <code class="notranslate">.offset</code> and <code class="notranslate">.repeat</code> are properties of a texture, not a material.</p>
<p dir="auto">Suppose, for example, a user wants to share a spritesheet across multiple materials. Currently that is not possible, since <code class="notranslate">offset</code> is a property of the texture, and can only be set once.</p>
<p dir="auto">Also, making <code class="notranslate">offset</code> a property of a material would avoid the "uv repeat and offset setting priorities" in <code class="notranslate">WebGLRenderer</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" // uv repeat and offset setting priorities
// 1. color map
// 2. specular map
// 3. normal map
// 4. bump map"><pre class="notranslate"><code class="notranslate"> // uv repeat and offset setting priorities
// 1. color map
// 2. specular map
// 3. normal map
// 4. bump map
</code></pre></div>
<p dir="auto">This code logic forces all the texture offsets/repeats to be the same, anyway.</p>
<p dir="auto">Should <code class="notranslate">.offset</code> and <code class="notranslate">.repeat</code> be properties of a material instead?</p> | <p dir="auto">(Since docs are part of the repository, I'm assuming this is the right place to suggest this)</p>
<p dir="auto">Currently all internal links don't use href attribute, and as a result they can't be opened in a new tab with ctrl+click or right click, making the docs much harder to navigate.</p> | 0 |
<p dir="auto">In the following snippet <code class="notranslate">this</code> should be colorized<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/172399/13001496/ad147ad6-d166-11e5-8986-4357fefee8bc.png"><img src="https://cloud.githubusercontent.com/assets/172399/13001496/ad147ad6-d166-11e5-8986-4357fefee8bc.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">It is colorized when I use the monokai theme<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/172399/13001499/cc18324c-d166-11e5-9f08-a408ff10009c.png"><img src="https://cloud.githubusercontent.com/assets/172399/13001499/cc18324c-d166-11e5-9f08-a408ff10009c.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/aeschli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/aeschli">@aeschli</a> since <code class="notranslate">this</code> is colorized in monokai,this hints that this is an issue with the Dark+ theme?</p> | <ul dir="auto">
<li>Open nodeAppInsightsTelemtryAppender.ts#40</li>
<li>Notice broken colouring of comments inside contructor arguments</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1926584/13035008/ed1f36a4-d344-11e5-83df-caf715965c47.png"><img width="543" alt="screen shot 2016-02-14 at 18 00 03" src="https://cloud.githubusercontent.com/assets/1926584/13035008/ed1f36a4-d344-11e5-83df-caf715965c47.png" style="max-width: 100%;"></a></p>
<p dir="auto">Other problematic languages with deep scope hierarchies:</p>
<ul dir="auto">
<li>JSX tags</li>
<li>Java</li>
</ul> | 1 |
<details>
<summary>`versioninfo()`</summary>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> versioninfo()
Julia Version 1.5.1
Commit 697e782ab8 (2020-08-25 20:08 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.5.0)
CPU: Intel(R) Core(TM) m3-7Y32 CPU @ 1.10GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)"><pre lang="julia-repl" class="notranslate"><code class="notranslate">julia> versioninfo()
Julia Version 1.5.1
Commit 697e782ab8 (2020-08-25 20:08 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin19.5.0)
CPU: Intel(R) Core(TM) m3-7Y32 CPU @ 1.10GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-9.0.1 (ORCJIT, skylake)
</code></pre></div>
</details>
<p dir="auto">Currently:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> f(;x) = "x = $x"
f (generic function with 1 method)
julia> f(x=1)
"x = 1"
julia> f(;y) = "y = $y"
f (generic function with 1 method)
julia> f(x=1)
ERROR: UndefKeywordError: keyword argument y not assigned
Stacktrace:
[1] top-level scope at REPL[7]:1"><pre lang="julia-repl" class="notranslate"><code class="notranslate">julia> f(;x) = "x = $x"
f (generic function with 1 method)
julia> f(x=1)
"x = 1"
julia> f(;y) = "y = $y"
f (generic function with 1 method)
julia> f(x=1)
ERROR: UndefKeywordError: keyword argument y not assigned
Stacktrace:
[1] top-level scope at REPL[7]:1
</code></pre></div>
<p dir="auto">x and y are not specified by default, so this cannot be treated as function redefinition.</p>
<p dir="auto">However, I understand the problem here: while <code class="notranslate">f(;x)</code>, <code class="notranslate">f(;y)</code> or <code class="notranslate">f(;x=1)</code>, <code class="notranslate">f(;y)</code> are different function definitions, <code class="notranslate">f(;x=1)</code>, <code class="notranslate">f(;y=2)</code> contain function redefinition.</p>
<p dir="auto">Expected behavior:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> f(;x) = "x = $x"
f (generic function with 1 method)
julia> f(;y) = "y = $y"
f (generic function with 2 methods)
julia> f(x=1)
"x = 1"
julia> f(y=1)
"y = 1"
julia> g(;x=1) = "x = $x"
g (generic function with 1 method)
julia> g()
"x = 1"
julia> g(;y=2) = "y = $y"
g (generic function with 2 methods)
julia> g()
"y = 2"
julia> g(x=8)
"x = 8"
julia> g(y=12)
"y = 12""><pre lang="julia-repl" class="notranslate"><code class="notranslate">julia> f(;x) = "x = $x"
f (generic function with 1 method)
julia> f(;y) = "y = $y"
f (generic function with 2 methods)
julia> f(x=1)
"x = 1"
julia> f(y=1)
"y = 1"
julia> g(;x=1) = "x = $x"
g (generic function with 1 method)
julia> g()
"x = 1"
julia> g(;y=2) = "y = $y"
g (generic function with 2 methods)
julia> g()
"y = 2"
julia> g(x=8)
"x = 8"
julia> g(y=12)
"y = 12"
</code></pre></div>
<p dir="auto">This way it's probably less confusing.</p>
<p dir="auto">PS: This example here is only to show the problem, here it is probably easier just to use <code class="notranslate">f(; kw...)</code> and process them later. However, sometimes different argument names correspond to completely different characteristics of a function so it would be easier to just define them as 2 different functions rather than processing kw args.</p> | <p dir="auto">Not sure whether this is by design or something can be improved upon.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="myfunc(; x::Int64=1) = x + 1
myfunc(; y::Int64=1) = y + 1"><pre class="notranslate"><code class="notranslate">myfunc(; x::Int64=1) = x + 1
myfunc(; y::Int64=1) = y + 1
</code></pre></div>
<p dir="auto">Below are the results of calling these functions.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia> myfunc(x=1);
ERROR: unrecognized keyword argument "x"
julia> myfunc(y=2);"><pre class="notranslate"><code class="notranslate">julia> myfunc(x=1);
ERROR: unrecognized keyword argument "x"
julia> myfunc(y=2);
</code></pre></div>
<p dir="auto">The second definition of <code class="notranslate">myfunc</code> overrides the first one given that keyword arguments are not part of the function signature. It implies we can define generic functions with different keyword arguments.</p>
<p dir="auto">The question is whether it is by design, or is there any way to achieve the similar effect?</p> | 1 |
<p dir="auto">This snippet: (<a href="http://is.gd/KI4QhD" rel="nofollow">Playpen link</a>)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#![allow(unstable)]
extern crate test;
fn main() {
let a: Vec<u8> = Vec::with_capacity(::std::usize::MAX);
::test::black_box(a);
}"><pre class="notranslate"><code class="notranslate">#![allow(unstable)]
extern crate test;
fn main() {
let a: Vec<u8> = Vec::with_capacity(::std::usize::MAX);
::test::black_box(a);
}
</code></pre></div>
<p dir="auto">Causes the program to close with a SIGILL (Illegal instruction) error. I would have expected something like a SIGSEGV instead.</p> | <p dir="auto">I get an ICE compiling this function:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="use std::num;
use std::num::Int;
/// Iterates the cumulative sum
pub fn cumulative_sum<T, I>(iter: I) -> std::iter::Scan<'static, T, T, I, T>
where T: Clone + num::Int + Add<T, T>, I: Iterator<T> {
let z: T = num::Int::zero();
iter.scan(z, |acc, x| {
*acc = *acc + x;
Some(acc.clone())
})
}"><pre class="notranslate"><span class="pl-k">use</span> std<span class="pl-kos">::</span>num<span class="pl-kos">;</span>
<span class="pl-k">use</span> std<span class="pl-kos">::</span>num<span class="pl-kos">::</span><span class="pl-v">Int</span><span class="pl-kos">;</span>
<span class="pl-c">/// Iterates the cumulative sum</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">cumulative_sum</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">I</span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-s1">iter</span><span class="pl-kos">:</span> <span class="pl-smi">I</span><span class="pl-kos">)</span> -> std<span class="pl-kos">::</span>iter<span class="pl-kos">::</span><span class="pl-smi">Scan</span><span class="pl-kos"><</span><span class="pl-c1">'</span><span class="pl-ent">static</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">I</span><span class="pl-kos">,</span> <span class="pl-smi">T</span><span class="pl-kos">></span>
<span class="pl-k">where</span> <span class="pl-smi">T</span><span class="pl-kos">:</span> <span class="pl-smi">Clone</span> + num<span class="pl-kos">::</span><span class="pl-smi">Int</span> + <span class="pl-smi">Add</span><span class="pl-kos"><</span><span class="pl-smi">T</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">I</span><span class="pl-kos">:</span> <span class="pl-smi">Iterator</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> z<span class="pl-kos">:</span> <span class="pl-smi">T</span> = num<span class="pl-kos">::</span><span class="pl-smi">Int</span><span class="pl-kos">::</span><span class="pl-en">zero</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
iter<span class="pl-kos">.</span><span class="pl-en">scan</span><span class="pl-kos">(</span>z<span class="pl-kos">,</span> |acc<span class="pl-kos">,</span> x| <span class="pl-kos">{</span>
<span class="pl-c1">*</span>acc = <span class="pl-c1">*</span>acc + x<span class="pl-kos">;</span>
<span class="pl-v">Some</span><span class="pl-kos">(</span>acc<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-kos">}</span><span class="pl-kos">)</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">I'll grant it's odd and unecessary to have imported <code class="notranslate">Int</code> yet still refer to <code class="notranslate">num::Int</code>, but apparently this hits a corner case the compiler isn't prepared for.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version
rustc 0.13.0-dev (88c743def 2014-11-17 14:22:03 +0000)
$ RUST_BACKTRACE=1 rustc --crate-type lib unused_qual_crash.rs
unused_qual_crash.rs:6:18: 6:26 error: internal compiler error: unprocessed lint unused_qualifications at unknown node (id=25): unnecessary qualification
unused_qual_crash.rs:6 where T: Clone + num::Int + Add<T, T>, I: Iterator<T> {
^~~~~~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'Box<Any>', [...]/rust/src/libsyntax/diagnostic.rs:116
stack backtrace:
1: 0x7fb45ed2de90 - rt::backtrace::imp::write::h63476d4ec99e2e5bBSs
2: 0x7fb45ed30b20 - failure::on_fail::hef753ccd1a60125cnet
3: 0x7fb45f4fb520 - unwind::begin_unwind_inner::h20b00ee5cda00f1eKad
4: 0x7fb45dc8d600 - unwind::begin_unwind::h4448905161337545584
5: 0x7fb45dc8d590 - diagnostic::SpanHandler::span_bug::hb65fb107581599d5P3F
6: 0x7fb4601c17d0 - lint::context::check_crate::he3a56a83f9bf35f1fWL
7: 0x7fb45f90b330 - util::common::time::h4558342479339418325
8: 0x7fb46016dba0 - driver::driver::phase_3_run_analysis_passes::he8cb5260bcd2aa4cYzD
9: 0x7fb460169030 - driver::driver::compile_input::hc51acae736c7c311IgD
10: 0x7fb4601e76f0 - driver::run_compiler::h110d0899a23a77f34bH
11: 0x7fb4601e75e0 - driver::run::closure.167591
12: 0x7fb45f924f40 - task::TaskBuilder<S>::try_future::closure.105067
13: 0x7fb45f924d00 - task::TaskBuilder<S>::spawn_internal::closure.105036
14: 0x7fb460a4ba60 - task::NativeSpawner.Spawner::spawn::closure.2461
15: 0x7fb45f55f0d0 - rust_try_inner
16: 0x7fb45f55f0c0 - rust_try
17: 0x7fb45f4f8ea0 - unwind::try::h5a55025d92b76095mZc
18: 0x7fb45f4f8d00 - task::Task::run::h2394b9dc89bd77b2c5b
19: 0x7fb460a4b7c0 - task::NativeSpawner.Spawner::spawn::closure.2385
20: 0x7fb45f4fa560 - thread::thread_start::hd6b918d48ba54e58iqc
21: 0x7fb45a7a6e20 - start_thread
22: 0x7fb45f1c0b59 - clone
23: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">$ rustc --version
rustc 0.13.0-dev (88c743def 2014-11-17 14:22:03 +0000)
$ RUST_BACKTRACE=1 rustc --crate-type lib unused_qual_crash.rs
unused_qual_crash.rs:6:18: 6:26 error: internal compiler error: unprocessed lint unused_qualifications at unknown node (id=25): unnecessary qualification
unused_qual_crash.rs:6 where T: Clone + num::Int + Add<T, T>, I: Iterator<T> {
^~~~~~~~
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
task 'rustc' panicked at 'Box<Any>', [...]/rust/src/libsyntax/diagnostic.rs:116
stack backtrace:
1: 0x7fb45ed2de90 - rt::backtrace::imp::write::h63476d4ec99e2e5bBSs
2: 0x7fb45ed30b20 - failure::on_fail::hef753ccd1a60125cnet
3: 0x7fb45f4fb520 - unwind::begin_unwind_inner::h20b00ee5cda00f1eKad
4: 0x7fb45dc8d600 - unwind::begin_unwind::h4448905161337545584
5: 0x7fb45dc8d590 - diagnostic::SpanHandler::span_bug::hb65fb107581599d5P3F
6: 0x7fb4601c17d0 - lint::context::check_crate::he3a56a83f9bf35f1fWL
7: 0x7fb45f90b330 - util::common::time::h4558342479339418325
8: 0x7fb46016dba0 - driver::driver::phase_3_run_analysis_passes::he8cb5260bcd2aa4cYzD
9: 0x7fb460169030 - driver::driver::compile_input::hc51acae736c7c311IgD
10: 0x7fb4601e76f0 - driver::run_compiler::h110d0899a23a77f34bH
11: 0x7fb4601e75e0 - driver::run::closure.167591
12: 0x7fb45f924f40 - task::TaskBuilder<S>::try_future::closure.105067
13: 0x7fb45f924d00 - task::TaskBuilder<S>::spawn_internal::closure.105036
14: 0x7fb460a4ba60 - task::NativeSpawner.Spawner::spawn::closure.2461
15: 0x7fb45f55f0d0 - rust_try_inner
16: 0x7fb45f55f0c0 - rust_try
17: 0x7fb45f4f8ea0 - unwind::try::h5a55025d92b76095mZc
18: 0x7fb45f4f8d00 - task::Task::run::h2394b9dc89bd77b2c5b
19: 0x7fb460a4b7c0 - task::NativeSpawner.Spawner::spawn::closure.2385
20: 0x7fb45f4fa560 - thread::thread_start::hd6b918d48ba54e58iqc
21: 0x7fb45a7a6e20 - start_thread
22: 0x7fb45f1c0b59 - clone
23: 0x0 - <unknown>
</code></pre></div>
<p dir="auto">The flagged qualification can't actually be removed, because it's needed for <code class="notranslate">zero()</code>, but things work fine if I change it from <code class="notranslate">num::Int</code> to just <code class="notranslate">Int</code>.</p> | 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jslate" rel="nofollow">Jonathan Slate</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-3464?redirect=false" rel="nofollow">SPR-3464</a></strong> and commented</p>
<p dir="auto">When loading a form using SimpleFormController, if the Object formBackingObject provides contains an Object that also exists in a list of Objects within the Map provided by referenceData, those two objects must be exactly equivalent (equals method) in order to have the correct item selected in a drop-down list (or similar). I'd like to instead be able to have the Object's PropertyEditor's getAsText method used to get a String representation of the Objects, and have the Strings compared. This could either be the default behavior or a settable option.</p>
<p dir="auto">Here's an example: you have form where a user can edit their address. The form backing Object is a Person which contains several address fields including a Country. With referenceData you also provide a Map that includes a list of all countries in the world. The form will include a drop-down menu with a list of all countries, and the Person's current Country should be pre-selected from that list. With the current behavior, the Person's Country and the Country in the list of countries must be equivalent (equals returns true) for the pre-selection to occur. I'd like to be able to use the CountryEditor property editor to compare the ID numbers instead. This way, if they have the same ID number they are considered equivalent within the form, without having to override the equals method.</p>
<p dir="auto">Also, when you submit the form, setAsText is used to take the ID that is sent to the server and turn it into an actual Country object. So using getAsText when the form loads as described above seems more consistent with the behavior that occurs when the form submits.</p>
<p dir="auto">There is a discussion in the Spring forums on this topic here:<br>
<a href="http://forum.springframework.org/showthread.php?t=38332" rel="nofollow">http://forum.springframework.org/showthread.php?t=38332</a></p>
<p dir="auto">Jörg Heinicke states in that thread more eloquently than I can:<br>
You have some really valid points. At the end you externalize the object comparisons (normally done by equals()) to the property editors (done by string representations) and so make it reusable and changeable. The comparison criteria of an object type might change in different use cases (changeable). Or the same comparison criteria might apply to different object types (reusable), e.g. all persistent objects can be compared by their ID - and you neither need to duplicate this equals() code nor introduce an abstract base class.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.1</p>
<p dir="auto">3 votes, 4 watchers</p> | <p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=aldana" rel="nofollow">Manuel Aldana</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4239?redirect=false" rel="nofollow">SPR-4239</a></strong> and commented</p>
<p dir="auto">java.lang.Properties are bound to xml configuration:<br>
<props><br>
<prop key="any.key">anyValue</prop><br>
</props></p>
<p dir="auto">a shorter, less verbose version would be better readable, for instance like following:<br>
<props><br>
<prop key="any.key" value="anyValue"/><br>
</props></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.0.6</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398083757" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/8916" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/8916/hovercard" href="https://github.com/spring-projects/spring-framework/issues/8916">#8916</a> Support value on prop tag (<em><strong>"is duplicated by"</strong></em>)</li>
</ul> | 0 |
<p dir="auto">Invalid email with space between the userame and the @ will be treated as valid email</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""fakeEmail @fakeDomain.com""><pre class="notranslate"><code class="notranslate">"fakeEmail @fakeDomain.com"
</code></pre></div>
<p dir="auto">I found that the issue in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="File: vendor/symfony/symfony/src/Symfony/Component/Validator/Constraints/EmailValidator.php
Line No: 83
} elseif (!preg_match('/^.+\@\S+\.\S+$/', $value)) {"><pre class="notranslate"><code class="notranslate">File: vendor/symfony/symfony/src/Symfony/Component/Validator/Constraints/EmailValidator.php
Line No: 83
} elseif (!preg_match('/^.+\@\S+\.\S+$/', $value)) {
</code></pre></div>
<p dir="auto">It worked after I replace that line with this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="} elseif (!preg_match('/^(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){255,})(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){65,}@)(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22))(?:\.(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\]))$/iD', $value)) {"><pre class="notranslate"><code class="notranslate">} elseif (!preg_match('/^(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){255,})(?!(?:(?:\x22?\x5C[\x00-\x7E]\x22?)|(?:\x22?[^\x5C\x22]\x22?)){65,}@)(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22))(?:\.(?:(?:[\x21\x23-\x27\x2A\x2B\x2D\x2F-\x39\x3D\x3F\x5E-\x7E]+)|(?:\x22(?:[\x01-\x08\x0B\x0C\x0E-\x1F\x21\x23-\x5B\x5D-\x7F]|(?:\x5C[\x00-\x7F]))*\x22)))*@(?:(?:(?!.*[^.]{64,})(?:(?:(?:xn--)?[a-z0-9]+(?:-[a-z0-9]+)*\.){1,126}){1,}(?:(?:[a-z][a-z0-9]*)|(?:(?:xn--)[a-z0-9]+))(?:-[a-z0-9]+)*)|(?:\[(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){7})|(?:(?!(?:.*[a-f0-9][:\]]){7,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,5})?)))|(?:(?:IPv6:(?:(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){5}:)|(?:(?!(?:.*[a-f0-9]:){5,})(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3})?::(?:[a-f0-9]{1,4}(?::[a-f0-9]{1,4}){0,3}:)?)))?(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))(?:\.(?:(?:25[0-5])|(?:2[0-4][0-9])|(?:1[0-9]{2})|(?:[1-9]?[0-9]))){3}))\]))$/iD', $value)) {
</code></pre></div> | <p dir="auto">before its checking for<br>
FILTER_VALIDATE_EMAIL</p>
<p dir="auto">but now its not checking even basic validations for valid email.<br>
like "kuldip <a href="mailto:[email protected]">[email protected]</a>" it allow with space which must not allowed.</p>
<p dir="auto">we can use regular expression from following<br>
<a href="https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address" rel="nofollow">https://html.spec.whatwg.org/multipage/forms.html#valid-e-mail-address</a></p>
<p dir="auto">or we can use FILTER_VALIDATE_EMAIL if strict is false</p> | 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0
Any other software: Visual Studio 2017 (I guess it fails with other VS versions)"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.175
Windows Terminal version (if applicable): 0.2.1715.0
Any other software: Visual Studio 2017 (I guess it fails with other VS versions)
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Add this entry to <code class="notranslate">profile.json</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" {
"acrylicOpacity" : 0.75,
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : "cmd.exe /k \"%PROGRAMFILES(X86)%\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\VsDevCmd.bat\"",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 10,
"guid" : "{1748ecca-abdd-4aa4-bcc4-9fca0d045be5}",
"historySize" : 9001,
"icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
"name" : "VS cmd",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
},"><pre class="notranslate"><code class="notranslate"> {
"acrylicOpacity" : 0.75,
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : "cmd.exe /k \"%PROGRAMFILES(X86)%\\Microsoft Visual Studio\\2017\\Community\\Common7\\Tools\\VsDevCmd.bat\"",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 10,
"guid" : "{1748ecca-abdd-4aa4-bcc4-9fca0d045be5}",
"historySize" : 9001,
"icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
"name" : "VS cmd",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
},
</code></pre></div>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Initializes the <a href="https://docs.microsoft.com/en-us/dotnet/framework/tools/developer-command-prompt-for-vs" rel="nofollow">Developer Command prompt for visual studio</a></p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The batch script does not executes and fails like this:</p>
<p dir="auto">'C:\Program' is not recognized as an internal or external command,<br>
operable program or batch file.</p> | <h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [run "ver" at a command prompt]
Windows Terminal version (if applicable):
Any other software?
</code></pre></div>
<p dir="auto">Today I modified the Windows Terminal configuration file and wanted to create a Pwsh with the emoji title. However, I encountered some confusion in this process. I checked the task manager and found that conhost did not escape when the process was started, causing the command line to parse the exception.</p>
<h1 dir="auto">Steps to reproduce</h1>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">I need to start pwsh by the following command line (note that the following command line is in cmd, or you can start pwsh normally using CreateProcessW.)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""C:\Program Files\PowerShell\7-preview\pwsh.exe" -NoExit -Command "$Host.UI.RawUI.WindowTitle=\"Windows Pwsh 💙 (7 Preview)\"""><pre class="notranslate"><code class="notranslate">"C:\Program Files\PowerShell\7-preview\pwsh.exe" -NoExit -Command "$Host.UI.RawUI.WindowTitle=\"Windows Pwsh 💙 (7 Preview)\""
</code></pre></div>
<p dir="auto">Here is the Windows Terminal configuration file (the command line has been properly escaped):</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" {
"startingDirectory": "C:\\Users\\CharlieInc",
"guid": "{08a0be98-ff68-4e3a-a054-0fbd3969d3bb}",
"name": "Windows Pwsh 💙 (7 Preview)",
"colorscheme": "Campbell",
"historySize": 9001,
"snapOnInput": true,
"cursorColor": "#FFFFFF",
"cursorShape": "bar",
"commandline": "\"C:\\Program Files\\PowerShell\\7-preview\\pwsh.exe\" -NoExit -Command \"$Host.UI.RawUI.WindowTitle=\\\"Windows Pwsh 💙 (7 Preview)\\\"\"",
"fontFace": "Consolas",
"fontSize": 12,
"acrylicOpacity": 0.75,
"useAcrylic": true,
"closeOnExit": false,
"padding": "0, 0, 0, 0",
"icon": "ms-appdata:///roaming/pwsh-32.png"
}"><pre class="notranslate"> {
<span class="pl-ent">"startingDirectory"</span>: <span class="pl-s"><span class="pl-pds">"</span>C:<span class="pl-cce">\\</span>Users<span class="pl-cce">\\</span>CharlieInc<span class="pl-pds">"</span></span>,
<span class="pl-ent">"guid"</span>: <span class="pl-s"><span class="pl-pds">"</span>{08a0be98-ff68-4e3a-a054-0fbd3969d3bb}<span class="pl-pds">"</span></span>,
<span class="pl-ent">"name"</span>: <span class="pl-s"><span class="pl-pds">"</span>Windows Pwsh 💙 (7 Preview)<span class="pl-pds">"</span></span>,
<span class="pl-ent">"colorscheme"</span>: <span class="pl-s"><span class="pl-pds">"</span>Campbell<span class="pl-pds">"</span></span>,
<span class="pl-ent">"historySize"</span>: <span class="pl-c1">9001</span>,
<span class="pl-ent">"snapOnInput"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"cursorColor"</span>: <span class="pl-s"><span class="pl-pds">"</span>#FFFFFF<span class="pl-pds">"</span></span>,
<span class="pl-ent">"cursorShape"</span>: <span class="pl-s"><span class="pl-pds">"</span>bar<span class="pl-pds">"</span></span>,
<span class="pl-ent">"commandline"</span>: <span class="pl-s"><span class="pl-pds">"</span><span class="pl-cce">\"</span>C:<span class="pl-cce">\\</span>Program Files<span class="pl-cce">\\</span>PowerShell<span class="pl-cce">\\</span>7-preview<span class="pl-cce">\\</span>pwsh.exe<span class="pl-cce">\"</span> -NoExit -Command <span class="pl-cce">\"</span>$Host.UI.RawUI.WindowTitle=<span class="pl-cce">\\\"</span>Windows Pwsh 💙 (7 Preview)<span class="pl-cce">\\\"\"</span><span class="pl-pds">"</span></span>,
<span class="pl-ent">"fontFace"</span>: <span class="pl-s"><span class="pl-pds">"</span>Consolas<span class="pl-pds">"</span></span>,
<span class="pl-ent">"fontSize"</span>: <span class="pl-c1">12</span>,
<span class="pl-ent">"acrylicOpacity"</span>: <span class="pl-c1">0.75</span>,
<span class="pl-ent">"useAcrylic"</span>: <span class="pl-c1">true</span>,
<span class="pl-ent">"closeOnExit"</span>: <span class="pl-c1">false</span>,
<span class="pl-ent">"padding"</span>: <span class="pl-s"><span class="pl-pds">"</span>0, 0, 0, 0<span class="pl-pds">"</span></span>,
<span class="pl-ent">"icon"</span>: <span class="pl-s"><span class="pl-pds">"</span>ms-appdata:///roaming/pwsh-32.png<span class="pl-pds">"</span></span>
}</pre></div>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">As expected, Pwsh should set the title correctly, but pwsh reported the error:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741634-e7558300-844d-11e9-9b7e-dcdff905ffa3.png"><img src="https://user-images.githubusercontent.com/6904176/58741634-e7558300-844d-11e9-9b7e-dcdff905ffa3.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Let's take a look at the command line:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741674-49ae8380-844e-11e9-9ca4-43ce9bf4b1ab.png"><img src="https://user-images.githubusercontent.com/6904176/58741674-49ae8380-844e-11e9-9ca4-43ce9bf4b1ab.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6904176/58741666-38657700-844e-11e9-8711-e813c22bc137.png"><img src="https://user-images.githubusercontent.com/6904176/58741666-38657700-844e-11e9-8711-e813c22bc137.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">When you see the red line, the command line that pwsh starts is incorrect, and when you start conhost, the command line is still correct!</p>
<p dir="auto">Currently I have found a suspicious code, most likely this code caused an error:</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/microsoft/terminal/blob/71e19cd82528d66a0a7867cbed85990cfc1685f1/src/host/ConsoleArguments.cpp#L263-L288">terminal/src/host/ConsoleArguments.cpp</a>
</p>
<p class="mb-0 color-fg-muted">
Lines 263 to 288
in
<a data-pjax="true" class="commit-tease-sha" href="/microsoft/terminal/commit/71e19cd82528d66a0a7867cbed85990cfc1685f1">71e19cd</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="L263" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="263"></td>
<td id="LC263" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> HRESULT <span class="pl-en">ConsoleArguments::_GetClientCommandline</span>(_Inout_ std::vector<std::wstring>& args, <span class="pl-k">const</span> <span class="pl-c1">size_t</span> index, <span class="pl-k">const</span> <span class="pl-k">bool</span> skipFirst) </td>
</tr>
<tr class="border-0">
<td id="L264" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="264"></td>
<td id="LC264" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L265" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="265"></td>
<td id="LC265" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">auto</span> start = args.<span class="pl-c1">begin</span>()+<span class="pl-c1">index</span>; </td>
</tr>
<tr class="border-0">
<td id="L266" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="266"></td>
<td id="LC266" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L267" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="267"></td>
<td id="LC267" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Erase the first token.</span> </td>
</tr>
<tr class="border-0">
<td id="L268" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="268"></td>
<td id="LC268" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Used to get rid of the explicit commandline token "--"</span> </td>
</tr>
<tr class="border-0">
<td id="L269" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="269"></td>
<td id="LC269" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (skipFirst) </td>
</tr>
<tr class="border-0">
<td id="L270" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="270"></td>
<td id="LC270" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L271" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="271"></td>
<td id="LC271" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c"><span class="pl-c">//</span> Make sure that the arg we're deleting is "--"</span> </td>
</tr>
<tr class="border-0">
<td id="L272" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="272"></td>
<td id="LC272" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">FAIL_FAST_IF</span>(!(CLIENT_COMMANDLINE_ARG == start-><span class="pl-c1">c_str</span>())); </td>
</tr>
<tr class="border-0">
<td id="L273" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="273"></td>
<td id="LC273" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> args.<span class="pl-c1">erase</span>(start); </td>
</tr>
<tr class="border-0">
<td id="L274" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="274"></td>
<td id="LC274" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td>
</tr>
<tr class="border-0">
<td id="L275" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="275"></td>
<td id="LC275" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L276" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="276"></td>
<td id="LC276" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline = <span class="pl-s"><span class="pl-pds">L"</span><span class="pl-pds">"</span></span>; </td>
</tr>
<tr class="border-0">
<td id="L277" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="277"></td>
<td id="LC277" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-c1">size_t</span> j = <span class="pl-c1">0</span>; </td>
</tr>
<tr class="border-0">
<td id="L278" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="278"></td>
<td id="LC278" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">for</span> (j = <span class="pl-c1">index</span>; j < args.<span class="pl-c1">size</span>(); j++) </td>
</tr>
<tr class="border-0">
<td id="L279" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="279"></td>
<td id="LC279" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L280" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="280"></td>
<td id="LC280" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline += args[j]; </td>
</tr>
<tr class="border-0">
<td id="L281" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="281"></td>
<td id="LC281" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> (j+<span class="pl-c1">1</span> < args.<span class="pl-c1">size</span>()) </td>
</tr>
<tr class="border-0">
<td id="L282" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="282"></td>
<td id="LC282" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> { </td>
</tr>
<tr class="border-0">
<td id="L283" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="283"></td>
<td id="LC283" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> _clientCommandline += <span class="pl-s"><span class="pl-pds">L"</span> <span class="pl-pds">"</span></span>; </td>
</tr>
<tr class="border-0">
<td id="L284" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="284"></td>
<td id="LC284" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td>
</tr>
<tr class="border-0">
<td id="L285" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="285"></td>
<td id="LC285" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> } </td>
</tr>
<tr class="border-0">
<td id="L286" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="286"></td>
<td id="LC286" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> args.<span class="pl-c1">erase</span>(args.<span class="pl-c1">begin</span>()+<span class="pl-c1">index</span>, args.<span class="pl-c1">begin</span>()+j); </td>
</tr>
<tr class="border-0">
<td id="L287" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="287"></td>
<td id="LC287" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> </td>
</tr>
<tr class="border-0">
<td id="L288" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="288"></td>
<td id="LC288" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">return</span> S_OK; </td>
</tr>
</tbody></table>
</div>
</div>
<p></p>
<p dir="auto">In this code, command line composition is simply a simple connection rather than a concatenated string. If the string contains spaces, this will result in an incorrect command line.</p>
<p dir="auto">Below is a code for the command line escaping, which may be useful:</p>
<div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="inline std::wstring escape_argument(std::wstring_view ac) {
if (ac.empty()) {
return L"\"\"";
}
bool hasspace = false;
auto n = ac.size();
for (auto c : ac) {
switch (c) {
case L'"':
case L'\\':
n++;
break;
case ' ':
case '\t':
hasspace = true;
break;
default:
break;
}
}
if (hasspace) {
n += 2;
}
if (n == ac.size()) {
return std::wstring(ac.data(), ac.size());
}
std::wstring buf;
if (hasspace) {
buf.push_back(L'"');
}
size_t slashes = 0;
for (auto c : ac) {
switch (c) {
case L'\\':
slashes++;
buf.push_back(L'\\');
break;
case L'"': {
for (; slashes > 0; slashes--) {
buf.push_back(L'\\');
}
buf.push_back(L'\\');
buf.push_back(c);
} break;
default:
slashes = 0;
buf.push_back(c);
break;
}
}
if (hasspace) {
for (; slashes > 0; slashes--) {
buf.push_back(L'\\');
}
buf.push_back(L'"');
}
return buf;
}"><pre class="notranslate"><span class="pl-k">inline</span> std::wstring <span class="pl-en">escape_argument</span>(std::wstring_view ac) {
<span class="pl-k">if</span> (ac.<span class="pl-c1">empty</span>()) {
<span class="pl-k">return</span> <span class="pl-s"><span class="pl-pds">L"</span><span class="pl-cce">\"\"</span><span class="pl-pds">"</span></span>;
}
<span class="pl-k">bool</span> hasspace = <span class="pl-c1">false</span>;
<span class="pl-k">auto</span> n = ac.<span class="pl-c1">size</span>();
<span class="pl-k">for</span> (<span class="pl-k">auto</span> c : ac) {
<span class="pl-k">switch</span> (c) {
<span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>:
<span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>:
n++;
<span class="pl-k">break</span>;
<span class="pl-k">case</span> <span class="pl-s"><span class="pl-pds">'</span> <span class="pl-pds">'</span></span>:
<span class="pl-k">case</span> <span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\t</span><span class="pl-pds">'</span></span>:
hasspace = <span class="pl-c1">true</span>;
<span class="pl-k">break</span>;
<span class="pl-k">default</span>:
<span class="pl-k">break</span>;
}
}
<span class="pl-k">if</span> (hasspace) {
n += <span class="pl-c1">2</span>;
}
<span class="pl-k">if</span> (n == ac.<span class="pl-c1">size</span>()) {
<span class="pl-k">return</span> <span class="pl-c1">std::wstring</span>(ac.<span class="pl-c1">data</span>(), ac.<span class="pl-c1">size</span>());
}
std::wstring buf;
<span class="pl-k">if</span> (hasspace) {
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>);
}
<span class="pl-c1">size_t</span> slashes = <span class="pl-c1">0</span>;
<span class="pl-k">for</span> (<span class="pl-k">auto</span> c : ac) {
<span class="pl-k">switch</span> (c) {
<span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>:
slashes++;
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>);
<span class="pl-k">break</span>;
<span class="pl-k">case</span> L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>: {
<span class="pl-k">for</span> (; slashes > <span class="pl-c1">0</span>; slashes--) {
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>);
}
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>);
buf.<span class="pl-c1">push_back</span>(c);
} <span class="pl-k">break</span>;
<span class="pl-k">default</span>:
slashes = <span class="pl-c1">0</span>;
buf.<span class="pl-c1">push_back</span>(c);
<span class="pl-k">break</span>;
}
}
<span class="pl-k">if</span> (hasspace) {
<span class="pl-k">for</span> (; slashes > <span class="pl-c1">0</span>; slashes--) {
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span><span class="pl-cce">\\</span><span class="pl-pds">'</span></span>);
}
buf.<span class="pl-c1">push_back</span>(L<span class="pl-s"><span class="pl-pds">'</span>"<span class="pl-pds">'</span></span>);
}
<span class="pl-k">return</span> buf;
}</pre></div> | 1 |
<p dir="auto">I have a page which have more than 50 checkbox, the response is slow when click checkbox. It seems be fixed when I add shouldComponentUpdate().</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" shouldComponentUpdate: function shouldComponentUpdate(nextProps, nextState) {
return nextState.switched !== this.state.switched;
},"><pre class="notranslate"> <span class="pl-s1">shouldComponentUpdate</span>: <span class="pl-k">function</span> <span class="pl-en">shouldComponentUpdate</span><span class="pl-kos">(</span><span class="pl-s1">nextProps</span><span class="pl-kos">,</span> <span class="pl-s1">nextState</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-s1">nextState</span><span class="pl-kos">.</span><span class="pl-c1">switched</span> <span class="pl-c1">!==</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">switched</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span></pre></div> | <p dir="auto">In my project I'm having an issue that only appears on mobile. Couldn't reproduce that behavior on codesandbox though. There the popover behaves the same on PC and mobile.</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Here's a link to codesandbox example:<br>
<a href="https://codesandbox.io/s/nw8x1l479j" rel="nofollow">https://codesandbox.io/s/nw8x1l479j</a><br>
Click the right item to see the issue</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>1.0.0-beta.19</td>
</tr>
<tr>
<td>React</td>
<td>16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table> | 0 |
<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"> 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"> 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"> 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"> 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"> 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"> 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"> 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>
<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>:<br>
5.1.2</p>
<h1 dir="auto">Steps to Reproduce</h1>
<p dir="auto">With Celery<code class="notranslate">4.4.7</code>, I used to clean my dynamic tasks on startup this way:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery.bin import amqp
@app.on_after_finalize.connect
def setup_periodic_tasks(sender, **kwargs):
amqp_ = amqp.amqp(app=app)
amqp_.run('queue.purge', 'my_task_queue_name')
# .. follows my tasks definition here .."><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">bin</span> <span class="pl-k">import</span> <span class="pl-s1">amqp</span>
<span class="pl-en">@<span class="pl-s1">app</span>.<span class="pl-s1">on_after_finalize</span>.<span class="pl-s1">connect</span></span>
<span class="pl-k">def</span> <span class="pl-en">setup_periodic_tasks</span>(<span class="pl-s1">sender</span>, <span class="pl-c1">**</span><span class="pl-s1">kwargs</span>):
<span class="pl-s1">amqp_</span> <span class="pl-c1">=</span> <span class="pl-s1">amqp</span>.<span class="pl-en">amqp</span>(<span class="pl-s1">app</span><span class="pl-c1">=</span><span class="pl-s1">app</span>)
<span class="pl-s1">amqp_</span>.<span class="pl-en">run</span>(<span class="pl-s">'queue.purge'</span>, <span class="pl-s">'my_task_queue_name'</span>)
<span class="pl-c"># .. follows my tasks definition here ..</span></pre></div>
<p dir="auto">After upgrading to <code class="notranslate">v5.1.2</code>, this line:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" amqp_ = amqp.amqp(app=app)"><pre class="notranslate"> <span class="pl-s1">amqp_</span> <span class="pl-c1">=</span> <span class="pl-s1">amqp</span>.<span class="pl-en">amqp</span>(<span class="pl-s1">app</span><span class="pl-c1">=</span><span class="pl-s1">app</span>)</pre></div>
<p dir="auto">Raises this error:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="__init__() got an unexpected keyword argument 'app'"><pre class="notranslate"><span class="pl-en">__init__</span>() <span class="pl-s1">got</span> <span class="pl-s1">an</span> <span class="pl-s1">unexpected</span> <span class="pl-s1">keyword</span> <span class="pl-s1">argument</span> <span class="pl-s">'app'</span></pre></div>
<p dir="auto">Removing the parameter gives me this:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'NoneType' object has no attribute 'error'"><pre class="notranslate"><span class="pl-s">'NoneType'</span> <span class="pl-s1">object</span> <span class="pl-s1">has</span> <span class="pl-s1">no</span> <span class="pl-s1">attribute</span> <span class="pl-s">'error'</span></pre></div>
<p dir="auto">Also tried:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from celery.bin.purge import purge
# ...
purge( args ) # But couldn't match command's args"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">celery</span>.<span class="pl-s1">bin</span>.<span class="pl-s1">purge</span> <span class="pl-k">import</span> <span class="pl-s1">purge</span>
<span class="pl-c"># ...</span>
<span class="pl-en">purge</span>( <span class="pl-s1">args</span> ) <span class="pl-c"># But couldn't match command's args</span></pre></div>
<p dir="auto">And also tried:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="app = Celery('my_project')
# ...
app.control.purge()"><pre class="notranslate"><span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">Celery</span>(<span class="pl-s">'my_project'</span>)
<span class="pl-c"># ...</span>
<span class="pl-s1">app</span>.<span class="pl-s1">control</span>.<span class="pl-en">purge</span>()</pre></div>
<p dir="auto">But I'm afraid this would purge all queues....</p>
<p dir="auto">The <a href="https://docs.celeryproject.org/en/v4.4.7/reference/celery.bin.amqp.html" rel="nofollow">docs pages for 4.4.7</a> exists, while the <a href="https://docs.celeryproject.org/en/v5.1.2/reference/celery.bin.amqp.html" rel="nofollow">equivalent page for v5 doesn't</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"> 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"> 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"> 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"> 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"> 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"> 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"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>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>:</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<h1 dir="auto">Actual Behavior</h1> | 0 |
<p dir="auto"><strong>Original</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="module m {
var z = x;
var y = {
a: x,
x
};
}"><pre class="notranslate">module <span class="pl-s1">m</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>: <span class="pl-s1">x</span><span class="pl-kos">,</span>
x
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Expect</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(function (m) {
var z = m.x;
var y = {
a: m.x,
x: m.x
};
})(m || (m = {}));"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">m</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">m</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>: <span class="pl-s1">m</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">,</span>
<span class="pl-c1">x</span>: <span class="pl-s1">m</span><span class="pl-kos">.</span><span class="pl-c1">x</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">m</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Actual</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="(function (m) {
var z = m.x;
var y = {
a: m.x,
x
};
})(m || (m = {}));"><pre class="notranslate"><span class="pl-kos">(</span><span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">m</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">z</span> <span class="pl-c1">=</span> <span class="pl-s1">m</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">a</span>: <span class="pl-s1">m</span><span class="pl-kos">.</span><span class="pl-c1">x</span><span class="pl-kos">,</span>
x
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">(</span><span class="pl-s1">m</span> <span class="pl-c1">||</span> <span class="pl-kos">(</span><span class="pl-s1">m</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<ul dir="auto">
<li>objectLiteralShorthandPropertiesWithModuleES6.js</li>
<li>giant.js</li>
</ul> | <p dir="auto">Please fill the following out:</p>
<ul dir="auto">
<li>Name: IDeliverable, Ltd.</li>
<li>Homepage url: <a href="http://www.ideliverable.com" rel="nofollow">http://www.ideliverable.com</a></li>
<li>Brand Guidelines/Licensing: N/A</li>
<li>Logo: <a href="http://www.ideliverable.com/Media/Default/Site/Logo-Full-Color-Transparent.svg" rel="nofollow">http://www.ideliverable.com/Media/Default/Site/Logo-Full-Color-Transparent.svg</a></li>
</ul>
<blockquote>
<p dir="auto">Example:</p>
<p dir="auto">Name: Microsoft<br>
Homepage url: <a href="https://microsoft.com" rel="nofollow">https://microsoft.com</a><br>
Brand Guidelines/Licensing: <a href="https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/logo.aspx" rel="nofollow">https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/logo.aspx</a><br>
Logo: <a href="https://news.microsoft.com/microsoft-news-center-photos/msft_logo_rgb_c-gray/" rel="nofollow">https://news.microsoft.com/microsoft-news-center-photos/msft_logo_rgb_c-gray/</a></p>
</blockquote> | 1 |
<p dir="auto">ES 1.4 added support for Children aggregation, which is a really great feature.<br>
The next step would be to also support a Parent aggregation</p>
<p dir="auto">Here is a quick example of a typical use case:<br>
Let's say we've got 2 types, one containing Product information (name, description, categories, size, weight, etc) and another one containing Reseller information (location, price, etc..).<br>
There is a parent child relationship between Products and Resellers (Product being the parent)</p>
<p dir="auto">In some cases, one may want to aggregate on Parent property.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="GET parentchild/reseller/_search/
{
"query": {
... // not relevant here
},
"sort": [
{
"price": {
"order": "asc",
"mode": "avg"
}
}
],
"aggs": {
"location": {
"geo_distance": {
"unit": "km",
"field": "location",
"origin": "lat, lon",
"ranges": [
{ "from": 0, "to": 100},
....
]
}
},
"price": {
"range": {
"field": "price",
"ranges": [
{ "from": 0, "to": 50},
...
]
}
},
"aggregateOnParent": {
"parent": {},
"aggs": {
"category": {
"term": {
"field": "category" // Note that category is a field of Product (the parent)
}
}
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">GET parentchild/reseller/_search/
{
"query": {
... // not relevant here
},
"sort": [
{
"price": {
"order": "asc",
"mode": "avg"
}
}
],
"aggs": {
"location": {
"geo_distance": {
"unit": "km",
"field": "location",
"origin": "lat, lon",
"ranges": [
{ "from": 0, "to": 100},
....
]
}
},
"price": {
"range": {
"field": "price",
"ranges": [
{ "from": 0, "to": 50},
...
]
}
},
"aggregateOnParent": {
"parent": {},
"aggs": {
"category": {
"term": {
"field": "category" // Note that category is a field of Product (the parent)
}
}
}
}
}
}
}
</code></pre></div> | <p dir="auto">I understand that issue <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57015066" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/9611" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/9611/hovercard" href="https://github.com/elastic/elasticsearch/issues/9611">#9611</a> was closed regarding this:</p>
<blockquote>
<p dir="auto">Nested fields need to be queries with nested queries/filters, because multiple documents can match and you need to be able to specify how these multiple scores should be reduced to a single score.<br>
— -- <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/clintongormley/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/clintongormley">@clintongormley</a></p>
</blockquote>
<h1 dir="auto">Proposal</h1>
<p dir="auto">I propose that, when a field name within a query string query is parsed, and it does not match a field mapping, an attempt should be made to match the field name to a nested object mapper. If the attempt is successful, the query text for that field name should then be parsed as a query string query using the same settings as the root level query string query. The resulting query from that parsing will in turn be used to create a ToParentBlockJoinQuery (a nested query) that uses the same default scoring mode that would be applied when manually submitting a nested query ("avg".)</p>
<h1 dir="auto">The syntax</h1>
<p dir="auto">The acceptable syntax for a nested query within a query string query is similar to this:</p>
<p dir="auto"><code class="notranslate">nestedPath:"<query string query>"</code></p>
<p dir="auto">This means that any constructs you would use in a query string query are valid:</p>
<p dir="auto"><code class="notranslate">children:"children.first:peggy"</code><br>
<code class="notranslate">children:"children.first:\"peggy\""</code><br>
<code class="notranslate">children:"children.first:(peggy ruby)"</code><br>
<code class="notranslate">children:"children.first:peggy AND children.last:sue"</code><br>
<code class="notranslate">children:"children.first:pegyg~ +children.last:su?"</code></p>
<p dir="auto">Note that the nested query MUST be surrounded with quotes. I wanted it to be parentheses instead but unfortunately the Lucene QueryParser class does not recognize the field names the way I wanted it to (<code class="notranslate">children:(children.first:peggy)</code> would come out as a TermQuery on <code class="notranslate">children.first</code>, the <code class="notranslate">children</code> field name would be discarded.)</p>
<h1 dir="auto">Other considerations</h1>
<ul dir="auto">
<li>Support for specifying scoring modes within the query string query settings based on nested object paths is a possibility.</li>
<li>Support for inner hits may also be a possibility, in a similar fashion to scoring modes.</li>
</ul>
<p dir="auto">Support for nested queries in query strings at all would be an enhancement, but these options could provide additional enhancements. Example of how they may look:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"query_string" : {
"query" : "children:\"children.first:peggy\"",
"nested": [
{
"path": "children",
"score_mode": "max",
"inner_hits": {
<inner_hits_options>
}
}
]
}
}"><pre class="notranslate"><code class="notranslate">{
"query_string" : {
"query" : "children:\"children.first:peggy\"",
"nested": [
{
"path": "children",
"score_mode": "max",
"inner_hits": {
<inner_hits_options>
}
}
]
}
}
</code></pre></div>
<h1 dir="auto">Pull request</h1>
<p dir="auto">For the basic functionality, I have already made the necessary modifications (three changed files, one changed test file to add a test with several assertions) on the 'master' branch of my local clone of the repository. I would like to submit a pull request; please advise as to how you would like that to be done (if I need to rebase onto another branch, etc.)</p> | 0 |
<p dir="auto">Happens on the latest master version (Channel master, v0.5.8-pre.98).</p>
<p dir="auto">This was tested with an Android emulator (Nexus 5), Android phone (Sony Xperia Z5 Compact) and Android tablet (Huawei Mediapad M3 lite).</p>
<p dir="auto">The documentation recommends wrapping the contents of an <code class="notranslate">AlertDialog</code> into a <code class="notranslate">ListView</code>:</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" /// Typically, this is a [ListView] containing the contents of the dialog.
/// Using a [ListView] ensures that the contents can scroll if they are too
/// big to fit on the display.
final Widget content;"><pre class="notranslate"> <span class="pl-c">/// Typically, this is a <span class="pl-v">[ListView]</span> containing the contents of the dialog.</span>
<span class="pl-c"> /// Using a <span class="pl-v">[ListView]</span> ensures that the contents can scroll if they are too</span>
<span class="pl-c"> /// big to fit on the display.</span>
<span class="pl-c"></span> <span class="pl-k">final</span> <span class="pl-c1">Widget</span> content;</pre></div>
<p dir="auto">I did just that. It works very well in portrait orientation (at least on my phone), no matter how large the content is and if <code class="notranslate">shrinkWrap</code> is enabled or not.</p>
<p dir="auto">But in landscape mode (both orientations on my tablet), the following errors are thrown (and only a semi-transparent backdrop is visible):</p>
<p dir="auto">When <code class="notranslate">shrinkWrap: false</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter (10060): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (10060): The following assertion was thrown during performLayout():
I/flutter (10060): RenderViewport does not support returning intrinsic dimensions.
I/flutter (10060): Calculating the intrinsic dimensions would require instantiating every child of the viewport, which
I/flutter (10060): defeats the point of viewports being lazy.
I/flutter (10060): If you are merely trying to shrink-wrap the viewport in the main axis direction, consider a
I/flutter (10060): RenderShrinkWrappingViewport render object (ShrinkWrappingViewport widget), which achieves that
I/flutter (10060): effect without implementing the intrinsic dimension API.
I/flutter (10060):
I/flutter (10060): When the exception was thrown, this was the stack:
I/flutter (10060): #0 RenderViewportBase.debugThrowIfNotCheckingIntrinsics.<anonymous closure> (package:flutter/src/rendering/viewport.dart:299:9)
..."><pre class="notranslate"><code class="notranslate">I/flutter (10060): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (10060): The following assertion was thrown during performLayout():
I/flutter (10060): RenderViewport does not support returning intrinsic dimensions.
I/flutter (10060): Calculating the intrinsic dimensions would require instantiating every child of the viewport, which
I/flutter (10060): defeats the point of viewports being lazy.
I/flutter (10060): If you are merely trying to shrink-wrap the viewport in the main axis direction, consider a
I/flutter (10060): RenderShrinkWrappingViewport render object (ShrinkWrappingViewport widget), which achieves that
I/flutter (10060): effect without implementing the intrinsic dimension API.
I/flutter (10060):
I/flutter (10060): When the exception was thrown, this was the stack:
I/flutter (10060): #0 RenderViewportBase.debugThrowIfNotCheckingIntrinsics.<anonymous closure> (package:flutter/src/rendering/viewport.dart:299:9)
...
</code></pre></div>
<p dir="auto">The error suggests that enabling <code class="notranslate">shrinkWrap</code> would solve the problem.</p>
<p dir="auto">When <code class="notranslate">shrinkWrap: true</code>:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="I/flutter (10721): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (10721): The following assertion was thrown during performLayout():
I/flutter (10721): RenderShrinkWrappingViewport does not support returning intrinsic dimensions.
I/flutter (10721): Calculating the intrinsic dimensions would require instantiating every child of the viewport, which
I/flutter (10721): defeats the point of viewports being lazy.
I/flutter (10721): If you are merely trying to shrink-wrap the viewport in the main axis direction, you should be able
I/flutter (10721): to achieve that effect by just giving the viewport loose constraints, without needing to measure its
I/flutter (10721): intrinsic dimensions.
I/flutter (10721):
I/flutter (10721): When the exception was thrown, this was the stack:
I/flutter (10721): #0 RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics.<anonymous closure> (package:flutter/src/rendering/viewport.dart:1544:9)
I/flutter (10721): #1 RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics (package:flutter/src/rendering/viewport.dart:1554:6)
I/flutter (10721): #2 RenderViewportBase.computeMaxIntrinsicWidth (package:flutter/src/rendering/viewport.dart:321:12)
I/flutter (10721): #3 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #4 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #5 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #6 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #7 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #8 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #9 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #10 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #11 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #12 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #13 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #14 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #15 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #16 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #17 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #18 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #19 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #20 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #21 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #22 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #23 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #24 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #25 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #26 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #27 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #28 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #29 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #30 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #31 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #32 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #33 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #34 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #35 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #36 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #37 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #38 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #39 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #40 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #41 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #42 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #43 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #44 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #45 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #46 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #47 RenderPadding.computeMaxIntrinsicWidth (package:flutter/src/rendering/shifted_box.dart:163:20)
I/flutter (10721): #48 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #49 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #50 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #51 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #52 RenderFlex.computeMaxIntrinsicWidth.<anonymous closure> (package:flutter/src/rendering/flex.dart:575:60)
I/flutter (10721): #53 RenderFlex._getIntrinsicSize (package:flutter/src/rendering/flex.dart:552:58)
I/flutter (10721): #54 RenderFlex.computeMaxIntrinsicWidth (package:flutter/src/rendering/flex.dart:572:12)
I/flutter (10721): #55 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #56 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #57 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #58 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #59 RenderIntrinsicWidth.performLayout (package:flutter/src/rendering/proxy_box.dart:622:36)
I/flutter (10721): #60 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #61 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #62 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #63 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #64 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #65 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #66 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1147:11)
I/flutter (10721): #67 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #68 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:263:13)
I/flutter (10721): #69 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #70 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381:13)
I/flutter (10721): #71 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #72 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199:11)
I/flutter (10721): #73 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #74 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #75 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #76 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199:11)
I/flutter (10721): #77 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #78 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #79 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #80 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #81 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #82 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #83 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #84 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #85 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #86 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #87 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #88 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #89 RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:2824:13)
I/flutter (10721): #90 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #91 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:520:15)
I/flutter (10721): #92 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1445:7)
I/flutter (10721): #93 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:704:18)
I/flutter (10721): #94 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:270:19)
I/flutter (10721): #95 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:627:13)
I/flutter (10721): #96 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter (10721): #97 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (10721): #98 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (10721): #99 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter (10721): #100 _invoke (dart:ui/hooks.dart:125:13)
I/flutter (10721): #101 _drawFrame (dart:ui/hooks.dart:114:3)
I/flutter (10721):
I/flutter (10721): The following RenderObject was being processed when the exception was fired:
I/flutter (10721): RenderIntrinsicWidth#1b077 relayoutBoundary=up5 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): creator: IntrinsicWidth ← DefaultTextStyle ← AnimatedDefaultTextStyle ←
I/flutter (10721): _InkFeatures-[GlobalKey#02057 ink renderer] ← NotificationListener<LayoutChangedNotification> ←
I/flutter (10721): CustomPaint ← _ShapeBorderPaint ← PhysicalShape ← _MaterialInterior ← Material ← ConstrainedBox ←
I/flutter (10721): Center ← ⋯
I/flutter (10721): parentData: <none> (can use size)
I/flutter (10721): constraints: BoxConstraints(280.0<=w<=512.0, 0.0<=h<=288.0)
I/flutter (10721): size: MISSING
I/flutter (10721): stepWidth: null
I/flutter (10721): stepHeight: null
I/flutter (10721): This RenderObject had the following descendants (showing up to depth 5):
I/flutter (10721): RenderFlex#b6207 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderPadding#44560 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderSemanticsAnnotations#0847a NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderParagraph#4110e NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderPadding#b728b NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderRepaintBoundary#22c8d NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderCustomPaint#f7921 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderRepaintBoundary#f191e NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: RenderIntrinsicWidth#1b077 relayoutBoundary=up5 NEEDS-PAINT
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: _RenderInkFeatures#fca13 relayoutBoundary=up4 NEEDS-PAINT
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: RenderCustomPaint#b713d relayoutBoundary=up3 NEEDS-PAINT
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#968ac relayoutBoundary=up2 NEEDS-PAINT
I/flutter (10721): Another exception was thrown: 'package:flutter/src/rendering/shifted_box.dart': Failed assertion: line 310 pos 12: 'child.hasSize': is not true.
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#968ac relayoutBoundary=up2"><pre class="notranslate"><code class="notranslate">I/flutter (10721): ══╡ EXCEPTION CAUGHT BY RENDERING LIBRARY ╞═════════════════════════════════════════════════════════
I/flutter (10721): The following assertion was thrown during performLayout():
I/flutter (10721): RenderShrinkWrappingViewport does not support returning intrinsic dimensions.
I/flutter (10721): Calculating the intrinsic dimensions would require instantiating every child of the viewport, which
I/flutter (10721): defeats the point of viewports being lazy.
I/flutter (10721): If you are merely trying to shrink-wrap the viewport in the main axis direction, you should be able
I/flutter (10721): to achieve that effect by just giving the viewport loose constraints, without needing to measure its
I/flutter (10721): intrinsic dimensions.
I/flutter (10721):
I/flutter (10721): When the exception was thrown, this was the stack:
I/flutter (10721): #0 RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics.<anonymous closure> (package:flutter/src/rendering/viewport.dart:1544:9)
I/flutter (10721): #1 RenderShrinkWrappingViewport.debugThrowIfNotCheckingIntrinsics (package:flutter/src/rendering/viewport.dart:1554:6)
I/flutter (10721): #2 RenderViewportBase.computeMaxIntrinsicWidth (package:flutter/src/rendering/viewport.dart:321:12)
I/flutter (10721): #3 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #4 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #5 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #6 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #7 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #8 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #9 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #10 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #11 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #12 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #13 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #14 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #15 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #16 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #17 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #18 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #19 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #20 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #21 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #22 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #23 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #24 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #25 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #26 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #27 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #28 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #29 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #30 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #31 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #32 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #33 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #34 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #35 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #36 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #37 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #38 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #39 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #40 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #41 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #42 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.computeMaxIntrinsicWidth (package:flutter/src/rendering/proxy_box.dart:81:20)
I/flutter (10721): #43 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #44 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #45 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #46 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #47 RenderPadding.computeMaxIntrinsicWidth (package:flutter/src/rendering/shifted_box.dart:163:20)
I/flutter (10721): #48 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #49 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #50 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #51 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #52 RenderFlex.computeMaxIntrinsicWidth.<anonymous closure> (package:flutter/src/rendering/flex.dart:575:60)
I/flutter (10721): #53 RenderFlex._getIntrinsicSize (package:flutter/src/rendering/flex.dart:552:58)
I/flutter (10721): #54 RenderFlex.computeMaxIntrinsicWidth (package:flutter/src/rendering/flex.dart:572:12)
I/flutter (10721): #55 RenderBox._computeIntrinsicDimension.<anonymous closure> (package:flutter/src/rendering/box.dart:1109:23)
I/flutter (10721): #56 __InternalLinkedHashMap&_HashVMBase&MapMixin&_LinkedHashMapMixin.putIfAbsent (dart:collection/runtime/libcompact_hash.dart:277:23)
I/flutter (10721): #57 RenderBox._computeIntrinsicDimension (package:flutter/src/rendering/box.dart:1107:41)
I/flutter (10721): #58 RenderBox.getMaxIntrinsicWidth (package:flutter/src/rendering/box.dart:1291:12)
I/flutter (10721): #59 RenderIntrinsicWidth.performLayout (package:flutter/src/rendering/proxy_box.dart:622:36)
I/flutter (10721): #60 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #61 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #62 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #63 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #64 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #65 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #66 _RenderCustomClip.performLayout (package:flutter/src/rendering/proxy_box.dart:1147:11)
I/flutter (10721): #67 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #68 RenderConstrainedBox.performLayout (package:flutter/src/rendering/proxy_box.dart:263:13)
I/flutter (10721): #69 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #70 RenderPositionedBox.performLayout (package:flutter/src/rendering/shifted_box.dart:381:13)
I/flutter (10721): #71 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #72 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199:11)
I/flutter (10721): #73 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #74 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #75 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #76 RenderPadding.performLayout (package:flutter/src/rendering/shifted_box.dart:199:11)
I/flutter (10721): #77 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #78 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #79 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #80 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #81 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #82 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #83 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #84 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #85 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #86 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #87 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #88 _RenderProxyBox&RenderBox&RenderObjectWithChildMixin&RenderProxyBoxMixin.performLayout (package:flutter/src/rendering/proxy_box.dart:109:13)
I/flutter (10721): #89 RenderOffstage.performLayout (package:flutter/src/rendering/proxy_box.dart:2824:13)
I/flutter (10721): #90 RenderObject.layout (package:flutter/src/rendering/object.dart:1570:7)
I/flutter (10721): #91 RenderStack.performLayout (package:flutter/src/rendering/stack.dart:520:15)
I/flutter (10721): #92 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1445:7)
I/flutter (10721): #93 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:704:18)
I/flutter (10721): #94 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:270:19)
I/flutter (10721): #95 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding&WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:627:13)
I/flutter (10721): #96 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding&PaintingBinding&RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:208:5)
I/flutter (10721): #97 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:990:15)
I/flutter (10721): #98 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:930:9)
I/flutter (10721): #99 _WidgetsFlutterBinding&BindingBase&GestureBinding&ServicesBinding&SchedulerBinding._handleDrawFrame (package:flutter/src/scheduler/binding.dart:842:5)
I/flutter (10721): #100 _invoke (dart:ui/hooks.dart:125:13)
I/flutter (10721): #101 _drawFrame (dart:ui/hooks.dart:114:3)
I/flutter (10721):
I/flutter (10721): The following RenderObject was being processed when the exception was fired:
I/flutter (10721): RenderIntrinsicWidth#1b077 relayoutBoundary=up5 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): creator: IntrinsicWidth ← DefaultTextStyle ← AnimatedDefaultTextStyle ←
I/flutter (10721): _InkFeatures-[GlobalKey#02057 ink renderer] ← NotificationListener<LayoutChangedNotification> ←
I/flutter (10721): CustomPaint ← _ShapeBorderPaint ← PhysicalShape ← _MaterialInterior ← Material ← ConstrainedBox ←
I/flutter (10721): Center ← ⋯
I/flutter (10721): parentData: <none> (can use size)
I/flutter (10721): constraints: BoxConstraints(280.0<=w<=512.0, 0.0<=h<=288.0)
I/flutter (10721): size: MISSING
I/flutter (10721): stepWidth: null
I/flutter (10721): stepHeight: null
I/flutter (10721): This RenderObject had the following descendants (showing up to depth 5):
I/flutter (10721): RenderFlex#b6207 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderPadding#44560 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderSemanticsAnnotations#0847a NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderParagraph#4110e NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderPadding#b728b NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderRepaintBoundary#22c8d NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderCustomPaint#f7921 NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): RenderRepaintBoundary#f191e NEEDS-LAYOUT NEEDS-PAINT
I/flutter (10721): ════════════════════════════════════════════════════════════════════════════════════════════════════
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: RenderIntrinsicWidth#1b077 relayoutBoundary=up5 NEEDS-PAINT
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: _RenderInkFeatures#fca13 relayoutBoundary=up4 NEEDS-PAINT
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: RenderCustomPaint#b713d relayoutBoundary=up3 NEEDS-PAINT
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#968ac relayoutBoundary=up2 NEEDS-PAINT
I/flutter (10721): Another exception was thrown: 'package:flutter/src/rendering/shifted_box.dart': Failed assertion: line 310 pos 12: 'child.hasSize': is not true.
I/flutter (10721): Another exception was thrown: RenderBox was not laid out: RenderPhysicalShape#968ac relayoutBoundary=up2
</code></pre></div>
<h2 dir="auto">How to reproduce</h2>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import 'package:flutter/material.dart';
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new MaterialApp(
title: 'Dialog Landscape Error',
home: new DialogTestScreen(),
);
}
}
class DialogTestScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Dialog Landscape Error'),
),
body: Center(
child: Column(
children: <Widget>[
RaisedButton(
child: Text('Open Dialog without shrinkWrap'),
onPressed: () {
showDialog(
context: context,
builder: (BuildContext context) => TestDialog(shrinkWrap: false),
);
},
),
RaisedButton(
child: Text('Open Dialog with shrinkWrap'),
onPressed: () {
showDialog(
context: context,
builder: (BuildContext context) => TestDialog(shrinkWrap: true),
);
},
),
],
)
),
);
}
}
class TestDialog extends StatelessWidget {
const TestDialog({Key key, this.shrinkWrap}) : super(key: key);
final bool shrinkWrap;
@override
Widget build(BuildContext context) {
return AlertDialog(
title: Text('Test Dialog'),
content: ListView(
children: <Widget>[
Text('Child 1'),
Text('Child 2')
],
shrinkWrap: shrinkWrap,
),
);
}
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s">'package:flutter/material.dart'</span>;
<span class="pl-k">void</span> <span class="pl-en">main</span>() <span class="pl-k">=></span> <span class="pl-en">runApp</span>(<span class="pl-k">new</span> <span class="pl-c1">MyApp</span>());
<span class="pl-k">class</span> <span class="pl-c1">MyApp</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> {
<span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">return</span> <span class="pl-k">new</span> <span class="pl-c1">MaterialApp</span>(
title<span class="pl-k">:</span> <span class="pl-s">'Dialog Landscape Error'</span>,
home<span class="pl-k">:</span> <span class="pl-k">new</span> <span class="pl-c1">DialogTestScreen</span>(),
);
}
}
<span class="pl-k">class</span> <span class="pl-c1">DialogTestScreen</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> {
<span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">return</span> <span class="pl-c1">Scaffold</span>(
appBar<span class="pl-k">:</span> <span class="pl-c1">AppBar</span>(
title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Dialog Landscape Error'</span>),
),
body<span class="pl-k">:</span> <span class="pl-c1">Center</span>(
child<span class="pl-k">:</span> <span class="pl-c1">Column</span>(
children<span class="pl-k">:</span> <span class="pl-k"><</span><span class="pl-c1">Widget</span><span class="pl-k">></span>[
<span class="pl-c1">RaisedButton</span>(
child<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Open Dialog without shrinkWrap'</span>),
onPressed<span class="pl-k">:</span> () {
<span class="pl-en">showDialog</span>(
context<span class="pl-k">:</span> context,
builder<span class="pl-k">:</span> (<span class="pl-c1">BuildContext</span> context) <span class="pl-k">=></span> <span class="pl-c1">TestDialog</span>(shrinkWrap<span class="pl-k">:</span> <span class="pl-c1">false</span>),
);
},
),
<span class="pl-c1">RaisedButton</span>(
child<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Open Dialog with shrinkWrap'</span>),
onPressed<span class="pl-k">:</span> () {
<span class="pl-en">showDialog</span>(
context<span class="pl-k">:</span> context,
builder<span class="pl-k">:</span> (<span class="pl-c1">BuildContext</span> context) <span class="pl-k">=></span> <span class="pl-c1">TestDialog</span>(shrinkWrap<span class="pl-k">:</span> <span class="pl-c1">true</span>),
);
},
),
],
)
),
);
}
}
<span class="pl-k">class</span> <span class="pl-c1">TestDialog</span> <span class="pl-k">extends</span> <span class="pl-c1">StatelessWidget</span> {
<span class="pl-k">const</span> <span class="pl-c1">TestDialog</span>({<span class="pl-c1">Key</span> key, <span class="pl-c1">this</span>.shrinkWrap}) <span class="pl-k">:</span> <span class="pl-c1">super</span>(key<span class="pl-k">:</span> key);
<span class="pl-k">final</span> <span class="pl-c1">bool</span> shrinkWrap;
<span class="pl-k">@override</span>
<span class="pl-c1">Widget</span> <span class="pl-en">build</span>(<span class="pl-c1">BuildContext</span> context) {
<span class="pl-k">return</span> <span class="pl-c1">AlertDialog</span>(
title<span class="pl-k">:</span> <span class="pl-c1">Text</span>(<span class="pl-s">'Test Dialog'</span>),
content<span class="pl-k">:</span> <span class="pl-c1">ListView</span>(
children<span class="pl-k">:</span> <span class="pl-k"><</span><span class="pl-c1">Widget</span><span class="pl-k">></span>[
<span class="pl-c1">Text</span>(<span class="pl-s">'Child 1'</span>),
<span class="pl-c1">Text</span>(<span class="pl-s">'Child 2'</span>)
],
shrinkWrap<span class="pl-k">:</span> shrinkWrap,
),
);
}
}</pre></div> | <h2 dir="auto">Steps to Reproduce</h2>
<ol dir="auto">
<li>code :</li>
</ol>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" rect = Rect.fromCircle(center: center, radius: radius);
angle = 160.0 * (-1);
double startAngle = -math.pi / 2;
double sweepAngle = 2 * math.pi * (angle / 360);
print(
'angle === $angle --- $startAngle --- $sweepAngle --- ${rect.toString()} --- $progressPaint');
canvas.drawArc(rect, startAngle, sweepAngle, false, progressPaint);"><pre class="notranslate"> rect <span class="pl-k">=</span> <span class="pl-c1">Rect</span>.<span class="pl-en">fromCircle</span>(center<span class="pl-k">:</span> center, radius<span class="pl-k">:</span> radius);
angle <span class="pl-k">=</span> <span class="pl-c1">160.0</span> <span class="pl-k">*</span> (<span class="pl-k">-</span><span class="pl-c1">1</span>);
<span class="pl-c1">double</span> startAngle <span class="pl-k">=</span> <span class="pl-k">-</span>math.pi <span class="pl-k">/</span> <span class="pl-c1">2</span>;
<span class="pl-c1">double</span> sweepAngle <span class="pl-k">=</span> <span class="pl-c1">2</span> <span class="pl-k">*</span> math.pi <span class="pl-k">*</span> (angle <span class="pl-k">/</span> <span class="pl-c1">360</span>);
<span class="pl-en">print</span>(
<span class="pl-s">'angle === $<span class="pl-v">angle</span> --- $<span class="pl-v">startAngle</span> --- $<span class="pl-v">sweepAngle</span> --- <span class="pl-s">${<span class="pl-v">rect</span>.<span class="pl-en">toString</span>()}</span> --- $<span class="pl-v">progressPaint</span>'</span>);
canvas.<span class="pl-en">drawArc</span>(rect, startAngle, sweepAngle, <span class="pl-c1">false</span>, progressPaint);</pre></div>
<p dir="auto">It doesn't work<br>
2.</p>
<div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="canvas.drawArc(rect, startAngle, sweepAngle, true, progressPaint);"><pre class="notranslate">canvas.<span class="pl-en">drawArc</span>(rect, startAngle, sweepAngle, <span class="pl-c1">true</span>, progressPaint);</pre></div>
<p dir="auto">It work, Why?</p>
<h2 dir="auto">Logs</h2> | 0 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run"><pre class="notranslate"><code class="notranslate">Windows build number: 10.0.18363
PowerToys version: 0.18.0
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Open PT Run</li>
<li>Type Text</li>
<li>Select entry<br>
4, Remove character from text in input field</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Written text is readable.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">Write Text overlaps with proposal text.</p>
<h1 dir="auto">Screenshots</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/61519853/82364699-ee372600-9a0f-11ea-97f6-22f365431e38.png"><img src="https://user-images.githubusercontent.com/61519853/82364699-ee372600-9a0f-11ea-97f6-22f365431e38.png" alt="image" style="max-width: 100%;"></a></p> | <p dir="auto">Steps to repro:</p>
<ol dir="auto">
<li>Navigate to a really long path (beyond the search box size)</li>
<li>Do Ctrl+C to copy the file path</li>
<li>Paste the file path in search box</li>
<li>The shadow is misaligned</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/8364748/80645382-dfb4aa80-8a1f-11ea-993e-1461d14f4f12.png"><img src="https://user-images.githubusercontent.com/8364748/80645382-dfb4aa80-8a1f-11ea-993e-1461d14f4f12.png" alt="image" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto">From support/bcc930f09fb511e399ae8f0476ae462c</p> | <p dir="auto">In the example below atom finds the summer symbol but not the winter symbol.</p>
<p dir="auto">var winter = (function() {<br>
console.log('winter');<br>
});</p>
<p dir="auto">var summer = function() {<br>
console.log('summer');<br>
};</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/13c7d46d0eb0271203a7f0996bfb2bb79d25df90b1ac490c8f9ed66fd892bd4a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3333393333312f323332353536312f34643538653564632d613364372d313165332d383731642d3137663439633036633834642e706e67"><img src="https://camo.githubusercontent.com/13c7d46d0eb0271203a7f0996bfb2bb79d25df90b1ac490c8f9ed66fd892bd4a/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f3333393333312f323332353536312f34643538653564632d613364372d313165332d383731642d3137663439633036633834642e706e67" alt="screen shot 2014-03-04 at 11 52 10 am" data-canonical-src="https://f.cloud.github.com/assets/339331/2325561/4d58e5dc-a3d7-11e3-871d-17f49c06c84d.png" style="max-width: 100%;"></a></p> | 1 |
<p dir="auto"><strong>Airflow version: 1.10.12</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import random
import string
import requests
from airflow import DAG
from airflow.contrib.sensors.python_sensor import PythonSensor
from airflow.operators.dummy_operator import DummyOperator
from datetime import datetime
dag = DAG(
dag_id='newDebugDag',
description='A simple tutorial DAG',
schedule_interval=None,
start_date=datetime(2020, 10, 30, 0, 0)
)
start = DummyOperator(task_id='run_this_first', dag=dag)
def wait_for_approval(dag_run, **context):
software_id = dag_run.conf.get("softwareId", "Some Software Id")
print("polling status for softwareId:{}".format(software_id))
response = requests.get('https://5f8582eec29abd0016190be2.mockapi.io/api/v1/status')
print(response.json())
context["task_instance"].xcom_push(key="approverId", value="visardan-" + random.choice(string.ascii_letters))
return response.json()[0]['status']
wait_for_approval = PythonSensor(
task_id="wait_for_approval_debug",
python_callable=wait_for_approval,
dag=dag,
poke_interval=30,
provide_context=True,
executor_config={"KubernetesExecutor": {"image": "apache/airflow:1.10.12-python3.6"}}
)
start >> wait_for_approval"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">random</span>
<span class="pl-k">import</span> <span class="pl-s1">string</span>
<span class="pl-k">import</span> <span class="pl-s1">requests</span>
<span class="pl-k">from</span> <span class="pl-s1">airflow</span> <span class="pl-k">import</span> <span class="pl-v">DAG</span>
<span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">contrib</span>.<span class="pl-s1">sensors</span>.<span class="pl-s1">python_sensor</span> <span class="pl-k">import</span> <span class="pl-v">PythonSensor</span>
<span class="pl-k">from</span> <span class="pl-s1">airflow</span>.<span class="pl-s1">operators</span>.<span class="pl-s1">dummy_operator</span> <span class="pl-k">import</span> <span class="pl-v">DummyOperator</span>
<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-s1">dag</span> <span class="pl-c1">=</span> <span class="pl-v">DAG</span>(
<span class="pl-s1">dag_id</span><span class="pl-c1">=</span><span class="pl-s">'newDebugDag'</span>,
<span class="pl-s1">description</span><span class="pl-c1">=</span><span class="pl-s">'A simple tutorial DAG'</span>,
<span class="pl-s1">schedule_interval</span><span class="pl-c1">=</span><span class="pl-c1">None</span>,
<span class="pl-s1">start_date</span><span class="pl-c1">=</span><span class="pl-en">datetime</span>(<span class="pl-c1">2020</span>, <span class="pl-c1">10</span>, <span class="pl-c1">30</span>, <span class="pl-c1">0</span>, <span class="pl-c1">0</span>)
)
<span class="pl-s1">start</span> <span class="pl-c1">=</span> <span class="pl-v">DummyOperator</span>(<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">'run_this_first'</span>, <span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag</span>)
<span class="pl-k">def</span> <span class="pl-en">wait_for_approval</span>(<span class="pl-s1">dag_run</span>, <span class="pl-c1">**</span><span class="pl-s1">context</span>):
<span class="pl-s1">software_id</span> <span class="pl-c1">=</span> <span class="pl-s1">dag_run</span>.<span class="pl-s1">conf</span>.<span class="pl-en">get</span>(<span class="pl-s">"softwareId"</span>, <span class="pl-s">"Some Software Id"</span>)
<span class="pl-en">print</span>(<span class="pl-s">"polling status for softwareId:{}"</span>.<span class="pl-en">format</span>(<span class="pl-s1">software_id</span>))
<span class="pl-s1">response</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">'https://5f8582eec29abd0016190be2.mockapi.io/api/v1/status'</span>)
<span class="pl-en">print</span>(<span class="pl-s1">response</span>.<span class="pl-en">json</span>())
<span class="pl-s1">context</span>[<span class="pl-s">"task_instance"</span>].<span class="pl-en">xcom_push</span>(<span class="pl-s1">key</span><span class="pl-c1">=</span><span class="pl-s">"approverId"</span>, <span class="pl-s1">value</span><span class="pl-c1">=</span><span class="pl-s">"visardan-"</span> <span class="pl-c1">+</span> <span class="pl-s1">random</span>.<span class="pl-en">choice</span>(<span class="pl-s1">string</span>.<span class="pl-s1">ascii_letters</span>))
<span class="pl-k">return</span> <span class="pl-s1">response</span>.<span class="pl-en">json</span>()[<span class="pl-c1">0</span>][<span class="pl-s">'status'</span>]
<span class="pl-s1">wait_for_approval</span> <span class="pl-c1">=</span> <span class="pl-v">PythonSensor</span>(
<span class="pl-s1">task_id</span><span class="pl-c1">=</span><span class="pl-s">"wait_for_approval_debug"</span>,
<span class="pl-s1">python_callable</span><span class="pl-c1">=</span><span class="pl-s1">wait_for_approval</span>,
<span class="pl-s1">dag</span><span class="pl-c1">=</span><span class="pl-s1">dag</span>,
<span class="pl-s1">poke_interval</span><span class="pl-c1">=</span><span class="pl-c1">30</span>,
<span class="pl-s1">provide_context</span><span class="pl-c1">=</span><span class="pl-c1">True</span>,
<span class="pl-s1">executor_config</span><span class="pl-c1">=</span>{<span class="pl-s">"KubernetesExecutor"</span>: {<span class="pl-s">"image"</span>: <span class="pl-s">"apache/airflow:1.10.12-python3.6"</span>}}
)
<span class="pl-s1">start</span> <span class="pl-c1">>></span> <span class="pl-s1">wait_for_approval</span></pre></div>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"run_id":"run-eventId109bnfghak2",
"conf":{
"softwareId":"something"
},
"execution_date": "2020-11-04 10:38:43" //any future execution date
}"><pre class="notranslate">{
<span class="pl-ent">"run_id"</span>:<span class="pl-s"><span class="pl-pds">"</span>run-eventId109bnfghak2<span class="pl-pds">"</span></span>,
<span class="pl-ent">"conf"</span>:{
<span class="pl-ent">"softwareId"</span>:<span class="pl-s"><span class="pl-pds">"</span>something<span class="pl-pds">"</span></span>
},
<span class="pl-ent">"execution_date"</span>: <span class="pl-s"><span class="pl-pds">"</span>2020-11-04 10:38:43<span class="pl-pds">"</span></span> <span class="pl-ii">//any future execution date</span>
}</pre></div>
<p dir="auto">The first task executes fine (dummy start task) but the dag is stuck at second task. I can see the worker pod spun up and getting completed but the task status never gets updated and ui still says queued and dag is always in running state due to this.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25412835/98112292-f7398800-1ec7-11eb-978d-ada384b0ac81.png"><img src="https://user-images.githubusercontent.com/25412835/98112292-f7398800-1ec7-11eb-978d-ada384b0ac81.png" alt="Screen Shot 2020-11-04 at 5 02 22 PM" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/25412835/98112298-fbfe3c00-1ec7-11eb-8cea-a1699d5b03cc.png"><img src="https://user-images.githubusercontent.com/25412835/98112298-fbfe3c00-1ec7-11eb-8cea-a1699d5b03cc.png" alt="Screen Shot 2020-11-04 at 5 04 47 PM" style="max-width: 100%;"></a></p> | <p dir="auto"><strong>Apache Airflow version</strong>: <code class="notranslate">2.0.0</code></p>
<p dir="auto"><strong>Kubernetes version (if you are using kubernetes)</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:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.14-gke.1600", GitCommit:"7c407f5cc8632f9af5a2657f220963aa7f1c46e7", GitTreeState:"clean", BuildDate:"2020-12-07T09:22:27Z", GoVersion:"go1.13.15b4", Compiler:"gc", Platform:"linux/amd64"}"><pre class="notranslate"><code class="notranslate">Client Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.3", GitCommit:"1e11e4a2108024935ecfcb2912226cedeafd99df", GitTreeState:"clean", BuildDate:"2020-10-14T12:50:19Z", GoVersion:"go1.15.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"17+", GitVersion:"v1.17.14-gke.1600", GitCommit:"7c407f5cc8632f9af5a2657f220963aa7f1c46e7", GitTreeState:"clean", BuildDate:"2020-12-07T09:22:27Z", GoVersion:"go1.13.15b4", 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>: GKE</li>
<li><strong>OS</strong> (e.g. from /etc/os-release):</li>
<li><strong>Kernel</strong> (e.g. <code class="notranslate">uname -a</code>):</li>
<li><strong>Install tools</strong>:</li>
<li><strong>Others</strong>:
<ul dir="auto">
<li>Airflow metadata database is hooked up to a PostgreSQL instance</li>
</ul>
</li>
</ul>
<p dir="auto"><strong>What happened</strong>:</p>
<ul dir="auto">
<li>Airflow 2.0.0 running on the <code class="notranslate">KubernetesExecutor</code> has many tasks stuck in "scheduled" or "queued" state which never get resolved.</li>
<li>The setup has a <code class="notranslate">default_pool</code> of 16 slots.</li>
<li>Currently no slots are used (see Screenshot), but all slots are queued.</li>
<li>No work is executed any more. The Executor or Scheduler is stuck.</li>
<li>There are many many tasks stuck in "scheduled" state
<ul dir="auto">
<li>Tasks in "scheduled" state say <code class="notranslate">('Not scheduling since there are %s open slots in pool %s and require %s pool slots', 0, 'default_pool', 1)</code><br>
That is simply not true, because there is nothing running on the cluster and there are always 16 tasks stuck in "queued".</li>
</ul>
</li>
<li>There are many tasks stuck in "queued" state
<ul dir="auto">
<li>Tasks in "queued" state say <code class="notranslate">Task is in the 'running' state which is not a valid state for execution. The task must be cleared in order to be run.</code><br>
That is also not true. Nothing is running on the cluster and Airflow is likely just lying to itself. It seems the KubernetesExecutor and the scheduler easily go out of sync.</li>
</ul>
</li>
</ul>
<p dir="auto"><strong>What you expected to happen</strong>:</p>
<ul dir="auto">
<li>Airflow should resolve scheduled or queued tasks by itself once the pool has available slots</li>
<li>Airflow should use all available slots in the pool</li>
<li>It should be possible to clear a couple hundred tasks and expect the system to stay consistent</li>
</ul>
<p dir="auto"><strong>How to reproduce it</strong>:</p>
<ul dir="auto">
<li>
<p dir="auto">Vanilla Airflow 2.0.0 with <code class="notranslate">KubernetesExecutor</code> on Python <code class="notranslate">3.7.9</code></p>
</li>
<li>
<p dir="auto"><code class="notranslate">requirements.txt</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="pyodbc==4.0.30
pycryptodomex==3.9.9
apache-airflow-providers-google==1.0.0
apache-airflow-providers-odbc==1.0.0
apache-airflow-providers-postgres==1.0.0
apache-airflow-providers-cncf-kubernetes==1.0.0
apache-airflow-providers-sftp==1.0.0
apache-airflow-providers-ssh==1.0.0"><pre class="notranslate"><code class="notranslate">pyodbc==4.0.30
pycryptodomex==3.9.9
apache-airflow-providers-google==1.0.0
apache-airflow-providers-odbc==1.0.0
apache-airflow-providers-postgres==1.0.0
apache-airflow-providers-cncf-kubernetes==1.0.0
apache-airflow-providers-sftp==1.0.0
apache-airflow-providers-ssh==1.0.0
</code></pre></div>
</li>
<li>
<p dir="auto">The only reliable way to trigger that weird bug is to clear the task state of many tasks at once. (> 300 tasks)</p>
</li>
</ul>
<p dir="auto"><strong>Anything else we need to know</strong>:</p>
<p dir="auto">Don't know, as always I am happy to help debug this problem.<br>
The scheduler/executer seems to go out of sync and never back in sync again with the state of the world.</p>
<p dir="auto">We actually planned to upscale our Airflow installation with many more simultaneous tasks. With these severe yet basic scheduling/queuing problems we cannot move forward at all.</p>
<p dir="auto">Another strange, likely unrelated observation, the scheduler always uses 100% of the CPU. Burning it. Even with no scheduled or now queued tasks, its always very very busy.</p>
<p dir="auto"><strong>Workaround</strong>:</p>
<p dir="auto">The only workaround for this problem I could find so far, is to manually go in, find all tasks in "queued" state and clear them all at once. Without that, the whole cluster/Airflow just stays stuck like it is.</p> | 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">When I use <code class="notranslate">noWrap</code> on Typography, it should not cut my "g" off, just like without <code class="notranslate">noWrap</code><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5027156/31172909-b4b50b16-a905-11e7-8c70-cf675fcfd134.png"><img src="https://user-images.githubusercontent.com/5027156/31172909-b4b50b16-a905-11e7-8c70-cf675fcfd134.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5027156/31172896-a78bc9de-a905-11e7-8c5e-131264718a16.png"><img src="https://user-images.githubusercontent.com/5027156/31172896-a78bc9de-a905-11e7-8c5e-131264718a16.png" alt="image" style="max-width: 100%;"></a></p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Use <a href="https://material-ui-1dab0.firebaseapp.com/demos/drawers/#responsive-drawer" rel="nofollow">https://material-ui-1dab0.firebaseapp.com/demos/drawers/#responsive-drawer</a> and add a <code class="notranslate">g</code><br>
in the title</p>
<h2 dir="auto">Context</h2>
<p dir="auto">This is happening because adding <code class="notranslate">noWrap</code> adds <code class="notranslate">overflow: hidden</code>, is this needed? Can we switch to <code class="notranslate"> overflow-x: hidden</code> or remove it completely?</p>
<p dir="auto">Another fix would be to make the component with <code class="notranslate">overflow: hidden</code> fit higher chars.</p>
<p dir="auto">Thoughts?</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><code class="notranslate">latest</code></td>
</tr>
<tr>
<td>React</td>
<td><code class="notranslate">16.0.0</code></td>
</tr>
<tr>
<td>browser</td>
<td><code class="notranslate">chrome canary</code></td>
</tr>
</tbody>
</table> | <p dir="auto">I was trying to install material-ui on an app under with <code class="notranslate">"react": "^0.14.0-beta3"</code>. However the package.json in master and alarmingly also in the v0.11 branch seem to have <code class="notranslate">"react": ">=0.13"</code> as a peerDependency.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0-beta3
npm ERR! peerinvalid Peer [email protected] wants react@~0.13.x || ~0.12.x
npm ERR! peerinvalid Peer [email protected] wants react@>=0.13"><pre class="notranslate"><code class="notranslate">npm ERR! peerinvalid The package react does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants react@^0.14.0-beta3
npm ERR! peerinvalid Peer [email protected] wants react@~0.13.x || ~0.12.x
npm ERR! peerinvalid Peer [email protected] wants react@>=0.13
</code></pre></div>
<p dir="auto">Is there any way around this ? Or are we not going to be able to combine Material-UI and React 0.14 apps for a few months to come ?</p> | 0 |
<p dir="auto">Hi guys,</p>
<p dir="auto">I need to enable HA for controller currently. I decided to use kops app and kubernetes version 1.4.3.<br>
Currently I have 3 controllers (each in different AZ), however I need to have rest of stuff located only in one AZ, ie. zone C.</p>
<p dir="auto">In this situation leader election marked master from zone B as a leader and all requested ELB's somehow need to be created in the same zone as elected master. In this situation, even I have free IP addresses in that subnet (zone B) it is not useful as all stuff is in different zone.</p>
<p dir="auto">Is there a possibility to determine which subnet should be taken into consideration for ELB creation?<br>
Maybe ELB should be created in the same zone as svc and pods connected to that service requested?<br>
Is there any possibility to change manually leader ?</p>
<p dir="auto">Thanks,<br>
Adam</p> | <p dir="auto"><strong>What keywords did you search in Kubernetes issues before filing this one?</strong> (If you have found any duplicates, you should instead reply there.):<br>
perma-failed deployment</p>
<p dir="auto"><strong>Kubernetes version</strong> (use <code class="notranslate">kubectl version</code>):<br>
v1.6.0-alpha.0.191+a132e5c5800108</p>
<p dir="auto"><strong>What happened</strong>:<br>
Shouldn't count the time in pause phase for perma-failed deployment.</p>
<p dir="auto"><strong>How to reproduce it</strong> (as minimally and precisely as possible):</p>
<ol dir="auto">
<li>Create deployment by deployment-perme-failed-1.yaml and pause the deployment immediately.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl create -f deployment-perme-failed-1.yaml; kubectl rollout pause deployment/hello-openshift"><pre class="notranslate"><code class="notranslate">$ kubectl create -f deployment-perme-failed-1.yaml; kubectl rollout pause deployment/hello-openshift
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# cat deployment-perme-failed-1.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hello-openshift
spec:
progressDeadlineSeconds: 30
replicas: 3
template:
metadata:
labels:
app: hello-openshift
spec:
containers:
- name: hello-openshift
image: openshift/hello-openshift:123
ports:
- containerPort: 80"><pre class="notranslate"><code class="notranslate"># cat deployment-perme-failed-1.yaml
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: hello-openshift
spec:
progressDeadlineSeconds: 30
replicas: 3
template:
metadata:
labels:
app: hello-openshift
spec:
containers:
- name: hello-openshift
image: openshift/hello-openshift:123
ports:
- containerPort: 80
</code></pre></div>
<ol start="2" dir="auto">
<li>After 30 seconds, check deployment status.</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl describe deployment/hello-openshift
Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing Unknown DeploymentPaused"><pre class="notranslate"><code class="notranslate">$ kubectl describe deployment/hello-openshift
Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing Unknown DeploymentPaused
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl get deployment/hello-openshift -o yaml
status:
conditions:
- lastTransitionTime: 2016-11-08T08:20:41Z
lastUpdateTime: 2016-11-08T08:20:41Z
message: Deployment does not have minimum availability.
reason: MinimumReplicasUnavailable
status: "False"
type: Available
- lastTransitionTime: 2016-11-08T08:20:41Z
lastUpdateTime: 2016-11-08T08:20:41Z
message: Deployment is paused
reason: DeploymentPaused
status: Unknown
type: Progressing
observedGeneration: 2
replicas: 3
unavailableReplicas: 3
updatedReplicas: 3"><pre class="notranslate"><code class="notranslate">$ kubectl get deployment/hello-openshift -o yaml
status:
conditions:
- lastTransitionTime: 2016-11-08T08:20:41Z
lastUpdateTime: 2016-11-08T08:20:41Z
message: Deployment does not have minimum availability.
reason: MinimumReplicasUnavailable
status: "False"
type: Available
- lastTransitionTime: 2016-11-08T08:20:41Z
lastUpdateTime: 2016-11-08T08:20:41Z
message: Deployment is paused
reason: DeploymentPaused
status: Unknown
type: Progressing
observedGeneration: 2
replicas: 3
unavailableReplicas: 3
updatedReplicas: 3
</code></pre></div>
<ol start="3" dir="auto">
<li>Resuming the deployment</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ kubectl rollout resume deployment/hello-openshift"><pre class="notranslate"><code class="notranslate">$ kubectl rollout resume deployment/hello-openshift
</code></pre></div>
<p dir="auto"><strong>Actual results</strong>:<br>
3. The type of <code class="notranslate">Progressing</code> change to <code class="notranslate">false</code> and <code class="notranslate">ProgressDeadlineExceeded</code> immediately after resume deployment.<br>
In describtion of deployment:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing False ProgressDeadlineExceeded"><pre class="notranslate"><code class="notranslate">Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing False ProgressDeadlineExceeded
</code></pre></div>
<p dir="auto"><strong>Expected results</strong>:<br>
3.1 Conditions should be as below after resume deployment.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing True ReplicaSetUpdated"><pre class="notranslate"><code class="notranslate">Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing True ReplicaSetUpdated
</code></pre></div>
<p dir="auto">3.2 After 30 seconds, the type of <code class="notranslate">Progressing</code> change to <code class="notranslate">false</code> and <code class="notranslate">ProgressDeadlineExceeded</code>.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing False ProgressDeadlineExceeded"><pre class="notranslate"><code class="notranslate">Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing False ProgressDeadlineExceeded
</code></pre></div>
<p dir="auto"><strong>Anything else do we need to know</strong>:<br>
We should concern how to count times for below three scenarios:</p>
<ol dir="auto">
<li><code class="notranslate">progressDeadlineSeconds: 30</code>, deploy a deployment(with not exist pod image), pause deployment after 10 seconds, hold on 1mins in pause phase, what status after resume deployment?</li>
<li><code class="notranslate">progressDeadlineSeconds: 30</code>, deploy a deployment(with not exist pod image), pause deployment after 10 seconds, hold on 5 seconds in pause phase, what status after resume deployment?</li>
<li><code class="notranslate">progressDeadlineSeconds: 30</code>, deploy a deployment(with not exist pod image) and pause deployment immediately, hold on 1mins in pause phase, what status after resume deployment?</li>
</ol> | 0 |
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.18363.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 08/05/2020 12:14:21<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<h2 dir="auto"><g-emoji class="g-emoji" alias="information_source" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2139.png">ℹ</g-emoji> Computer information</h2>
<ul dir="auto">
<li>Windows build number: [run "winver"]</li>
<li>PowerToys version:</li>
<li>PowerToy module:</li>
</ul>
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide detailed reproduction steps (if any)</h2>
<ol dir="auto">
<li>…</li>
<li>…</li>
<li>…</li>
</ol>
<h3 dir="auto"><g-emoji class="g-emoji" alias="heavy_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2714.png">✔️</g-emoji> Expected result</h3>
<p dir="auto"><em>What is the expected result of the above steps?</em></p>
<h3 dir="auto"><g-emoji class="g-emoji" alias="x" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/274c.png">❌</g-emoji> Actual result</h3>
<p dir="auto"><em>What is the actual result of the above steps?</em></p>
<h2 dir="auto">📷 Screenshots</h2>
<p dir="auto"><em>Are there any useful screenshots? WinKey+Shift+S and then just paste them directly into the form</em></p> | <p dir="auto">Popup tells me to give y'all this.</p>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 07/31/2020 17:29:59<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | 1 |
<p dir="auto">Allow opening additional windows (BrowserWIndow) to be able to work on multi-monitor setups.</p>
<p dir="auto">See also:</p>
<ul dir="auto">
<li><a href="https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/8279298-detachable-split-view" rel="nofollow">Detachable split-view</a></li>
<li><a href="https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7764594-ability-to-have-a-folder-open-over-multiple-wind" rel="nofollow">Ability to have a "folder" open over multiple windows (like Visual studio)</a></li>
<li><a href="https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/8162727-multiple-windows-same-folder" rel="nofollow">Multiple windows, same folder</a></li>
</ul> | <p dir="auto">Hi,<br>
I suggest floating windows option for:</p>
<ul dir="auto">
<li>Terminal</li>
<li>Debug console</li>
<li>Problems</li>
<li>Output</li>
</ul>
<p dir="auto">Eventually:</p>
<ul dir="auto">
<li>tabs</li>
<li>Explorer / search / debug / git / extensions</li>
</ul>
<p dir="auto">This way we could take advantage of large screen space and / or multi monitors.</p>
<p dir="auto">Having to constantly switch between the various windows is not optimum working flow.</p> | 1 |
<h2 dir="auto">Exception</h2>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 08/03/2020 23:27:53<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p>
<h2 dir="auto">Log file</h2>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5016249/2020-08-03.txt">2020-08-03.txt</a></p> | <p dir="auto">Popup tells me to give y'all this.</p>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5009460/2020-07-31.txt">2020-07-31.txt</a></p>
<p dir="auto">Version: 1.0.0<br>
OS Version: Microsoft Windows NT 10.0.19041.0<br>
IntPtr Length: 8<br>
x64: True<br>
Date: 07/31/2020 17:29:59<br>
Exception:<br>
System.ObjectDisposedException: Cannot access a disposed object.<br>
Object name: 'Timer'.<br>
at System.Timers.Timer.set_Enabled(Boolean value)<br>
at System.Timers.Timer.Start()<br>
at PowerLauncher.MainWindow.OnVisibilityChanged(Object sender, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.UIElement.RaiseDependencyPropertyChanged(EventPrivateKey key, DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.OnIsVisibleChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)<br>
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)<br>
at System.Windows.UIElement.UpdateIsVisibleCache()<br>
at System.Windows.PresentationSource.RootChanged(Visual oldRoot, Visual newRoot)<br>
at System.Windows.Interop.HwndSource.set_RootVisualInternal(Visual value)<br>
at System.Windows.Interop.HwndSource.set_RootVisual(Visual value)<br>
at System.Windows.Window.SetRootVisual()<br>
at System.Windows.Window.SetRootVisualAndUpdateSTC()<br>
at System.Windows.Window.SetupInitialState(Double requestedTop, Double requestedLeft, Double requestedWidth, Double requestedHeight)<br>
at System.Windows.Window.CreateSourceWindow(Boolean duringShow)<br>
at System.Windows.Window.CreateSourceWindowDuringShow()<br>
at System.Windows.Window.SafeCreateWindowDuringShow()<br>
at System.Windows.Window.ShowHelper(Object booleanBox)<br>
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)<br>
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)</p> | 1 |
<h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.4</li>
<li>Operating System / Platform => Windows 7 64 Bit</li>
<li>Compiler => python 3.5.5 / IPyhton 6.5</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">I am reading videostream from a webcam and that works fine for raw YUY2 format, the default.<br>
But i want to do some testing between YUY2 and MJPG and try to reconfigure camera to send my MJPG, but i still only get YUY2.</p>
<p dir="auto">The camera and system can do both as i can see it with AMCap / e-CAMViewer.</p>
<p dir="auto">Might be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="168456455" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/7013" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/7013/hovercard" href="https://github.com/opencv/opencv/issues/7013">#7013</a></p>
<h5 dir="auto">Steps to reproduce</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def decode_fourcc(v):
v = int(v)
return "".join([chr((v >> 8 * i) & 0xFF) for i in range(4)])
def do(self):
print("Testing fps performance with 2592x1944")
self.cv2_cap.set(cv2.CAP_PROP_FRAME_WIDTH, 2592)
self.cv2_cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1944)
str = "actual forcc format: " + decode_fourcc(self.cv2_cap.get(cv2.CAP_PROP_FOURCC))
print (str)
self.file.write(str + '\n')
# self.measureFps()
print("setting to MJPEG and doing FPS measurement again")
ret = self.cv2_cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter_fourcc(*'MJPG'))
time.sleep(1)
print (ret)
str = "actual forcc format: " + decode_fourcc(self.cv2_cap.get(cv2.CAP_PROP_FOURCC))
print (str)
self.measureFps()"><pre class="notranslate"><code class="notranslate">def decode_fourcc(v):
v = int(v)
return "".join([chr((v >> 8 * i) & 0xFF) for i in range(4)])
def do(self):
print("Testing fps performance with 2592x1944")
self.cv2_cap.set(cv2.CAP_PROP_FRAME_WIDTH, 2592)
self.cv2_cap.set(cv2.CAP_PROP_FRAME_HEIGHT, 1944)
str = "actual forcc format: " + decode_fourcc(self.cv2_cap.get(cv2.CAP_PROP_FOURCC))
print (str)
self.file.write(str + '\n')
# self.measureFps()
print("setting to MJPEG and doing FPS measurement again")
ret = self.cv2_cap.set(cv2.CAP_PROP_FOURCC, cv2.VideoWriter_fourcc(*'MJPG'))
time.sleep(1)
print (ret)
str = "actual forcc format: " + decode_fourcc(self.cv2_cap.get(cv2.CAP_PROP_FOURCC))
print (str)
self.measureFps()
</code></pre></div>
<p dir="auto">the output generated is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Testing fps performance with 2592x1944
actual forcc format: YUY2
setting to MJPEG and doing FPS measurement again
True
actual forcc format: YUY2
Time taken : 2.484999895095825 seconds
Estimated frames per second : 2.012072519547206"><pre class="notranslate"><code class="notranslate">Testing fps performance with 2592x1944
actual forcc format: YUY2
setting to MJPEG and doing FPS measurement again
True
actual forcc format: YUY2
Time taken : 2.484999895095825 seconds
Estimated frames per second : 2.012072519547206
</code></pre></div>
<p dir="auto">AMCap working with YUY2:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42960704/45022450-8de23400-b034-11e8-9560-8657c24333e4.jpg"><img src="https://user-images.githubusercontent.com/42960704/45022450-8de23400-b034-11e8-9560-8657c24333e4.jpg" alt="amcap_03_yuy2" style="max-width: 100%;"></a></p>
<p dir="auto">AMCap Settings:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42960704/45022451-8de23400-b034-11e8-83f9-c704a9802d8d.jpg"><img src="https://user-images.githubusercontent.com/42960704/45022451-8de23400-b034-11e8-83f9-c704a9802d8d.jpg" alt="amcap_02_settings" style="max-width: 100%;"></a></p>
<p dir="auto">AMCap working with MJPG:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/42960704/45022452-8de23400-b034-11e8-84ca-d53eb12d7e05.jpg"><img src="https://user-images.githubusercontent.com/42960704/45022452-8de23400-b034-11e8-84ca-d53eb12d7e05.jpg" alt="amcap_01_mjpg" style="max-width: 100%;"></a></p> | <h5 dir="auto">System information (version)</h5>
<ul dir="auto">
<li>OpenCV => 3.1.0</li>
<li>Operating System / Platform => Windows 7 64 Bit</li>
<li>Compiler => Python</li>
</ul>
<h5 dir="auto">Detailed description</h5>
<p dir="auto">Trying to switch camera output from YUY2 to MJPG but it does not work. MJPG mode is working in other software packages.</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 sys
import numpy as np
import time
fourcc_names = ['CAP_PROP_POS_MSEC', 'CAP_PROP_POS_FRAMES', 'CAP_PROP_POS_AVI_RATIO', 'CAP_PROP_FRAME_WIDTH', 'CAP_PROP_FRAME_HEIGHT', 'CAP_PROP_FPS', 'CAP_PROP_FOURCC', 'CAP_PROP_FRAME_COUNT', 'CAP_PROP_FORMAT', 'CAP_PROP_MODE', 'CAP_PROP_BRIGHTNESS', 'CAP_PROP_CONTRAST', 'CAP_PROP_SATURATION', 'CAP_PROP_HUE', 'CAP_PROP_GAIN', 'CAP_PROP_EXPOSURE', 'CAP_PROP_CONVERT_RGB', 'CAP_PROP_WHITE_BALANCE_BLUE_U', 'CAP_PROP_RECTIFICATION', 'CAP_PROP_MONOCHROME', 'CAP_PROP_SHARPNESS', 'CAP_PROP_AUTO_EXPOSURE', 'CAP_PROP_GAMMA', 'CAP_PROP_TEMPERATURE', 'CAP_PROP_TRIGGER', 'CAP_PROP_TRIGGER_DELAY', 'CAP_PROP_WHITE_BALANCE_RED_V', 'CAP_PROP_ZOOM', 'CAP_PROP_FOCUS', 'CAP_PROP_GUID', 'CAP_PROP_ISO_SPEED', 'CAP_PROP_BACKLIGHT', 'CAP_PROP_PAN', 'CAP_PROP_TILT', 'CAP_PROP_ROLL', 'CAP_PROP_IRIS', 'CAP_PROP_SETTINGS', 'CAP_PROP_BUFFERSIZE', 'CAP_PROP_AUTOFOCUS']
def decode_fourcc(v):
v = int(v)
return "".join([chr((v >> 8 * i) & 0xFF) for i in range(4)])
print cv2.__version__
camera = cv2.VideoCapture()
camera.open(0)
print 'Camera open:', camera.isOpened()
# print camera.get(cv2.CAP_PROP_FOURCC)
# C = camera.get(cv2.CAP_PROP_FOURCC)
# print 'fourcc original:', decode_fourcc(C)
# codec = 0x47504A4D # MJPG
# codec = 844715353.0 # YUY2
codec = 1196444237.0 # MJPG
# print 'fourcc:', decode_fourcc(codec)
camera.set(cv2.CAP_PROP_FOURCC, codec)
camera.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
camera.set(cv2.CAP_PROP_FRAME_HEIGHT, 720)
camera.set(cv2.CAP_PROP_FPS, 30.0)
print camera.get(cv2.CAP_PROP_FRAME_WIDTH)
print camera.get(cv2.CAP_PROP_FRAME_HEIGHT)
print camera.get(cv2.CAP_PROP_FPS)
C = camera.get(cv2.CAP_PROP_FOURCC)
print 'fourcc:', decode_fourcc(C)
print
for i in xrange(38):
print i, fourcc_names[i], camera.get(i)
while(1):
camera.grab()
retval, im = camera.retrieve(0)
cv2.imshow("image", im)
k = cv2.waitKey(1) & 0xff
if k == 27:
break
camera.release()
cv2.destroyAllWindows()"><pre class="notranslate"><code class="notranslate">import cv2
import sys
import numpy as np
import time
fourcc_names = ['CAP_PROP_POS_MSEC', 'CAP_PROP_POS_FRAMES', 'CAP_PROP_POS_AVI_RATIO', 'CAP_PROP_FRAME_WIDTH', 'CAP_PROP_FRAME_HEIGHT', 'CAP_PROP_FPS', 'CAP_PROP_FOURCC', 'CAP_PROP_FRAME_COUNT', 'CAP_PROP_FORMAT', 'CAP_PROP_MODE', 'CAP_PROP_BRIGHTNESS', 'CAP_PROP_CONTRAST', 'CAP_PROP_SATURATION', 'CAP_PROP_HUE', 'CAP_PROP_GAIN', 'CAP_PROP_EXPOSURE', 'CAP_PROP_CONVERT_RGB', 'CAP_PROP_WHITE_BALANCE_BLUE_U', 'CAP_PROP_RECTIFICATION', 'CAP_PROP_MONOCHROME', 'CAP_PROP_SHARPNESS', 'CAP_PROP_AUTO_EXPOSURE', 'CAP_PROP_GAMMA', 'CAP_PROP_TEMPERATURE', 'CAP_PROP_TRIGGER', 'CAP_PROP_TRIGGER_DELAY', 'CAP_PROP_WHITE_BALANCE_RED_V', 'CAP_PROP_ZOOM', 'CAP_PROP_FOCUS', 'CAP_PROP_GUID', 'CAP_PROP_ISO_SPEED', 'CAP_PROP_BACKLIGHT', 'CAP_PROP_PAN', 'CAP_PROP_TILT', 'CAP_PROP_ROLL', 'CAP_PROP_IRIS', 'CAP_PROP_SETTINGS', 'CAP_PROP_BUFFERSIZE', 'CAP_PROP_AUTOFOCUS']
def decode_fourcc(v):
v = int(v)
return "".join([chr((v >> 8 * i) & 0xFF) for i in range(4)])
print cv2.__version__
camera = cv2.VideoCapture()
camera.open(0)
print 'Camera open:', camera.isOpened()
# print camera.get(cv2.CAP_PROP_FOURCC)
# C = camera.get(cv2.CAP_PROP_FOURCC)
# print 'fourcc original:', decode_fourcc(C)
# codec = 0x47504A4D # MJPG
# codec = 844715353.0 # YUY2
codec = 1196444237.0 # MJPG
# print 'fourcc:', decode_fourcc(codec)
camera.set(cv2.CAP_PROP_FOURCC, codec)
camera.set(cv2.CAP_PROP_FRAME_WIDTH, 1280)
camera.set(cv2.CAP_PROP_FRAME_HEIGHT, 720)
camera.set(cv2.CAP_PROP_FPS, 30.0)
print camera.get(cv2.CAP_PROP_FRAME_WIDTH)
print camera.get(cv2.CAP_PROP_FRAME_HEIGHT)
print camera.get(cv2.CAP_PROP_FPS)
C = camera.get(cv2.CAP_PROP_FOURCC)
print 'fourcc:', decode_fourcc(C)
print
for i in xrange(38):
print i, fourcc_names[i], camera.get(i)
while(1):
camera.grab()
retval, im = camera.retrieve(0)
cv2.imshow("image", im)
k = cv2.waitKey(1) & 0xff
if k == 27:
break
camera.release()
cv2.destroyAllWindows()
</code></pre></div>
<h5 dir="auto">Output</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="3.1.0
Camera open: True
1280.0
720.0
30.00003
fourcc: YUY2
0 CAP_PROP_POS_MSEC -1.0
1 CAP_PROP_POS_FRAMES -1.0
2 CAP_PROP_POS_AVI_RATIO -1.0
3 CAP_PROP_FRAME_WIDTH 1280.0
4 CAP_PROP_FRAME_HEIGHT 720.0
5 CAP_PROP_FPS 30.00003
6 CAP_PROP_FOURCC 844715353.0
7 CAP_PROP_FRAME_COUNT -1.0
8 CAP_PROP_FORMAT -1.0
9 CAP_PROP_MODE -1.0
10 CAP_PROP_BRIGHTNESS 0.0
11 CAP_PROP_CONTRAST 32.0
12 CAP_PROP_SATURATION 64.0
13 CAP_PROP_HUE 0.0
14 CAP_PROP_GAIN 0.0
15 CAP_PROP_EXPOSURE -6.0
16 CAP_PROP_CONVERT_RGB -1.0
17 CAP_PROP_WHITE_BALANCE_BLUE_U 4600.0
18 CAP_PROP_RECTIFICATION -1.0
19 CAP_PROP_MONOCHROME 19.0
20 CAP_PROP_SHARPNESS 3.0
21 CAP_PROP_AUTO_EXPOSURE -1.0
22 CAP_PROP_GAMMA 100.0
23 CAP_PROP_TEMPERATURE -1.0
24 CAP_PROP_TRIGGER -1.0
25 CAP_PROP_TRIGGER_DELAY -1.0
26 CAP_PROP_WHITE_BALANCE_RED_V -1.0
27 CAP_PROP_ZOOM 27.0
28 CAP_PROP_FOCUS 28.0
29 CAP_PROP_GUID -1.0
30 CAP_PROP_ISO_SPEED -1.0
31 CAP_PROP_BACKLIGHT -1.0
32 CAP_PROP_PAN 1.0
33 CAP_PROP_TILT 33.0
34 CAP_PROP_ROLL 34.0
35 CAP_PROP_IRIS 35.0
36 CAP_PROP_SETTINGS 36.0
37 CAP_PROP_BUFFERSIZE -1.0"><pre class="notranslate"><code class="notranslate">3.1.0
Camera open: True
1280.0
720.0
30.00003
fourcc: YUY2
0 CAP_PROP_POS_MSEC -1.0
1 CAP_PROP_POS_FRAMES -1.0
2 CAP_PROP_POS_AVI_RATIO -1.0
3 CAP_PROP_FRAME_WIDTH 1280.0
4 CAP_PROP_FRAME_HEIGHT 720.0
5 CAP_PROP_FPS 30.00003
6 CAP_PROP_FOURCC 844715353.0
7 CAP_PROP_FRAME_COUNT -1.0
8 CAP_PROP_FORMAT -1.0
9 CAP_PROP_MODE -1.0
10 CAP_PROP_BRIGHTNESS 0.0
11 CAP_PROP_CONTRAST 32.0
12 CAP_PROP_SATURATION 64.0
13 CAP_PROP_HUE 0.0
14 CAP_PROP_GAIN 0.0
15 CAP_PROP_EXPOSURE -6.0
16 CAP_PROP_CONVERT_RGB -1.0
17 CAP_PROP_WHITE_BALANCE_BLUE_U 4600.0
18 CAP_PROP_RECTIFICATION -1.0
19 CAP_PROP_MONOCHROME 19.0
20 CAP_PROP_SHARPNESS 3.0
21 CAP_PROP_AUTO_EXPOSURE -1.0
22 CAP_PROP_GAMMA 100.0
23 CAP_PROP_TEMPERATURE -1.0
24 CAP_PROP_TRIGGER -1.0
25 CAP_PROP_TRIGGER_DELAY -1.0
26 CAP_PROP_WHITE_BALANCE_RED_V -1.0
27 CAP_PROP_ZOOM 27.0
28 CAP_PROP_FOCUS 28.0
29 CAP_PROP_GUID -1.0
30 CAP_PROP_ISO_SPEED -1.0
31 CAP_PROP_BACKLIGHT -1.0
32 CAP_PROP_PAN 1.0
33 CAP_PROP_TILT 33.0
34 CAP_PROP_ROLL 34.0
35 CAP_PROP_IRIS 35.0
36 CAP_PROP_SETTINGS 36.0
37 CAP_PROP_BUFFERSIZE -1.0
</code></pre></div> | 1 |
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://www.github.com/electron/electron/issues">issue tracker</a> for a feature request that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Electron Version</h3>
<p dir="auto">^11.0.1</p>
<h3 dir="auto">What operating system are you using?</h3>
<p dir="auto">macOS</p>
<h3 dir="auto">Operating System Version</h3>
<p dir="auto">MacOs Big Sur, 11.0.1</p>
<h3 dir="auto">What arch are you using?</h3>
<p dir="auto">x64</p>
<h3 dir="auto">Last Known Working Electron version</h3>
<p dir="auto">None, tried in 12.0.0 also</p>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">I have added two BrowserView to BrowserWindow using addBrowserView method on BrowserWindow's instance</p>
<p dir="auto">Ideally, both the browser views should be interactable but I can focus and enter text in only one of the browserviews<br>
Other browserview won't event respond to click events.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5319600/117157419-36478800-addc-11eb-9e44-7a2d54afc092.png"><img src="https://user-images.githubusercontent.com/5319600/117157419-36478800-addc-11eb-9e44-7a2d54afc092.png" alt="Screenshot 2021-05-05 at 7 58 01 PM" style="max-width: 100%;"></a></p>
<p dir="auto">Browserview in the left is working fine, but on the right, it is frozen, nothing happens on clicking</p>
<h3 dir="auto">Repo URL to reproduce this issue</h3>
<p dir="auto"><a href="https://github.com/pOoOf/electron-test">https://github.com/pOoOf/electron-test</a></p>
<h3 dir="auto">Instructions to start server</h3>
<p dir="auto">This works with node 12</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nvm use 12
yarn
yarn start"><pre class="notranslate"><code class="notranslate">nvm use 12
yarn
yarn start
</code></pre></div> | <ul dir="auto">
<li>electron version: 1.6.2</li>
<li>os: windows 7</li>
</ul>
<p dir="auto">Okay, here's a problem I've met:<br>
If I set the BrowserWindow with option "transparent: true", the function ".isMaximized()" always return the "false" value, which means I cant reset the window into its initial size.</p> | 0 |
<h2 dir="auto">🐛 Bug</h2>
<p dir="auto">RuntimeError: Exporting the operator affine_grid_generator to ONNX opset version 11 is not supported. Please open a bug to request ONNX export support for the missing operator.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior:</p>
<ol dir="auto">
<li>Just trying to convert this pytorch project in link to onnx model, using the code below in eval.py</li>
</ol>
<p dir="auto">"<a href="https://github.com/D-X-Y/landmark-detection/tree/master/SBR">https://github.com/D-X-Y/landmark-detection/tree/master/SBR</a>"</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="inputs = image.unsqueeze(0)
net.to(torch.device('cpu'))
input_names = [ "actual_input_1" ] + [ "learned_%d" % i for i in range(72) ]
output_names = [ "output1", "output2"]
torch.onnx.export(net, # model being run
inputs, # model input (or a tuple for multiple inputs)
"sbr.onnx", # where to save the model (can be a file or file-like object)
verbose=True, input_names=input_names, output_names=output_names
,operator_export_type=torch.onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK
,opset_version=12
)"><pre class="notranslate"><code class="notranslate">inputs = image.unsqueeze(0)
net.to(torch.device('cpu'))
input_names = [ "actual_input_1" ] + [ "learned_%d" % i for i in range(72) ]
output_names = [ "output1", "output2"]
torch.onnx.export(net, # model being run
inputs, # model input (or a tuple for multiple inputs)
"sbr.onnx", # where to save the model (can be a file or file-like object)
verbose=True, input_names=input_names, output_names=output_names
,operator_export_type=torch.onnx.OperatorExportTypes.ONNX_ATEN_FALLBACK
,opset_version=12
)
</code></pre></div>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">Obtaining onnx model file correctly</p>
<h2 dir="auto">Environment</h2>
<p dir="auto">PyTorch version: 1.6.0a0+f6b1c04<br>
Is debug build: No<br>
CUDA used to build PyTorch: 10.2</p>
<p dir="auto">OS: Ubuntu 18.04.4 LTS<br>
GCC version: (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0<br>
CMake version: version 3.17.2</p>
<p dir="auto">Python version: 3.6<br>
Is CUDA available: Yes<br>
CUDA runtime version: Could not collect<br>
GPU models and configuration: GPU 0: GeForce GTX 1050 Ti<br>
Nvidia driver version: 440.64.00<br>
cuDNN version: /usr/lib/x86_64-linux-gnu/libcudnn.so.7.6.5</p>
<p dir="auto">Versions of relevant libraries:<br>
[pip] numpy==1.18.4<br>
[pip] torch==1.6.0a0+f6b1c04<br>
[conda] blas 1.0 mkl<br>
[conda] libblas 3.8.0 15_mkl conda-forge<br>
[conda] libcblas 3.8.0 15_mkl conda-forge<br>
[conda] liblapack 3.8.0 15_mkl conda-forge<br>
[conda] magma-cuda102 2.5.2 1 pytorch<br>
[conda] mkl 2019.0 pypi_0 pypi<br>
[conda] mkl-include 2019.0 pypi_0 pypi<br>
[conda] mkl-service 2.3.0 py36he904b0f_0<br>
[conda] mkl_fft 1.0.15 py36ha843d7b_0<br>
[conda] mkl_random 1.1.0 py36hd6b4f25_0<br>
[conda] numpy 1.18.2 pypi_0 pypi<br>
[conda] numpy-base 1.18.1 py36hde5b4d6_1<br>
[conda] torch 1.6.0a0+f6b1c04 dev_0 </p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/houseroad/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/houseroad">@houseroad</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/spandantiwari/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/spandantiwari">@spandantiwari</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/lara-hdr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/lara-hdr">@lara-hdr</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/BowenBao/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/BowenBao">@BowenBao</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/neginraoof/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/neginraoof">@neginraoof</a></p> | <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import torch
import torch.nn as nn
class Model(nn.Module):
def __init__(self):
super(Model, self).__init__()
def forward(self, theta, size):
return torch.nn.functional.affine_grid(theta, size, align_corners=None)
model = Model()
theta = torch.ones((1, 2, 3))
size = torch.Size((1,3,24,24))
torch.onnx.export(model, (theta, size), 'test.onnx', verbose=True)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">torch</span>
<span class="pl-k">import</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span> <span class="pl-k">as</span> <span class="pl-s1">nn</span>
<span class="pl-k">class</span> <span class="pl-v">Model</span>(<span class="pl-s1">nn</span>.<span class="pl-v">Module</span>):
<span class="pl-k">def</span> <span class="pl-en">__init__</span>(<span class="pl-s1">self</span>):
<span class="pl-en">super</span>(<span class="pl-v">Model</span>, <span class="pl-s1">self</span>).<span class="pl-en">__init__</span>()
<span class="pl-k">def</span> <span class="pl-en">forward</span>(<span class="pl-s1">self</span>, <span class="pl-s1">theta</span>, <span class="pl-s1">size</span>):
<span class="pl-k">return</span> <span class="pl-s1">torch</span>.<span class="pl-s1">nn</span>.<span class="pl-s1">functional</span>.<span class="pl-en">affine_grid</span>(<span class="pl-s1">theta</span>, <span class="pl-s1">size</span>, <span class="pl-s1">align_corners</span><span class="pl-c1">=</span><span class="pl-c1">None</span>)
<span class="pl-s1">model</span> <span class="pl-c1">=</span> <span class="pl-v">Model</span>()
<span class="pl-s1">theta</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-en">ones</span>((<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>))
<span class="pl-s1">size</span> <span class="pl-c1">=</span> <span class="pl-s1">torch</span>.<span class="pl-v">Size</span>((<span class="pl-c1">1</span>,<span class="pl-c1">3</span>,<span class="pl-c1">24</span>,<span class="pl-c1">24</span>))
<span class="pl-s1">torch</span>.<span class="pl-s1">onnx</span>.<span class="pl-en">export</span>(<span class="pl-s1">model</span>, (<span class="pl-s1">theta</span>, <span class="pl-s1">size</span>), <span class="pl-s">'test.onnx'</span>, <span class="pl-s1">verbose</span><span class="pl-c1">=</span><span class="pl-c1">True</span>)</pre></div>
<p dir="auto">Result:<br>
<code class="notranslate">RuntimeError: Exporting the operator affine_grid_generator to ONNX opset version 9 is not supported.</code></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 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"> 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" checked=""> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>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>:</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:4.3.0 (rhubarb) kombu:4.6.0 py:3.6.8
billiard:3.6.0.0 redis:3.2.0
platform -> system:Linux arch:64bit
kernel version:4.15.0-50-generic imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:django-db"><pre class="notranslate"><code class="notranslate">software -> celery:4.3.0 (rhubarb) kombu:4.6.0 py:3.6.8
billiard:3.6.0.0 redis:3.2.0
platform -> system:Linux arch:64bit
kernel version:4.15.0-50-generic imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:redis results:django-db
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<p dir="auto">Run a celery worker with a MySQL backend (possibly through Django).<br>
After the worker is up, shut down the MySQL service.<br>
Try running a task.</p>
<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>: 4.2.0</li>
<li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li>
<li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li>
</ul>
<h3 dir="auto">Python Packages</h3>
<details>
<summary><b><code class="notranslate">pip freeze</code> Output:</b></summary>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="celery==4.3.0
Django==2.2.1
mysqlclient==1.4.2"><pre class="notranslate"><code class="notranslate">celery==4.3.0
Django==2.2.1
mysqlclient==1.4.2
</code></pre></div>
<p dir="auto">(only relevant packages)</p>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">This is a non-recoverable error. The worker process should terminate, which would be treated as an error by a monitoring tool that will restart it.</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">An exception is printed to stderr. The worker itself keeps running, receiving tasks, but never running them.<br>
An exception is printed after each "Task accepted" log message.</p>
<details>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ERROR/MainProcess] Pool callback raised exception: OperationalError(2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
Traceback (most recent call last):
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
self.connect()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 195, in connect
self.connection = self.get_new_connection(conn_params)
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 227, in get_new_connection
return Database.connect(**conn_params)
File "[REDACTED]/lib/python3.6/site-packages/MySQLdb/__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/MySQLdb/connections.py", line 164, in __init__
super(Connection, self).__init__(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "[REDACTED]/lib/python3.6/site-packages/billiard/pool.py", line 1750, in safe_apply_callback
fun(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/celery/worker/request.py", line 371, in on_failure
store_result=self.store_errors,
File "[REDACTED]/lib/python3.6/site-packages/celery/backends/base.py", line 160, in mark_as_failure
traceback=traceback, request=request)
File "[REDACTED]/lib/python3.6/site-packages/celery/backends/base.py", line 342, in store_result
request=request, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/django_celery_results/backends/database.py", line 35, in _store_result
task_kwargs=task_kwargs,
File "[REDACTED]/lib/python3.6/site-packages/django_celery_results/managers.py", line 50, in _inner
return fun(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/django_celery_results/managers.py", line 126, in store_result
obj, created = self.get_or_create(task_id=task_id, defaults=fields)
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 538, in get_or_create
return self.get(**kwargs), False
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 402, in get
num = len(clone)
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 256, in __len__
self._fetch_all()
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1098, in execute_sql
cursor = self.connection.cursor()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 256, in cursor
return self._cursor()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 233, in _cursor
self.ensure_connection()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
self.connect()
File "[REDACTED]/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
self.connect()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 195, in connect
self.connection = self.get_new_connection(conn_params)
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 227, in get_new_connection
return Database.connect(**conn_params)
File "[REDACTED]/lib/python3.6/site-packages/MySQLdb/__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/MySQLdb/connections.py", line 164, in __init__
super(Connection, self).__init__(*args, **kwargs2)
django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")"><pre class="notranslate"><code class="notranslate">[ERROR/MainProcess] Pool callback raised exception: OperationalError(2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
Traceback (most recent call last):
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
self.connect()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 195, in connect
self.connection = self.get_new_connection(conn_params)
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 227, in get_new_connection
return Database.connect(**conn_params)
File "[REDACTED]/lib/python3.6/site-packages/MySQLdb/__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/MySQLdb/connections.py", line 164, in __init__
super(Connection, self).__init__(*args, **kwargs2)
MySQLdb._exceptions.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "[REDACTED]/lib/python3.6/site-packages/billiard/pool.py", line 1750, in safe_apply_callback
fun(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/celery/worker/request.py", line 371, in on_failure
store_result=self.store_errors,
File "[REDACTED]/lib/python3.6/site-packages/celery/backends/base.py", line 160, in mark_as_failure
traceback=traceback, request=request)
File "[REDACTED]/lib/python3.6/site-packages/celery/backends/base.py", line 342, in store_result
request=request, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/django_celery_results/backends/database.py", line 35, in _store_result
task_kwargs=task_kwargs,
File "[REDACTED]/lib/python3.6/site-packages/django_celery_results/managers.py", line 50, in _inner
return fun(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/django_celery_results/managers.py", line 126, in store_result
obj, created = self.get_or_create(task_id=task_id, defaults=fields)
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/manager.py", line 82, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 538, in get_or_create
return self.get(**kwargs), False
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 402, in get
num = len(clone)
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 256, in __len__
self._fetch_all()
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 1242, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/query.py", line 55, in __iter__
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "[REDACTED]/lib/python3.6/site-packages/django/db/models/sql/compiler.py", line 1098, in execute_sql
cursor = self.connection.cursor()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 256, in cursor
return self._cursor()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 233, in _cursor
self.ensure_connection()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
self.connect()
File "[REDACTED]/lib/python3.6/site-packages/django/db/utils.py", line 89, in __exit__
raise dj_exc_value.with_traceback(traceback) from exc_value
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 217, in ensure_connection
self.connect()
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/base/base.py", line 195, in connect
self.connection = self.get_new_connection(conn_params)
File "[REDACTED]/lib/python3.6/site-packages/django/db/backends/mysql/base.py", line 227, in get_new_connection
return Database.connect(**conn_params)
File "[REDACTED]/lib/python3.6/site-packages/MySQLdb/__init__.py", line 84, in Connect
return Connection(*args, **kwargs)
File "[REDACTED]/lib/python3.6/site-packages/MySQLdb/connections.py", line 164, in __init__
super(Connection, self).__init__(*args, **kwargs2)
django.db.utils.OperationalError: (2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")
</code></pre></div>
<p dir="auto"></p>
</details>
<p dir="auto">This is unhelpful. Without looking at the logs you wouldn't know anything was wrong.</p>
<p dir="auto">In the production setting, the exception is only printed as many times as there are concurrent workers, which makes it even harder to identify. I was not able to reproduce this particular behavior locally, and get an exception each time.</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"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br>
broker and/or result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>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>:</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.0.0 (singularity) kombu:5.0.2 py:3.8.5
billiard:3.6.3.0 py-amqp:5.0.1
platform -> system:Darwin arch:64bit
kernel version:18.7.0 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled
deprecated_settings: None
"><pre class="notranslate"><code class="notranslate">software -> celery:5.0.0 (singularity) kombu:5.0.2 py:3.8.5
billiard:3.6.3.0 py-amqp:5.0.1
platform -> system:Darwin arch:64bit
kernel version:18.7.0 imp:CPython
loader -> celery.loaders.app.AppLoader
settings -> transport:amqp results:disabled
deprecated_settings: None
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: N/A or Unknown</li>
<li><strong>Minimal Celery Version</strong>: 5.0.0</li>
<li><strong>Minimal Kombu Version</strong>: 5.0.2</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.1
appdirs==1.4.4
appnope==0.1.0
asgiref==3.2.10
astor==0.8.1
attrs==20.2.0
backcall==0.2.0
bandit==1.6.2
bcrypt==3.2.0
billiard==3.6.3.0
blinker==1.4
celery==5.0.0
certifi==2020.6.20
cffi==1.14.3
chardet==3.0.4
click==7.1.2
click-default-group==1.2.2
click-didyoumean==0.0.3
click-repl==0.1.6
colorama==0.4.3
coreapi==2.3.3
coreschema==0.0.4
coverage==5.3
darglint==1.5.4
decorator==4.4.2
dennis==0.9
Django==3.0.10
django-admin-tools==0.9.0
django-autocomplete-light==3.5.0
django-coverage-plugin==1.8.0
django-csp==3.7
django-debug-toolbar==2.2
django-extensions==3.0.9
django-feature-policy==3.4.0
django-filter==2.4.0
django-health-check==3.14.1
django-http-referrer-policy==1.0.1
django-lifecycle==0.7.7
django-migration-linter==2.4.0
django-querycount==0.7.0
django-split-settings==1.0.1
django-stubs==1.5.0
django-test-migrations==1.0.0
djangorestframework==3.11.1
docutils==0.16
dotenv-linter==0.1.3
dparse==0.5.1
drf-yasg==1.17.1
eradicate==1.0
Faker==4.1.3
flake8==3.8.3
flake8-bandit==2.1.2
flake8-broken-line==0.2.1
flake8-bugbear==19.8.0
flake8-commas==2.0.0
flake8-comprehensions==3.2.3
flake8-debugger==3.2.1
flake8-django==1.1.1
flake8-docstrings==1.5.0
flake8-eradicate==0.3.0
flake8-isort==3.0.1
flake8-logging-format==0.6.0
flake8-plugin-utils==1.3.1
flake8-polyfill==1.0.2
flake8-pytest-style==1.3.0
flake8-quotes==2.1.2
flake8-rst-docstrings==0.0.12
flake8-string-format==0.2.3
flower==0.9.5
gitdb==4.0.5
GitPython==3.1.8
gunicorn==20.0.4
humanize==2.6.0
hypothesis==5.36.0
idna==2.10
importlib-metadata==1.1.3
inflection==0.5.1
iniconfig==1.0.1
ipython==7.18.1
ipython-genutils==0.2.0
isort==4.3.21
itypes==1.2.0
jedi==0.17.2
Jinja2==2.11.2
kombu==5.0.2
MarkupSafe==1.1.1
mccabe==0.6.1
more-itertools==8.5.0
mypy==0.770
mypy-extensions==0.4.3
nplusone==1.0.0
orjson==3.3.1
packaging==20.4
parso==0.7.1
pbr==5.5.0
pep8-naming==0.9.1
pexpect==4.8.0
pickleshare==0.7.5
pluggy==0.13.1
ply==3.11
polib==1.1.0
prometheus-client==0.8.0
prompt-toolkit==3.0.7
psycopg2==2.8.6
ptyprocess==0.6.0
py==1.9.0
pycodestyle==2.6.0
pycparser==2.20
pydantic==1.6.1
pydocstyle==5.1.1
pyflakes==2.2.0
Pygments==2.7.1
PyJWT==1.7.1
pyparsing==2.4.7
pytest==6.0.2
pytest-cov==2.10.1
pytest-deadfixtures==2.2.1
pytest-django==3.10.0
pytest-randomly==3.4.1
pytest-testmon==1.0.3
pytest-timeout==1.4.2
python-dateutil==2.8.1
python-decouple==3.3
pytz==2020.1
PyYAML==5.3.1
requests==2.24.0
restructuredtext-lint==1.3.1
ruamel.yaml==0.16.12
ruamel.yaml.clib==0.2.2
safety==1.9.0
sentry-sdk==0.17.8
six==1.15.0
smmap==3.0.4
snowballstemmer==2.0.0
sortedcontainers==2.2.2
sqlparse==0.3.1
stevedore==3.2.2
structlog==20.1.0
testfixtures==6.14.2
text-unidecode==1.3
toml==0.10.1
tornado==6.0.4
traitlets==5.0.4
typed-ast==1.4.1
typing-extensions==3.7.4.3
uritemplate==3.0.1
urllib3==1.25.10
urlman==1.3.0
vine==5.0.0
wcwidth==0.2.5
wemake-python-styleguide==0.14.1
wrapt==1.12.1
zipp==3.2.0"><pre class="notranslate"><code class="notranslate">amqp==5.0.1
appdirs==1.4.4
appnope==0.1.0
asgiref==3.2.10
astor==0.8.1
attrs==20.2.0
backcall==0.2.0
bandit==1.6.2
bcrypt==3.2.0
billiard==3.6.3.0
blinker==1.4
celery==5.0.0
certifi==2020.6.20
cffi==1.14.3
chardet==3.0.4
click==7.1.2
click-default-group==1.2.2
click-didyoumean==0.0.3
click-repl==0.1.6
colorama==0.4.3
coreapi==2.3.3
coreschema==0.0.4
coverage==5.3
darglint==1.5.4
decorator==4.4.2
dennis==0.9
Django==3.0.10
django-admin-tools==0.9.0
django-autocomplete-light==3.5.0
django-coverage-plugin==1.8.0
django-csp==3.7
django-debug-toolbar==2.2
django-extensions==3.0.9
django-feature-policy==3.4.0
django-filter==2.4.0
django-health-check==3.14.1
django-http-referrer-policy==1.0.1
django-lifecycle==0.7.7
django-migration-linter==2.4.0
django-querycount==0.7.0
django-split-settings==1.0.1
django-stubs==1.5.0
django-test-migrations==1.0.0
djangorestframework==3.11.1
docutils==0.16
dotenv-linter==0.1.3
dparse==0.5.1
drf-yasg==1.17.1
eradicate==1.0
Faker==4.1.3
flake8==3.8.3
flake8-bandit==2.1.2
flake8-broken-line==0.2.1
flake8-bugbear==19.8.0
flake8-commas==2.0.0
flake8-comprehensions==3.2.3
flake8-debugger==3.2.1
flake8-django==1.1.1
flake8-docstrings==1.5.0
flake8-eradicate==0.3.0
flake8-isort==3.0.1
flake8-logging-format==0.6.0
flake8-plugin-utils==1.3.1
flake8-polyfill==1.0.2
flake8-pytest-style==1.3.0
flake8-quotes==2.1.2
flake8-rst-docstrings==0.0.12
flake8-string-format==0.2.3
flower==0.9.5
gitdb==4.0.5
GitPython==3.1.8
gunicorn==20.0.4
humanize==2.6.0
hypothesis==5.36.0
idna==2.10
importlib-metadata==1.1.3
inflection==0.5.1
iniconfig==1.0.1
ipython==7.18.1
ipython-genutils==0.2.0
isort==4.3.21
itypes==1.2.0
jedi==0.17.2
Jinja2==2.11.2
kombu==5.0.2
MarkupSafe==1.1.1
mccabe==0.6.1
more-itertools==8.5.0
mypy==0.770
mypy-extensions==0.4.3
nplusone==1.0.0
orjson==3.3.1
packaging==20.4
parso==0.7.1
pbr==5.5.0
pep8-naming==0.9.1
pexpect==4.8.0
pickleshare==0.7.5
pluggy==0.13.1
ply==3.11
polib==1.1.0
prometheus-client==0.8.0
prompt-toolkit==3.0.7
psycopg2==2.8.6
ptyprocess==0.6.0
py==1.9.0
pycodestyle==2.6.0
pycparser==2.20
pydantic==1.6.1
pydocstyle==5.1.1
pyflakes==2.2.0
Pygments==2.7.1
PyJWT==1.7.1
pyparsing==2.4.7
pytest==6.0.2
pytest-cov==2.10.1
pytest-deadfixtures==2.2.1
pytest-django==3.10.0
pytest-randomly==3.4.1
pytest-testmon==1.0.3
pytest-timeout==1.4.2
python-dateutil==2.8.1
python-decouple==3.3
pytz==2020.1
PyYAML==5.3.1
requests==2.24.0
restructuredtext-lint==1.3.1
ruamel.yaml==0.16.12
ruamel.yaml.clib==0.2.2
safety==1.9.0
sentry-sdk==0.17.8
six==1.15.0
smmap==3.0.4
snowballstemmer==2.0.0
sortedcontainers==2.2.2
sqlparse==0.3.1
stevedore==3.2.2
structlog==20.1.0
testfixtures==6.14.2
text-unidecode==1.3
toml==0.10.1
tornado==6.0.4
traitlets==5.0.4
typed-ast==1.4.1
typing-extensions==3.7.4.3
uritemplate==3.0.1
urllib3==1.25.10
urlman==1.3.0
vine==5.0.0
wcwidth==0.2.5
wemake-python-styleguide==0.14.1
wrapt==1.12.1
zipp==3.2.0
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
N/A
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="celery -A proj inspect ping -d celery@$HOSTNAME"><pre class="notranslate">celery -A proj inspect ping -d celery@<span class="pl-smi">$HOSTNAME</span></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="-> celery@$HOSTNAME: OK
pong"><pre class="notranslate"><code class="notranslate">-> celery@$HOSTNAME: OK
pong
</code></pre></div>
<h1 dir="auto">Actual Behavior</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/bin/celery", line 8, in <module>
sys.exit(main())
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/__main__.py", line 15, in main
sys.exit(_main())
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/bin/celery.py", line 150, in main
return celery(auto_envvar_prefix="CELERY")
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/bin/control.py", line 125, in inspect
replies = ctx.obj.app.control.inspect(timeout=timeout,
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/app/control.py", line 97, in _request
return self._prepare(self.app.control.broadcast(
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/app/control.py", line 477, in broadcast
return self.mailbox(conn)._broadcast(
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/kombu/pidbox.py", line 319, in _broadcast
raise ValueError(
ValueError: destination must be a list/tuple not <class 'set'>
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/bin/celery", line 8, in <module>
sys.exit(main())
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/__main__.py", line 15, in main
sys.exit(_main())
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/bin/celery.py", line 150, in main
return celery(auto_envvar_prefix="CELERY")
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 829, in __call__
return self.main(*args, **kwargs)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 782, in main
rv = self.invoke(ctx)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/core.py", line 610, in invoke
return callback(*args, **kwargs)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/bin/control.py", line 125, in inspect
replies = ctx.obj.app.control.inspect(timeout=timeout,
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/app/control.py", line 97, in _request
return self._prepare(self.app.control.broadcast(
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/celery/app/control.py", line 477, in broadcast
return self.mailbox(conn)._broadcast(
File "/Users/aszubarev/Library/Caches/pypoetry/virtualenvs/service-notification-py-xHAuYcng-py3.8/lib/python3.8/site-packages/kombu/pidbox.py", line 319, in _broadcast
raise ValueError(
ValueError: destination must be a list/tuple not <class 'set'>
Sentry is attempting to send 0 pending error messages
Waiting up to 2 seconds
Press Ctrl-C to quit
</code></pre></div> | 0 |
<p dir="auto">The link on the 1.0 documentation "View the latest version here" should point to the 1.1 version of the same page (if it exists). Currently, it just navigates to the root page (<a href="http://kubernetes.io/docs" rel="nofollow">http://kubernetes.io/docs</a>).</p> | <p dir="auto">Getting messages like the following repeatedly in the log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="W0129 04:35:07.724460 1 aws.go:1489] Error authorizing security group ingressInvalidPermission.Duplicate: the specified rule "peer: sg-fd3fc79a, ALL, ALLOW" already exists"><pre class="notranslate"><code class="notranslate">W0129 04:35:07.724460 1 aws.go:1489] Error authorizing security group ingressInvalidPermission.Duplicate: the specified rule "peer: sg-fd3fc79a, ALL, ALLOW" already exists
</code></pre></div>
<p dir="auto">It seems the controller should just be satisfied that the rule already exists and move on.</p> | 0 |
<p dir="auto">@ symbol is not working with German keyboard layout. Nothing appears in editor, neither with hardware, nor with virtual keyboard. Works in all other software. There is no other keybinding set for this in Atom, as far as i can see.<br>
If i switch to English layout, it works, but screws all the other symbols, obviously.</p>
<p dir="auto">Win 8.1/64bit<br>
Atom 0.113.0</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 |
<h1 dir="auto">Bug report</h1>
<h2 dir="auto">Describe the bug</h2>
<p dir="auto">I have two page components PageA and PageB. PageA doesn't use antd components but PageB does. The style file of PageB imported antd's css file:<br>
style-b.less</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@import '~antd/dist/antd.css';
// ...other styles"><pre class="notranslate"><code class="notranslate">@import '~antd/dist/antd.css';
// ...other styles
</code></pre></div>
<p dir="auto">PageB:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import './style-b.less'
// ..."><pre class="notranslate"><code class="notranslate">import './style-b.less'
// ...
</code></pre></div>
<p dir="auto">When I first open PageB, everything runs well;<br>
When I first open PageA and jump to PageB (by click a link in PageA), the antd css file is not loaded.</p>
<h2 dir="auto">To Reproduce</h2>
<p dir="auto">Steps to reproduce the behavior, please provide code snippets or a repository:</p>
<ol dir="auto">
<li>Open localhost:3000/b (pageB rendered correctly)</li>
<li>Open localhost:3000/a, click the link to jump to b (this time pageB doesn't load antd's style)</li>
</ol>
<h2 dir="auto">Expected behavior</h2>
<p dir="auto">When jump to b from a, b have the antd style file loaded.</p>
<h2 dir="auto">System information</h2>
<ul dir="auto">
<li>OS: mac</li>
<li>Browser (if applies) chrome 73.0.3683.86</li>
<li>Version of Next.js: 8.0.3</li>
</ul> | <p dir="auto">In <a href="https://github.com/hanford/nextjs-cssmodules">this small repo</a> I've illustrated <code class="notranslate">next-css</code> not working with SSR, this is a blocker from my team moving off of <a href="https://github.com/traveloka/styled-modules">https://github.com/traveloka/styled-modules</a> which we're super eager to do.</p>
<p dir="auto">Great work on Next.js 5.0! Can't wait to fully migrate to it :)</p>
<p dir="auto">I would mind if Next.js apps had to have a custom <code class="notranslate">_document.js</code> to support this, but I guess thats more of an implementation detail.</p> | 1 |
<h3 dir="auto">Affected Version</h3>
<p dir="auto">0.20.0</p>
<h3 dir="auto">Description</h3>
<p dir="auto">Ingesting to same Datasource from 2 different Kafka clusters with exact same topic name/specs overwrites previous Supervisor.</p>
<ul dir="auto">
<li>Steps to reproduce the problem</li>
</ul>
<ol dir="auto">
<li>Create 1st Kafka spec and submit;</li>
<li>Create 2nd Kafka spec and submit with exact same spec as 1st, but w/ different Kafka brokers.</li>
</ol>
<p dir="auto">Expected results: 2 Supervisors ingesting from 2 different Kafka clusters w/ same topic name to same Datasource</p> | <p dir="auto">Opentsdb logs as follows:<br>
20:23:04.230 WARN [PutDataPointRpc.execute] - Invalid tag value ("bd-prod-rt-olap0:8082"): illegal character: :: metric=query.cpu.time ts=1527769336 value=1101 service=druid/broker host=bd-prod-rt-olap0:8082 type=segmentMetadata dataSource=accesslog-tranquility-seller-log</p>
<p dir="auto">tag value should be sanitized too.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1287334/40782699-c206f85a-6512-11e8-9558-860421f574be.png"><img src="https://user-images.githubusercontent.com/1287334/40782699-c206f85a-6512-11e8-9558-860421f574be.png" alt="image" style="max-width: 100%;"></a></p> | 0 |
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">nightly (1.9.0-dev.20160429)</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="const foo = {
_foo: 'bar',
get foo() { // <- 'foo' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.
return this._foo;
},
set foo(value) { // <- 'value' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
this._foo = value;
}
};"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">_foo</span>: <span class="pl-s">'bar'</span><span class="pl-kos">,</span>
<span class="pl-k">get</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// <- 'foo' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.</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-kos">}</span><span class="pl-kos">,</span>
<span class="pl-k">set</span> <span class="pl-en">foo</span><span class="pl-kos">(</span><span class="pl-s1">value</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// <- 'value' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.</span>
<span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_foo</span> <span class="pl-c1">=</span> <span class="pl-s1">value</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">No errors.</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">With the compiler option <code class="notranslate">noImplicitAny = true</code> and inferred object literal typing, the compiler is complaining that <code class="notranslate">get</code> and <code class="notranslate">set</code> accessors have inferred <code class="notranslate">any</code> types, when though it is logical that the type of <code class="notranslate">string</code> can be inferred from the context (or at least I am missing the reason why it cannot be inferred).</p> | <p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.9<br>
<strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Window {
URL;
}"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Window</span> <span class="pl-kos">{</span>
<span class="pl-c1">URL</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">When upgrading typescript versions, new definitions were added to lib.d.ts, and these new definitions cause conflicts with definitions we had in our project.</p>
<p dir="auto">This makes it annoying to upgrade typescript since we have to introduce a change to the code that breaks anyone using an old compiler.</p>
<p dir="auto"><strong>Expected behavior:</strong><br>
Typescript would merge the types in my project definitions with lib.d.ts without complaint.</p> | 0 |
<h2 dir="auto">Current (minimized) example of breakage:</h2>
<p dir="auto">(courtesy of youknowone; see comments below)</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let _a = [0, ..1 as uint]; }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> _a = <span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">,</span> ..<span class="pl-c1">1</span> <span class="pl-k">as</span> <span class="pl-smi">uint</span><span class="pl-kos">]</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div>
<h2 dir="auto">Original Report:</h2>
<p dir="auto">The following code causes the crash</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="enum State { ST_NULL, ST_WHITESPACE }
priv fn SomeFunction () -> StateTable {
StateTable { entry: ~[mut ~[mut ST_NULL, ..ST_WHITESPACE], ..128] }
}"><pre class="notranslate"><code class="notranslate">enum State { ST_NULL, ST_WHITESPACE }
priv fn SomeFunction () -> StateTable {
StateTable { entry: ~[mut ~[mut ST_NULL, ..ST_WHITESPACE], ..128] }
}
</code></pre></div>
<p dir="auto">The error messages are as follows:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
</code></pre></div>
<p dir="auto">It seems that the compiler does not understand <code class="notranslate">entry: ~[mut ~[mut ST_NULL, ..ST_WHITESPACE], ..128]</code>.</p> | <p dir="auto">Compiling the following program leads to an internal compiler error:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main(++args: ~[~str]) {
let n = 1;
let a = ~[0, ..n];
}"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span>++<span class="pl-s1">args</span><span class="pl-kos">:</span> ~<span class="pl-kos">[</span>~<span class="pl-smi">str</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> n = <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> a = ~<span class="pl-kos">[</span><span class="pl-c1">0</span><span class="pl-kos">,</span> ..n<span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">Trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tmp % RUST_LOG=rustc=0,::rt::backtrace rustc fail.rs
rust: task failed at 'Unsupported constant expr', /home/philipp/programming/rust-git/src/rustc/middle/const_eval.rs:351
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x7fd46bbf456d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(+0x31e4d)[0x7fd46bc0be4d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7fd46bbf6e68]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6middle10const_eval15eval_const_expr15_052f2a2040b8d23_04E+0x2f2)[0x7fd46c014f22]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6middle2ty17eval_repeat_count16_b613c7e2c7253203_04E+0x60)[0x7fd46c0815f0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3afdec)[0x7fd46c1ebdec]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x689ff0)[0x7fd46c4c5ff0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3acef9)[0x7fd46c1e8ef9]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x689ff0)[0x7fd46c4c5ff0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3cac0a)[0x7fd46c206c0a]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3cb30e)[0x7fd46c20730e]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x325cbe)[0x7fd46c161cbe]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x689ff0)[0x7fd46c4c5ff0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3751f0)[0x7fd46c1b11f0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3738f3)[0x7fd46c1af8f3]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x37114a)[0x7fd46c1ad14a]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libsyntax-84efebcb12c867a2-0.4.so(+0xae74d)[0x7fd46c95074d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libsyntax-84efebcb12c867a2-0.4.so(+0xae5b4)[0x7fd46c9505b4]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6middle6typeck11check_crate17_f0c9dce01f38a0a13_04E+0xcf6)[0x7fd46c290776]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6driver6driver12compile_upto17_c9ea81e17d7f15573_04E+0x1646)[0x7fd46c49b206]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x689ff0)[0x7fd46c4c5ff0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6driver6driver13compile_input16_f2f88af42d830dc3_04E+0xbd)[0x7fd46c49e50d]
rustc[0x408d28]
rustc[0x412084]
rustc[0x40e503]
rustc[0x40d1bc]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x76474)[0x7fd46d243474]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0xb7430)[0x7fd46d284430]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7fd46bbf4d14]
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /home/philipp/programming/rust-git/src/rustc/driver/rustc.rs:275
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x7fd46bbf456d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(+0x31e4d)[0x7fd46bc0be4d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7fd46bbf6e68]
rustc(_rust_main+0xbf4)[0x411c54]
rustc[0x412084]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7fd46bbf4d14]
rust: domain main @0x18fb230 root task failed
rust: task failed at 'killed', /home/philipp/programming/rust-git/src/libcore/task.rs:662
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x7fd46bbf456d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(+0x31e4d)[0x7fd46bc0be4d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7fd46bbf6e68]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(_ZN4task5yield16_9531951b4f79f8b3_04E+0xbd)[0x7fd46d22c5fd]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x911d6)[0x7fd46d25e1d6]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(_ZN7private11weaken_task16_245c26cb8d7b1343_04E+0xd2)[0x7fd46d25e012]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x90f0b)[0x7fd46d25df0b]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0xb7430)[0x7fd46d284430]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x90260)[0x7fd46d25d260]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x8fbfe)[0x7fd46d25cbfe]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x8f266)[0x7fd46d25c266]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x76474)[0x7fd46d243474]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0xb7430)[0x7fd46d284430]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7fd46bbf4d14]"><pre class="notranslate"><code class="notranslate">tmp % RUST_LOG=rustc=0,::rt::backtrace rustc fail.rs
rust: task failed at 'Unsupported constant expr', /home/philipp/programming/rust-git/src/rustc/middle/const_eval.rs:351
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x7fd46bbf456d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(+0x31e4d)[0x7fd46bc0be4d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7fd46bbf6e68]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6middle10const_eval15eval_const_expr15_052f2a2040b8d23_04E+0x2f2)[0x7fd46c014f22]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6middle2ty17eval_repeat_count16_b613c7e2c7253203_04E+0x60)[0x7fd46c0815f0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3afdec)[0x7fd46c1ebdec]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x689ff0)[0x7fd46c4c5ff0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3acef9)[0x7fd46c1e8ef9]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x689ff0)[0x7fd46c4c5ff0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3cac0a)[0x7fd46c206c0a]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3cb30e)[0x7fd46c20730e]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x325cbe)[0x7fd46c161cbe]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x689ff0)[0x7fd46c4c5ff0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3751f0)[0x7fd46c1b11f0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x3738f3)[0x7fd46c1af8f3]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x37114a)[0x7fd46c1ad14a]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libsyntax-84efebcb12c867a2-0.4.so(+0xae74d)[0x7fd46c95074d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libsyntax-84efebcb12c867a2-0.4.so(+0xae5b4)[0x7fd46c9505b4]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6middle6typeck11check_crate17_f0c9dce01f38a0a13_04E+0xcf6)[0x7fd46c290776]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6driver6driver12compile_upto17_c9ea81e17d7f15573_04E+0x1646)[0x7fd46c49b206]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(+0x689ff0)[0x7fd46c4c5ff0]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustc-c84825241471686d-0.4.so(_ZN6driver6driver13compile_input16_f2f88af42d830dc3_04E+0xbd)[0x7fd46c49e50d]
rustc[0x408d28]
rustc[0x412084]
rustc[0x40e503]
rustc[0x40d1bc]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x76474)[0x7fd46d243474]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0xb7430)[0x7fd46d284430]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7fd46bbf4d14]
error: internal compiler error: unexpected failure
note: the compiler hit an unexpected failure path. this is a bug
note: try running with RUST_LOG=rustc=0,::rt::backtrace to get further details and report the results to github.com/mozilla/rust/issues
rust: task failed at 'explicit failure', /home/philipp/programming/rust-git/src/rustc/driver/rustc.rs:275
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x7fd46bbf456d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(+0x31e4d)[0x7fd46bc0be4d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7fd46bbf6e68]
rustc(_rust_main+0xbf4)[0x411c54]
rustc[0x412084]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7fd46bbf4d14]
rust: domain main @0x18fb230 root task failed
rust: task failed at 'killed', /home/philipp/programming/rust-git/src/libcore/task.rs:662
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_ZN9rust_task13begin_failureEPKcS1_m+0x5d)[0x7fd46bbf456d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(+0x31e4d)[0x7fd46bc0be4d]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(upcall_fail+0x1a8)[0x7fd46bbf6e68]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(_ZN4task5yield16_9531951b4f79f8b3_04E+0xbd)[0x7fd46d22c5fd]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x911d6)[0x7fd46d25e1d6]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(_ZN7private11weaken_task16_245c26cb8d7b1343_04E+0xd2)[0x7fd46d25e012]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x90f0b)[0x7fd46d25df0b]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0xb7430)[0x7fd46d284430]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x90260)[0x7fd46d25d260]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x8fbfe)[0x7fd46d25cbfe]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x8f266)[0x7fd46d25c266]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0x76474)[0x7fd46d243474]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/libcore-c3ca5d77d81b46c1-0.4.so(+0xb7430)[0x7fd46d284430]
/home/philipp/programming/rust-git/x86_64-unknown-linux-gnu/stage2/bin/../lib/librustrt.so(_Z18task_start_wrapperP10spawn_args+0x24)[0x7fd46bbf4d14]
</code></pre></div> | 1 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11863735/9372439/4dc233ce-4693-11e5-8307-886f53602bff.png"><img width="1248" alt="screen shot 2015-08-19 at 4 55 58 pm" src="https://cloud.githubusercontent.com/assets/11863735/9372439/4dc233ce-4693-11e5-8307-886f53602bff.png" style="max-width: 100%;"></a></p>
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-comment-your-javascript-code" rel="nofollow">http://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.<br>
I entered my comments into the code editor, however, the left panel is responding by pretty much telling me my code has an error. I don't see anything wrong with my line of code, and this is also the first time that the left panel has said why my code is incorrect, which I've noticed that it never had mentioned reasons for any of my code errors in my code editor in the previous lessons.</p> | <p dir="auto">As discussed on the chat there is two annoying things making me want to smash my mac.</p>
<ol dir="auto">
<li>
<p dir="auto">Everytime I change the code inside editor, left sidebar scroll up, and effectively making me scroll down as I want to see "objectives"</p>
</li>
<li>
<p dir="auto">Exiting from the ""(quotes) could be easier then clicking left key, shortcut alt+space would be amazing, I have the same shortcut in my Sublime Text, and its time saver, also my left pinky love me.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/benmcmahon100/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/benmcmahon100">@benmcmahon100</a></p>
</li>
</ol> | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.