text1
stringlengths 0
536k
| text2
stringlengths 0
536k
| label
int64 0
1
|
---|---|---|
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.32.3</li>
<li>Operating System: macOS 12.6.2</li>
<li>Browser: Chromium</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Error:</h3>
<p dir="auto">Test timeout of 50000ms exceeded.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: locator.scrollIntoViewIfNeeded: Target closed
=========================== logs ===========================
waiting for locator('xpath=//div[@type=\'objective\']//span[text()=\'l02Eo5\']/../..')
============================================================
at ../pages/okr/homePage.js:45
43 | export async function verifyObjPresentOnHomePage(testAttributes, objName) {
44 | console.log("###########", objName)
> 45 | await testAttributes.page.locator(`//div[@type='objective']//span[text()='${objName}']/../..`).scrollIntoViewIfNeeded();
| ^
46 | // const elem = await testAttributes.page.locator(`//div[@type='objective']//span[text()='${objName}']/../..`);
47 | // await elem.evaluate("arguments[0].scrollIntoView(true);");
48 | await expect.soft(testAttributes.page.locator(`//div[@type='objective']//span[text()='${objName}']`),"><pre class="notranslate"><code class="notranslate">Error: locator.scrollIntoViewIfNeeded: Target closed
=========================== logs ===========================
waiting for locator('xpath=//div[@type=\'objective\']//span[text()=\'l02Eo5\']/../..')
============================================================
at ../pages/okr/homePage.js:45
43 | export async function verifyObjPresentOnHomePage(testAttributes, objName) {
44 | console.log("###########", objName)
> 45 | await testAttributes.page.locator(`//div[@type='objective']//span[text()='${objName}']/../..`).scrollIntoViewIfNeeded();
| ^
46 | // const elem = await testAttributes.page.locator(`//div[@type='objective']//span[text()='${objName}']/../..`);
47 | // await elem.evaluate("arguments[0].scrollIntoView(true);");
48 | await expect.soft(testAttributes.page.locator(`//div[@type='objective']//span[text()='${objName}']`),
</code></pre></div>
|
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: v1.31.2</li>
<li>Operating System: Windows 11</li>
<li>Browser: Chromium</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto"><a href="https://github.com/Marcin3/challenge">https://github.com/Marcin3/challenge</a></p>
<p dir="auto">or</p>
<p dir="auto"><strong>Config file</strong></p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// playwright.config.ts
import type { PlaywrightTestConfig } from "@playwright/test";
import { devices } from "@playwright/test";
import dotenv from "dotenv";
dotenv.config();
const config: PlaywrightTestConfig = {
testDir: "./tests",
/* Maximum time one test can run for. */
timeout: 30 * 1000,
expect: {
/**
* Maximum time expect() should wait for the condition to be met.
* For example in `await expect(locator).toHaveText();`
*/
timeout: 10000,
},
fullyParallel: true,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 2 : 0,
workers: 2,
reporter: "html",
use: {
actionTimeout: 0,
baseURL: process.env.BASE_URL,
/* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
trace: "on",
},
/* Configure projects for major browsers */
projects: [
{
name: "chromium",
use: {
...devices["Desktop Chrome"],
},
},
],
};
export default config;
"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span>
<span class="pl-k">import</span> <span class="pl-s1">type</span> <span class="pl-kos">{</span> <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span>
<span class="pl-k">import</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-k">import</span> <span class="pl-s1">dotenv</span> <span class="pl-k">from</span> <span class="pl-s">"dotenv"</span><span class="pl-kos">;</span>
<span class="pl-s1">dotenv</span><span class="pl-kos">.</span><span class="pl-en">config</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">config</span>: <span class="pl-v">PlaywrightTestConfig</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">testDir</span>: <span class="pl-s">"./tests"</span><span class="pl-kos">,</span>
<span class="pl-c">/* Maximum time one test can run for. */</span>
<span class="pl-c1">timeout</span>: <span class="pl-c1">30</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span>
<span class="pl-c1">expect</span>: <span class="pl-kos">{</span>
<span class="pl-c">/**</span>
<span class="pl-c"> * Maximum time expect() should wait for the condition to be met.</span>
<span class="pl-c"> * For example in `await expect(locator).toHaveText();`</span>
<span class="pl-c"> */</span>
<span class="pl-c1">timeout</span>: <span class="pl-c1">10000</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">,</span>
<span class="pl-c1">fullyParallel</span>: <span class="pl-c1">true</span><span class="pl-kos">,</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-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-c1">workers</span>: <span class="pl-c1">2</span><span class="pl-kos">,</span>
<span class="pl-c1">reporter</span>: <span class="pl-s">"html"</span><span class="pl-kos">,</span>
<span class="pl-c1">use</span>: <span class="pl-kos">{</span>
<span class="pl-c1">actionTimeout</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span>
<span class="pl-c1">baseURL</span>: <span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">BASE_URL</span><span class="pl-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"</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-kos">]</span><span class="pl-kos">,</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-s1">config</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="test("Search wrong word", async ({ page }) => {
const wrongWord = "sythetic";
const mainMenuPage = new MainMenuPage(page);
await test.step(`Given User is on page https://mostly.ai/`, async () => {
await page.goto("");
expect(page).toHaveURL("");
});
await test.step(`When User click the “Search” button`, async () => {
await mainMenuPage.clickOnSearchButton();
});
await test.step(`And type “sythetic” (wrong spelling of synthetic) in search field`, async () => {
await mainMenuPage.fillSearchFiled(wrongWord);
});
await test.step(`And press Enter`, async () => {
await mainMenuPage.pressEnterButtonOnSearchFiled();
});
await test.step(`Then User can see following information: “Sorry, no results for: sythetic”`, async () => {
const firstPart = `Sorry, no results for:`;
await mainMenuPage.checkSearchResult(firstPart, wrongWord);
});
});"><pre class="notranslate"><span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"Search wrong word"</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">const</span> <span class="pl-s1">wrongWord</span> <span class="pl-c1">=</span> <span class="pl-s">"sythetic"</span><span class="pl-kos">;</span>
<span class="pl-k">const</span> <span class="pl-s1">mainMenuPage</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-smi">MainMenuPage</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-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">`Given User is on page https://mostly.ai/`</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">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">""</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">page</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveURL</span><span class="pl-kos">(</span><span class="pl-s">""</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-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">`When User click the “Search” button`</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">mainMenuPage</span><span class="pl-kos">.</span><span class="pl-en">clickOnSearchButton</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">`And type “sythetic” (wrong spelling of synthetic) in search field`</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">mainMenuPage</span><span class="pl-kos">.</span><span class="pl-en">fillSearchFiled</span><span class="pl-kos">(</span><span class="pl-s1">wrongWord</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">`And press Enter`</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">await</span> <span class="pl-s1">mainMenuPage</span><span class="pl-kos">.</span><span class="pl-en">pressEnterButtonOnSearchFiled</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">step</span><span class="pl-kos">(</span><span class="pl-s">`Then User can see following information: “Sorry, no results for: sythetic”`</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-s1">firstPart</span> <span class="pl-c1">=</span> <span class="pl-s">`Sorry, no results for:`</span><span class="pl-kos">;</span>
<span class="pl-k">await</span> <span class="pl-s1">mainMenuPage</span><span class="pl-kos">.</span><span class="pl-en">checkSearchResult</span><span class="pl-kos">(</span><span class="pl-s1">firstPart</span><span class="pl-kos">,</span> <span class="pl-s1">wrongWord</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>Clone the repo</li>
<li>First install project using command <code class="notranslate"> npm install</code></li>
<li>To run tests please run from root using command <code class="notranslate">npx playwright test</code></li>
<li>Open report npx playwright show-report</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">For test Search wrong word you should see step When User click the “Search” button</p>
<p dir="auto"><strong>Actual</strong><br>
Now this step is missing<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10815386/223079904-9edf7ce4-5774-4a5c-96dd-ddfcf59f55d9.png"><img src="https://user-images.githubusercontent.com/10815386/223079904-9edf7ce4-5774-4a5c-96dd-ddfcf59f55d9.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Here is also link to playwright report <a href="https://github.com/Marcin3/challenge/tree/main/playwright-report">https://github.com/Marcin3/challenge/tree/main/playwright-report</a></p>
| 0 |
<p dir="auto">Don't know if it's only me but when i do :</p>
<p dir="auto">MATCH(n:User) RETURN n</p>
<p dir="auto">I got an error but with :</p>
<p dir="auto">MATCH (n:User) RETURN n</p>
<p dir="auto">It's working. Any reason for that ?</p>
|
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jexp/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jexp">@jexp</a></p>
<p dir="auto">like, so perhaps use non-word character as separator of the command not space<br>
<code class="notranslate">MATCH(n) RETURN n</code></p>
| 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.32</li>
<li>Operating System: Mac</li>
<li>Browser: [All, Chromium, Firefox, WebKit]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<ul dir="auto">
<li>[x ] I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<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>npx playwright test --ui</li>
<li>close ui from the ui</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Playwright should close all instances of browser once UI is closed</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">Stays open in your dock and the more you open the UI the more browser instances it stores</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/13063165/227214901-9c1bf04e-8997-4b4f-9ab6-7277a0942d54.png"><img width="134" alt="Screenshot 2023-03-23 at 14 12 06" src="https://user-images.githubusercontent.com/13063165/227214901-9c1bf04e-8997-4b4f-9ab6-7277a0942d54.png" style="max-width: 100%;"></a></p>
|
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.35.1]</li>
<li>Operating System: [Windows 10]</li>
<li>Browser: [Chromium]</li>
</ul>
<h3 dir="auto">Source code</h3>
<p dir="auto">I am using playwright with javascript. In my framework I am passing the page instance to a method (lets call it frameHandler()) which is outside test method. In frameHandler() method when I am trying to perform keyboard press event I am getting an error saying TypeError: Cannot read properties of undefined (reading 'press')</p>
<p dir="auto"><strong>Below is the source code</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/65117374/250604165-fa5efb15-e018-46d5-8dcf-720bcc9f6820.png"><img src="https://user-images.githubusercontent.com/65117374/250604165-fa5efb15-e018-46d5-8dcf-720bcc9f6820.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/65117374/250602516-1612ae41-e765-4201-8ae5-2b867379078f.png"><img src="https://user-images.githubusercontent.com/65117374/250602516-1612ae41-e765-4201-8ae5-2b867379078f.png" alt="image" style="max-width: 100%;"></a></p>
| 0 |
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1205" rel="nofollow">http://projects.scipy.org/numpy/ticket/1205</a> on 2009-08-20 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stsci-sienkiew/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stsci-sienkiew">@stsci-sienkiew</a>, assigned to <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pierregm/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pierregm">@pierregm</a>.</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
FAIL: test_testUfuncRegression (test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/ra/pyssg/2.5.1/numpy/ma/tests/test_old_ma.py", line 689, in test_testUfuncRegression
self.failUnless(eqmask(ur.mask, mr.mask))
AssertionError"><pre class="notranslate"><code class="notranslate">======================================================================
FAIL: test_testUfuncRegression (test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/ra/pyssg/2.5.1/numpy/ma/tests/test_old_ma.py", line 689, in test_testUfuncRegression
self.failUnless(eqmask(ur.mask, mr.mask))
AssertionError
</code></pre></div>
<p dir="auto">1.4.0.dev7284 (august 6)</p>
<p dir="auto">1.4.0.dev7303 (august 19)</p>
<p dir="auto">Python 2.5.1, Solaris 8, cc: Sun WorkShop 6 update 2 C 5.3 Patch 111679-14 2004/02/20</p>
|
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/numpy/ticket/1174" rel="nofollow">http://projects.scipy.org/numpy/ticket/1174</a> on 2009-07-15 by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/stsci-sienkiew/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/stsci-sienkiew">@stsci-sienkiew</a>, assigned to unknown.</em></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="======================================================================
FAIL: test_testUfuncRegression (test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/ra/pyssg/2.5.1/numpy/ma/tests/test_old_ma.py", line 689, in test_testUfuncRegression
self.failUnless(eqmask(ur.mask, mr.mask))
AssertionError
----------------------------------------------------------------------"><pre class="notranslate"><code class="notranslate">======================================================================
FAIL: test_testUfuncRegression (test_old_ma.TestUfuncs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/ra/pyssg/2.5.1/numpy/ma/tests/test_old_ma.py", line 689, in test_testUfuncRegression
self.failUnless(eqmask(ur.mask, mr.mask))
AssertionError
----------------------------------------------------------------------
</code></pre></div>
<p dir="auto">numpy 1.4.0.dev7132</p>
<p dir="auto">solaris 8</p>
<p dir="auto">python 2.5.1</p>
| 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">Now nacos is open sourced. I think it is time to develop registry to nacos</p>
|
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<p dir="auto">Let consul registry support ACL</p>
| 0 |
<h3 dir="auto">sharind-proxy start error message:</h3>
<p dir="auto"><code class="notranslate">Exception in thread "main" java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.shardingsphere.infra.yaml.config.pojo.YamlRuleConfiguration at org.apache.shardingsphere.infra.yaml.config.swapper.YamlRuleConfigurationSwapperEngine$$Lambda$16/557023567.apply(Unknown Source) at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193) at java.util.Iterator.forEachRemaining(Iterator.java:116) at java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:512) at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:502) at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708) at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499) at org.apache.shardingsphere.infra.yaml.config.swapper.YamlRuleConfigurationSwapperEngine.swapToRuleConfigurations(YamlRuleConfigurationSwapperEngine.java:59) at org.apache.shardingsphere.proxy.backend.config.yaml.swapper.YamlProxyConfigurationSwapper.swapDatabaseConfigurations(YamlProxyConfigurationSwapper.java:63) at org.apache.shardingsphere.proxy.backend.config.yaml.swapper.YamlProxyConfigurationSwapper.swap(YamlProxyConfigurationSwapper.java:52) at org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.createContextManager(BootstrapInitializer.java:62) at org.apache.shardingsphere.proxy.initializer.BootstrapInitializer.init(BootstrapInitializer.java:55) at org.apache.shardingsphere.proxy.Bootstrap.main(Bootstrap.java:50)</code></p>
<h3 dir="auto">server.xml:</h3>
<p dir="auto">`rules:<br>
users:<br>
- root@%:root<br>
- sharding@:sharding<br>
provider:<br>
type: ALL_PERMITTED</p>
<p dir="auto">props:<br>
max-connections-size-per-query: 1<br>
kernel-executor-size: 16 # Infinite by default.<br>
proxy-frontend-flush-threshold: 128 # The default value is 128.<br>
proxy-hint-enabled: false<br>
sql-show: true<br>
sql-simple: true<br>
check-table-metadata-enabled: false<br>
show-process-list-enabled: false<br>
proxy-backend-query-fetch-size: -1<br>
check-duplicate-table-enabled: false<br>
proxy-frontend-executor-size: 0<br>
proxy-backend-executor-suitable: OLAP<br>
proxy-frontend-max-connections: 0<br>
sql-federation-enabled: false<br>
proxy-backend-driver-type: JDBC<br>
proxy-mysql-default-version: 5.7.22<br>
proxy-default-port: 3307<br>
proxy-netty-backlog: 1024<br>
`</p>
<h3 dir="auto">config-sharding.xml:</h3>
<p dir="auto">`databaseName: decard_pay_dev</p>
<p dir="auto">dataSources:<br>
ds0:<br>
url: jdbc:mysql://127.0.0.1:3306/decard_pay_dev?serverTimezone=UTC&useSSL=false<br>
username: root<br>
password: root<br>
connectionTimeoutMilliseconds: 30000<br>
idleTimeoutMilliseconds: 60000<br>
maxLifetimeMilliseconds: 1800000<br>
maxPoolSize: 50</p>
<p dir="auto">rules:<br>
sharding:<br>
tables:<br>
dp_trade_payment_order:<br>
# 配置数据节点<br>
actual-data-nodes: ds0.dp_trade_payment_order_$->{2020..2025}<em>0$->{1..4}<br>
# 分表策略<br>
table-strategy:<br>
complex:<br>
sharding-columns: platform_order_no,order_time,pay_success_time<br>
sharding-algorithm-name: order-algorithm<br>
dp_trade_payment_record:<br>
# 配置数据节点<br>
actual-data-nodes: ds0.dp_trade_payment_record</em><math-renderer class="js-inline-math" style="display: inline" data-static-url="https://github.githubassets.com/static" data-run-id="72ffc9aea89ab6a281958026c17d9536">$-&gt;{2020..2025}_0$</math-renderer>->{1..4}<br>
# 分表策略<br>
table-strategy:<br>
complex:<br>
sharding-columns: platform_order_no,pay_success_time<br>
sharding-algorithm-name: order-algorithm<br>
sharding-algorithms:<br>
order-algorithm:<br>
type: CLASS_BASED<br>
props:<br>
strategy: COMPLEX<br>
algorithmClassName: com.decard.sharding.config.OrderComplexKeysShardingAlgorithm<br>
binding-tables: dp_trade_payment_order,dp_trade_payment_record<br>
`</p>
|
<p dir="auto">Hello, can we pay for the scheme of multi tenant dynamic database creation? How to operate? Is there any actual case?<br>
I want to divide the database dynamically according to the tenants. The tenants are created dynamically through the project, not written in the configuration file. Thank you<br>
中文解释:<br>
您好, 请问咱们可以支付多租户动态创建数据库的方案吗, 怎么操作, 有实际案例吗?<br>
我是想按照租户去动态进行分库, 租户是通过项目动态创建, 不是写死在配置文件中的, 谢谢</p>
| 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 0.13.0-dev (fac5a0767 2014-11-26 22:37:06 +0000)
binary: rustc
commit-hash: fac5a07679cac21a580badc84b755b8df0f975cf
commit-date: 2014-11-26 22:37:06 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-dev"><pre class="notranslate"><code class="notranslate">rustc 0.13.0-dev (fac5a0767 2014-11-26 22:37:06 +0000)
binary: rustc
commit-hash: fac5a07679cac21a580badc84b755b8df0f975cf
commit-date: 2014-11-26 22:37:06 +0000
host: x86_64-unknown-linux-gnu
release: 0.13.0-dev
</code></pre></div>
<p dir="auto">On this build, I'm seeing cargo successfully compile such a plugin without any error message. Crates that attempt to load the plugin then fail with a confusing "undefined symbol" error, which provides little assistance in locating the root of the problem.</p>
<p dir="auto">I suggest that such a plugin should not even compile.</p>
|
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="mod Foo { fn x() {} }
struct Foo;
impl Foo { fn y() {} }
fn main() {}"><pre class="notranslate"><span class="pl-k">mod</span> <span class="pl-v">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">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-k">struct</span> <span class="pl-smi">Foo</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">fn</span> <span class="pl-en">y</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<anon>:5:1: 5:23 error: duplicate definition of module `Foo`
<anon>:5 impl Foo { fn y() {} }
^~~~~~~~~~~~~~~~~~~~~~
<anon>:3:1: 3:12 note: first definition of module `Foo` here
<anon>:3 struct Foo;
^~~~~~~~~~~
error: aborting due to previous error"><pre class="notranslate"><code class="notranslate"><anon>:5:1: 5:23 error: duplicate definition of module `Foo`
<anon>:5 impl Foo { fn y() {} }
^~~~~~~~~~~~~~~~~~~~~~
<anon>:3:1: 3:12 note: first definition of module `Foo` here
<anon>:3 struct Foo;
^~~~~~~~~~~
error: aborting due to previous error
</code></pre></div>
<p dir="auto">The "first definition" error should be pointing to the <code class="notranslate">mod Foo</code>.</p>
| 0 |
<p dir="auto">I was notified that it seems we have no actual introduction about how to write a Deno plugin in the manual. Also the folder <code class="notranslate">test_plugin/</code>, while showing an example, is not mentioned anywhere in the manual, and is not easy to find (since the name does not indicate it also being an example)</p>
<p dir="auto">IMO This could be a good first issue.</p>
|
<p dir="auto">The folder test_plugin/, while showing an example, is not mentioned anywhere in the manual, and is not easy to find (since the name does not indicate it also being an example)</p>
<p dir="auto">This could be a good first issue.</p>
| 1 |
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">Assuming I've assigned an instance of next to the variable <code class="notranslate">app</code> and called <code class="notranslate">app.prepare()</code>, calling <code class="notranslate">app.close()</code> should stop all middleware and allow the Node process to exit.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">In dev mode, the Node process keeps running with some middleware remaining active. If a page was recently accessed, the "Disposing active pages" message will eventually be logged after <code class="notranslate">app.close()</code> was called, indicating that something has not stopped. It will not stop after disposing pages either.</p>
<p dir="auto">When not running in dev mode, the Node process will exit as expected.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<ol dir="auto">
<li>Follow the basic setup instructions, then create the following <code class="notranslate">server.js</code>:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const path = require('path');
const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev, dir: path.resolve(__dirname) })
const handle = app.getRequestHandler()
app.prepare().then(() => {
const http = createServer((req, res) => {
const { parsedUrl } = parse(req.url, true)
handle(req, res, parsedUrl)
.then(() => http.close())
.then(() => app.close())
})
http.listen(8080)
})"><pre class="notranslate"><code class="notranslate">const path = require('path');
const { createServer } = require('http')
const { parse } = require('url')
const next = require('next')
const dev = process.env.NODE_ENV !== 'production'
const app = next({ dev, dir: path.resolve(__dirname) })
const handle = app.getRequestHandler()
app.prepare().then(() => {
const http = createServer((req, res) => {
const { parsedUrl } = parse(req.url, true)
handle(req, res, parsedUrl)
.then(() => http.close())
.then(() => app.close())
})
http.listen(8080)
})
</code></pre></div>
<ol start="2" dir="auto">
<li>
<p dir="auto">Build with <code class="notranslate">npm run build</code></p>
</li>
<li>
<p dir="auto">Run <code class="notranslate">node server.js</code> and point browser at app. The Node process will NOT exit after request is handled. Must Ctrl-C to exit.</p>
</li>
<li>
<p dir="auto">Run <code class="notranslate">NODE_ENV=production node server.js</code> and point browser at app. The Node process will exit after request is handled.</p>
</li>
</ol>
<h2 dir="auto">Context</h2>
<p dir="auto">Came across this while working on a monitoring app to start/discover/stop instances of a Next app. Instances wouldn't exit when told to via a <code class="notranslate">/stop</code> http request.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>next</td>
<td>3.0.1-beta.13</td>
</tr>
<tr>
<td>node</td>
<td>7.10.0</td>
</tr>
<tr>
<td>OS</td>
<td>Ubuntu 14.04.5 LTS</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
</tbody>
</table>
|
<p dir="auto">Hello everyone,</p>
<p dir="auto">It seems @ types/next/router is missing an exported member called 'withRouter'. Is it a knowing issue?<br>
Any workaround for this?</p>
<p dir="auto">Thanks</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>4.1.4</td>
</tr>
<tr>
<td>node</td>
<td>8.5.0</td>
</tr>
<tr>
<td>OS</td>
<td>Windows 10</td>
</tr>
<tr>
<td>@ types/next</td>
<td>2.4.5</td>
</tr>
</tbody>
</table>
| 0 |
<p dir="auto">I have a fairly large index (~3.5 million documents, with nested fields, some of the docs are quite large) where the documents are being updated a lot.</p>
<p dir="auto">A while ago the cluster went into the yellow state and I'm seeing a number of shards stuck in the "INITIALIZING" state:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="joint_user_summary_v1 0 r INITIALIZING 127.0.1.1 cubitsearch-1
joint_user_summary_v1 7 r INITIALIZING 127.0.1.1 cubitsearch-5
joint_user_summary_v1 7 r INITIALIZING 127.0.1.1 cubitsearch-2
joint_user_summary_v1 3 r INITIALIZING 127.0.1.1 cubitsearch-1
joint_user_summary_v1 1 r INITIALIZING 127.0.1.1 cubitsearch-4
joint_user_summary_v1 1 r INITIALIZING 127.0.1.1 cubitsearch-3
joint_user_summary_v1 5 r INITIALIZING 127.0.1.1 cubitsearch-2
joint_user_summary_v1 6 r INITIALIZING 127.0.1.1 cubitsearch-3
joint_user_summary_v1 6 r INITIALIZING 127.0.1.1 cubitsearch-5"><pre class="notranslate"><code class="notranslate">joint_user_summary_v1 0 r INITIALIZING 127.0.1.1 cubitsearch-1
joint_user_summary_v1 7 r INITIALIZING 127.0.1.1 cubitsearch-5
joint_user_summary_v1 7 r INITIALIZING 127.0.1.1 cubitsearch-2
joint_user_summary_v1 3 r INITIALIZING 127.0.1.1 cubitsearch-1
joint_user_summary_v1 1 r INITIALIZING 127.0.1.1 cubitsearch-4
joint_user_summary_v1 1 r INITIALIZING 127.0.1.1 cubitsearch-3
joint_user_summary_v1 5 r INITIALIZING 127.0.1.1 cubitsearch-2
joint_user_summary_v1 6 r INITIALIZING 127.0.1.1 cubitsearch-3
joint_user_summary_v1 6 r INITIALIZING 127.0.1.1 cubitsearch-5
</code></pre></div>
<p dir="auto">Naturally, I can't optimize this index anymore:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{"_shards":{"total":30,"successful":5,"failed":6,"failures":[{"index":"joint_user_summary_v1","shard":0,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][0] ]; nested: RemoteTransportException[[cubitsearch-2][inet[/10.0.1.236:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][0] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][0] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":1,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][1] ]; nested: RemoteTransportException[[cubitsearch-2][inet[/10.0.1.236:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][1] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][1] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":3,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][3] ]; nested: RemoteTransportException[[cubitsearch-3][inet[/10.0.1.237:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][3] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][3] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":5,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][5] ]; nested: RemoteTransportException[[cubitsearch-1][inet[/10.0.1.235:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][5] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][5] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":6,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][6] ]; nested: RemoteTransportException[[cubitsearch-1][inet[/10.0.1.235:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][6] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][6] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":7,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][7] ]; nested: RemoteTransportException[[cubitsearch-3][inet[/10.0.1.237:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][7] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][7] recovery is in progress, flush is not allowed]; "}]}}"><pre class="notranslate"><code class="notranslate">{"_shards":{"total":30,"successful":5,"failed":6,"failures":[{"index":"joint_user_summary_v1","shard":0,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][0] ]; nested: RemoteTransportException[[cubitsearch-2][inet[/10.0.1.236:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][0] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][0] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":1,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][1] ]; nested: RemoteTransportException[[cubitsearch-2][inet[/10.0.1.236:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][1] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][1] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":3,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][3] ]; nested: RemoteTransportException[[cubitsearch-3][inet[/10.0.1.237:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][3] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][3] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":5,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][5] ]; nested: RemoteTransportException[[cubitsearch-1][inet[/10.0.1.235:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][5] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][5] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":6,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][6] ]; nested: RemoteTransportException[[cubitsearch-1][inet[/10.0.1.235:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][6] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][6] recovery is in progress, flush is not allowed]; "},{"index":"joint_user_summary_v1","shard":7,"status":500,"reason":"BroadcastShardOperationFailedException[[joint_user_summary_v1][7] ]; nested: RemoteTransportException[[cubitsearch-3][inet[/10.0.1.237:9300]][indices:admin/optimize[s]]]; nested: OptimizeFailedEngineException[[joint_user_summary_v1][7] force merge failed]; nested: FlushNotAllowedEngineException[[joint_user_summary_v1][7] recovery is in progress, flush is not allowed]; "}]}}
</code></pre></div>
<p dir="auto">Here's an excerpt from the log file that may shed some light on the issue:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Aug 17 09:06:31 cubitsearch-3 elasticsearch: [2015-08-17 09:06:31,525][DEBUG][action.bulk ] [cubitsearch-3] observer: timeout notification from cluster service. timeout setting [60ms], time since start [60ms]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: [2015-08-17 09:06:31,525][DEBUG][action.bulk ] [cubitsearch-3] observer: timeout notification from cluster service. timeout setting [60ms], time since start [60ms]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: [2015-08-17 09:06:31,939][WARN ][indices.cluster ] [cubitsearch-3] [[joint_user_summary_v1][1]] marking and sending shard failed due to [failed recovery]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: org.elasticsearch.indices.recovery.RecoveryFailedException: [joint_user_summary_v1][1]: Recovery failed from [cubitsearch-2][U2eMGyQ7Rhic1lHqzIoLXA][cubitsearch-2][inet[/10.0.1.236:9300]]{max_local_storage_nodes=1, master=false} into [cubitsearch-3][IEP7xQczReKinA78HfLC3Q][cubitsearch-3][inet[/10.0.1.237:9300]]{max_local_storage_nodes=1, master=false}
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoveryTarget.doRecovery(RecoveryTarget.java:280)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoveryTarget.access$700(RecoveryTarget.java:70)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoveryTarget$RecoveryRunner.doRun(RecoveryTarget.java:561)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.lang.Thread.run(Thread.java:745)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: Caused by: org.elasticsearch.transport.RemoteTransportException: [cubitsearch-2][inet[/10.0.1.236:9300]][internal:index/shard/recovery/start_recovery]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: Caused by: org.elasticsearch.index.engine.RecoveryEngineException: [joint_user_summary_v1][1] Phase[2] Execution failed
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.index.engine.InternalEngine.recover(InternalEngine.java:902)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.index.shard.IndexShard.recover(IndexShard.java:780)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoverySource.recover(RecoverySource.java:125)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoverySource.access$200(RecoverySource.java:49)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:146)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:132)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.lang.Thread.run(Thread.java:745)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: Caused by: org.elasticsearch.transport.ReceiveTimeoutTransportException: [cubitsearch-3][inet[/10.0.1.237:9300]][internal:index/shard/recovery/prepare_translog] request_id [14280416] timed out after [900000ms]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:529)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011... 3 more"><pre class="notranslate"><code class="notranslate">Aug 17 09:06:31 cubitsearch-3 elasticsearch: [2015-08-17 09:06:31,525][DEBUG][action.bulk ] [cubitsearch-3] observer: timeout notification from cluster service. timeout setting [60ms], time since start [60ms]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: [2015-08-17 09:06:31,525][DEBUG][action.bulk ] [cubitsearch-3] observer: timeout notification from cluster service. timeout setting [60ms], time since start [60ms]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: [2015-08-17 09:06:31,939][WARN ][indices.cluster ] [cubitsearch-3] [[joint_user_summary_v1][1]] marking and sending shard failed due to [failed recovery]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: org.elasticsearch.indices.recovery.RecoveryFailedException: [joint_user_summary_v1][1]: Recovery failed from [cubitsearch-2][U2eMGyQ7Rhic1lHqzIoLXA][cubitsearch-2][inet[/10.0.1.236:9300]]{max_local_storage_nodes=1, master=false} into [cubitsearch-3][IEP7xQczReKinA78HfLC3Q][cubitsearch-3][inet[/10.0.1.237:9300]]{max_local_storage_nodes=1, master=false}
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoveryTarget.doRecovery(RecoveryTarget.java:280)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoveryTarget.access$700(RecoveryTarget.java:70)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoveryTarget$RecoveryRunner.doRun(RecoveryTarget.java:561)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.lang.Thread.run(Thread.java:745)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: Caused by: org.elasticsearch.transport.RemoteTransportException: [cubitsearch-2][inet[/10.0.1.236:9300]][internal:index/shard/recovery/start_recovery]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: Caused by: org.elasticsearch.index.engine.RecoveryEngineException: [joint_user_summary_v1][1] Phase[2] Execution failed
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.index.engine.InternalEngine.recover(InternalEngine.java:902)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.index.shard.IndexShard.recover(IndexShard.java:780)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoverySource.recover(RecoverySource.java:125)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoverySource.access$200(RecoverySource.java:49)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:146)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:132)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at java.lang.Thread.run(Thread.java:745)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: Caused by: org.elasticsearch.transport.ReceiveTimeoutTransportException: [cubitsearch-3][inet[/10.0.1.237:9300]][internal:index/shard/recovery/prepare_translog] request_id [14280416] timed out after [900000ms]
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:529)
Aug 17 09:06:31 cubitsearch-3 elasticsearch: #011... 3 more
</code></pre></div>
<p dir="auto">I was hoping that upgrading to the latest version (1.7.1) would fix the problem, but unfortunately it persists.</p>
|
<p dir="auto">Hi,</p>
<p dir="auto">Our process involve a bulk loading of one index (index_b) while a second is used in production (index_a), at the end of the bulk loading we swap the alias (index_alias) to index_b and close the first one, this process happen three times a day. Here's a more detailled list of actions we perform on the index</p>
<ul dir="auto">
<li>(index used in production => index_a)</li>
<li>open index_b</li>
<li>disable refresh_interval</li>
<li>bulk load in index_b</li>
<li>send a refresh request</li>
<li>optimize</li>
<li>wait for each node to have merges: 0 for index_b</li>
<li>swap alias</li>
<li>close index_a</li>
</ul>
<p dir="auto">During the bulk loading of index_b (or index_a since the process happen 3 times a day) two of the three nodes will be stuck in relocating loop of one or multiple shards, not always the same on a different node with the following log :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2015-07-02 08:57:40,322][WARN ][indices.cluster ] [elasticsearch-nodes2.localdomain] [[index_a][1]] marking and sending shard failed due to [failed to create shard]
org.elasticsearch.index.shard.IndexShardCreationException: [index_a][1] failed to create shard
at org.elasticsearch.index.IndexService.createShard(IndexService.java:357)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:704)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:605)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:480)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.lucene.store.LockObtainFailedException: Can't lock shard [index_a][1], timed out after 5000ms
at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:576)
at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:504)
at org.elasticsearch.index.IndexService.createShard(IndexService.java:310)
... 9 more
[2015-07-02 08:57:40,339][DEBUG][discovery.zen.publish ] [elasticsearch-nodes2.localdomain] received cluster state version 73587
[2015-07-02 08:57:45,339][WARN ][indices.cluster ] [elasticsearch-nodes2.localdomain] [[index_a][0]] marking and sending shard failed due to [failed to create shard]
org.elasticsearch.index.shard.IndexShardCreationException: [index_a][0] failed to create shard
at org.elasticsearch.index.IndexService.createShard(IndexService.java:357)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:704)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:605)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:480)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.lucene.store.LockObtainFailedException: Can't lock shard [index_a][0], timed out after 5000ms
at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:576)
at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:504)
at org.elasticsearch.index.IndexService.createShard(IndexService.java:310)
... 9 more
[2015-07-02 08:57:50,340][WARN ][indices.cluster ] [elasticsearch-nodes2.localdomain] [[index_a][1]] marking and sending shard failed due to [failed to create shard]
org.elasticsearch.index.shard.IndexShardCreationException: [index_a][1] failed to create shard
at org.elasticsearch.index.IndexService.createShard(IndexService.java:357)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:704)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:605)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:480)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.lucene.store.LockObtainFailedException: Can't lock shard [index_a][1], timed out after 5000ms
at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:576)
at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:504)
at org.elasticsearch.index.IndexService.createShard(IndexService.java:310)
... 9 more
[2015-07-02 08:57:50,341][INFO ][cluster.routing.allocation.decider] [elasticsearch-nodes2.localdomain] updating [cluster.routing.allocation.enable] from [ALL] to [NONE]
[2015-07-02 08:57:50,345][DEBUG][discovery.zen.publish ] [elasticsearch-nodes2.localdomain] received cluster state version 73588"><pre class="notranslate"><code class="notranslate">[2015-07-02 08:57:40,322][WARN ][indices.cluster ] [elasticsearch-nodes2.localdomain] [[index_a][1]] marking and sending shard failed due to [failed to create shard]
org.elasticsearch.index.shard.IndexShardCreationException: [index_a][1] failed to create shard
at org.elasticsearch.index.IndexService.createShard(IndexService.java:357)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:704)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:605)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:480)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.lucene.store.LockObtainFailedException: Can't lock shard [index_a][1], timed out after 5000ms
at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:576)
at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:504)
at org.elasticsearch.index.IndexService.createShard(IndexService.java:310)
... 9 more
[2015-07-02 08:57:40,339][DEBUG][discovery.zen.publish ] [elasticsearch-nodes2.localdomain] received cluster state version 73587
[2015-07-02 08:57:45,339][WARN ][indices.cluster ] [elasticsearch-nodes2.localdomain] [[index_a][0]] marking and sending shard failed due to [failed to create shard]
org.elasticsearch.index.shard.IndexShardCreationException: [index_a][0] failed to create shard
at org.elasticsearch.index.IndexService.createShard(IndexService.java:357)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:704)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:605)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:480)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.lucene.store.LockObtainFailedException: Can't lock shard [index_a][0], timed out after 5000ms
at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:576)
at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:504)
at org.elasticsearch.index.IndexService.createShard(IndexService.java:310)
... 9 more
[2015-07-02 08:57:50,340][WARN ][indices.cluster ] [elasticsearch-nodes2.localdomain] [[index_a][1]] marking and sending shard failed due to [failed to create shard]
org.elasticsearch.index.shard.IndexShardCreationException: [index_a][1] failed to create shard
at org.elasticsearch.index.IndexService.createShard(IndexService.java:357)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyInitializingShard(IndicesClusterStateService.java:704)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.applyNewOrUpdatedShards(IndicesClusterStateService.java:605)
at org.elasticsearch.indices.cluster.IndicesClusterStateService.clusterChanged(IndicesClusterStateService.java:185)
at org.elasticsearch.cluster.service.InternalClusterService$UpdateTask.run(InternalClusterService.java:480)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.runAndClean(PrioritizedEsThreadPoolExecutor.java:188)
at org.elasticsearch.common.util.concurrent.PrioritizedEsThreadPoolExecutor$TieBreakingPrioritizedRunnable.run(PrioritizedEsThreadPoolExecutor.java:158)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.lucene.store.LockObtainFailedException: Can't lock shard [index_a][1], timed out after 5000ms
at org.elasticsearch.env.NodeEnvironment$InternalShardLock.acquire(NodeEnvironment.java:576)
at org.elasticsearch.env.NodeEnvironment.shardLock(NodeEnvironment.java:504)
at org.elasticsearch.index.IndexService.createShard(IndexService.java:310)
... 9 more
[2015-07-02 08:57:50,341][INFO ][cluster.routing.allocation.decider] [elasticsearch-nodes2.localdomain] updating [cluster.routing.allocation.enable] from [ALL] to [NONE]
[2015-07-02 08:57:50,345][DEBUG][discovery.zen.publish ] [elasticsearch-nodes2.localdomain] received cluster state version 73588
</code></pre></div>
<p dir="auto">The nodes will (until restart) exchange cluster state version indefinitely</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="received cluster state version 76797
received cluster state version 76798
received cluster state version 76799
received cluster state version 76800
received cluster state version 76801
received cluster state version 76802 "><pre class="notranslate"><code class="notranslate">received cluster state version 76797
received cluster state version 76798
received cluster state version 76799
received cluster state version 76800
received cluster state version 76801
received cluster state version 76802
</code></pre></div>
<p dir="auto">At this stage the cluster is green, but when the second time our process run, it'll trigger a yellow and sometimes a red cluster</p>
<p dir="auto">Things we've tried:</p>
<ul dir="auto">
<li>upgrading (1.5.2, 1.5.3, 1.6.0)</li>
<li>rolling restart of each e.s process</li>
<li>complete rolling replacement of each of the 3 nodes (including data on disk)</li>
<li>adding more nodes (from 3 to 5)</li>
</ul>
<p dir="auto">The only way to fix this is to restart one of the nodes involved in the relocation process</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2015-07-02 08:57:59,708][INFO ][node ] [elasticsearch-nodes2.localdomain] stopping ...
[2015-07-02 08:57:59,725][DEBUG][discovery.zen.fd ] [elasticsearch-nodes2.localdomain] [master] stopping fault detection against master [[elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}], reason [zen disco stop]
[2015-07-02 08:57:59,792][INFO ][node ] [elasticsearch-nodes2.localdomain] stopped
[2015-07-02 08:57:59,792][INFO ][node ] [elasticsearch-nodes2.localdomain] closing ...
[2015-07-02 08:57:59,799][DEBUG][com.amazonaws.http.IdleConnectionReaper] Reaper thread:
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:112)
[2015-07-02 08:57:59,800][DEBUG][com.amazonaws.http.IdleConnectionReaper] Shutting down reaper thread.
[2015-07-02 08:58:09,806][WARN ][cluster.action.index ] [elasticsearch-nodes2.localdomain] [shopper_chargement_prod_a] failed to lock all shards for index - timed out after 30 seconds
[2015-07-02 08:58:09,814][INFO ][node ] [elasticsearch-nodes2.localdomain] closed
[2015-07-02 08:58:41,442][INFO ][node ] [elasticsearch-nodes2.localdomain] version[1.6.0], pid[45115], build[cdd3ac4/2015-06-09T13:36:34Z]
[2015-07-02 08:58:41,443][INFO ][node ] [elasticsearch-nodes2.localdomain] initializing ...
[2015-07-02 08:58:41,459][INFO ][plugins ] [elasticsearch-nodes2.localdomain] loaded [cloud-aws], sites [HQ, whatson, kopf]
[2015-07-02 08:58:41,499][INFO ][env ] [elasticsearch-nodes2.localdomain] using [1] data paths, mounts [[/srv/data (/dev/mapper/lvm--raid--0-lvm0)]], net usable_space [471.4gb], net total_space [499.6gb], types [xfs]
[2015-07-02 08:58:44,350][INFO ][node ] [elasticsearch-nodes2.localdomain] initialized
[2015-07-02 08:58:44,350][INFO ][node ] [elasticsearch-nodes2.localdomain] starting ...
[2015-07-02 08:58:44,527][INFO ][transport ] [elasticsearch-nodes2.localdomain] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/10.210.14.19:9300]}
[2015-07-02 08:58:44,546][INFO ][discovery ] [elasticsearch-nodes2.localdomain] es-cluster/p6IyMeFHRCey0kRffbHgDw
[2015-07-02 08:58:48,598][INFO ][cluster.service ] [elasticsearch-nodes2.localdomain] detected_master [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}, added {[elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1},[elasticsearch-nodes1.localdomain][DsZ08lNfSF6EwvAMSoehng][elasticsearch-nodes1.localdomain][inet[/10.210.14.138:9300]]{aws_availability_zone=eu-west-1c, max_local_storage_nodes=1},}, reason: zen-disco-receive(from master [[elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}])
[2015-07-02 08:58:48,606][INFO ][cluster.routing.allocation.decider] [elasticsearch-nodes2.localdomain] updating [cluster.routing.allocation.enable] from [ALL] to [NONE]
[2015-07-02 08:58:48,606][INFO ][indices.recovery ] [elasticsearch-nodes2.localdomain] updating [indices.recovery.translog_size] from [512kb] to [2mb]
[2015-07-02 08:58:48,649][INFO ][http ] [elasticsearch-nodes2.localdomain] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/10.210.14.19:9200]}
[2015-07-02 08:58:48,649][INFO ][node ] [elasticsearch-nodes2.localdomain] started
[2015-07-02 08:59:07,416][DEBUG][discovery.zen.publish ] [elasticsearch-nodes2.localdomain] received cluster state version 73591
[2015-07-02 08:59:07,417][INFO ][cluster.routing.allocation.decider] [elasticsearch-nodes2.localdomain] updating [cluster.routing.allocation.enable] from [NONE] to [ALL]
[2015-07-02 08:59:07,424][DEBUG][discovery.zen.publish ] [elasticsearch-nodes2.localdomain] received cluster state version 73592
[2015-07-02 08:59:07,842][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][0] started recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}, id [1]
[2015-07-02 08:59:07,844][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] collecting local files for [index_a][0] [1]
[2015-07-02 08:59:07,845][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][0] starting recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}
[2015-07-02 08:59:07,858][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][1] started recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}, id [2]
[2015-07-02 08:59:07,859][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] collecting local files for [index_a][1] [2]
[2015-07-02 08:59:07,859][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][1] starting recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}
[2015-07-02 08:59:07,866][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][0] Got exception on recovery
org.elasticsearch.transport.RemoteTransportException: [elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]][internal:index/shard/recovery/start_recovery]
Caused by: org.elasticsearch.indices.recovery.DelayRecoveryException: source node does not have the shard listed in its state as allocated on the node
at org.elasticsearch.indices.recovery.RecoverySource.recover(RecoverySource.java:108)
at org.elasticsearch.indices.recovery.RecoverySource.access$200(RecoverySource.java:49)
at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:146)
at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:132)
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-07-02 08:59:07,866][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][1] Got exception on recovery
org.elasticsearch.transport.RemoteTransportException: [elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]][internal:index/shard/recovery/start_recovery]
Caused by: org.elasticsearch.indices.recovery.DelayRecoveryException: source node does not have the shard listed in its state as allocated on the node
at org.elasticsearch.indices.recovery.RecoverySource.recover(RecoverySource.java:108)
at org.elasticsearch.indices.recovery.RecoverySource.access$200(RecoverySource.java:49)
at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:146)
at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:132)
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-07-02 08:59:07,868][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] will retrying recovery with id [1] in [500ms] (reason [source node does not have the shard listed in its state as allocated on the node])
[2015-07-02 08:59:07,868][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] will retrying recovery with id [2] in [500ms] (reason [source node does not have the shard listed in its state as allocated on the node])
[2015-07-02 08:59:08,369][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] collecting local files for [index_a][1] [2]
[2015-07-02 08:59:08,369][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] collecting local files for [index_a][0] [1]
[2015-07-02 08:59:08,370][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][0] starting recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}
[2015-07-02 08:59:08,370][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][1] starting recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}"><pre class="notranslate"><code class="notranslate">[2015-07-02 08:57:59,708][INFO ][node ] [elasticsearch-nodes2.localdomain] stopping ...
[2015-07-02 08:57:59,725][DEBUG][discovery.zen.fd ] [elasticsearch-nodes2.localdomain] [master] stopping fault detection against master [[elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}], reason [zen disco stop]
[2015-07-02 08:57:59,792][INFO ][node ] [elasticsearch-nodes2.localdomain] stopped
[2015-07-02 08:57:59,792][INFO ][node ] [elasticsearch-nodes2.localdomain] closing ...
[2015-07-02 08:57:59,799][DEBUG][com.amazonaws.http.IdleConnectionReaper] Reaper thread:
java.lang.InterruptedException: sleep interrupted
at java.lang.Thread.sleep(Native Method)
at com.amazonaws.http.IdleConnectionReaper.run(IdleConnectionReaper.java:112)
[2015-07-02 08:57:59,800][DEBUG][com.amazonaws.http.IdleConnectionReaper] Shutting down reaper thread.
[2015-07-02 08:58:09,806][WARN ][cluster.action.index ] [elasticsearch-nodes2.localdomain] [shopper_chargement_prod_a] failed to lock all shards for index - timed out after 30 seconds
[2015-07-02 08:58:09,814][INFO ][node ] [elasticsearch-nodes2.localdomain] closed
[2015-07-02 08:58:41,442][INFO ][node ] [elasticsearch-nodes2.localdomain] version[1.6.0], pid[45115], build[cdd3ac4/2015-06-09T13:36:34Z]
[2015-07-02 08:58:41,443][INFO ][node ] [elasticsearch-nodes2.localdomain] initializing ...
[2015-07-02 08:58:41,459][INFO ][plugins ] [elasticsearch-nodes2.localdomain] loaded [cloud-aws], sites [HQ, whatson, kopf]
[2015-07-02 08:58:41,499][INFO ][env ] [elasticsearch-nodes2.localdomain] using [1] data paths, mounts [[/srv/data (/dev/mapper/lvm--raid--0-lvm0)]], net usable_space [471.4gb], net total_space [499.6gb], types [xfs]
[2015-07-02 08:58:44,350][INFO ][node ] [elasticsearch-nodes2.localdomain] initialized
[2015-07-02 08:58:44,350][INFO ][node ] [elasticsearch-nodes2.localdomain] starting ...
[2015-07-02 08:58:44,527][INFO ][transport ] [elasticsearch-nodes2.localdomain] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/10.210.14.19:9300]}
[2015-07-02 08:58:44,546][INFO ][discovery ] [elasticsearch-nodes2.localdomain] es-cluster/p6IyMeFHRCey0kRffbHgDw
[2015-07-02 08:58:48,598][INFO ][cluster.service ] [elasticsearch-nodes2.localdomain] detected_master [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}, added {[elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1},[elasticsearch-nodes1.localdomain][DsZ08lNfSF6EwvAMSoehng][elasticsearch-nodes1.localdomain][inet[/10.210.14.138:9300]]{aws_availability_zone=eu-west-1c, max_local_storage_nodes=1},}, reason: zen-disco-receive(from master [[elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}])
[2015-07-02 08:58:48,606][INFO ][cluster.routing.allocation.decider] [elasticsearch-nodes2.localdomain] updating [cluster.routing.allocation.enable] from [ALL] to [NONE]
[2015-07-02 08:58:48,606][INFO ][indices.recovery ] [elasticsearch-nodes2.localdomain] updating [indices.recovery.translog_size] from [512kb] to [2mb]
[2015-07-02 08:58:48,649][INFO ][http ] [elasticsearch-nodes2.localdomain] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/10.210.14.19:9200]}
[2015-07-02 08:58:48,649][INFO ][node ] [elasticsearch-nodes2.localdomain] started
[2015-07-02 08:59:07,416][DEBUG][discovery.zen.publish ] [elasticsearch-nodes2.localdomain] received cluster state version 73591
[2015-07-02 08:59:07,417][INFO ][cluster.routing.allocation.decider] [elasticsearch-nodes2.localdomain] updating [cluster.routing.allocation.enable] from [NONE] to [ALL]
[2015-07-02 08:59:07,424][DEBUG][discovery.zen.publish ] [elasticsearch-nodes2.localdomain] received cluster state version 73592
[2015-07-02 08:59:07,842][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][0] started recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}, id [1]
[2015-07-02 08:59:07,844][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] collecting local files for [index_a][0] [1]
[2015-07-02 08:59:07,845][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][0] starting recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}
[2015-07-02 08:59:07,858][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][1] started recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}, id [2]
[2015-07-02 08:59:07,859][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] collecting local files for [index_a][1] [2]
[2015-07-02 08:59:07,859][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][1] starting recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}
[2015-07-02 08:59:07,866][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][0] Got exception on recovery
org.elasticsearch.transport.RemoteTransportException: [elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]][internal:index/shard/recovery/start_recovery]
Caused by: org.elasticsearch.indices.recovery.DelayRecoveryException: source node does not have the shard listed in its state as allocated on the node
at org.elasticsearch.indices.recovery.RecoverySource.recover(RecoverySource.java:108)
at org.elasticsearch.indices.recovery.RecoverySource.access$200(RecoverySource.java:49)
at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:146)
at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:132)
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-07-02 08:59:07,866][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][1] Got exception on recovery
org.elasticsearch.transport.RemoteTransportException: [elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]][internal:index/shard/recovery/start_recovery]
Caused by: org.elasticsearch.indices.recovery.DelayRecoveryException: source node does not have the shard listed in its state as allocated on the node
at org.elasticsearch.indices.recovery.RecoverySource.recover(RecoverySource.java:108)
at org.elasticsearch.indices.recovery.RecoverySource.access$200(RecoverySource.java:49)
at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:146)
at org.elasticsearch.indices.recovery.RecoverySource$StartRecoveryTransportRequestHandler.messageReceived(RecoverySource.java:132)
at org.elasticsearch.transport.netty.MessageChannelHandler$RequestHandler.doRun(MessageChannelHandler.java:279)
at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:36)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
[2015-07-02 08:59:07,868][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] will retrying recovery with id [1] in [500ms] (reason [source node does not have the shard listed in its state as allocated on the node])
[2015-07-02 08:59:07,868][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] will retrying recovery with id [2] in [500ms] (reason [source node does not have the shard listed in its state as allocated on the node])
[2015-07-02 08:59:08,369][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] collecting local files for [index_a][1] [2]
[2015-07-02 08:59:08,369][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] collecting local files for [index_a][0] [1]
[2015-07-02 08:59:08,370][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][0] starting recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}
[2015-07-02 08:59:08,370][TRACE][indices.recovery ] [elasticsearch-nodes2.localdomain] [index_a][1] starting recovery from [elasticsearch-nodes3.localdomain][o_9lrwRfTn6bbIztX9OCvA][elasticsearch-nodes3.localdomain][inet[/10.210.14.50:9300]]{aws_availability_zone=eu-west-1a, max_local_storage_nodes=1}
</code></pre></div>
<p dir="auto">Setup:<br>
AWS 3 nodes, eu-west1 a,b,c zones, nginx proxy on each of the three nodes, one ELB with SSL offloading and round robin on the three nginx<br>
data stored on EBS volumes</p>
<p dir="auto">ES config:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cluster.name: es-cluster
node.name: elasticsearch-nodes2.localdomain
node.max_local_storage_nodes: 1
index.mapper.dynamic: true
action.auto_create_index: true
action.disable_delete_all_indices: true
path.conf: /usr/local/etc/elasticsearch
path.data: /srv/data/elasticsearch/data
path.logs: /srv/data/elasticsearch/logs
bootstrap.mlockall: true
http.port: 9200
gateway.expected_nodes: 1
discovery.type: ec2
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping.multicast.enabled: false
cloud.node.auto_attributes: true
cloud.aws.region: eu-west-1
discovery.ec2.tag: custom-es-cluster-tag
action.disable_delete_all_indices: true
discovery.zen.fd.ping_timeout: 15s
gateway.recover_after_nodes: 2
gateway.recover_after_time: 5m
http.compression: true
http.cors.allow-origin: '*'
http.cors.enabled: true
indices.store.throttle.max_bytes_per_sec: 100mb
threadpool.bulk.queue_size: 3000
transport.tcp.compress: true"><pre class="notranslate"><code class="notranslate">cluster.name: es-cluster
node.name: elasticsearch-nodes2.localdomain
node.max_local_storage_nodes: 1
index.mapper.dynamic: true
action.auto_create_index: true
action.disable_delete_all_indices: true
path.conf: /usr/local/etc/elasticsearch
path.data: /srv/data/elasticsearch/data
path.logs: /srv/data/elasticsearch/logs
bootstrap.mlockall: true
http.port: 9200
gateway.expected_nodes: 1
discovery.type: ec2
discovery.zen.minimum_master_nodes: 2
discovery.zen.ping.multicast.enabled: false
cloud.node.auto_attributes: true
cloud.aws.region: eu-west-1
discovery.ec2.tag: custom-es-cluster-tag
action.disable_delete_all_indices: true
discovery.zen.fd.ping_timeout: 15s
gateway.recover_after_nodes: 2
gateway.recover_after_time: 5m
http.compression: true
http.cors.allow-origin: '*'
http.cors.enabled: true
indices.store.throttle.max_bytes_per_sec: 100mb
threadpool.bulk.queue_size: 3000
transport.tcp.compress: true
</code></pre></div>
<p dir="auto">ES Index settings:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"index_b":{
"settings":{
"index":{
"creation_date":"1435765694828",
"uuid":"JjqbLn6CS1q0nwaw5HhIpA",
"analysis":{
"filter":{
"my_word_delimiter":{
"type":"word_delimiter",
"split_on_numerics":"true"
},
"french_stemmer":{
"type":"stemmer",
"name":"light_french"
},
"limit_token":{
"type":"limit",
"max_token_count":"7"
},
"french_stopwords":{
"type":"stop",
"stopwords":"_french_"
}
},
"analyzer":{
"word_delimiter_stopwfr":{
"filter":[
"my_word_delimiter",
"asciifolding",
"lowercase",
"french_stopwords"
],
"tokenizer":"digitletter"
},
"word_delimiter":{
"filter":[
"my_word_delimiter",
"lowercase",
"asciifolding"
],
"tokenizer":"digitletter"
},
"word_delimiter_stopwfr_stemfr":{
"filter":[
"my_word_delimiter",
"asciifolding",
"lowercase",
"french_stopwords",
"french_stemmer"
],
"tokenizer":"digitletter"
},
"word_delimiter_limit":{
"filter":[
"my_word_delimiter",
"lowercase",
"limit_token",
"asciifolding"
],
"tokenizer":"digitletter"
}
},
"tokenizer":{
"digitletter":{
"pattern":"[^\\p{Ll}\\p{Lu}0-9]+",
"type":"pattern"
}
}
},
"number_of_replicas":"1",
"number_of_shards":"6",
"refresh_interval":"-1",
"version":{
"created":"1060099"
}
}
}
}
}"><pre class="notranslate"><code class="notranslate">{
"index_b":{
"settings":{
"index":{
"creation_date":"1435765694828",
"uuid":"JjqbLn6CS1q0nwaw5HhIpA",
"analysis":{
"filter":{
"my_word_delimiter":{
"type":"word_delimiter",
"split_on_numerics":"true"
},
"french_stemmer":{
"type":"stemmer",
"name":"light_french"
},
"limit_token":{
"type":"limit",
"max_token_count":"7"
},
"french_stopwords":{
"type":"stop",
"stopwords":"_french_"
}
},
"analyzer":{
"word_delimiter_stopwfr":{
"filter":[
"my_word_delimiter",
"asciifolding",
"lowercase",
"french_stopwords"
],
"tokenizer":"digitletter"
},
"word_delimiter":{
"filter":[
"my_word_delimiter",
"lowercase",
"asciifolding"
],
"tokenizer":"digitletter"
},
"word_delimiter_stopwfr_stemfr":{
"filter":[
"my_word_delimiter",
"asciifolding",
"lowercase",
"french_stopwords",
"french_stemmer"
],
"tokenizer":"digitletter"
},
"word_delimiter_limit":{
"filter":[
"my_word_delimiter",
"lowercase",
"limit_token",
"asciifolding"
],
"tokenizer":"digitletter"
}
},
"tokenizer":{
"digitletter":{
"pattern":"[^\\p{Ll}\\p{Lu}0-9]+",
"type":"pattern"
}
}
},
"number_of_replicas":"1",
"number_of_shards":"6",
"refresh_interval":"-1",
"version":{
"created":"1060099"
}
}
}
}
}
</code></pre></div>
| 1 |
<h5 dir="auto">Issue Type:</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">Ansible Version:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ ansible --version
ansible 1.8.1"><pre class="notranslate"><code class="notranslate">$ ansible --version
ansible 1.8.1
</code></pre></div>
<h5 dir="auto">Environment:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ uname -a
Darwin 0x6D67 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64 i386 MacBookPro11,3 Darwin"><pre class="notranslate"><code class="notranslate">$ uname -a
Darwin 0x6D67 14.0.0 Darwin Kernel Version 14.0.0: Fri Sep 19 00:26:44 PDT 2014; root:xnu-2782.1.97~2/RELEASE_X86_64 x86_64 i386 MacBookPro11,3 Darwin
</code></pre></div>
<h5 dir="auto">Summary:</h5>
<p dir="auto">Since 1.8.1 update, one of my git commands hangs forever.</p>
<h5 dir="auto">Steps To Reproduce:</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: bar | Checkout project
sudo: yes
git: repo=git@github.com:foo/bar.git accept_hostkey=True
force=yes remote=origin version=master
dest=/srv/www/foo/bar"><pre class="notranslate"><code class="notranslate">- name: bar | Checkout project
sudo: yes
git: repo=git@github.com:foo/bar.git accept_hostkey=True
force=yes remote=origin version=master
dest=/srv/www/foo/bar
</code></pre></div>
<h5 dir="auto">Expected Results:</h5>
<p dir="auto">It's working with ansible <code class="notranslate">v1.7.2</code></p>
<h5 dir="auto">Actual Results:</h5>
<p dir="auto">The task hangs, if I ssh and check the folder, it looks like it crashes on a submodule:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Submodule 'webroot/modules/col-stats' () registered for path 'webroot/modules/col-stats'
fatal: Needed a single revision
Unable to find current revision in submodule path 'webroot/modules/col-broadcast-viewer'"><pre class="notranslate"><code class="notranslate">Submodule 'webroot/modules/col-stats' () registered for path 'webroot/modules/col-stats'
fatal: Needed a single revision
Unable to find current revision in submodule path 'webroot/modules/col-broadcast-viewer'
</code></pre></div>
<p dir="auto">Can't reproduce it with the CLI:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone -o github git@github.com:foo/bar.git --recursive"><pre class="notranslate"><code class="notranslate">git clone -o github git@github.com:foo/bar.git --recursive
</code></pre></div>
|
<p dir="auto">When executing the <code class="notranslate">git</code> command, with <code class="notranslate">recursive: yes</code>, the <code class="notranslate">accept_hostkey: yes</code> directive is ignored for submodules. If the submodule remote is a different server to the main git repo, the Ansible script hangs waiting for manual authentication of the remote.</p>
| 1 |
<p dir="auto">In the playpen (Mode: Debug, Channel: Nightly)</p>
<p dir="auto">I was playing with associated constants when this code made the compiler panic:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(associated_consts)]
use ::std::marker::PhantomData;
trait Num {
const VAL: usize;
fn val() -> usize;
}
struct N1;
impl Num for N1 {
const VAL: usize = 1;
fn val() -> usize { N1::VAL }
}
struct Arr<S: Num> {
ty: PhantomData<S>,
data: [i32; S::VAL]
}
fn main() {
}"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>associated_consts<span class="pl-kos">)</span><span class="pl-kos">]</span></span>
<span class="pl-k">use</span> <span class="pl-kos">::</span>std<span class="pl-kos">::</span>marker<span class="pl-kos">::</span><span class="pl-v">PhantomData</span><span class="pl-kos">;</span>
<span class="pl-k">trait</span> <span class="pl-smi">Num</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-v">VAL</span><span class="pl-kos">:</span> <span class="pl-smi">usize</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">val</span><span class="pl-kos">(</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">struct</span> <span class="pl-smi">N1</span><span class="pl-kos">;</span>
<span class="pl-k">impl</span> <span class="pl-smi">Num</span> <span class="pl-k">for</span> <span class="pl-smi">N1</span> <span class="pl-kos">{</span>
<span class="pl-k">const</span> <span class="pl-v">VAL</span><span class="pl-kos">:</span> <span class="pl-smi">usize</span> = <span class="pl-c1">1</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">val</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -> <span class="pl-smi">usize</span> <span class="pl-kos">{</span> <span class="pl-smi">N1</span><span class="pl-kos">::</span><span class="pl-v">VAL</span> <span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">struct</span> <span class="pl-smi">Arr</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">:</span> <span class="pl-smi">Num</span><span class="pl-kos">></span> <span class="pl-kos">{</span>
<span class="pl-c1">ty</span><span class="pl-kos">:</span> <span class="pl-smi">PhantomData</span><span class="pl-kos"><</span><span class="pl-smi">S</span><span class="pl-kos">></span><span class="pl-kos">,</span>
<span class="pl-c1">data</span><span class="pl-kos">:</span> <span class="pl-kos">[</span><span class="pl-smi">i32</span><span class="pl-kos">;</span> <span class="pl-smi">S</span><span class="pl-kos">::</span><span class="pl-v">VAL</span><span class="pl-kos">]</span>
<span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">With error message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: 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 'path not fully resolved: PathResolution { base_def: DefTyParam(TypeSpace, 0, DefId { krate: 0, node: 35 }, "S"(72)), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:81
playpen: application terminated with error code 101"><pre class="notranslate"><code class="notranslate">error: internal compiler error: unexpected panic
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: 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 'path not fully resolved: PathResolution { base_def: DefTyParam(TypeSpace, 0, DefId { krate: 0, node: 35 }, "S"(72)), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:81
playpen: application terminated with error code 101
</code></pre></div>
<p dir="auto">Playpen link: <a href="http://is.gd/dE8jbq" rel="nofollow">http://is.gd/dE8jbq</a></p>
<p dir="auto">The line which confuses the compiler is this one:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" data: [i32; S::VAL]"><pre class="notranslate"> data<span class="pl-kos">:</span> <span class="pl-kos">[</span>i32<span class="pl-kos">;</span> <span class="pl-smi">S</span><span class="pl-kos">::</span><span class="pl-v">VAL</span><span class="pl-kos">]</span><span class="pl-kos"></span></pre></div>
<p dir="auto">Without it, the program compiles just fine.</p>
|
<p dir="auto">The following code causes an ICE using the latest nightly.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" #![feature(associated_consts)]
pub trait Test {
const LENGTH: usize;
fn method(array: [i32; Self::LENGTH]) { }
}
fn main() { }"><pre class="notranslate"><code class="notranslate"> #![feature(associated_consts)]
pub trait Test {
const LENGTH: usize;
fn method(array: [i32; Self::LENGTH]) { }
}
fn main() { }
</code></pre></div>
<p dir="auto">Running with RUST_BACKTRACE=1 gives</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefSelfTy(Some(DefId { krate: 0, node: 4 }Test), None), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:81
stack backtrace:
1: 0x7fcb00fecdde - sys::backtrace::write::h69183b7c98049b30wqs
2: 0x7fcb00ff4a44 - panicking::on_panic::h2c3150d5b218c447i8w
3: 0x7fcb00fb77ee - rt::unwind::begin_unwind_inner::hf9bdd075490425c8WNw
4: 0x7fcb00fb851c - rt::unwind::begin_unwind_fmt::h6a9238aa2a13c0892Mw
5: 0x7fcaff01d717 - middle::const_eval::eval_const_expr_with_substs::h14003455026798805522
6: 0x7fcafefca59b - middle::const_eval::eval_const_expr_partial::hfb624d4880a32ba3IGk
7: 0x7fcb007d5cf2 - astconv::ast_ty_to_ty::heeb2edb80837d1162Qv
8: 0x7fcb008317ee - vec::Vec<T>.FromIterator<T>::from_iter::h3785597557409810636
9: 0x7fcb00830d56 - astconv::ty_of_method_or_bare_fn::h7fc2677ba2149d77I6v
10: 0x7fcb00849e9b - collect::convert_method::h2213f9f8b79b70d9Fsx
11: 0x7fcb00838e74 - collect::convert_item::hbcf9d38ceb0aafd0cIx
12: 0x7fcb00833917 - collect::collect_item_types::hacdb13c97b5df6d8zPw
13: 0x7fcb00880a59 - check_crate::h0321f1e753acbcf9WWC
14: 0x7fcb01555cd9 - driver::phase_3_run_analysis_passes::closure.15875
15: 0x7fcb0155461b - middle::ty::ctxt<'tcx>::create_and_enter::h9079099211582893073
16: 0x7fcb0154f5c1 - driver::phase_3_run_analysis_passes::h12132907910932298086
17: 0x7fcb0152e83c - driver::compile_input::h3a475b0b9259362fTba
18: 0x7fcb01614bd3 - run_compiler::h2cc1d87c2af5b2f0A7b
19: 0x7fcb016125ae - boxed::F.FnBox<A>::call_box::h6791803627395147597
20: 0x7fcb01611df9 - rt::unwind::try::try_fn::h10416075533806878094
21: 0x7fcb0106f738 - rust_try_inner
22: 0x7fcb0106f725 - rust_try
23: 0x7fcb00fe00f7 - rt::unwind::try::inner_try::h6181b0bb7448f551PJw
24: 0x7fcb0161200b - boxed::F.FnBox<A>::call_box::h6862050082343839214
25: 0x7fcb00ff36a1 - sys::thread::Thread::new::thread_start::hadfe7238e1724c34CTv
26: 0x7fcafac580a3 - start_thread
27: 0x7fcb00c3e04c - clone
28: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'path not fully resolved: PathResolution { base_def: DefSelfTy(Some(DefId { krate: 0, node: 4 }Test), None), last_private: LastMod(AllPublic), depth: 1 }', ../src/librustc/middle/def.rs:81
stack backtrace:
1: 0x7fcb00fecdde - sys::backtrace::write::h69183b7c98049b30wqs
2: 0x7fcb00ff4a44 - panicking::on_panic::h2c3150d5b218c447i8w
3: 0x7fcb00fb77ee - rt::unwind::begin_unwind_inner::hf9bdd075490425c8WNw
4: 0x7fcb00fb851c - rt::unwind::begin_unwind_fmt::h6a9238aa2a13c0892Mw
5: 0x7fcaff01d717 - middle::const_eval::eval_const_expr_with_substs::h14003455026798805522
6: 0x7fcafefca59b - middle::const_eval::eval_const_expr_partial::hfb624d4880a32ba3IGk
7: 0x7fcb007d5cf2 - astconv::ast_ty_to_ty::heeb2edb80837d1162Qv
8: 0x7fcb008317ee - vec::Vec<T>.FromIterator<T>::from_iter::h3785597557409810636
9: 0x7fcb00830d56 - astconv::ty_of_method_or_bare_fn::h7fc2677ba2149d77I6v
10: 0x7fcb00849e9b - collect::convert_method::h2213f9f8b79b70d9Fsx
11: 0x7fcb00838e74 - collect::convert_item::hbcf9d38ceb0aafd0cIx
12: 0x7fcb00833917 - collect::collect_item_types::hacdb13c97b5df6d8zPw
13: 0x7fcb00880a59 - check_crate::h0321f1e753acbcf9WWC
14: 0x7fcb01555cd9 - driver::phase_3_run_analysis_passes::closure.15875
15: 0x7fcb0155461b - middle::ty::ctxt<'tcx>::create_and_enter::h9079099211582893073
16: 0x7fcb0154f5c1 - driver::phase_3_run_analysis_passes::h12132907910932298086
17: 0x7fcb0152e83c - driver::compile_input::h3a475b0b9259362fTba
18: 0x7fcb01614bd3 - run_compiler::h2cc1d87c2af5b2f0A7b
19: 0x7fcb016125ae - boxed::F.FnBox<A>::call_box::h6791803627395147597
20: 0x7fcb01611df9 - rt::unwind::try::try_fn::h10416075533806878094
21: 0x7fcb0106f738 - rust_try_inner
22: 0x7fcb0106f725 - rust_try
23: 0x7fcb00fe00f7 - rt::unwind::try::inner_try::h6181b0bb7448f551PJw
24: 0x7fcb0161200b - boxed::F.FnBox<A>::call_box::h6862050082343839214
25: 0x7fcb00ff36a1 - sys::thread::Thread::new::thread_start::hadfe7238e1724c34CTv
26: 0x7fcafac580a3 - start_thread
27: 0x7fcb00c3e04c - clone
28: 0x0 - <unknown>
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ rustc --version --verbose
rustc 1.3.0-nightly (16f64c388 2015-07-09)
binary: rustc
commit-hash: 16f64c38803e820fc20a669987395e663ced1387
commit-date: 2015-07-09
host: x86_64-unknown-linux-gnu
release: 1.3.0-nightly"><pre class="notranslate"><code class="notranslate">$ rustc --version --verbose
rustc 1.3.0-nightly (16f64c388 2015-07-09)
binary: rustc
commit-hash: 16f64c38803e820fc20a669987395e663ced1387
commit-date: 2015-07-09
host: x86_64-unknown-linux-gnu
release: 1.3.0-nightly
</code></pre></div>
<p dir="auto">This might be a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="71846185" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/24938" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/24938/hovercard" href="https://github.com/rust-lang/rust/issues/24938">#24938</a> (although that issue is now closed) or <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="89335604" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/26402" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/26402/hovercard" href="https://github.com/rust-lang/rust/issues/26402">#26402</a>.</p>
| 1 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="margin: 40px 20px 20px 40px; this passed the test, this is not what it asked for,"><pre class="notranslate"><code class="notranslate">margin: 40px 20px 20px 40px; this passed the test, this is not what it asked for,
</code></pre></div>
|
<p dir="auto">In the instructions for the margin, you have the pixel setting for "Top" to 20px instead of 40px.</p>
| 1 |
<p dir="auto">i try to import an Form Login to put in page, but when i import 'FormControl'<br>
appears:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Unexpected token import
/../client-with-react/node_modules/material-ui/es/Form/FormControl.js:5
import React from 'react';
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Module._compile (/Users/acauapitta/client-with-react/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)
at require (internal/module.js:11:18)"><pre class="notranslate"><code class="notranslate">Unexpected token import
/../client-with-react/node_modules/material-ui/es/Form/FormControl.js:5
import React from 'react';
SyntaxError: Unexpected token import
at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:599:28)
at Module._compile (/Users/acauapitta/client-with-react/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)
at require (internal/module.js:11:18)
</code></pre></div>
<p dir="auto">My Login Page:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<LayoutCenterBox>
<Grid item xs={4} justify='center' style={{ border: '1px red solid' }}>
<FormLogin/>
</Grid>
<Grid item xs={8} style={{ float: 'right' }}>
<PromoCover/>
</Grid>
</LayoutCenterBox>"><pre class="notranslate"><code class="notranslate"><LayoutCenterBox>
<Grid item xs={4} justify='center' style={{ border: '1px red solid' }}>
<FormLogin/>
</Grid>
<Grid item xs={8} style={{ float: 'right' }}>
<PromoCover/>
</Grid>
</LayoutCenterBox>
</code></pre></div>
<p dir="auto">My FormLogin Comp:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div>
<h1>Welcome!</h1>
<Grid item>
<FormControl fullWidth>
<Input id="email" placeholder="E-mail" startAdornment={<InputAdornment position="start"><i className="mdi mdi-account"></i></InputAdornment>} />
<Input id="password" type="password" placeholder="Password" startAdornment={<InputAdornment position="start"><i className="mdi mdi-lock"></i></InputAdornment>} />
</FormControl>
</Grid>
.
.
.
</div>"><pre class="notranslate"><code class="notranslate"><div>
<h1>Welcome!</h1>
<Grid item>
<FormControl fullWidth>
<Input id="email" placeholder="E-mail" startAdornment={<InputAdornment position="start"><i className="mdi mdi-account"></i></InputAdornment>} />
<Input id="password" type="password" placeholder="Password" startAdornment={<InputAdornment position="start"><i className="mdi mdi-lock"></i></InputAdornment>} />
</FormControl>
</Grid>
.
.
.
</div>
</code></pre></div>
<p dir="auto">The Code is a clone of nextjs example:<br>
<a href="https://github.com/mui-org/material-ui/tree/v1-beta/examples/nextjs">https://github.com/mui-org/material-ui/tree/v1-beta/examples/nextjs</a></p>
<p dir="auto">It's funny, because if i don't reload the page by the browser <strong>(f5)</strong> but if i change the code and save, the 'React Reload' works and the form appears...</p>
<p dir="auto">code base (it''s not working)<br>
<a href="https://codesandbox.io/s/l9p6nllo79" rel="nofollow">https://codesandbox.io/s/l9p6nllo79</a></p>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>v0.30 beta</td>
</tr>
<tr>
<td>React</td>
<td>latest</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome</td>
</tr>
<tr>
<td>**Next Js</td>
<td>4.2.3**</td>
</tr>
</tbody>
</table>
|
<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">Expect that when I type into an autocomplete field, and receive a dropdown list of items to select from, on selecting an item that the autocomplete input field would retain its focus so tabbing would move to the next field.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Currently, when you select an option from a dropdown, the focus is lost, and the tab order is broken.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="http://www.material-ui.com/#/components/auto-complete" rel="nofollow">http://www.material-ui.com/#/components/auto-complete</a></p>
<p dir="auto">Start typing in a field - a dropdown autocomplete list will appear, select a value and then the input loses focus, and we lose the tab order.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">This ruins keyboard accessibility for impaired users, and greatly hinders workflow in a form environment.</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>0.18.0</td>
</tr>
<tr>
<td>React</td>
<td>15.6.1</td>
</tr>
<tr>
<td>browser</td>
<td>Any</td>
</tr>
<tr>
<td>etc</td>
<td></td>
</tr>
</tbody>
</table>
| 0 |
<p dir="auto">There were 5 causes:<br>
java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)<br>
java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)<br>
java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)<br>
java.io.IOException(java.lang.RuntimeException: setDataSource failed: status = 0x80000000)<br>
java.io.FileNotFoundException(No content provider: url)</p>
<p dir="auto">but the url'pic can be load by my pc</p>
|
<p dir="auto"><strong>Integration libraries</strong>:<br>
using Glide version: 4.6.1<br>
using com.github.bumptech.glide:okhttp3-integration:4.6.1</p>
<p dir="auto"><strong>Device/Android Version</strong>:<br>
Samsung S6<br>
Android version 24</p>
<p dir="auto"><strong>Issue details / Repro steps / Use case background</strong>:<br>
I am trying to load an image from Internet into ImageView but it seems like Glide is trying to load from assets directory instead of Internet.</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" //this is the ApplicationContext
RequestManager requestManager = Glide.with(this)
.applyDefaultRequestOptions(RequestOptions.diskCacheStrategyOf(DiskCacheStrategy.NONE))
.applyDefaultRequestOptions(RequestOptions.placeholderOf(R.drawable.placeholder));
requestManager
.applyDefaultRequestOptions(RequestOptions.skipMemoryCacheOf(true));
}
requestManager.load("http://opendata.toronto.ca/transportation/tmc/rescucameraimages/CameraImages/loc8015.jpg")
.into(image);
"><pre class="notranslate"> <span class="pl-c">//this is the ApplicationContext</span>
<span class="pl-smi">RequestManager</span> <span class="pl-s1">requestManager</span> = <span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>)
.<span class="pl-en">applyDefaultRequestOptions</span>(<span class="pl-smi">RequestOptions</span>.<span class="pl-en">diskCacheStrategyOf</span>(<span class="pl-smi">DiskCacheStrategy</span>.<span class="pl-c1">NONE</span>))
.<span class="pl-en">applyDefaultRequestOptions</span>(<span class="pl-smi">RequestOptions</span>.<span class="pl-en">placeholderOf</span>(<span class="pl-smi">R</span>.<span class="pl-s1">drawable</span>.<span class="pl-s1">placeholder</span>));
<span class="pl-s1">requestManager</span>
.<span class="pl-en">applyDefaultRequestOptions</span>(<span class="pl-smi">RequestOptions</span>.<span class="pl-en">skipMemoryCacheOf</span>(<span class="pl-c1">true</span>));
}
<span class="pl-s1">requestManager</span>.<span class="pl-en">load</span>(<span class="pl-s">"http://opendata.toronto.ca/transportation/tmc/rescucameraimages/CameraImages/loc8015.jpg"</span>)
.<span class="pl-en">into</span>(<span class="pl-s1">image</span>);</pre></div>
<p dir="auto"><strong>Layout XML</strong>:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<ImageView
android:id="@+id/cam_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:layout_gravity="center"
android:gravity="center"
android:scaleType="fitCenter"
/>"><pre class="notranslate"><<span class="pl-ent">ImageView</span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/cam_view<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>match_parent<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">adjustViewBounds</span>=<span class="pl-s"><span class="pl-pds">"</span>true<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">gravity</span>=<span class="pl-s"><span class="pl-pds">"</span>center<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">scaleType</span>=<span class="pl-s"><span class="pl-pds">"</span>fitCenter<span class="pl-pds">"</span></span>
/></pre></div>
<p dir="auto"><strong>Stack trace / LogCat</strong>:</p>
<div class="highlight highlight-source-ruby notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Root cause (1 of 1)
java.io.FileNotFoundException: No content provider: http://opendata.toronto.ca/transportation/tmc/rescucameraimages/CameraImages/loc8015.jpg
at android.content.ContentResolver.openTypedAssetFileDescriptor(ContentResolver.java:1049)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:904)
at android.content.ContentResolver.openAssetFileDescriptor(ContentResolver.java:831)
at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:22)
at com.bumptech.glide.load.data.AssetFileDescriptorLocalUriFetcher.loadResource(AssetFileDescriptorLocalUriFetcher.java:13)
at com.bumptech.glide.load.data.LocalUriFetcher.loadData(LocalUriFetcher.java:44)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:62)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:299)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:266)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:446)"><pre class="notranslate"><span class="pl-en">Root</span> <span class="pl-en">cause</span> <span class="pl-kos">(</span><span class="pl-c1">1</span> <span class="pl-en">of</span> <span class="pl-c1">1</span><span class="pl-kos">)</span>
<span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">io</span><span class="pl-kos">.</span><span class="pl-en">FileNotFoundException</span>: <span class="pl-en">No</span> <span class="pl-en">content</span> <span class="pl-pds">provider</span>: <span class="pl-en">http</span>:/<span class="pl-sr">/opendata.toronto.ca/transportation</span>/<span class="pl-en">tmc</span>/<span class="pl-en">rescucameraimages</span>/<span class="pl-v">CameraImages</span>/<span class="pl-en">loc8015</span><span class="pl-kos">.</span><span class="pl-en">jpg</span>
<span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">content</span><span class="pl-kos">.</span><span class="pl-en">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">openTypedAssetFileDescriptor</span><span class="pl-kos">(</span><span class="pl-v">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1049</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">content</span><span class="pl-kos">.</span><span class="pl-en">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">openAssetFileDescriptor</span><span class="pl-kos">(</span><span class="pl-v">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:904</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">android</span><span class="pl-kos">.</span><span class="pl-en">content</span><span class="pl-kos">.</span><span class="pl-en">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">openAssetFileDescriptor</span><span class="pl-kos">(</span><span class="pl-v">ContentResolver</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:831</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">AssetFileDescriptorLocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadResource</span><span class="pl-kos">(</span><span class="pl-v">AssetFileDescriptorLocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:22</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">AssetFileDescriptorLocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadResource</span><span class="pl-kos">(</span><span class="pl-v">AssetFileDescriptorLocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:13</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">data</span><span class="pl-kos">.</span><span class="pl-en">LocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">loadData</span><span class="pl-kos">(</span><span class="pl-v">LocalUriFetcher</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:44</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">startNext</span><span class="pl-kos">(</span><span class="pl-v">SourceGenerator</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:62</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">runGenerators</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:299</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">runWrapped</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:266</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">DecodeJob</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:230</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">runWorker</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:1112</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">util</span><span class="pl-kos">.</span><span class="pl-en">concurrent</span><span class="pl-kos">.</span><span class="pl-en">ThreadPoolExecutor</span>$Worker<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">ThreadPoolExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:587</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">java</span><span class="pl-kos">.</span><span class="pl-en">lang</span><span class="pl-kos">.</span><span class="pl-en">Thread</span><span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">Thread</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:841</span><span class="pl-kos">)</span>
<span class="pl-en">at</span> <span class="pl-en">com</span><span class="pl-kos">.</span><span class="pl-en">bumptech</span><span class="pl-kos">.</span><span class="pl-en">glide</span><span class="pl-kos">.</span><span class="pl-en">load</span><span class="pl-kos">.</span><span class="pl-en">engine</span><span class="pl-kos">.</span><span class="pl-en">executor</span><span class="pl-kos">.</span><span class="pl-en">GlideExecutor</span>$DefaultThreadFactory$1<span class="pl-kos">.</span><span class="pl-en">run</span><span class="pl-kos">(</span><span class="pl-v">GlideExecutor</span><span class="pl-kos">.</span><span class="pl-en">java</span><span class="pl-pds">:446</span><span class="pl-kos">)</span></pre></div>
| 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: [Version 10.0.19002.1002]
Windows Terminal version (if applicable): Version: 0.6.2951.0
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: [Version 10.0.19002.1002]
Windows Terminal version (if applicable): Version: 0.6.2951.0
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Use the dark theme of Windows Terminal</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">No white line at the bottom of the window</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">a small white line at the bottom of the window</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/75278/67437108-5f386b80-f5f0-11e9-8a68-ec62edc0d2c1.png"><img src="https://user-images.githubusercontent.com/75278/67437108-5f386b80-f5f0-11e9-8a68-ec62edc0d2c1.png" alt="image" style="max-width: 100%;"></a></p>
|
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.2.1831.0
Any other software?"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.239]
Windows Terminal version (if applicable): Windows Terminal (Preview) Version: 0.2.1831.0
Any other software?
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Download the font<br>
<a href="https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Iosevka/Regular/complete/Iosevka%20Nerd%20Font%20Complete%20Windows%20Compatible.ttf">https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Iosevka/Regular/complete/Iosevka%20Nerd%20Font%20Complete%20Windows%20Compatible.ttf</a></li>
<li>Install into Windows</li>
<li>Edit profiles.json <code class="notranslate">"fontFace" : "Iosevka NF"</code></li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Able to render the font without crashing.<br>
This font doesn't crash other software, tested Fluent Terminal, Hyper, ConEmu, cmder, VS code, IntelliJ IDEA</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">App immediately exits without any error messages when tab with this font is opened. If it's the default profile, the app doesn't even start.<br>
Same with other Iosevka nerd fonts (Iosevka Term, Iosevka Mono)</p>
| 0 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2753.png">❓</g-emoji> Questions & Help</h2>
<p dir="auto">For many students,who haven't large GPU,so they will use small model(eg albert),hence I hope you will support loading albert, Tkanks so much!</p>
|
<h1 dir="auto">🌟New model addition</h1>
<h2 dir="auto">Model description</h2>
<p dir="auto">ALBERT is "A Lite" version of BERT, a popular unsupervised language representation learning algorithm. ALBERT uses parameter-reduction techniques that allow for large-scale configurations, overcome previous memory limitations, and achieve better behavior with respect to model degradation.</p>
<p dir="auto">For a technical description of the algorithm, see our paper:</p>
<p dir="auto">ALBERT: A Lite BERT for Self-supervised Learning of Language Representations</p>
<p dir="auto">Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, Radu Soricut</p>
<h2 dir="auto">Open Source status</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> the model implementation is available: <a href="https://github.com/google-research/google-research/tree/master/albert">https://github.com/google-research/google-research/tree/master/albert</a>.</li>
</ul>
<p dir="auto">I just want to ask whether you guys have plan to add ALBERT in near future.</p>
| 1 |
<p dir="auto">Let's say I have 3 modules <code class="notranslate">main.rs</code>, <code class="notranslate">a.rs</code> and <code class="notranslate">b.rs</code>, and two external libraries <code class="notranslate">libfoo.a</code> and <code class="notranslate">libbar.a</code>, and that <code class="notranslate">libbar</code> depends on symbols defined in <code class="notranslate">libfoo</code>.</p>
<p dir="auto"><strong>main.rs</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mod a;
mod b;
fn main() {}"><pre class="notranslate"><code class="notranslate">mod a;
mod b;
fn main() {}
</code></pre></div>
<p dir="auto"><strong>a.rs</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[link(name = "foo")]
extern {}"><pre class="notranslate"><code class="notranslate">#[link(name = "foo")]
extern {}
</code></pre></div>
<p dir="auto"><strong>b.rs</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#[link(name = "bar")]
#[link(name = "foo")]
extern {}"><pre class="notranslate"><code class="notranslate">#[link(name = "bar")]
#[link(name = "foo")]
extern {}
</code></pre></div>
<p dir="auto">Because rustc de-dupes the list of external libraries, it will pass to linker only <code class="notranslate">-lfoo -lbar</code>. However gnu linker does not look for unresolved symbols in libraries it had already processed, so it will fail to resolve libbar's references to libfoo. The correct command line would have been <code class="notranslate">-lfoo -lbar -lfoo</code>.</p>
<p dir="auto">Rustc should not de-duplicate the list of libraries. Furthermore, I think it should guarantee that libs will appear in the same order on the linker command line as they did in the source file.</p>
|
<p dir="auto"><a href="http://is.gd/zCNViG" rel="nofollow">http://is.gd/zCNViG</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const VV: Vec<&'static str> =
vec!("A" , "B").drain().map(|s| s).collect::<Vec<&'static str>>();"><pre class="notranslate"><code class="notranslate">const VV: Vec<&'static str> =
vec!("A" , "B").drain().map(|s| s).collect::<Vec<&'static str>>();
</code></pre></div>
<p dir="auto">Obviously it is intended that this code produce a compiler error, but it also causes the compiler to panic with this message:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="thread 'rustc' panicked at 'assertion failed: self.mode == Mode::Var',
/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/check_const.rs:232"><pre class="notranslate"><code class="notranslate">thread 'rustc' panicked at 'assertion failed: self.mode == Mode::Var',
/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/librustc/middle/check_const.rs:232
</code></pre></div>
| 0 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=klaus.kreuzwieser" rel="nofollow">Klaus Kreuzwieser</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-6176?redirect=false" rel="nofollow">SPR-6176</a></strong> and commented</p>
<p dir="auto">We have annotated classes with <code class="notranslate">@Configurable</code> and want that all <code class="notranslate">@Autowired</code> fields are injected. This works fine if all classes annotated with <code class="notranslate">@Configurable</code> are located in the WEB-INF/lib folder (for a web application), but does not work when the classes are in a JAR modules in APP-INF/lib folder.</p>
<p dir="auto">Consider the following scenario: An EAR consists of several application modules (i.e. WAR files) which have roughly the same dependencies. To prevent the packaging of duplicate JAR files in all WARs, we create "skinny WAR files" (see <a href="http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html" rel="nofollow">http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.html</a>). The WAR dependecies are packaged in a library folder (i.e. APP-INF/lib) and are referenced via the Class-Path setting in the WAR's META-INF/MANIFEST.MF.<br>
All classes annotated with <code class="notranslate">@Configurable</code> which are located in the external referenced JAR files are not woven at load time. All classes annotated with <code class="notranslate">@Configurable</code> which are packaged into the web application itself (either under WEB-INF/classes or WEB-INF/lib) are correctly woven at load time.</p>
<p dir="auto">We are using WebLogic 10.3 as J2EE container, but I have found a similar problem (<a href="http://forum.springsource.org/showthread.php?t=50778" rel="nofollow">http://forum.springsource.org/showthread.php?t=50778</a>) concerning JBoss - so this problem seems to be container unrelated.</p>
<p dir="auto">I'l attach 2 zip files for reproduction: ltw-fat works fine, ltw-skinny throws a NullPointerException because the Configurable Conf1 is not woven.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?t=50778" rel="nofollow">http://forum.springsource.org/showthread.php?t=50778</a></p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/15759/ltw-fat.zip" rel="nofollow">ltw-fat.zip</a> (<em>14.76 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/15760/ltw-skinny.zip" rel="nofollow">ltw-skinny.zip</a> (<em>15.20 kB</em>)</li>
</ul>
|
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=jensb" rel="nofollow">Jens Borrmann</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-4936?redirect=false" rel="nofollow">SPR-4936</a></strong> and commented</p>
<p dir="auto">There is a cyclical dependency between orm and context. This is caused by the following entry in the manifest of context:</p>
<p dir="auto">org.springframework.orm.jpa.support;version="[2.5.4.A, 2.5.4.A]";resolution:=optional</p>
<p dir="auto">Since this direction is optional resolving the context bundle without orm is not impossible, but "funny" effects during runtime can occur.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.4</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398088271" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9479" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9479/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9479">#9479</a> cycles between various modules manifests (<em><strong>"duplicates"</strong></em>)</li>
</ul>
| 0 |
<p dir="auto">Hi. I am wanting to try Deno for a work project, but our dev environment's security rules prevent us from fetching from <a href="https://deno.land" rel="nofollow">https://deno.land</a>. The issue seems to either be with the domain name, or a blacklist of IP addresses.</p>
<p dir="auto">I am aware that this is a network security issue for our company and not an actual issue with Deno or <a href="https://deno.land" rel="nofollow">https://deno.land</a>.</p>
<p dir="auto">However, is there another source to fetch Deno standard packages from, or is there a plan to move the Deno website to another host where we may be able to fetch standard packages from?</p>
<p dir="auto">Thanks a bunch. The Deno project as a whole looks really cool.</p>
|
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// hello.ts
console.log('Hello World');"><pre class="notranslate"><span class="pl-c">// hello.ts</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'Hello World'</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="$ env DENO_DIR=denodir deno cache hello.ts
Compile file:///xyz/test.ts
thread 'main' panicked at 'Bad file URL for file: ()', cli/tsc.rs:722:7
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace"><pre class="notranslate">$ env DENO_DIR=denodir deno cache hello.ts
Compile file:///xyz/test.ts
thread <span class="pl-s"><span class="pl-pds">'</span>main<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>Bad file URL for file: ()<span class="pl-pds">'</span></span>, cli/tsc.rs:722:7
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</pre></div>
<p dir="auto">This is caused by <code class="notranslate">Url::from_file_path</code> not being able to handle relative paths.</p>
<p dir="auto">This also occurs at <code class="notranslate">cli/tsc.rs:633:35</code> with a slightly different input.</p>
| 1 |
<h3 dir="auto">Bug report</h3>
<p dir="auto">I have the same problem than on this <a href="https://stackoverflow.com/questions/43670867/matplotlib-alpha-transparency-parameter-doesnt-work" rel="nofollow">Stackoverflow webpage</a> :</p>
<p dir="auto"><strong>Code for reproduction</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from mpl_toolkits.mplot3d import Axes3D
import numpy as np
import matplotlib.pyplot as plt
def main():
plt.ion()
rho = np.random.random((4,4))
xpos = np.arange(0,4,1)
ypos = np.arange(0,4,1)
xpos, ypos = np.meshgrid(xpos, ypos)
xpos = xpos.flatten()
ypos = ypos.flatten()
zpos = np.zeros(4*4)
dx = 0.5 * np.ones_like(zpos)
dy = dx.copy()
dz = rho.flatten()
alpha = 0.5
fig = plt.figure()
ax = fig.gca(projection='3d')
ax.bar3d(xpos,ypos,zpos, dx, dy, dz, alpha=alpha, linewidth=0)
plt.show()
input("Press Enter to continue...")
if __name__ == '__main__':
main()
"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span>
<span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span>
<span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>
<span class="pl-k">def</span> <span class="pl-en">main</span>():
<span class="pl-s1">plt</span>.<span class="pl-en">ion</span>()
<span class="pl-s1">rho</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">random</span>((<span class="pl-c1">4</span>,<span class="pl-c1">4</span>))
<span class="pl-s1">xpos</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">4</span>,<span class="pl-c1">1</span>)
<span class="pl-s1">ypos</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">0</span>,<span class="pl-c1">4</span>,<span class="pl-c1">1</span>)
<span class="pl-s1">xpos</span>, <span class="pl-s1">ypos</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">meshgrid</span>(<span class="pl-s1">xpos</span>, <span class="pl-s1">ypos</span>)
<span class="pl-s1">xpos</span> <span class="pl-c1">=</span> <span class="pl-s1">xpos</span>.<span class="pl-en">flatten</span>()
<span class="pl-s1">ypos</span> <span class="pl-c1">=</span> <span class="pl-s1">ypos</span>.<span class="pl-en">flatten</span>()
<span class="pl-s1">zpos</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">4</span><span class="pl-c1">*</span><span class="pl-c1">4</span>)
<span class="pl-s1">dx</span> <span class="pl-c1">=</span> <span class="pl-c1">0.5</span> <span class="pl-c1">*</span> <span class="pl-s1">np</span>.<span class="pl-en">ones_like</span>(<span class="pl-s1">zpos</span>)
<span class="pl-s1">dy</span> <span class="pl-c1">=</span> <span class="pl-s1">dx</span>.<span class="pl-en">copy</span>()
<span class="pl-s1">dz</span> <span class="pl-c1">=</span> <span class="pl-s1">rho</span>.<span class="pl-en">flatten</span>()
<span class="pl-s1">alpha</span> <span class="pl-c1">=</span> <span class="pl-c1">0.5</span>
<span class="pl-s1">fig</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>()
<span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">fig</span>.<span class="pl-en">gca</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>)
<span class="pl-s1">ax</span>.<span class="pl-en">bar3d</span>(<span class="pl-s1">xpos</span>,<span class="pl-s1">ypos</span>,<span class="pl-s1">zpos</span>, <span class="pl-s1">dx</span>, <span class="pl-s1">dy</span>, <span class="pl-s1">dz</span>, <span class="pl-s1">alpha</span><span class="pl-c1">=</span><span class="pl-s1">alpha</span>, <span class="pl-s1">linewidth</span><span class="pl-c1">=</span><span class="pl-c1">0</span>)
<span class="pl-s1">plt</span>.<span class="pl-en">show</span>()
<span class="pl-en">input</span>(<span class="pl-s">"Press Enter to continue..."</span>)
<span class="pl-k">if</span> <span class="pl-s1">__name__</span> <span class="pl-c1">==</span> <span class="pl-s">'__main__'</span>:
<span class="pl-en">main</span>()</pre></div>
<p dir="auto"><strong>Actual outcome</strong></p>
<p dir="auto">The bar on the plot are not transparent at all but they should be.</p>
<p dir="auto"><strong>Matplotlib version</strong></p>
<ul dir="auto">
<li>Operating system: Ubuntu 16.04</li>
<li>Matplotlib version: 2.0.2</li>
<li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): Qt5Agg</li>
<li>Python version: 3.6</li>
</ul>
<p dir="auto">Matplotlib have been installerd from conda.</p>
|
<p dir="auto">Trying to create a semitransparent <code class="notranslate">Poly3DCollection</code> fails as shown in the following.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
import matplotlib.pyplot as plt
fig = plt.figure()
ax = Axes3D(fig)
x = [0, 1, 1, 0]
y = [0, 0, 1, 1]
z = [0, 1, 0, 1]
verts = [list(zip(x, y, z))]
alpha=0.5
fc = "C0"
# This line fails to give a semitransparent artist
pc = Poly3DCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)
ax.add_collection3d(pc)
plt.show()"><pre class="notranslate"><code class="notranslate">from mpl_toolkits.mplot3d import Axes3D
from mpl_toolkits.mplot3d.art3d import Poly3DCollection
import matplotlib.pyplot as plt
fig = plt.figure()
ax = Axes3D(fig)
x = [0, 1, 1, 0]
y = [0, 0, 1, 1]
z = [0, 1, 0, 1]
verts = [list(zip(x, y, z))]
alpha=0.5
fc = "C0"
# This line fails to give a semitransparent artist
pc = Poly3DCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)
ax.add_collection3d(pc)
plt.show()
</code></pre></div>
<p dir="auto">It gives the following output, which still has an alpha of 1.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/34886224-a4f2e34a-f7c2-11e7-9fee-09f53f6ba235.png"><img src="https://user-images.githubusercontent.com/23121882/34886224-a4f2e34a-f7c2-11e7-9fee-09f53f6ba235.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Non-Working options</h3>
<p dir="auto">Now one may try several things. The following is <strong>not working</strong>:</p>
<ul dir="auto">
<li>
<p dir="auto">Setting facecolor and alpha individually, facecolor first,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pc = Poly3DCollection(verts, linewidths=1)
pc.set_facecolor(fc)
pc.set_alpha(alpha)"><pre class="notranslate"><code class="notranslate"> pc = Poly3DCollection(verts, linewidths=1)
pc.set_facecolor(fc)
pc.set_alpha(alpha)
</code></pre></div>
</li>
<li>
<p dir="auto">Setting facecolor<strong>s</strong> and alpha at instantiation</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pc = Poly3DCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)"><pre class="notranslate"><code class="notranslate"> pc = Poly3DCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)
</code></pre></div>
</li>
</ul>
<h3 dir="auto">Working options</h3>
<p dir="auto">However, each of the following is correctly giving a semitransparent artist. This would be the expected outcome for any of the above as well.</p>
<ul dir="auto">
<li>
<p dir="auto">Setting facecolor and alpha individually, alpha first,</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pc = Poly3DCollection(verts, linewidths=1)
pc.set_alpha(alpha) # Order reversed
pc.set_facecolor(fc)"><pre class="notranslate"><code class="notranslate"> pc = Poly3DCollection(verts, linewidths=1)
pc.set_alpha(alpha) # Order reversed
pc.set_facecolor(fc)
</code></pre></div>
</li>
<li>
<p dir="auto">Setting alpha at instantiation, facecolor afterwards</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pc = Poly3DCollection(verts, alpha = alpha, linewidths=1)
pc.set_facecolor(fc)"><pre class="notranslate"><code class="notranslate"> pc = Poly3DCollection(verts, alpha = alpha, linewidths=1)
pc.set_facecolor(fc)
</code></pre></div>
</li>
<li>
<p dir="auto">Setting facecolor and alpha at instantiation</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" pc = Poly3DCollection(verts, alpha = alpha, facecolor=fc, linewidths=1)"><pre class="notranslate"><code class="notranslate"> pc = Poly3DCollection(verts, alpha = alpha, facecolor=fc, linewidths=1)
</code></pre></div>
</li>
</ul>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/23121882/34886264-c6730248-f7c2-11e7-9d52-b1bb8455227b.png"><img src="https://user-images.githubusercontent.com/23121882/34886264-c6730248-f7c2-11e7-9d52-b1bb8455227b.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">It seems there had been a similar bug in previous versions, <a href="https://stackoverflow.com/questions/18897786/transparency-for-poly3dcollection-plot-in-matplotlib" rel="nofollow">https://stackoverflow.com/questions/18897786/transparency-for-poly3dcollection-plot-in-matplotlib</a> which was reported to be fixed in the meantime but might have been reintroduced in a newer version.</p>
<p dir="auto">In the 2D case the following works as expected and produces a semtransparent artist.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from matplotlib.collections import PolyCollection
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
x = [0, 1, 1, 0]
y = [0, 0, 1, 1]
verts = [list(zip(x, y))]
alpha=0.5
fc = "C0"
pc = PolyCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)
ax.add_collection(pc)
ax.autoscale()
plt.show()"><pre class="notranslate"><code class="notranslate">from matplotlib.collections import PolyCollection
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
x = [0, 1, 1, 0]
y = [0, 0, 1, 1]
verts = [list(zip(x, y))]
alpha=0.5
fc = "C0"
pc = PolyCollection(verts, alpha = alpha, facecolors=fc, linewidths=1)
ax.add_collection(pc)
ax.autoscale()
plt.show()
</code></pre></div>
<p dir="auto">[All of the code in this issue has been tested with matplotlib 2.1]</p>
| 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="memo" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4dd.png">📝</g-emoji> Provide a description of the new feature</h2>
<p dir="auto"><em>What is the expected behavior of the proposed feature? What is the scenario this would be used?</em></p>
<p dir="auto">Currently, the 'Space around zones' feature changes template shapes irregularly often. If I enter '5' (for example) into the text box, it changes the spacing in the view:</p>
<ul dir="auto">
<li>When I click 'Distance to highlight adjacent zones'</li>
<li>If I tab to the next item</li>
<li>If I click the +/- for number of zones</li>
<li>If I click over to the 'Custom' tab</li>
<li>If I click 'Edit selected layout'</li>
</ul>
<p dir="auto">It does <em>not</em> change the spacing:</p>
<ul dir="auto">
<li>If I click a different template layout</li>
<li>If I hit enter</li>
<li>If I click the whitespace beside the entry box</li>
<li>If I move the window</li>
</ul>
<p dir="auto">All four of these entry methods pull focus from the textbox, and the displayed value should therefore pull focus.</p>
<hr>
<p dir="auto">If you'd like to see this feature implemented, add a <g-emoji class="g-emoji" alias="+1" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f44d.png">👍</g-emoji> reaction to this post.</p>
|
<p dir="auto">i noticed when you are editing number in space around zones (when you chose your layout)</p>
<p dir="auto">it does not update GUI representation of zones on change.... only when you disable and reenable show space around zones</p>
<p dir="auto">you are probably missing onchange listener on that numberpicker and it has simple fix</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="spaceAroundZoneNumPickerRef.onChange(function(){/*redraw gui representation*/})"><pre class="notranslate"><span class="pl-s1">spaceAroundZoneNumPickerRef</span><span class="pl-kos">.</span><span class="pl-en">onChange</span><span class="pl-kos">(</span><span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">{</span><span class="pl-c">/*redraw gui representation*/</span><span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div>
| 1 |
<p dir="auto">I have started <a href="https://github.com/kmalakoff/tensorflow-node">porting Tensorflow to Node.js</a> and was wondering about the status of gradients support in the C and C++ APIs:</p>
<ul dir="auto">
<li><a href="https://www.tensorflow.org/versions/r0.12/how_tos/language_bindings/index.html" rel="nofollow">https://www.tensorflow.org/versions/r0.12/how_tos/language_bindings/index.html</a></li>
<li><a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/resources/roadmap.md">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/resources/roadmap.md</a></li>
</ul>
<p dir="auto">Could I ask for some help and / or offer some assistance? A couple of ideas:</p>
<ol dir="auto">
<li>I would be happy to test the work-in-progress API in Node.js using either of both <a href="https://github.com/kmalakoff/tensorflow-node/tree/master/src/native/c">C</a> or <a href="https://github.com/kmalakoff/tensorflow-node/tree/master/src/native/cc">C++</a>. I have tried both APIs and would be happy to maintain both as a test case.</li>
<li>I would be happy to receive some guidance from someone on the tensorflow team on how to implement gradients / training without an official API. I see from this issue (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="177892952" data-permission-text="Title is private" data-url="https://github.com/tensorflow/tensorflow/issues/4473" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/4473/hovercard" href="https://github.com/tensorflow/tensorflow/issues/4473">#4473</a>) that it might be possible, but it has been hard to study the Python and OCAML code to understand what to do. Some pseudocode or links to existing code that would need to replicated could be enough.</li>
<li>Something else? For example, I could help move the gradient API forward by working with someone on the tensorflow team.</li>
</ol>
<p dir="auto">Let me know if you have any suggestions for a path forward. Thank you!</p>
|
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>:<br>
No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br>
OS X EI Caption 10.11.6</li>
<li><strong>TensorFlow installed from (source or binary)</strong>:<br>
binary (pip install)</li>
<li><strong>TensorFlow version (use command below)</strong>:<br>
TensorFlow 1.2.0-rc1 CPU Only</li>
<li><strong>Bazel version (if compiling from source)</strong>:<br>
Build label: 0.4.5-homebrew<br>
Build target: bazel-out/local-<br>
opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar<br>
Build time: Thu Mar 16 13:37:54 2017 (1489671474)<br>
Build timestamp: 1489671474<br>
Build timestamp as int: 1489671474</li>
<li><strong>CUDA/cuDNN version</strong>:<br>
CPU Only</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Because of the buffers holding the model weight values are 77MB in size, the memory needed to load these into the app can put a lot of pressure on RAM in Android even before the model is run.<br>
So, I need to further compress the model and round the weights,Even at the expense of accuracy.<br>
So I build <code class="notranslate">/tensorflow/tools/quantization/quantize_graph</code>.There are something wrongs when I run <code class="notranslate">quantize_graph</code> .</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Source code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="bazel-bin/tensorflow/tools/quantization/quantize_graph \
–input=/Users/liba/Desktop/OptimizeCTNModel.pb \
–output=/Users/liba/Desktop/RoundedCTNModel.pb \
–output_node_names=output/outputs \
–mode=weights_rounded"><pre class="notranslate"><code class="notranslate">bazel-bin/tensorflow/tools/quantization/quantize_graph \
–input=/Users/liba/Desktop/OptimizeCTNModel.pb \
–output=/Users/liba/Desktop/RoundedCTNModel.pb \
–output_node_names=output/outputs \
–mode=weights_rounded
</code></pre></div>
<p dir="auto">log:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/tools/quantization/quantize_graph.py", line 1301, in <module>
app.run()
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/tools/quantization/quantize_graph.py", line 1267, in main
data = f.read()
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/python/lib/io/file_io.py", line 125, in read
pywrap_tensorflow.ReadFromStream(self._read_buf, length, status))
File "/Users/liba/anaconda/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.FailedPreconditionError: .
"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/tools/quantization/quantize_graph.py", line 1301, in <module>
app.run()
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/python/platform/app.py", line 48, in run
_sys.exit(main(_sys.argv[:1] + flags_passthrough))
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/tools/quantization/quantize_graph.py", line 1267, in main
data = f.read()
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/python/lib/io/file_io.py", line 125, in read
pywrap_tensorflow.ReadFromStream(self._read_buf, length, status))
File "/Users/liba/anaconda/lib/python2.7/contextlib.py", line 24, in __exit__
self.gen.next()
File "/Users/liba/Desktop/tensorflow/bazel-bin/tensorflow/tools/quantization/quantize_graph.runfiles/org_tensorflow/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.FailedPreconditionError: .
</code></pre></div>
| 0 |
<p dir="auto">I have 20 samples from 2 classes. 18 from class 0 and 2 from class 1. Class 0 has proportion 18/20 = .9 or 90% whereas class 1 has proportion 2/20 = .1 or 10%. So as this is stratified, we expect 10% of the samples should be from class 1 in the test split. But we see 0% data is drawn from class 1.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sklearn.model_selection import StratifiedShuffleSplit
X = np.array([[1, 2], [3, 4], [1, 2], [3, 4], [5,6], [1, 2], [3, 4], [1, 2], [3, 4], [5,6], [7,8], [1, 2], [3, 4], [1, 2], [3, 4], [5,6], [1, 2], [3, 4], [1, 2], [3, 4]])
y = np.array([0, 0 ,0 , 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0])
sss = StratifiedShuffleSplit(n_splits=3, test_size=0.2, random_state=0)
for train_index, test_index in sss.split(X, y):
print("TRAIN:", train_index, "TEST:", test_index)
X_train, X_test = X[train_index], X[test_index]
y_train, y_test = y[train_index], y[test_index]"><pre class="notranslate"><code class="notranslate">from sklearn.model_selection import StratifiedShuffleSplit
X = np.array([[1, 2], [3, 4], [1, 2], [3, 4], [5,6], [1, 2], [3, 4], [1, 2], [3, 4], [5,6], [7,8], [1, 2], [3, 4], [1, 2], [3, 4], [5,6], [1, 2], [3, 4], [1, 2], [3, 4]])
y = np.array([0, 0 ,0 , 0, 0, 0, 0, 0, 1, 1, 0, 0, 0 ,0, 0, 0, 0, 0, 0, 0])
sss = StratifiedShuffleSplit(n_splits=3, test_size=0.2, random_state=0)
for train_index, test_index in sss.split(X, y):
print("TRAIN:", train_index, "TEST:", test_index)
X_train, X_test = X[train_index], X[test_index]
y_train, y_test = y[train_index], y[test_index]
</code></pre></div>
<p dir="auto"><strong>Output:</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TRAIN: [10 9 3 7 1 12 16 15 13 11 4 6 19 8 18 2] TEST: [ 5 17 0 14]
TRAIN: [ 5 11 8 14 12 18 4 19 13 9 17 6 1 10 2 15] TEST: [ 0 16 3 7]
TRAIN: [14 2 0 16 10 8 15 1 5 18 12 19 17 11 9 4] TEST: [ 3 13 6 7]"><pre class="notranslate"><code class="notranslate">TRAIN: [10 9 3 7 1 12 16 15 13 11 4 6 19 8 18 2] TEST: [ 5 17 0 14]
TRAIN: [ 5 11 8 14 12 18 4 19 13 9 17 6 1 10 2 15] TEST: [ 0 16 3 7]
TRAIN: [14 2 0 16 10 8 15 1 5 18 12 19 17 11 9 4] TEST: [ 3 13 6 7]
</code></pre></div>
|
<h3 dir="auto">Describe the issue linked to the documentation</h3>
<p dir="auto">Since <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="946265329" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/20543" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/20543/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/20543">#20543</a> images linked in <code class="notranslate">manifold.rst</code> are no longer generated in the <a href="https://scikit-learn.org/stable/auto_examples/manifold/plot_lle_digits.html#sphx-glr-auto-examples-manifold-plot-lle-digits-py" rel="nofollow">example</a>.<br>
This generates multiple warnings in the documentation build.<br>
See also <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1096757596" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/22147" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/22147/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/22147">#22147</a>.<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/thomasjpfan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/thomasjpfan">@thomasjpfan</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/glemaitre/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/glemaitre">@glemaitre</a> .</p>
<h3 dir="auto">Suggest a potential alternative/fix</h3>
<p dir="auto"><em>No response</em></p>
| 0 |
<p dir="auto">In julia, is there some syntax similar to<br>
<code class="notranslate">(x,z...) = (1,2,3)</code> which would result in<br>
<code class="notranslate">x=1</code> & <code class="notranslate">z=(2,3)</code>?</p>
<p dir="auto">If not, are there reasons why this was not supported, or perhaps this could be a reasonable feature request (or, more constructively, prior to working on a PR, do others have thoughts about this)?</p>
<p dir="auto">Ideally, since nested destructuring e.g. <code class="notranslate">(a,(b,c)) = (1,(2,3))</code> works as expected, any variadic version would also work e.g.<br>
<code class="notranslate">(a,(b,c,d...),e...) = (1,(2,3,4,5),6,7)</code> would yield</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a=1
b=2
c=3
d=(4,5)
e=(6,7)"><pre class="notranslate"><code class="notranslate">a=1
b=2
c=3
d=(4,5)
e=(6,7)
</code></pre></div>
<p dir="auto">And perhaps</p>
<p dir="auto"><code class="notranslate">(a,(b,c,d...),e..., nexttolast, last) = (1,(2,3,4,5),6,7,8,9,10)</code> would yield</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a=1
b=2
c=3
d=(4,5)
e=(6,7,8)
nexttolast=9
last=10"><pre class="notranslate"><code class="notranslate">a=1
b=2
c=3
d=(4,5)
e=(6,7,8)
nexttolast=9
last=10
</code></pre></div>
<p dir="auto">While <code class="notranslate">(a,(b,c,d...),e..., nexttolast, last) = (1,(2,3,4,5),9,10)</code> would yield</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="a=1
b=2
c=3
d=(4,5)
e=()
nexttolast=9
last=10"><pre class="notranslate"><code class="notranslate">a=1
b=2
c=3
d=(4,5)
e=()
nexttolast=9
last=10
</code></pre></div>
<p dir="auto">And finally <code class="notranslate">(a,(b,c,d...),e..., nexttolast, last) = (1,(2,3,4,5),10)</code> would result in an error, just<br>
like the current behavior for <code class="notranslate">(a,b) = 1</code></p>
|
<p dir="auto">This would be a very nice syntax for taking head and rest. Likewise <code class="notranslate">a..., b = [1,2,3]</code> might be good for slurping the initial elements into <code class="notranslate">a</code> and the tail element into <code class="notranslate">b</code>.</p>
| 1 |
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: latest</li>
<li>Operating System: Ubuntu</li>
</ul>
<p dir="auto">Hello guys, I am trying to run Playwright on a docker container with gui using <code class="notranslate">dorowu/ubuntu-desktop-lxde-vnc</code> image.</p>
<p dir="auto">I have created this Dockerfile:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FROM dorowu/ubuntu-desktop-lxde-vnc:latest
WORKDIR /tests
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
#Install Node.js & npm
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
COPY . .
# Install Playwright dependencies
RUN npm install
# Install browsers
RUN npx playwright install
# Install test
RUN npx @playwright/test install"><pre class="notranslate"><code class="notranslate">FROM dorowu/ubuntu-desktop-lxde-vnc:latest
WORKDIR /tests
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 4EB27DB2A3B88B8B
#Install Node.js & npm
RUN apt-get update
RUN apt-get install -y curl
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
COPY . .
# Install Playwright dependencies
RUN npm install
# Install browsers
RUN npx playwright install
# Install test
RUN npx @playwright/test install
</code></pre></div>
<p dir="auto">When I am running this docker container I am giving a volume that is already holding Playwright installation and if I try to run it from the parent machine it's running.</p>
<p dir="auto">But when I am running it from the container itself I am getting this error:</p>
<blockquote>
<p dir="auto">browserType.launch: Executable doesn't exist at /root/.cache/ms-playwright/chromium-1055/chrome-linux/chrome</p>
</blockquote>
<p dir="auto">And it's asking me to re-run <code class="notranslate">npx playwright install</code> and I have already run this command on the Dockerfile.</p>
<p dir="auto">What am I missing here? how can I solve it?</p>
|
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 8.19.3</li>
<li>Operating System: Ubuntu 22.04.2, macOS 13.4 (EDIT: and also latest Windows (in GitHub Actions))</li>
<li>Browser: n/a</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<p dir="auto">Failed GitHub Actions:</p>
<p dir="auto"><a href="https://github.com/bytescript/bytescript/actions/runs/5310143531/jobs/9611726634">https://github.com/bytescript/bytescript/actions/runs/5310143531/jobs/9611726634</a></p>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto"><a href="https://github.com/bytescript/bytescript">https://github.com/bytescript/bytescript</a> on this branch: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1728420473" data-permission-text="Title is private" data-url="https://github.com/bytescript/bytescript/issues/27" data-hovercard-type="pull_request" data-hovercard-url="/bytescript/bytescript/pull/27/hovercard" href="https://github.com/bytescript/bytescript/pull/27">bytescript/bytescript#27</a></p>
<p dir="auto">or</p>
<p dir="auto"><strong>Config file</strong></p>
<p dir="auto">I run the <code class="notranslate">playwright install</code> command as part of automation on GitHub Actions, like this:</p>
<p dir="auto"><a href="https://github.com/bytescript/bytescript/pull/27/files#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88R30-R31">https://github.com/bytescript/bytescript/pull/27/files#diff-faff1af3d8ff408964a57b2e475f69a6b7c7b71c9978cccc8f471798caac2c88R30-R31</a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" npx playwright install --with-deps chromium firefox webkit msedge
npm test"><pre class="notranslate"> npx playwright install --with-deps chromium firefox webkit msedge
npm <span class="pl-c1">test</span></pre></div>
<p dir="auto"><strong>Test file (self-contained)</strong></p>
<p dir="auto">n/a</p>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>Run in macOS</li>
<li>it will say that msedge is not a valid product.</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">msedge should be a valid produt to test against.</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">It says it doesn't exist, even after running <code class="notranslate">playwright install --with-deps</code>.</p>
| 0 |
<p dir="auto">I posted this issue in the <code class="notranslate">neo4j/neo4j-go-driver</code> repository a couple weeks ago, but got no reply, so I am posting it here now. I have been experiencing this issue for the entire time, and I have no workarounds. Any help would be greatly appreciated.</p>
<p dir="auto"><strong>Neo4j Version:</strong> 3.5.9 Community<br>
<strong>Neo4j Mode</strong>: Single instance<br>
<strong>Driver version</strong>: Newest stable version (just updated with <code class="notranslate">go get -u</code>)<br>
<strong>Operating System:</strong> MacOS Mojave 10.14.5</p>
<p dir="auto">Multiple different Neo4j instances have been targeted, all of which yield the same results.</p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Start Neo4j locally</li>
<li>Run the snippet shown below</li>
</ol>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">The second CREATE query panic()s because Session.Run() returns an error due to the conflict coming from a duplicate (:Client).name.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">The program completes with an exit code of 0.<br>
The driver debug logs display the error that we are attempting to catch, but it is not returned from Session.Run().</p>
<p dir="auto">The code snippet in question:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="package main
import (
"github.com/neo4j/neo4j-go-driver/neo4j"
)
func main() {
driver, err := neo4j.NewDriver("bolt://localhost:7687", neo4j.BasicAuth("neo4j", "graph", ""), func(config *neo4j.Config) {
config.Log = neo4j.ConsoleLogger(neo4j.DEBUG)
})
if err != nil {
panic(err)
}
session, err := driver.Session(neo4j.AccessModeWrite)
if err != nil {
panic(err)
}
defer session.Close()
params := map[string]interface{}{"name": "ABC"}
// Deletes the client if it exists
if _, err = session.Run(`MATCH (c:Client {name: {name}}) DELETE c`, params); err != nil {
panic(err)
}
// Create the constraint
if _, err = session.Run(`CREATE CONSTRAINT ON (c:Client) ASSERT c.name IS UNIQUE`, nil); err != nil {
panic(err)
}
// Creates the client
if _, err = session.Run(`CREATE (:Client {name: {name}})`, params); err != nil {
panic(err)
}
// Should panic with an error due to a conflict.
if _, err = session.Run(`CREATE (:Client {name: {name}})`, params); err != nil {
panic(err)
}
}"><pre class="notranslate"><code class="notranslate">package main
import (
"github.com/neo4j/neo4j-go-driver/neo4j"
)
func main() {
driver, err := neo4j.NewDriver("bolt://localhost:7687", neo4j.BasicAuth("neo4j", "graph", ""), func(config *neo4j.Config) {
config.Log = neo4j.ConsoleLogger(neo4j.DEBUG)
})
if err != nil {
panic(err)
}
session, err := driver.Session(neo4j.AccessModeWrite)
if err != nil {
panic(err)
}
defer session.Close()
params := map[string]interface{}{"name": "ABC"}
// Deletes the client if it exists
if _, err = session.Run(`MATCH (c:Client {name: {name}}) DELETE c`, params); err != nil {
panic(err)
}
// Create the constraint
if _, err = session.Run(`CREATE CONSTRAINT ON (c:Client) ASSERT c.name IS UNIQUE`, nil); err != nil {
panic(err)
}
// Creates the client
if _, err = session.Run(`CREATE (:Client {name: {name}})`, params); err != nil {
panic(err)
}
// Should panic with an error due to a conflict.
if _, err = session.Run(`CREATE (:Client {name: {name}})`, params); err != nil {
panic(err)
}
}
</code></pre></div>
<p dir="auto">I receive the following in my terminal as output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO : 2019/12/18 15:04:11.068354 [connector]: Version 1.7.4 [6912093]
INFO : 2019/12/18 15:04:11.068599 [pool-1]: Creating pool towards localhost:7687
INFO : 2019/12/18 15:04:11.077521 [pool-1]: Acquiring connection from the pool towards localhost:7687
INFO : 2019/12/18 15:04:11.077570 [addr]: Resolving address localhost:7687
INFO : 2019/12/18 15:04:11.079483 [addr]: Host resolved to 2 IP addresses
INFO : 2019/12/18 15:04:11.079528 [conn-1]: Opening IPv6 connection to ::1 at port 7687
INFO : 2019/12/18 15:04:11.079724 [conn-1]: Opening IPv4 connection to 127.0.0.1 at port 7687
WARNING: 2019/12/18 15:04:11.089965 [conn-1]: Openssl reported error 'self signed certificate' with code '18' when establishing trust, but resuming handshake since trust verification is set to be skipped
DEBUG : 2019/12/18 15:04:11.090271 [conn-1]: Openssl established trust
INFO : 2019/12/18 15:04:11.093920 [conn-1]: Remote endpoint is 127.0.0.1:7687
INFO : 2019/12/18 15:04:11.093936 [conn-1]: Local endpoint is 127.0.0.1:62676
INFO : 2019/12/18 15:04:11.093989 [conn-1]: Performing handshake
INFO : 2019/12/18 15:04:11.094008 [conn-1]: (Sent 20 of 20 bytes)
INFO : 2019/12/18 15:04:11.094581 [conn-1]: Received 4 of 4 bytes
INFO : 2019/12/18 15:04:11.094594 [conn-1]: <SET protocol_version=3>
INFO : 2019/12/18 15:04:11.094625 [conn-1]: <CONNECTED>
INFO : 2019/12/18 15:04:11.094633 [conn-1]: Initialising connection
DEBUG : 2019/12/18 15:04:11.094654 [conn-1]: C[0] HELLO [{scheme: basic, principal: neo4j, credentials: ********, user_agent: Go Driver/1.7}]
INFO : 2019/12/18 15:04:11.094688 [conn-1]: (Sent 79 of 79 bytes)
INFO : 2019/12/18 15:04:11.095526 [conn-1]: Received 48 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.095556 [conn-1]: S[0] SUCCESS [{server: Neo4j/3.5.9, connection_id: bolt-19}]
INFO : 2019/12/18 15:04:11.095560 [conn-1]: <SET server="Neo4j/3.5.9">
INFO : 2019/12/18 15:04:11.095566 [conn-1, bolt-19]: <SET connection_id="bolt-19">
INFO : 2019/12/18 15:04:11.095570 [conn-1, bolt-19]: <READY>
DEBUG : 2019/12/18 15:04:11.095693 [conn-1, bolt-19]: C[1] RUN [MATCH (c:Client {name: {name}}) DELETE c, {name: ABC}, {}]
DEBUG : 2019/12/18 15:04:11.095707 [conn-1, bolt-19]: C[2] PULL_ALL []
INFO : 2019/12/18 15:04:11.095730 [conn-1, bolt-19]: (Sent 65 of 65 bytes)
INFO : 2019/12/18 15:04:11.106007 [conn-1, bolt-19]: Received 102 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.106032 [conn-1, bolt-19]: S[1] SUCCESS [{t_first: 7, fields: []}]
DEBUG : 2019/12/18 15:04:11.106038 [conn-1, bolt-19]: <SET result_field_names=[]>
DEBUG : 2019/12/18 15:04:11.106118 [conn-1, bolt-19]: S[2] SUCCESS [{bookmark: neo4j:bookmark:v1:tx488, stats: {nodes-deleted: 1}, type: w, t_last: 0}]
INFO : 2019/12/18 15:04:11.106126 [conn-1, bolt-19]: <SET last_bookmark="neo4j:bookmark:v1:tx488">
INFO : 2019/12/18 15:04:11.106151 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.106162 [conn-1, bolt-19]: C[3] RESET []
INFO : 2019/12/18 15:04:11.106216 [conn-1, bolt-19]: (Sent 6 of 6 bytes)
INFO : 2019/12/18 15:04:11.106636 [conn-1, bolt-19]: Received 7 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.106652 [conn-1, bolt-19]: S[3] SUCCESS [{}]
INFO : 2019/12/18 15:04:11.106701 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.106733 [conn-1, bolt-19]: C[4] RUN [CREATE CONSTRAINT ON (c:Client) ASSERT c.name IS UNIQUE, {}, {}]
DEBUG : 2019/12/18 15:04:11.106745 [conn-1, bolt-19]: C[5] PULL_ALL []
INFO : 2019/12/18 15:04:11.106765 [conn-1, bolt-19]: (Sent 71 of 71 bytes)
INFO : 2019/12/18 15:04:11.310320 [conn-1, bolt-19]: Received 109 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.310361 [conn-1, bolt-19]: S[4] SUCCESS [{t_first: 201, fields: []}]
DEBUG : 2019/12/18 15:04:11.310370 [conn-1, bolt-19]: <SET result_field_names=[]>
DEBUG : 2019/12/18 15:04:11.310409 [conn-1, bolt-19]: S[5] SUCCESS [{bookmark: neo4j:bookmark:v1:tx490, stats: {constraints-added: 1}, type: s, t_last: 0}]
INFO : 2019/12/18 15:04:11.310415 [conn-1, bolt-19]: <SET last_bookmark="neo4j:bookmark:v1:tx490">
INFO : 2019/12/18 15:04:11.310435 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.310442 [conn-1, bolt-19]: C[6] RESET []
INFO : 2019/12/18 15:04:11.310461 [conn-1, bolt-19]: (Sent 6 of 6 bytes)
INFO : 2019/12/18 15:04:11.311240 [conn-1, bolt-19]: Received 7 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.311295 [conn-1, bolt-19]: S[6] SUCCESS [{}]
INFO : 2019/12/18 15:04:11.311361 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.311422 [conn-1, bolt-19]: C[7] RUN [CREATE (:Client {name: {name}}), {name: ABC}, {}]
DEBUG : 2019/12/18 15:04:11.311464 [conn-1, bolt-19]: C[8] PULL_ALL []
INFO : 2019/12/18 15:04:11.311533 [conn-1, bolt-19]: (Sent 56 of 56 bytes)
INFO : 2019/12/18 15:04:11.318996 [conn-1, bolt-19]: Received 132 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.319022 [conn-1, bolt-19]: S[7] SUCCESS [{t_first: 6, fields: []}]
DEBUG : 2019/12/18 15:04:11.319030 [conn-1, bolt-19]: <SET result_field_names=[]>
DEBUG : 2019/12/18 15:04:11.319087 [conn-1, bolt-19]: S[8] SUCCESS [{bookmark: neo4j:bookmark:v1:tx491, stats: {labels-added: 1, nodes-created: 1, properties-set: 1}, type: w, t_last: 0}]
INFO : 2019/12/18 15:04:11.319094 [conn-1, bolt-19]: <SET last_bookmark="neo4j:bookmark:v1:tx491">
INFO : 2019/12/18 15:04:11.319118 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.319127 [conn-1, bolt-19]: C[9] RESET []
INFO : 2019/12/18 15:04:11.319148 [conn-1, bolt-19]: (Sent 6 of 6 bytes)
INFO : 2019/12/18 15:04:11.319585 [conn-1, bolt-19]: Received 7 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.319600 [conn-1, bolt-19]: S[9] SUCCESS [{}]
INFO : 2019/12/18 15:04:11.319628 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.319672 [conn-1, bolt-19]: C[10] RUN [CREATE (:Client {name: {name}}), {name: ABC}, {}]
DEBUG : 2019/12/18 15:04:11.319689 [conn-1, bolt-19]: C[11] PULL_ALL []
INFO : 2019/12/18 15:04:11.319717 [conn-1, bolt-19]: (Sent 56 of 56 bytes)
INFO : 2019/12/18 15:04:11.321409 [conn-1, bolt-19]: Received 150 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.321443 [conn-1, bolt-19]: S[10] FAILURE [{code: Neo.ClientError.Schema.ConstraintValidationFailed, message: Node(98) already exists with label `Client` and property `name` = 'ABC'}]
DEBUG : 2019/12/18 15:04:11.321450 [conn-1, bolt-19]: <FAILURE code="Neo.ClientError.Schema.ConstraintValidationFailed">
DEBUG : 2019/12/18 15:04:11.321453 [conn-1, bolt-19]: <FAILURE message="Node(98) already exists with label `Client` and property `name` = 'ABC'">
INFO : 2019/12/18 15:04:11.321459 [conn-1, bolt-19]: <FAILED> [BoltConnection_fetch(/Users/neo/buildAgent/work/c4f1f1576663d58b/seabolt/src/seabolt/src/bolt/connection.c:353), failure message]
DEBUG : 2019/12/18 15:04:11.321512 [conn-1, bolt-19]: S[11] IGNORED []
INFO : 2019/12/18 15:04:11.321526 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.321532 [conn-1, bolt-19]: C[12] RESET []
INFO : 2019/12/18 15:04:11.321548 [conn-1, bolt-19]: (Sent 6 of 6 bytes)
INFO : 2019/12/18 15:04:11.322035 [conn-1, bolt-19]: Received 7 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.322049 [conn-1, bolt-19]: S[12] SUCCESS [{}]
INFO : 2019/12/18 15:04:11.322057 [conn-1, bolt-19]: <READY>
Process finished with exit code 0"><pre class="notranslate"><code class="notranslate">INFO : 2019/12/18 15:04:11.068354 [connector]: Version 1.7.4 [6912093]
INFO : 2019/12/18 15:04:11.068599 [pool-1]: Creating pool towards localhost:7687
INFO : 2019/12/18 15:04:11.077521 [pool-1]: Acquiring connection from the pool towards localhost:7687
INFO : 2019/12/18 15:04:11.077570 [addr]: Resolving address localhost:7687
INFO : 2019/12/18 15:04:11.079483 [addr]: Host resolved to 2 IP addresses
INFO : 2019/12/18 15:04:11.079528 [conn-1]: Opening IPv6 connection to ::1 at port 7687
INFO : 2019/12/18 15:04:11.079724 [conn-1]: Opening IPv4 connection to 127.0.0.1 at port 7687
WARNING: 2019/12/18 15:04:11.089965 [conn-1]: Openssl reported error 'self signed certificate' with code '18' when establishing trust, but resuming handshake since trust verification is set to be skipped
DEBUG : 2019/12/18 15:04:11.090271 [conn-1]: Openssl established trust
INFO : 2019/12/18 15:04:11.093920 [conn-1]: Remote endpoint is 127.0.0.1:7687
INFO : 2019/12/18 15:04:11.093936 [conn-1]: Local endpoint is 127.0.0.1:62676
INFO : 2019/12/18 15:04:11.093989 [conn-1]: Performing handshake
INFO : 2019/12/18 15:04:11.094008 [conn-1]: (Sent 20 of 20 bytes)
INFO : 2019/12/18 15:04:11.094581 [conn-1]: Received 4 of 4 bytes
INFO : 2019/12/18 15:04:11.094594 [conn-1]: <SET protocol_version=3>
INFO : 2019/12/18 15:04:11.094625 [conn-1]: <CONNECTED>
INFO : 2019/12/18 15:04:11.094633 [conn-1]: Initialising connection
DEBUG : 2019/12/18 15:04:11.094654 [conn-1]: C[0] HELLO [{scheme: basic, principal: neo4j, credentials: ********, user_agent: Go Driver/1.7}]
INFO : 2019/12/18 15:04:11.094688 [conn-1]: (Sent 79 of 79 bytes)
INFO : 2019/12/18 15:04:11.095526 [conn-1]: Received 48 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.095556 [conn-1]: S[0] SUCCESS [{server: Neo4j/3.5.9, connection_id: bolt-19}]
INFO : 2019/12/18 15:04:11.095560 [conn-1]: <SET server="Neo4j/3.5.9">
INFO : 2019/12/18 15:04:11.095566 [conn-1, bolt-19]: <SET connection_id="bolt-19">
INFO : 2019/12/18 15:04:11.095570 [conn-1, bolt-19]: <READY>
DEBUG : 2019/12/18 15:04:11.095693 [conn-1, bolt-19]: C[1] RUN [MATCH (c:Client {name: {name}}) DELETE c, {name: ABC}, {}]
DEBUG : 2019/12/18 15:04:11.095707 [conn-1, bolt-19]: C[2] PULL_ALL []
INFO : 2019/12/18 15:04:11.095730 [conn-1, bolt-19]: (Sent 65 of 65 bytes)
INFO : 2019/12/18 15:04:11.106007 [conn-1, bolt-19]: Received 102 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.106032 [conn-1, bolt-19]: S[1] SUCCESS [{t_first: 7, fields: []}]
DEBUG : 2019/12/18 15:04:11.106038 [conn-1, bolt-19]: <SET result_field_names=[]>
DEBUG : 2019/12/18 15:04:11.106118 [conn-1, bolt-19]: S[2] SUCCESS [{bookmark: neo4j:bookmark:v1:tx488, stats: {nodes-deleted: 1}, type: w, t_last: 0}]
INFO : 2019/12/18 15:04:11.106126 [conn-1, bolt-19]: <SET last_bookmark="neo4j:bookmark:v1:tx488">
INFO : 2019/12/18 15:04:11.106151 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.106162 [conn-1, bolt-19]: C[3] RESET []
INFO : 2019/12/18 15:04:11.106216 [conn-1, bolt-19]: (Sent 6 of 6 bytes)
INFO : 2019/12/18 15:04:11.106636 [conn-1, bolt-19]: Received 7 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.106652 [conn-1, bolt-19]: S[3] SUCCESS [{}]
INFO : 2019/12/18 15:04:11.106701 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.106733 [conn-1, bolt-19]: C[4] RUN [CREATE CONSTRAINT ON (c:Client) ASSERT c.name IS UNIQUE, {}, {}]
DEBUG : 2019/12/18 15:04:11.106745 [conn-1, bolt-19]: C[5] PULL_ALL []
INFO : 2019/12/18 15:04:11.106765 [conn-1, bolt-19]: (Sent 71 of 71 bytes)
INFO : 2019/12/18 15:04:11.310320 [conn-1, bolt-19]: Received 109 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.310361 [conn-1, bolt-19]: S[4] SUCCESS [{t_first: 201, fields: []}]
DEBUG : 2019/12/18 15:04:11.310370 [conn-1, bolt-19]: <SET result_field_names=[]>
DEBUG : 2019/12/18 15:04:11.310409 [conn-1, bolt-19]: S[5] SUCCESS [{bookmark: neo4j:bookmark:v1:tx490, stats: {constraints-added: 1}, type: s, t_last: 0}]
INFO : 2019/12/18 15:04:11.310415 [conn-1, bolt-19]: <SET last_bookmark="neo4j:bookmark:v1:tx490">
INFO : 2019/12/18 15:04:11.310435 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.310442 [conn-1, bolt-19]: C[6] RESET []
INFO : 2019/12/18 15:04:11.310461 [conn-1, bolt-19]: (Sent 6 of 6 bytes)
INFO : 2019/12/18 15:04:11.311240 [conn-1, bolt-19]: Received 7 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.311295 [conn-1, bolt-19]: S[6] SUCCESS [{}]
INFO : 2019/12/18 15:04:11.311361 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.311422 [conn-1, bolt-19]: C[7] RUN [CREATE (:Client {name: {name}}), {name: ABC}, {}]
DEBUG : 2019/12/18 15:04:11.311464 [conn-1, bolt-19]: C[8] PULL_ALL []
INFO : 2019/12/18 15:04:11.311533 [conn-1, bolt-19]: (Sent 56 of 56 bytes)
INFO : 2019/12/18 15:04:11.318996 [conn-1, bolt-19]: Received 132 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.319022 [conn-1, bolt-19]: S[7] SUCCESS [{t_first: 6, fields: []}]
DEBUG : 2019/12/18 15:04:11.319030 [conn-1, bolt-19]: <SET result_field_names=[]>
DEBUG : 2019/12/18 15:04:11.319087 [conn-1, bolt-19]: S[8] SUCCESS [{bookmark: neo4j:bookmark:v1:tx491, stats: {labels-added: 1, nodes-created: 1, properties-set: 1}, type: w, t_last: 0}]
INFO : 2019/12/18 15:04:11.319094 [conn-1, bolt-19]: <SET last_bookmark="neo4j:bookmark:v1:tx491">
INFO : 2019/12/18 15:04:11.319118 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.319127 [conn-1, bolt-19]: C[9] RESET []
INFO : 2019/12/18 15:04:11.319148 [conn-1, bolt-19]: (Sent 6 of 6 bytes)
INFO : 2019/12/18 15:04:11.319585 [conn-1, bolt-19]: Received 7 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.319600 [conn-1, bolt-19]: S[9] SUCCESS [{}]
INFO : 2019/12/18 15:04:11.319628 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.319672 [conn-1, bolt-19]: C[10] RUN [CREATE (:Client {name: {name}}), {name: ABC}, {}]
DEBUG : 2019/12/18 15:04:11.319689 [conn-1, bolt-19]: C[11] PULL_ALL []
INFO : 2019/12/18 15:04:11.319717 [conn-1, bolt-19]: (Sent 56 of 56 bytes)
INFO : 2019/12/18 15:04:11.321409 [conn-1, bolt-19]: Received 150 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.321443 [conn-1, bolt-19]: S[10] FAILURE [{code: Neo.ClientError.Schema.ConstraintValidationFailed, message: Node(98) already exists with label `Client` and property `name` = 'ABC'}]
DEBUG : 2019/12/18 15:04:11.321450 [conn-1, bolt-19]: <FAILURE code="Neo.ClientError.Schema.ConstraintValidationFailed">
DEBUG : 2019/12/18 15:04:11.321453 [conn-1, bolt-19]: <FAILURE message="Node(98) already exists with label `Client` and property `name` = 'ABC'">
INFO : 2019/12/18 15:04:11.321459 [conn-1, bolt-19]: <FAILED> [BoltConnection_fetch(/Users/neo/buildAgent/work/c4f1f1576663d58b/seabolt/src/seabolt/src/bolt/connection.c:353), failure message]
DEBUG : 2019/12/18 15:04:11.321512 [conn-1, bolt-19]: S[11] IGNORED []
INFO : 2019/12/18 15:04:11.321526 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/12/18 15:04:11.321532 [conn-1, bolt-19]: C[12] RESET []
INFO : 2019/12/18 15:04:11.321548 [conn-1, bolt-19]: (Sent 6 of 6 bytes)
INFO : 2019/12/18 15:04:11.322035 [conn-1, bolt-19]: Received 7 of 2..8192 bytes
DEBUG : 2019/12/18 15:04:11.322049 [conn-1, bolt-19]: S[12] SUCCESS [{}]
INFO : 2019/12/18 15:04:11.322057 [conn-1, bolt-19]: <READY>
Process finished with exit code 0
</code></pre></div>
|
<p dir="auto"><strong>Neo4j Version:</strong> 3.5.9 Community<br>
<strong>Neo4j Mode</strong>: Single instance<br>
<strong>Driver version</strong>: Newest stable version (just updated with <code class="notranslate">go get -u</code>)<br>
<strong>Operating System:</strong> MacOS Mojave 10.14.5</p>
<p dir="auto">My goal is to build a function <code class="notranslate">Run</code> which follows the type <code class="notranslate">RunFunc</code> in the code snippet to allow for my queries to call the function whether they are in a transaction or just using a session. I am experiencing an issue when trying to create the Session using the Driver inside <code class="notranslate">Run</code> just before running the query. If I create the Session outside of the function first, then there are no issues. This seems very perplexing to me. I am moving on with a workaround for now, but any help would be appreciated. Thanks.</p>
<p dir="auto">EDIT: The problem gets worse. See the other EDIT section near the bottom</p>
<h3 dir="auto">Steps to reproduce</h3>
<ol dir="auto">
<li>Start Neo4j locally</li>
<li>Create the <code class="notranslate">runner</code> function variable as shown in the snippets below,</li>
<li>Run a query with syntax errors using <code class="notranslate">runner</code></li>
<li>Observe the results between the two different snippets.</li>
</ol>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">Both <code class="notranslate">Case 1</code> and <code class="notranslate">Case 2</code> produce errors indicating that there are syntax errors in the queries.<br>
I am running a <code class="notranslate">panic()</code> when the error is not <code class="notranslate">nil</code>, so the program should be producing a stack trace showing the error, and it should be exiting with non 0 exit status.</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">In <code class="notranslate">Case 1</code>, there are no errors, but the debug logs do indicate that the errors were found.<br>
In <code class="notranslate">Case 2</code>, the errors show up as expected.</p>
<p dir="auto"><code class="notranslate">Case 1</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var runner neo4jdb.RunFunc = func(cypher string, params map[string]interface{}) (neo4j.Result, error) {
var s neo4j.Session
s, err = neo4jdb.Driver.Session(neo4j.AccessModeWrite)
if err != nil {
panic(err)
}
defer s.Close()
return s.Run(cypher, params)
}"><pre class="notranslate"><code class="notranslate"> var runner neo4jdb.RunFunc = func(cypher string, params map[string]interface{}) (neo4j.Result, error) {
var s neo4j.Session
s, err = neo4jdb.Driver.Session(neo4j.AccessModeWrite)
if err != nil {
panic(err)
}
defer s.Close()
return s.Run(cypher, params)
}
</code></pre></div>
<p dir="auto"><code class="notranslate">Case 2</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var s neo4j.Session
s, err = neo4jdb.Driver.Session(neo4j.AccessModeWrite)
if err != nil {
panic(err)
}
defer s.Close()
var runner neo4jdb.RunFunc = func(cypher string, params map[string]interface{}) (neo4j.Result, error) {
return s.Run(cypher, params)
}"><pre class="notranslate"><code class="notranslate"> var s neo4j.Session
s, err = neo4jdb.Driver.Session(neo4j.AccessModeWrite)
if err != nil {
panic(err)
}
defer s.Close()
var runner neo4jdb.RunFunc = func(cypher string, params map[string]interface{}) (neo4j.Result, error) {
return s.Run(cypher, params)
}
</code></pre></div>
<p dir="auto">Here are the debug logs from when errors are not returned:<br>
(I have replaced my actual queries with <code class="notranslate">...</code>, but the ones in question have a syntax error with FOREACH)</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(more logs above)
2019/11/22 15:52:11 Session() &{0xc0003b72c0 0 [] 1 <nil> <nil>} <nil>
INFO : 2019/11/22 15:52:11.023738 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/11/22 15:52:11.023811 [conn-1, bolt-90]: C[64] RUN [
...]
DEBUG : 2019/11/22 15:52:11.023828 [conn-1, bolt-90]: C[65] PULL_ALL []
INFO : 2019/11/22 15:52:11.023857 [conn-1, bolt-90]: (Sent 504 of 504 bytes)
2019/11/22 15:52:11 Run() &{[] [] <nil> 0xc0003cc380 0xc0003cc280 <nil> 64 false 65 false} <nil>
INFO : 2019/11/22 15:52:11.030226 [conn-1, bolt-90]: Received 188 of 2..8192 bytes
DEBUG : 2019/11/22 15:52:11.030249 [conn-1, bolt-90]: S[64] FAILURE [{code: Neo.ClientError.Statement.SyntaxError, message: Unexpected end of input: expected whitespace, comment or IN (line 8, column 12 (offset: 325))
"FOREACH (k "
^}]
DEBUG : 2019/11/22 15:52:11.030256 [conn-1, bolt-90]: <FAILURE code="Neo.ClientError.Statement.SyntaxError">
DEBUG : 2019/11/22 15:52:11.030261 [conn-1, bolt-90]: <FAILURE message="Unexpected end of input: expected whitespace, comment or IN (line 8, column 12 (offset: 325))
"FOREACH (k "
^">
INFO : 2019/11/22 15:52:11.030266 [conn-1, bolt-90]: <FAILED> [BoltConnection_fetch(/Users/neo/buildAgent/work/c4f1f1576663d58b/seabolt/src/seabolt/src/bolt/connection.c:353), failure message]
DEBUG : 2019/11/22 15:52:11.030307 [conn-1, bolt-90]: S[65] IGNORED []
INFO : 2019/11/22 15:52:11.030328 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/11/22 15:52:11.030340 [conn-1, bolt-90]: C[66] RESET []
INFO : 2019/11/22 15:52:11.030367 [conn-1, bolt-90]: (Sent 6 of 6 bytes)
INFO : 2019/11/22 15:52:11.030691 [conn-1, bolt-90]: Received 7 of 2..8192 bytes
DEBUG : 2019/11/22 15:52:11.030707 [conn-1, bolt-90]: S[66] SUCCESS [{}]
INFO : 2019/11/22 15:52:11.030712 [conn-1, bolt-90]: <READY>
2019/11/22 15:52:11 Session() &{0xc0003b72c0 0 [] 1 <nil> <nil>} <nil>
INFO : 2019/11/22 15:52:11.030758 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/11/22 15:52:11.030841 [conn-1, bolt-90]: C[67] RUN [
...]
DEBUG : 2019/11/22 15:52:11.030859 [conn-1, bolt-90]: C[68] PULL_ALL []
INFO : 2019/11/22 15:52:11.030886 [conn-1, bolt-90]: (Sent 642 of 642 bytes)
2019/11/22 15:52:11 Run() &{[] [] <nil> 0xc0003cc500 0xc000291780 <nil> 67 false 68 false} <nil>
INFO : 2019/11/22 15:52:11.035301 [conn-1, bolt-90]: Received 188 of 2..8192 bytes
DEBUG : 2019/11/22 15:52:11.035324 [conn-1, bolt-90]: S[67] FAILURE [{code: Neo.ClientError.Statement.SyntaxError, message: Unexpected end of input: expected whitespace, comment or IN (line 8, column 12 (offset: 325))
"FOREACH (k "
^}]
DEBUG : 2019/11/22 15:52:11.035332 [conn-1, bolt-90]: <FAILURE code="Neo.ClientError.Statement.SyntaxError">
DEBUG : 2019/11/22 15:52:11.035337 [conn-1, bolt-90]: <FAILURE message="Unexpected end of input: expected whitespace, comment or IN (line 8, column 12 (offset: 325))
"FOREACH (k "
^">
INFO : 2019/11/22 15:52:11.035341 [conn-1, bolt-90]: <FAILED> [BoltConnection_fetch(/Users/neo/buildAgent/work/c4f1f1576663d58b/seabolt/src/seabolt/src/bolt/connection.c:353), failure message]
DEBUG : 2019/11/22 15:52:11.035379 [conn-1, bolt-90]: S[68] IGNORED []
INFO : 2019/11/22 15:52:11.035396 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/11/22 15:52:11.035406 [conn-1, bolt-90]: C[69] RESET []
INFO : 2019/11/22 15:52:11.035427 [conn-1, bolt-90]: (Sent 6 of 6 bytes)
INFO : 2019/11/22 15:52:11.035746 [conn-1, bolt-90]: Received 7 of 2..8192 bytes
DEBUG : 2019/11/22 15:52:11.035761 [conn-1, bolt-90]: S[69] SUCCESS [{}]
INFO : 2019/11/22 15:52:11.035766 [conn-1, bolt-90]: <READY>
Process finished with exit code 0"><pre class="notranslate"><code class="notranslate">(more logs above)
2019/11/22 15:52:11 Session() &{0xc0003b72c0 0 [] 1 <nil> <nil>} <nil>
INFO : 2019/11/22 15:52:11.023738 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/11/22 15:52:11.023811 [conn-1, bolt-90]: C[64] RUN [
...]
DEBUG : 2019/11/22 15:52:11.023828 [conn-1, bolt-90]: C[65] PULL_ALL []
INFO : 2019/11/22 15:52:11.023857 [conn-1, bolt-90]: (Sent 504 of 504 bytes)
2019/11/22 15:52:11 Run() &{[] [] <nil> 0xc0003cc380 0xc0003cc280 <nil> 64 false 65 false} <nil>
INFO : 2019/11/22 15:52:11.030226 [conn-1, bolt-90]: Received 188 of 2..8192 bytes
DEBUG : 2019/11/22 15:52:11.030249 [conn-1, bolt-90]: S[64] FAILURE [{code: Neo.ClientError.Statement.SyntaxError, message: Unexpected end of input: expected whitespace, comment or IN (line 8, column 12 (offset: 325))
"FOREACH (k "
^}]
DEBUG : 2019/11/22 15:52:11.030256 [conn-1, bolt-90]: <FAILURE code="Neo.ClientError.Statement.SyntaxError">
DEBUG : 2019/11/22 15:52:11.030261 [conn-1, bolt-90]: <FAILURE message="Unexpected end of input: expected whitespace, comment or IN (line 8, column 12 (offset: 325))
"FOREACH (k "
^">
INFO : 2019/11/22 15:52:11.030266 [conn-1, bolt-90]: <FAILED> [BoltConnection_fetch(/Users/neo/buildAgent/work/c4f1f1576663d58b/seabolt/src/seabolt/src/bolt/connection.c:353), failure message]
DEBUG : 2019/11/22 15:52:11.030307 [conn-1, bolt-90]: S[65] IGNORED []
INFO : 2019/11/22 15:52:11.030328 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/11/22 15:52:11.030340 [conn-1, bolt-90]: C[66] RESET []
INFO : 2019/11/22 15:52:11.030367 [conn-1, bolt-90]: (Sent 6 of 6 bytes)
INFO : 2019/11/22 15:52:11.030691 [conn-1, bolt-90]: Received 7 of 2..8192 bytes
DEBUG : 2019/11/22 15:52:11.030707 [conn-1, bolt-90]: S[66] SUCCESS [{}]
INFO : 2019/11/22 15:52:11.030712 [conn-1, bolt-90]: <READY>
2019/11/22 15:52:11 Session() &{0xc0003b72c0 0 [] 1 <nil> <nil>} <nil>
INFO : 2019/11/22 15:52:11.030758 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/11/22 15:52:11.030841 [conn-1, bolt-90]: C[67] RUN [
...]
DEBUG : 2019/11/22 15:52:11.030859 [conn-1, bolt-90]: C[68] PULL_ALL []
INFO : 2019/11/22 15:52:11.030886 [conn-1, bolt-90]: (Sent 642 of 642 bytes)
2019/11/22 15:52:11 Run() &{[] [] <nil> 0xc0003cc500 0xc000291780 <nil> 67 false 68 false} <nil>
INFO : 2019/11/22 15:52:11.035301 [conn-1, bolt-90]: Received 188 of 2..8192 bytes
DEBUG : 2019/11/22 15:52:11.035324 [conn-1, bolt-90]: S[67] FAILURE [{code: Neo.ClientError.Statement.SyntaxError, message: Unexpected end of input: expected whitespace, comment or IN (line 8, column 12 (offset: 325))
"FOREACH (k "
^}]
DEBUG : 2019/11/22 15:52:11.035332 [conn-1, bolt-90]: <FAILURE code="Neo.ClientError.Statement.SyntaxError">
DEBUG : 2019/11/22 15:52:11.035337 [conn-1, bolt-90]: <FAILURE message="Unexpected end of input: expected whitespace, comment or IN (line 8, column 12 (offset: 325))
"FOREACH (k "
^">
INFO : 2019/11/22 15:52:11.035341 [conn-1, bolt-90]: <FAILED> [BoltConnection_fetch(/Users/neo/buildAgent/work/c4f1f1576663d58b/seabolt/src/seabolt/src/bolt/connection.c:353), failure message]
DEBUG : 2019/11/22 15:52:11.035379 [conn-1, bolt-90]: S[68] IGNORED []
INFO : 2019/11/22 15:52:11.035396 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/11/22 15:52:11.035406 [conn-1, bolt-90]: C[69] RESET []
INFO : 2019/11/22 15:52:11.035427 [conn-1, bolt-90]: (Sent 6 of 6 bytes)
INFO : 2019/11/22 15:52:11.035746 [conn-1, bolt-90]: Received 7 of 2..8192 bytes
DEBUG : 2019/11/22 15:52:11.035761 [conn-1, bolt-90]: S[69] SUCCESS [{}]
INFO : 2019/11/22 15:52:11.035766 [conn-1, bolt-90]: <READY>
Process finished with exit code 0
</code></pre></div>
<p dir="auto">EDIT:</p>
<p dir="auto">I'm going to go ahead and add to this issue:</p>
<p dir="auto">Using the following code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" session, err := neo4jdb.Driver.Session(neo4j.AccessModeWrite)
if err != nil {
panic(err)
}
defer session.Close()
_, err = session.Run(`
CREATE (:Client {name: {name}})`,
map[string]interface{}{
"name": "ABC",
})"><pre class="notranslate"><code class="notranslate"> session, err := neo4jdb.Driver.Session(neo4j.AccessModeWrite)
if err != nil {
panic(err)
}
defer session.Close()
_, err = session.Run(`
CREATE (:Client {name: {name}})`,
map[string]interface{}{
"name": "ABC",
})
</code></pre></div>
<p dir="auto">I receive the following in my terminal as output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO : 2019/11/22 18:25:02.524717 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/11/22 18:25:02.524787 [conn-1, bolt-109]: C[10] RUN [
CREATE (:Client {name: {name}}), {name: ABC}, {}]
DEBUG : 2019/11/22 18:25:02.524808 [conn-1, bolt-109]: C[11] PULL_ALL []
INFO : 2019/11/22 18:25:02.524858 [conn-1, bolt-109]: (Sent 79 of 79 bytes)
INFO : 2019/11/22 18:25:02.526117 [conn-1, bolt-109]: Received 170 of 2..8192 bytes
DEBUG : 2019/11/22 18:25:02.526150 [conn-1, bolt-109]: S[10] FAILURE [{code: Neo.ClientError.Schema.ConstraintValidationFailed, message: Node(1) already exists with label `Client` and property `name` = 'ABC'}]
DEBUG : 2019/11/22 18:25:02.526160 [conn-1, bolt-109]: <FAILURE code="Neo.ClientError.Schema.ConstraintValidationFailed">
DEBUG : 2019/11/22 18:25:02.526165 [conn-1, bolt-109]: <FAILURE message="Node(1) already exists with label `Client` and property `name` = 'ABC'">
INFO : 2019/11/22 18:25:02.526170 [conn-1, bolt-109]: <FAILED> [BoltConnection_fetch(/Users/neo/buildAgent/work/c4f1f1576663d58b/seabolt/src/seabolt/src/bolt/connection.c:353), failure message]
DEBUG : 2019/11/22 18:25:02.526238 [conn-1, bolt-109]: S[11] IGNORED []
INFO : 2019/11/22 18:25:02.526301 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/11/22 18:25:02.526318 [conn-1, bolt-109]: C[12] RESET []
INFO : 2019/11/22 18:25:02.526354 [conn-1, bolt-109]: (Sent 6 of 6 bytes)
INFO : 2019/11/22 18:25:02.526691 [conn-1, bolt-109]: Received 7 of 2..8192 bytes
DEBUG : 2019/11/22 18:25:02.526707 [conn-1, bolt-109]: S[12] SUCCESS [{}]
INFO : 2019/11/22 18:25:02.526713 [conn-1, bolt-109]: <READY>"><pre class="notranslate"><code class="notranslate">INFO : 2019/11/22 18:25:02.524717 [pool-1]: Acquiring connection from the pool towards localhost:7687
DEBUG : 2019/11/22 18:25:02.524787 [conn-1, bolt-109]: C[10] RUN [
CREATE (:Client {name: {name}}), {name: ABC}, {}]
DEBUG : 2019/11/22 18:25:02.524808 [conn-1, bolt-109]: C[11] PULL_ALL []
INFO : 2019/11/22 18:25:02.524858 [conn-1, bolt-109]: (Sent 79 of 79 bytes)
INFO : 2019/11/22 18:25:02.526117 [conn-1, bolt-109]: Received 170 of 2..8192 bytes
DEBUG : 2019/11/22 18:25:02.526150 [conn-1, bolt-109]: S[10] FAILURE [{code: Neo.ClientError.Schema.ConstraintValidationFailed, message: Node(1) already exists with label `Client` and property `name` = 'ABC'}]
DEBUG : 2019/11/22 18:25:02.526160 [conn-1, bolt-109]: <FAILURE code="Neo.ClientError.Schema.ConstraintValidationFailed">
DEBUG : 2019/11/22 18:25:02.526165 [conn-1, bolt-109]: <FAILURE message="Node(1) already exists with label `Client` and property `name` = 'ABC'">
INFO : 2019/11/22 18:25:02.526170 [conn-1, bolt-109]: <FAILED> [BoltConnection_fetch(/Users/neo/buildAgent/work/c4f1f1576663d58b/seabolt/src/seabolt/src/bolt/connection.c:353), failure message]
DEBUG : 2019/11/22 18:25:02.526238 [conn-1, bolt-109]: S[11] IGNORED []
INFO : 2019/11/22 18:25:02.526301 [pool-1]: Releasing connection to pool towards localhost:7687
DEBUG : 2019/11/22 18:25:02.526318 [conn-1, bolt-109]: C[12] RESET []
INFO : 2019/11/22 18:25:02.526354 [conn-1, bolt-109]: (Sent 6 of 6 bytes)
INFO : 2019/11/22 18:25:02.526691 [conn-1, bolt-109]: Received 7 of 2..8192 bytes
DEBUG : 2019/11/22 18:25:02.526707 [conn-1, bolt-109]: S[12] SUCCESS [{}]
INFO : 2019/11/22 18:25:02.526713 [conn-1, bolt-109]: <READY>
</code></pre></div>
<p dir="auto">Note that the panic is not called. The call to Session.Run() is not returning any errors despite the presence of errors in the debug logs. Additionally, using Session.Run() to create constraints does absolutely nothing, thought running it in the browser works just fine.</p>
<p dir="auto">To clarify, if I run the same query in the browser (localhost:7474), I get the errors as expected.<br>
I have restarted my Neo4j service. (it is a brew installed service)</p>
| 1 |
<p dir="auto">While trying to compile some code that I have written, I ran into a compiler bug. I'm not really sure whats the issue so I don't know how to reduce the code size to a minimum test case. If you would like to see the code, its currently on the master branch in my repository and you can make it by having openssl on your computer and running</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone --recursive http://github.com/jroweboy/oxidize
cd oxidize
./build-deps.sh
make lib"><pre class="notranslate"><code class="notranslate">git clone --recursive http://github.com/jroweboy/oxidize
cd oxidize
./build-deps.sh
make lib
</code></pre></div>
<p dir="auto">and at the end of that it produced the following error. This is the error message and dump provided by RUST_BACKTRACE=1</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: Type metadata for ty::t '&[core::fmt::rt::Piece<>]' is already in the TypeMap!
note: the compiler hit an unexpected failure path. 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' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:162
stack backtrace:
1: 0x2b14e7292b00 - rt::backtrace::imp::write::h62d90560b5a07b07kXo::v0.11.0.pre
2: 0x2b14e729a230 - failure::on_fail::ha470578b5eadf528Aip::v0.11.0.pre
3: 0x2b14e6b199c0 - unwind::begin_unwind_inner::h1ffa5da7913ac170aTd::v0.11.0.pre
4: 0x2b14e817a690 - unwind::begin_unwind::h9511542397565424626::v0.11.0.pre
5: 0x2b14e817b0d0 - diagnostic::Handler::bug::hbf0741c8fa8e5c18c4b::v0.11.0.pre
6: 0x2b14e414d790 - driver::session::Session::bug::hec7dc9574d5c6f2bK7p::v0.11.0.pre
7: 0x2b14e429f900 - middle::trans::debuginfo::TypeMap::register_type_with_metadata::h55fc281d70ca2cb3KuB::v0.11.0.pre
8: 0x2b14e42acc20 - middle::trans::debuginfo::type_metadata::h99b1044c7787e9f1J6D::v0.11.0.pre
9: 0x2b14e42b6be0 - middle::trans::debuginfo::MemberDescriptionFactory::create_member_descriptions::h0dade42805956a64y1C::v0.11.0.pre
10: 0x2b14e42ba0d0 - middle::trans::debuginfo::RecursiveTypeDescription::finalize::h2927e9f899317398H3C::v0.11.0.pre
11: 0x2b14e42acc20 - middle::trans::debuginfo::type_metadata::h99b1044c7787e9f1J6D::v0.11.0.pre
12: 0x2b14e42acc20 - middle::trans::debuginfo::type_metadata::h99b1044c7787e9f1J6D::v0.11.0.pre
13: 0x2b14e42c3470 - middle::trans::debuginfo::subroutine_type_metadata::ha5efe06324709ba2u2D::v0.11.0.pre
14: 0x2b14e42acc20 - middle::trans::debuginfo::type_metadata::h99b1044c7787e9f1J6D::v0.11.0.pre
15: 0x2b14e4238780 - middle::trans::debuginfo::create_function_debug_context::h85b8bc85b6b4d219ilC::v0.11.0.pre
16: 0x2b14e419efc0 - middle::trans::base::new_fn_ctxt::h6f536f0c03824a90nfq::v0.11.0.pre
17: 0x2b14e423d610 - middle::trans::base::trans_closure::h5a95f13556af5a16stq::v0.11.0.pre
18: 0x2b14e414e660 - middle::trans::base::trans_fn::h56028a210d10faa4vBq::v0.11.0.pre
19: 0x2b14e4147d60 - middle::trans::base::trans_item::h981baeea4b2d0e69XRq::v0.11.0.pre
20: 0x2b14e417ced0 - middle::trans::controlflow::trans_stmt::h32f419d1ee2ab4e80gc::v0.11.0.pre
21: 0x2b14e417eb80 - middle::trans::controlflow::trans_block::h2b5aa2711f6cc8cehmc::v0.11.0.pre
22: 0x2b14e41bc7c0 - middle::trans::expr::trans_rvalue_dps_unadjusted::hb3a3e913b96a67c2dsg::v0.11.0.pre
23: 0x2b14e417e5e0 - middle::trans::expr::trans_into::h7892630deb269c36XAf::v0.11.0.pre
24: 0x2b14e417eb80 - middle::trans::controlflow::trans_block::h2b5aa2711f6cc8cehmc::v0.11.0.pre
25: 0x2b14e417efa0 - middle::trans::controlflow::trans_if::h1804ea536d6ebb0aVpc::v0.11.0.pre
26: 0x2b14e41bc7c0 - middle::trans::expr::trans_rvalue_dps_unadjusted::hb3a3e913b96a67c2dsg::v0.11.0.pre
27: 0x2b14e417e5e0 - middle::trans::expr::trans_into::h7892630deb269c36XAf::v0.11.0.pre
28: 0x2b14e417d8d0 - middle::trans::controlflow::trans_stmt_semi::hce4086c542079d72olc::v0.11.0.pre
29: 0x2b14e417ced0 - middle::trans::controlflow::trans_stmt::h32f419d1ee2ab4e80gc::v0.11.0.pre
30: 0x2b14e417eb80 - middle::trans::controlflow::trans_block::h2b5aa2711f6cc8cehmc::v0.11.0.pre
31: 0x2b14e423d610 - middle::trans::base::trans_closure::h5a95f13556af5a16stq::v0.11.0.pre
32: 0x2b14e414e660 - middle::trans::base::trans_fn::h56028a210d10faa4vBq::v0.11.0.pre
33: 0x2b14e4243540 - middle::trans::meth::trans_impl::h41b46c355b036addkyw::v0.11.0.pre
34: 0x2b14e4147d60 - middle::trans::base::trans_item::h981baeea4b2d0e69XRq::v0.11.0.pre
35: 0x2b14e4147d60 - middle::trans::base::trans_item::h981baeea4b2d0e69XRq::v0.11.0.pre
36: 0x2b14e4147d60 - middle::trans::base::trans_item::h981baeea4b2d0e69XRq::v0.11.0.pre
37: 0x2b14e424dc20 - middle::trans::base::trans_crate::h0bd47bf889551f0aALr::v0.11.0.pre
38: 0x2b14e4a0e3e0 - driver::driver::phase_4_translate_to_llvm::hd23b79af21a985a6hip::v0.11.0.pre
39: 0x2b14e4a02ba0 - driver::driver::compile_input::he8c688dd4bd2c23dJYo::v0.11.0.pre
40: 0x2b14e4acd450 - driver::run_compiler::hc032cf39facd3bc7sEr::v0.11.0.pre
41: 0x2b14e4acd360 - driver::main_args::closure.95811
42: 0x2b14e4ae85b0 - driver::monitor::closure.96902
43: 0x2b14e4ae34d0 - task::TaskBuilder::try::closure.96665
44: 0x2b14e3bd2440 - task::spawn_opts::closure.7151
45: 0x2b14e6b16570 - task::Task::run::closure.5308
46: 0x2b14e6b819e0 - rust_try
47: 0x2b14e6b18fb0 - unwind::try::hab2f48bb10975620wHd::v0.11.0.pre
48: 0x2b14e6b163f0 - task::Task::run::hc231b1a0e6675f55HWc::v0.11.0.pre
49: 0x2b14e3bd21e0 - task::spawn_opts::closure.7124
50: 0x2b14e6b18580 - thread::thread_start::h9db5e56b1b03c62bbed::v0.11.0.pre
51: 0x2b14e78d40c0 - start_thread
52: 0x2b14e6f192d9 - __clone
53: 0x0 - <unknown>"><pre class="notranslate"><code class="notranslate">error: internal compiler error: Type metadata for ty::t '&[core::fmt::rt::Piece<>]' is already in the TypeMap!
note: the compiler hit an unexpected failure path. 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' failed at 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-linux/build/src/libsyntax/diagnostic.rs:162
stack backtrace:
1: 0x2b14e7292b00 - rt::backtrace::imp::write::h62d90560b5a07b07kXo::v0.11.0.pre
2: 0x2b14e729a230 - failure::on_fail::ha470578b5eadf528Aip::v0.11.0.pre
3: 0x2b14e6b199c0 - unwind::begin_unwind_inner::h1ffa5da7913ac170aTd::v0.11.0.pre
4: 0x2b14e817a690 - unwind::begin_unwind::h9511542397565424626::v0.11.0.pre
5: 0x2b14e817b0d0 - diagnostic::Handler::bug::hbf0741c8fa8e5c18c4b::v0.11.0.pre
6: 0x2b14e414d790 - driver::session::Session::bug::hec7dc9574d5c6f2bK7p::v0.11.0.pre
7: 0x2b14e429f900 - middle::trans::debuginfo::TypeMap::register_type_with_metadata::h55fc281d70ca2cb3KuB::v0.11.0.pre
8: 0x2b14e42acc20 - middle::trans::debuginfo::type_metadata::h99b1044c7787e9f1J6D::v0.11.0.pre
9: 0x2b14e42b6be0 - middle::trans::debuginfo::MemberDescriptionFactory::create_member_descriptions::h0dade42805956a64y1C::v0.11.0.pre
10: 0x2b14e42ba0d0 - middle::trans::debuginfo::RecursiveTypeDescription::finalize::h2927e9f899317398H3C::v0.11.0.pre
11: 0x2b14e42acc20 - middle::trans::debuginfo::type_metadata::h99b1044c7787e9f1J6D::v0.11.0.pre
12: 0x2b14e42acc20 - middle::trans::debuginfo::type_metadata::h99b1044c7787e9f1J6D::v0.11.0.pre
13: 0x2b14e42c3470 - middle::trans::debuginfo::subroutine_type_metadata::ha5efe06324709ba2u2D::v0.11.0.pre
14: 0x2b14e42acc20 - middle::trans::debuginfo::type_metadata::h99b1044c7787e9f1J6D::v0.11.0.pre
15: 0x2b14e4238780 - middle::trans::debuginfo::create_function_debug_context::h85b8bc85b6b4d219ilC::v0.11.0.pre
16: 0x2b14e419efc0 - middle::trans::base::new_fn_ctxt::h6f536f0c03824a90nfq::v0.11.0.pre
17: 0x2b14e423d610 - middle::trans::base::trans_closure::h5a95f13556af5a16stq::v0.11.0.pre
18: 0x2b14e414e660 - middle::trans::base::trans_fn::h56028a210d10faa4vBq::v0.11.0.pre
19: 0x2b14e4147d60 - middle::trans::base::trans_item::h981baeea4b2d0e69XRq::v0.11.0.pre
20: 0x2b14e417ced0 - middle::trans::controlflow::trans_stmt::h32f419d1ee2ab4e80gc::v0.11.0.pre
21: 0x2b14e417eb80 - middle::trans::controlflow::trans_block::h2b5aa2711f6cc8cehmc::v0.11.0.pre
22: 0x2b14e41bc7c0 - middle::trans::expr::trans_rvalue_dps_unadjusted::hb3a3e913b96a67c2dsg::v0.11.0.pre
23: 0x2b14e417e5e0 - middle::trans::expr::trans_into::h7892630deb269c36XAf::v0.11.0.pre
24: 0x2b14e417eb80 - middle::trans::controlflow::trans_block::h2b5aa2711f6cc8cehmc::v0.11.0.pre
25: 0x2b14e417efa0 - middle::trans::controlflow::trans_if::h1804ea536d6ebb0aVpc::v0.11.0.pre
26: 0x2b14e41bc7c0 - middle::trans::expr::trans_rvalue_dps_unadjusted::hb3a3e913b96a67c2dsg::v0.11.0.pre
27: 0x2b14e417e5e0 - middle::trans::expr::trans_into::h7892630deb269c36XAf::v0.11.0.pre
28: 0x2b14e417d8d0 - middle::trans::controlflow::trans_stmt_semi::hce4086c542079d72olc::v0.11.0.pre
29: 0x2b14e417ced0 - middle::trans::controlflow::trans_stmt::h32f419d1ee2ab4e80gc::v0.11.0.pre
30: 0x2b14e417eb80 - middle::trans::controlflow::trans_block::h2b5aa2711f6cc8cehmc::v0.11.0.pre
31: 0x2b14e423d610 - middle::trans::base::trans_closure::h5a95f13556af5a16stq::v0.11.0.pre
32: 0x2b14e414e660 - middle::trans::base::trans_fn::h56028a210d10faa4vBq::v0.11.0.pre
33: 0x2b14e4243540 - middle::trans::meth::trans_impl::h41b46c355b036addkyw::v0.11.0.pre
34: 0x2b14e4147d60 - middle::trans::base::trans_item::h981baeea4b2d0e69XRq::v0.11.0.pre
35: 0x2b14e4147d60 - middle::trans::base::trans_item::h981baeea4b2d0e69XRq::v0.11.0.pre
36: 0x2b14e4147d60 - middle::trans::base::trans_item::h981baeea4b2d0e69XRq::v0.11.0.pre
37: 0x2b14e424dc20 - middle::trans::base::trans_crate::h0bd47bf889551f0aALr::v0.11.0.pre
38: 0x2b14e4a0e3e0 - driver::driver::phase_4_translate_to_llvm::hd23b79af21a985a6hip::v0.11.0.pre
39: 0x2b14e4a02ba0 - driver::driver::compile_input::he8c688dd4bd2c23dJYo::v0.11.0.pre
40: 0x2b14e4acd450 - driver::run_compiler::hc032cf39facd3bc7sEr::v0.11.0.pre
41: 0x2b14e4acd360 - driver::main_args::closure.95811
42: 0x2b14e4ae85b0 - driver::monitor::closure.96902
43: 0x2b14e4ae34d0 - task::TaskBuilder::try::closure.96665
44: 0x2b14e3bd2440 - task::spawn_opts::closure.7151
45: 0x2b14e6b16570 - task::Task::run::closure.5308
46: 0x2b14e6b819e0 - rust_try
47: 0x2b14e6b18fb0 - unwind::try::hab2f48bb10975620wHd::v0.11.0.pre
48: 0x2b14e6b163f0 - task::Task::run::hc231b1a0e6675f55HWc::v0.11.0.pre
49: 0x2b14e3bd21e0 - task::spawn_opts::closure.7124
50: 0x2b14e6b18580 - thread::thread_start::h9db5e56b1b03c62bbed::v0.11.0.pre
51: 0x2b14e78d40c0 - start_thread
52: 0x2b14e6f192d9 - __clone
53: 0x0 - <unknown>
</code></pre></div>
|
<p dir="auto">Compiling libcore with -g leads to the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: internal compiler error: Type metadata for ty::t '&[core::fmt::rt::Piece<>]' is already in the TypeMap!"><pre class="notranslate"><code class="notranslate">error: internal compiler error: Type metadata for ty::t '&[core::fmt::rt::Piece<>]' is already in the TypeMap!
</code></pre></div>
<p dir="auto">This is due to the vec slice in question occurring multiple times along a type reference chain and the code path for vec slices doesn't take that possibility into account. This is also a potential problem for other kinds of types, e.g. fixed length vector types or function types. For regular pointer types this is already handled correctly.</p>
| 1 |
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li>
<p dir="auto"><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br>
MacOS High Sierra 10.13.5</p>
</li>
<li>
<p dir="auto"><strong>TensorFlow installed from (source or binary)</strong>:<br>
pip3</p>
</li>
<li>
<p dir="auto"><strong>TensorFlow version (use command below)</strong>:<br>
1.9.0</p>
</li>
<li>
<p dir="auto"><strong>Python version</strong>:<br>
3.7.0</p>
</li>
<li>
<p dir="auto"><strong>Exact command to reproduce</strong>:<br>
import tensorflow as tf</p>
</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">when import tensorflow in python3 prompt, it says "SyntaxError: invalid syntax".</p>
<p dir="auto">Traceback (most recent call last):<br>
File "", line 1, in <br>
File "/usr/local/lib/python3.7/site-packages/tensorflow/<strong>init</strong>.py", line 22, in <br>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import<br>
File "/usr/local/lib/python3.7/site-packages/tensorflow/python/<strong>init</strong>.py", line 49, in <br>
from tensorflow.python import pywrap_tensorflow<br>
File "/usr/local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py", line 58, in <br>
from tensorflow.python.pywrap_tensorflow_internal import *<br>
File "/usr/local/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py", line 114<br>
def TFE_ContextOptionsSetAsync(arg1, async):_<br>
^<br>
SyntaxError: invalid syntax</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">line 114, 115, 150 of pywrap_tensorflow_internal.py has "async" as parameter which seems to be a keyword.<br>
After changed to "async1", importing tensorflow works.</p>
<p dir="auto">def TFE_ContextOptionsSetAsync(arg1, async1):<br>
return _pywrap_tensorflow_internal.TFE_ContextOptionsSetAsync(arg1, async1)<br>
TFE_ContextOptionsSetAsync = _pywrap_tensorflow_internal.TFE_ContextOptionsSetAsync</p>
|
<p dir="auto">I'm sure developers are working hard to catch up with Python 3.7.<br>
Is there any timeline?</p>
<p dir="auto">pip3 install tensorflow - apparently does not work, building from source:</p>
<p dir="auto">OS Platform and Distribution: Mac OS X 10.13.5<br>
Python: Python 3.7.0 (Homebrew)<br>
TensorFlow installed from: source (<a href="https://github.com/tensorflow/tensorflow.git">https://github.com/tensorflow/tensorflow.git</a>)<br>
TensorFlow version: TensorFlow 1.9.0-rc2<br>
Bazel version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Build label: 0.15.0-homebrew
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 26 12:42:27 2018 (1530016947)
Build timestamp: 1530016947
Build timestamp as int: 1530016947"><pre class="notranslate"><code class="notranslate">Build label: 0.15.0-homebrew
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Jun 26 12:42:27 2018 (1530016947)
Build timestamp: 1530016947
Build timestamp as int: 1530016947
</code></pre></div>
<p dir="auto">CUDA/cuDNN version: None<br>
GPU model and memory: None<br>
Exact command to reproduce:<br>
<code class="notranslate">bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package</code></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Starting local Bazel server and connecting to it...
...........................
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_common.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_decode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/BUILD:356:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:73:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:230:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/kfac/python/ops/BUILD:80:1: in py_library rule //tensorflow/contrib/kfac/python/ops:loss_functions: target '//tensorflow/contrib/kfac/python/ops:loss_functions' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/BUILD:14:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (303 packages loaded).
INFO: Found 1 target...
INFO: From Linking external/grpc/libgrpc_base_c.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(ev_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(fork_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_fallback.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_host_name_max.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iocp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iomgr_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_set_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(resolve_address_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_client_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_utils_posix_noifaddrs.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(timer_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(unix_sockets_posix_noop.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(wakeup_fd_eventfd.o) has no symbols
INFO: From Linking external/grpc/libalts_util.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_windows.o) has no symbols
INFO: From Linking external/grpc/libtsi.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libtsi.a(ssl_session_openssl.o) has no symbols
INFO: From Linking external/grpc/libgrpc++_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc++_base.a(rpc_method.o) has no symbols
INFO: From Linking external/grpc/libgpr_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_iphone.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_android.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_util_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(sync_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(time_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tls_pthread.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_msys.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(wrap_memcpy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(thd_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(stap_timers.o) has no symbols
INFO: From Linking external/grpc/third_party/address_sorting/libaddress_sorting.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/third_party/address_sorting/libaddress_sorting.a(address_sorting_windows.o) has no symbols
ERROR: /Users/zardoz/Projects/tensorflow/tensorflow/python/BUILD:5315:1: Executing genrule //tensorflow/python:framework/fast_tensor_util.pyx_cython_translation failed (Exit 1)
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/execroot/org_tensorflow/bazel-out/host/bin/external/cython/cython_binary.runfiles/cython/cython.py", line 17, in <module>
main(command_line = 1)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 720, in main
result = compile(sources, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 695, in compile
return compile_multiple(source, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 666, in compile_multiple
context = options.create_context()
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 590, in create_context
self.cplus, self.language_level, options=self)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 75, in __init__
from . import Builtin, CythonScope
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Visitor.py", line 15, in <module>
from . import ExprNodes
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/ExprNodes.py", line 2875
await = None
^
SyntaxError: invalid syntax
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 179.318s, Critical Path: 6.38s
INFO: 413 processes: 413 local.
FAILED: Build did NOT complete successfully"><pre class="notranslate"><code class="notranslate">Starting local Bazel server and connecting to it...
...........................
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_common.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_decode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/BUILD:1992:1: in srcs attribute of cc_library rule @grpc//:grpc_nanopb: please do not import '@grpc//third_party/nanopb:pb_encode.c' directly. You should either move the file to this package or depend on an appropriate rule there. Since this rule was created by the macro 'grpc_generate_one_off_targets', the error might have been caused by the macro implementation in /private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/grpc/bazel/grpc_build_system.bzl:172:12
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:exporter': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/learn/BUILD:17:1: in py_library rule //tensorflow/contrib/learn:learn: target '//tensorflow/contrib/learn:learn' depends on deprecated target '//tensorflow/contrib/session_bundle:gc': No longer supported. Switch to SavedModel immediately.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/BUILD:356:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries:ar_model: target '//tensorflow/contrib/timeseries/python/timeseries:ar_model' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:73:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:kalman_filter' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/timeseries/python/timeseries/state_space_models/BUILD:230:1: in py_library rule //tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor: target '//tensorflow/contrib/timeseries/python/timeseries/state_space_models:filtering_postprocessor' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/bayesflow/BUILD:17:1: in py_library rule //tensorflow/contrib/bayesflow:bayesflow_py: target '//tensorflow/contrib/bayesflow:bayesflow_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/seq2seq/BUILD:23:1: in py_library rule //tensorflow/contrib/seq2seq:seq2seq_py: target '//tensorflow/contrib/seq2seq:seq2seq_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/kfac/python/ops/BUILD:80:1: in py_library rule //tensorflow/contrib/kfac/python/ops:loss_functions: target '//tensorflow/contrib/kfac/python/ops:loss_functions' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
WARNING: /Users/zardoz/Projects/tensorflow/tensorflow/contrib/BUILD:14:1: in py_library rule //tensorflow/contrib:contrib_py: target '//tensorflow/contrib:contrib_py' depends on deprecated target '//tensorflow/contrib/distributions:distributions_py': TensorFlow Distributions has migrated to TensorFlow Probability (https://github.com/tensorflow/probability). Deprecated copies remaining in tf.contrib.distributions are unmaintained, unsupported, and will be removed by late 2018. You should update all usage of `tf.contrib.distributions` to `tfp.distributions`.
INFO: Analysed target //tensorflow/tools/pip_package:build_pip_package (303 packages loaded).
INFO: Found 1 target...
INFO: From Linking external/grpc/libgrpc_base_c.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(endpoint_pair_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(ev_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(fork_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_fallback.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(gethostname_host_name_max.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iocp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(iomgr_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_set_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(pollset_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(resolve_address_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_utils_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(socket_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_client_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_utils_posix_noifaddrs.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_server_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(tcp_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(timer_uv.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(unix_sockets_posix_noop.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc_base_c.a(wakeup_fd_eventfd.o) has no symbols
INFO: From Linking external/grpc/libalts_util.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libalts_util.a(check_gcp_environment_windows.o) has no symbols
INFO: From Linking external/grpc/libtsi.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libtsi.a(ssl_session_openssl.o) has no symbols
INFO: From Linking external/grpc/libgrpc++_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgrpc++_base.a(rpc_method.o) has no symbols
INFO: From Linking external/grpc/libgpr_base.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_iphone.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(cpu_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(env_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_android.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_linux.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(log_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_util_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(string_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(sync_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(time_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tls_pthread.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_msys.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(tmpfile_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(wrap_memcpy.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(thd_windows.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/libgpr_base.a(stap_timers.o) has no symbols
INFO: From Linking external/grpc/third_party/address_sorting/libaddress_sorting.a [for host]:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: bazel-out/host/bin/external/grpc/third_party/address_sorting/libaddress_sorting.a(address_sorting_windows.o) has no symbols
ERROR: /Users/zardoz/Projects/tensorflow/tensorflow/python/BUILD:5315:1: Executing genrule //tensorflow/python:framework/fast_tensor_util.pyx_cython_translation failed (Exit 1)
Traceback (most recent call last):
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/execroot/org_tensorflow/bazel-out/host/bin/external/cython/cython_binary.runfiles/cython/cython.py", line 17, in <module>
main(command_line = 1)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 720, in main
result = compile(sources, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 695, in compile
return compile_multiple(source, options)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 666, in compile_multiple
context = options.create_context()
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 590, in create_context
self.cplus, self.language_level, options=self)
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Main.py", line 75, in __init__
from . import Builtin, CythonScope
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/CythonScope.py", line 5, in <module>
from .UtilityCode import CythonUtilityCode
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/UtilityCode.py", line 3, in <module>
from .TreeFragment import parse_from_strings, StringParseContext
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/TreeFragment.py", line 17, in <module>
from .Visitor import VisitorTransform
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/Visitor.py", line 15, in <module>
from . import ExprNodes
File "/private/var/tmp/_bazel_zardoz/5e080a8a46c0e2b2146c013eb1079337/external/cython/Cython/Compiler/ExprNodes.py", line 2875
await = None
^
SyntaxError: invalid syntax
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 179.318s, Critical Path: 6.38s
INFO: 413 processes: 413 local.
FAILED: Build did NOT complete successfully
</code></pre></div>
| 1 |
<h2 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature</h2>
<p dir="auto">when loading state_dict I'm getting<br>
<code class="notranslate">IncompatibleKeys(missing_keys=[], unexpected_keys=[])</code> message though model is loaded correctly. I feel we can have a conditional case before returning this named tuple when missing keys and unexpected keys are null</p>
<h2 dir="auto">Motivation</h2>
<p dir="auto">I thought it was some error and wasted some time to figure out finally that this wasn't an error at all. I am not sure if this a warning though.</p>
<h2 dir="auto">Pitch</h2>
<p dir="auto">I feel we can have a conditional case before returning this named tuple when missing keys and unexpected keys are null. If you are fine with this then please let me know, I'll submit at PR. Thanks</p>
<h2 dir="auto">Alternatives</h2>
<h2 dir="auto">Additional context</h2>
|
<p dir="auto">Now it prints <code class="notranslate">IncompatibleKeys(missing_keys=[], unexpected_keys=[])</code> upon a successful <code class="notranslate">load_state_dict</code>, and could be quite confusing. This can happen a lot, e.g., in jupyter notebooks.</p>
<p dir="auto">We can just subclass and overwrite <code class="notranslate">__repr__</code>.</p>
| 1 |
<p dir="auto">Challenge <a href="http://www.freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery" rel="nofollow">http://www.freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery</a> has an issue.</p>
<p dir="auto">The example gives us :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$(".target:nth-child(3)").addClass("animated bounce");"><pre class="notranslate"><code class="notranslate">$(".target:nth-child(3)").addClass("animated bounce");
</code></pre></div>
<p dir="auto">While the working code should be :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$(".target :nth-child(3)").addClass("animated bounce");"><pre class="notranslate"><code class="notranslate">$(".target :nth-child(3)").addClass("animated bounce");
</code></pre></div>
<p dir="auto">only a space is missing.</p>
|
<p dir="auto"><a href="http://freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery" rel="nofollow">http://freecodecamp.com/challenges/waypoint-target-a-specific-child-of-an-element-using-jquery</a></p>
<p dir="auto">In the instructions is says:<br>
$(".target:nth-child(3)").addClass("animated bounce");</p>
<p dir="auto">and it should be:<br>
$(".target :nth-child(3)").addClass("animated bounce");</p>
<p dir="auto">i.e., with a space before the semicolon. Otherwise it doesn't work.</p>
| 1 |
<h1 dir="auto">Description of the new feature/enhancement</h1>
<p dir="auto">Windows Terminal's Start Menu tile uses whichever color the OS theme is using. Maybe it can have a nice custom color?</p>
<h1 dir="auto">Proposed technical implementation details (optional)</h1>
<p dir="auto">Perhaps a Campbell Blue, or a more universal Sysadmin Black?</p>
|
<p dir="auto">Content as this title.</p>
| 0 |
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22Category%3A+Documentation%22+">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues in this issue<br>
(If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h1 dir="auto">Description</h1>
<p dir="auto">Prior to Celery 4.4.0, the celery.app.control.Inspect.scheduled() API used to return "args" and "kwargs" as strings which could be parsed using ast.literal_eval. Now, they seem to be a list and dict respectively:</p>
<p dir="auto">{'id': 'd82058c7-12b0-4914-8381-2fef9ad874a9', 'name': '...', 'args': ['time', 'sleep', 5], 'kwargs': {}, 'type': '...', }</p>
<h1 dir="auto">Suggestions</h1>
<p dir="auto">I assume this is a deliberate design change; it would have been helpful to add this breaking change to the release notes!</p>
|
<h1 dir="auto">Checklist</h1>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br>
<a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br>
on reporting bugs.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br>
for similar or identical bug reports.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br>
for existing proposed fixes.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br>
to find out if the bug was already fixed in the master branch.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br>
in this issue (If there are none, check this box anyway).</li>
</ul>
<h2 dir="auto">Mandatory Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br>
(if you are not able to do this, then at least specify the Celery<br>
version affected).</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br>
to reproduce this bug.</li>
</ul>
<h2 dir="auto">Optional Debugging Information</h2>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one Python version<br>
and/or implementation.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one message broker and/or<br>
result backend.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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" checked=""> I have tried reproducing the issue on more than one operating system.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue on more than one workers pool.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue with autoscaling, retries,<br>
ETA/Countdown & rate limits disabled.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have tried reproducing the issue after downgrading<br>
and/or upgrading Celery and its dependencies.</li>
</ul>
<h2 dir="auto">Related Issues and Possible Duplicates</h2>
<h4 dir="auto">Related Issues</h4>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="196870340" data-permission-text="Title is private" data-url="https://github.com/celery/celery/issues/3712" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3712/hovercard" href="https://github.com/celery/celery/issues/3712">#3712</a></li>
</ul>
<h4 dir="auto">Possible Duplicates</h4>
<ul dir="auto">
<li>None</li>
</ul>
<h2 dir="auto">Environment & Settings</h2>
<p dir="auto"><strong>Celery version</strong>: 4.2.1</p>
<details>
<summary><b><code class="notranslate">celery report</code> Output:</b></summary>
<p dir="auto">
</p><p dir="auto">celery -A svc.tasks.tasks worker -Q try1 -l info --concurrency=1 -E --time-limit=10<br>
celery_1 | Please specify a different user using the --uid option.<br>
celery_1 |<br>
celery_1 | User information: uid=0 euid=0 gid=0 egid=0<br>
celery_1 |<br>
celery_1 | uid=uid, euid=euid, gid=gid, egid=egid,<br>
celery_1 | [2019-11-21 14:22:20,830: INFO/MainProcess]<br>
celery_1 |<br>
celery_1 | [2019-11-21 14:22:21,269: INFO/MainProcess] Connected to sqs://AKIASKQ2RR3ONPGUV6GP:**@sqs.us-east-1.amazonaws.com/160043208412/try1<br>
celery_1 | [2019-11-21 14:22:21,276: INFO/MainProcess]<br>
celery_1 | [2019-11-21 14:22:21,797: INFO/MainProcess] <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/celery/celery/commit/e9d5e94d2270/hovercard" href="https://github.com/celery/celery/commit/e9d5e94d2270"><tt>e9d5e94d2270</tt></a> ready.</p>
<p dir="auto"></p>
</details>
<h1 dir="auto">Steps to Reproduce</h1>
<h2 dir="auto">Required Dependencies</h2>
<ul dir="auto">
<li><strong>Minimal Python Version</strong>: 2.6</li>
<li><strong>Minimal Celery Version</strong>: 4.2.1</li>
<li><strong>Minimal Kombu Version</strong>: 4.6.6</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==2.5.2
billiard==3.6.1.0
boto3==1.10.23
botocore==1.13.23
celery==4.4.0rc4
Click==7.0
docutils==0.15.2
Flask==1.1.1
importlib-metadata==0.23
itsdangerous==1.1.0
Jinja2==2.10.3
jmespath==0.9.4
kombu===4.6.6
MarkupSafe==1.1.1
more-itertools==7.2.0
pycurl==7.43.0.3
python-dateutil==2.8.0
pytz==2019.3
redis==2.10.6
s3transfer==0.2.1
six==1.13.0
urllib3==1.25.7
vine==1.3.0
Werkzeug==0.16.0
zipp==0.6.0"><pre class="notranslate"><code class="notranslate">amqp==2.5.2
billiard==3.6.1.0
boto3==1.10.23
botocore==1.13.23
celery==4.4.0rc4
Click==7.0
docutils==0.15.2
Flask==1.1.1
importlib-metadata==0.23
itsdangerous==1.1.0
Jinja2==2.10.3
jmespath==0.9.4
kombu===4.6.6
MarkupSafe==1.1.1
more-itertools==7.2.0
pycurl==7.43.0.3
python-dateutil==2.8.0
pytz==2019.3
redis==2.10.6
s3transfer==0.2.1
six==1.13.0
urllib3==1.25.7
vine==1.3.0
Werkzeug==0.16.0
zipp==0.6.0
</code></pre></div>
<p dir="auto"></p>
</details>
<h3 dir="auto">Other Dependencies</h3>
<details>
<p dir="auto">
</p>
</details>
<h2 dir="auto">Minimally Reproducible Test Case</h2>
<details>
<p dir="auto">
</p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import Celery
app.conf.worker_prefetch_multiplier = 1
@app.task(base=BaseAsyncJobTask, acks_late=True, acks_on_failure_or_timeout=False)
def dead_letter_q_task():
return 1/0
dead_letter_q_task.delay()
dead_letter_q_task.delay()
dead_letter_q_task.delay()"><pre class="notranslate"><code class="notranslate">from celery import Celery
app.conf.worker_prefetch_multiplier = 1
@app.task(base=BaseAsyncJobTask, acks_late=True, acks_on_failure_or_timeout=False)
def dead_letter_q_task():
return 1/0
dead_letter_q_task.delay()
dead_letter_q_task.delay()
dead_letter_q_task.delay()
</code></pre></div>
<p dir="auto"></p>
</details>
<h1 dir="auto">Expected Behavior</h1>
<p dir="auto">I expect all the tasks to be executed, although the first task failed</p>
<h1 dir="auto">Actual Behavior</h1>
<p dir="auto">The first task was executed, but the rest weren't.</p>
<p dir="auto">The problem originates from the prefetch multiplier feature, with acks_late=True and acks_on_failure_or_timeout=False flags.</p>
<p dir="auto">The problem is that the prefetched task is remaining in the local queue although it was failed (because it will not be acked on failure). This causes the mechanism not fetching any more tasks, and workers are not executing anything.</p>
<p dir="auto">I.e the solution would be acking the message in the local queue, but not acking it in the remote queue.</p>
<p dir="auto">I would like to fix the issue myself, but I can't figure out how can I remove from <a href="https://github.com/celery/kombu/blob/master/kombu/transport/virtual/base.py#L191">https://github.com/celery/kombu/blob/master/kombu/transport/virtual/base.py#L191</a><br>
The failed task</p>
| 0 |
<h5 dir="auto">ISSUE TYPE</h5>
<p dir="auto">Bug Report</p>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">core</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.0 (devel 5f12731797) last updated 2016/08/03 183842 (GMT +200)
lib/ansible/modules/core (detached HEAD db66758125) last updated 2016/08/03 183900 (GMT +200)
lib/ansible/modules/extras (detached HEAD 57c142b6ed) last updated 2016/08/03 184009 (GMT +200)
config file = /home/jpic/.ansible.cfg
configured module search path = [/home/jpic/ansible/library /usr/share/ansible]"><pre class="notranslate"><code class="notranslate">ansible 2.2.0 (devel 5f12731797) last updated 2016/08/03 183842 (GMT +200)
lib/ansible/modules/core (detached HEAD db66758125) last updated 2016/08/03 183900 (GMT +200)
lib/ansible/modules/extras (detached HEAD 57c142b6ed) last updated 2016/08/03 184009 (GMT +200)
config file = /home/jpic/.ansible.cfg
configured module search path = [/home/jpic/ansible/library /usr/share/ansible]
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">An exception is raised when:</p>
<ul dir="auto">
<li>adding a host with a given group name,</li>
<li>having a task with delegate_to: the_group_name</li>
<li>having a play for that group.<br>
Pretty interresting indeed.</li>
</ul>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: localhost
tasks:
- add_host: name=testboot.lxc group=testboot # replace testboot.lxc by anything on which setup wil work
- raw: uname
delegate_to: testboot # obviously this is wrong, because we have no such host
when: false # however, this task is skipped, so not failing
- hosts: testboot # this triggers the exception, if you remove the skipped task above if works though
tasks:
- shell: uname -a"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">add_host</span>: <span class="pl-s">name=testboot.lxc group=testboot </span><span class="pl-c"><span class="pl-c">#</span> replace testboot.lxc by anything on which setup wil work</span>
- <span class="pl-ent">raw</span>: <span class="pl-s">uname</span>
<span class="pl-ent">delegate_to</span>: <span class="pl-s">testboot </span><span class="pl-c"><span class="pl-c">#</span> obviously this is wrong, because we have no such host</span>
<span class="pl-ent">when</span>: <span class="pl-s">false </span><span class="pl-c"><span class="pl-c">#</span> however, this task is skipped, so not failing</span>
- <span class="pl-ent">hosts</span>: <span class="pl-s">testboot </span><span class="pl-c"><span class="pl-c">#</span> this triggers the exception, if you remove the skipped task above if works though</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">shell</span>: <span class="pl-s">uname -a</span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAYBOOK: test.yml *************************************************************
2 plays in test.yml
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [add_host] ****************************************************************
task path: /home/jpic/scratch/test.yml:6
creating host via 'add_host': hostname=testboot.lxc
changed: [localhost] => {
"add_host": {
"groups": [
"testboot"
],
"host_name": "testboot.lxc",
"host_vars": {
"group": "testboot"
}
},
"changed": true,
"invocation": {
"module_args": {
"group": "testboot",
"name": "testboot.lxc"
},
"module_name": "add_host"
}
}
TASK [raw] *********************************************************************
task path: /home/jpic/scratch/test.yml:7
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
ERROR! Unexpected Exception: 'NoneType' object has no attribute 'name'
the full traceback was:
Traceback (most recent call last):
File "/home/jpic/env/src/ansible/bin/ansible-playbook", line 97, in <module>
exit_code = cli.run()
File "/home/jpic/env/src/ansible/lib/ansible/cli/playbook.py", line 154, in run
results = pbex.run()
File "/home/jpic/env/src/ansible/lib/ansible/executor/playbook_executor.py", line 144, in run
self._inventory.restrict_to_hosts(batch)
File "/home/jpic/env/src/ansible/lib/ansible/inventory/__init__.py", line 640, in restrict_to_hosts
self._restriction = [ h.name for h in restriction ]
AttributeError: 'NoneType' object has no attribute 'name'"><pre class="notranslate"><code class="notranslate">PLAYBOOK: test.yml *************************************************************
2 plays in test.yml
PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [add_host] ****************************************************************
task path: /home/jpic/scratch/test.yml:6
creating host via 'add_host': hostname=testboot.lxc
changed: [localhost] => {
"add_host": {
"groups": [
"testboot"
],
"host_name": "testboot.lxc",
"host_vars": {
"group": "testboot"
}
},
"changed": true,
"invocation": {
"module_args": {
"group": "testboot",
"name": "testboot.lxc"
},
"module_name": "add_host"
}
}
TASK [raw] *********************************************************************
task path: /home/jpic/scratch/test.yml:7
skipping: [localhost] => {
"changed": false,
"skip_reason": "Conditional check failed",
"skipped": true
}
ERROR! Unexpected Exception: 'NoneType' object has no attribute 'name'
the full traceback was:
Traceback (most recent call last):
File "/home/jpic/env/src/ansible/bin/ansible-playbook", line 97, in <module>
exit_code = cli.run()
File "/home/jpic/env/src/ansible/lib/ansible/cli/playbook.py", line 154, in run
results = pbex.run()
File "/home/jpic/env/src/ansible/lib/ansible/executor/playbook_executor.py", line 144, in run
self._inventory.restrict_to_hosts(batch)
File "/home/jpic/env/src/ansible/lib/ansible/inventory/__init__.py", line 640, in restrict_to_hosts
self._restriction = [ h.name for h in restriction ]
AttributeError: 'NoneType' object has no attribute 'name'
</code></pre></div>
<p dir="auto">However, if I use another faulty delegate_to that's <strong>not</strong> the name of the group in the next play then it doesn't crash:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---
- hosts: localhost
tasks:
- add_host: name=testboot.lxc group=testboot
- raw: uname
delegate_to: testbar # not testboot
when: false
- hosts: testboot
tasks:
- shell: uname -a"><pre class="notranslate"><code class="notranslate">---
- hosts: localhost
tasks:
- add_host: name=testboot.lxc group=testboot
- raw: uname
delegate_to: testbar # not testboot
when: false
- hosts: testboot
tasks:
- shell: uname -a
</code></pre></div>
<p dir="auto">Result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [add_host] ****************************************************************
changed: [localhost]
TASK [raw] *********************************************************************
skipping: [localhost]
PLAY [testboot] ****************************************************************
TASK [setup] *******************************************************************
ok: [testboot.lxc]
TASK [command] *****************************************************************
changed: [testboot.lxc]
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0
testboot.lxc : ok=2 changed=1 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">PLAY [localhost] ***************************************************************
TASK [setup] *******************************************************************
ok: [localhost]
TASK [add_host] ****************************************************************
changed: [localhost]
TASK [raw] *********************************************************************
skipping: [localhost]
PLAY [testboot] ****************************************************************
TASK [setup] *******************************************************************
ok: [testboot.lxc]
TASK [command] *****************************************************************
changed: [testboot.lxc]
PLAY RECAP *********************************************************************
localhost : ok=2 changed=1 unreachable=0 failed=0
testboot.lxc : ok=2 changed=1 unreachable=0 failed=0
</code></pre></div>
<h3 dir="auto">EXPECTED RESULT</h3>
<p dir="auto">So, I find it a bit weird that a skipped task can cause a subsequent play to fail (imagine the time it took to isolate this !). I'd be willing to contribute a fix, but I'm not sure what it should be:</p>
<ul dir="auto">
<li>fail a task if delegate_to is incorrect or is a valid group name, even if it is skipped,</li>
<li>ensure that delegate_to doesn't affect the global state if it's used with a value that's a valid group name but not a valid host name.<br>
I suspect that other users might have been affected, but I don't know if anybody made it to isolate the issue, because it took quite some time I recon.</li>
</ul>
|
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<p dir="auto">delegate_to</p>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.0.1.0
config file = /etc/ansible.cfg
configured module search path = /usr/share/ansible"><pre class="notranslate"><code class="notranslate">ansible 2.0.1.0
config file = /etc/ansible.cfg
configured module search path = /usr/share/ansible
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">N/A</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">delegate_to: ignore when:<br>
More specifically delegate_to is evaluated before when could even skip the task.</p>
<h5 dir="auto">STEPS TO REPRODUCE</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- hosts: localhost
tasks:
- debug: msg="blah"
delegate_to: false
when: false"><pre class="notranslate"><code class="notranslate">- hosts: localhost
tasks:
- debug: msg="blah"
delegate_to: false
when: false
</code></pre></div>
<p dir="auto">(In my case delegate_to was a variable [the IP of a "master" node], I had hard time figuring out what was wrong)</p>
<h5 dir="auto">EXPECTED RESULTS</h5>
<p dir="auto">task skipped</p>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 86, in <module>
sys.exit(cli.run())
File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line 150, in run
results = pbex.run()
File "/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py", line 140, in run
result = self._tqm.run(play=play)
File "/usr/lib/python2.7/dist-packages/ansible/executor/task_queue_manager.py", line 238, in run
play_return = strategy.run(iterator, play_context)
File "/usr/lib/python2.7/dist-packages/ansible/plugins/strategy/linear.py", line 229, in run
task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=task)
File "/usr/lib/python2.7/dist-packages/ansible/vars/__init__.py", line 343, in get_vars
all_vars['ansible_delegated_vars'] = self._get_delegated_vars(loader, play, task, all_vars)
File "/usr/lib/python2.7/dist-packages/ansible/vars/__init__.py", line 483, in _get_delegated_vars
include_hostvars=False,
File "/usr/lib/python2.7/dist-packages/ansible/vars/__init__.py", line 247, in get_vars
all_vars = combine_vars(all_vars, host.get_vars())
File "/usr/lib/python2.7/dist-packages/ansible/inventory/host.py", line 128, in get_vars
results['inventory_hostname_short'] = self.name.split('.')[0]
AttributeError: 'bool' object has no attribute 'split'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last):
File "/usr/bin/ansible-playbook", line 86, in <module>
sys.exit(cli.run())
File "/usr/lib/python2.7/dist-packages/ansible/cli/playbook.py", line 150, in run
results = pbex.run()
File "/usr/lib/python2.7/dist-packages/ansible/executor/playbook_executor.py", line 140, in run
result = self._tqm.run(play=play)
File "/usr/lib/python2.7/dist-packages/ansible/executor/task_queue_manager.py", line 238, in run
play_return = strategy.run(iterator, play_context)
File "/usr/lib/python2.7/dist-packages/ansible/plugins/strategy/linear.py", line 229, in run
task_vars = self._variable_manager.get_vars(loader=self._loader, play=iterator._play, host=host, task=task)
File "/usr/lib/python2.7/dist-packages/ansible/vars/__init__.py", line 343, in get_vars
all_vars['ansible_delegated_vars'] = self._get_delegated_vars(loader, play, task, all_vars)
File "/usr/lib/python2.7/dist-packages/ansible/vars/__init__.py", line 483, in _get_delegated_vars
include_hostvars=False,
File "/usr/lib/python2.7/dist-packages/ansible/vars/__init__.py", line 247, in get_vars
all_vars = combine_vars(all_vars, host.get_vars())
File "/usr/lib/python2.7/dist-packages/ansible/inventory/host.py", line 128, in get_vars
results['inventory_hostname_short'] = self.name.split('.')[0]
AttributeError: 'bool' object has no attribute 'split'
</code></pre></div>
| 1 |
<p dir="auto">It looks like Edge doesn't like that fakeNode isn't attached to the body.<br>
If I append it to the body, then remove after removing the listener, all is good.<br>
Obviously in a production build this isn't an issue as handler is called directly.</p>
<p dir="auto">This was for a 'click' event.</p>
|
<p dir="auto">Count up with 0.14.0<br>
<a href="http://inuscript.github.io/react-0-14-bug/0-14-0.html" rel="nofollow">http://inuscript.github.io/react-0-14-bug/0-14-0.html</a></p>
<p dir="auto">But can't count up 0.14.1<br>
<a href="http://inuscript.github.io/react-0-14-bug/0-14-1.html" rel="nofollow">http://inuscript.github.io/react-0-14-bug/0-14-1.html</a></p>
<p dir="auto">I got this issue on IE 10 and 11 + Windows 8, 7.<br>
And Windows 10 + IE 11 is move fine.</p>
| 1 |
<p dir="auto">When testing if the dtype of an array is present in a set of dtypes, the answer is unexpected.</p>
<h3 dir="auto">Reproducing code example:</h3>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np
f32_dtype = np.zeros(1, dtype=np.float32).dtype
# test with list of dtypes
print(f32_dtype in [np.float32, np.uint8]) # => True (as expected)
# test with set of dtypes
print(f32_dtype in {np.float32, np.uint8}) # => False (not as expected)"><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">f32_dtype</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">zeros</span>(<span class="pl-c1">1</span>, <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">np</span>.<span class="pl-s1">float32</span>).<span class="pl-s1">dtype</span>
<span class="pl-c"># test with list of dtypes</span>
<span class="pl-en">print</span>(<span class="pl-s1">f32_dtype</span> <span class="pl-c1">in</span> [<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>, <span class="pl-s1">np</span>.<span class="pl-s1">uint8</span>]) <span class="pl-c"># => True (as expected)</span>
<span class="pl-c"># test with set of dtypes</span>
<span class="pl-en">print</span>(<span class="pl-s1">f32_dtype</span> <span class="pl-c1">in</span> {<span class="pl-s1">np</span>.<span class="pl-s1">float32</span>, <span class="pl-s1">np</span>.<span class="pl-s1">uint8</span>}) <span class="pl-c"># => False (not as expected)</span></pre></div>
<h3 dir="auto">Error message:</h3>
<p dir="auto">none</p>
<h3 dir="auto">Numpy/Python version information:</h3>
<p dir="auto">numpy 1.18.4<br>
Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]</p>
|
<h2 dir="auto">Summary</h2>
<p dir="auto">Make DType objects, their corresponding types, and their string names all compare unequal.</p>
<h2 dir="auto">Historical issue</h2>
<p dir="auto">For some reason, <code class="notranslate">dtype</code> objects and the numpy types they are based off of compare equal. They don't hash equal of course, which goes against Python's docs that say</p>
<blockquote>
<p dir="auto">The only required property is that objects which compare equal have the same hash value…</p>
</blockquote>
<p dir="auto">Can we make them compare unequal? Is there any reason for them to compare equal?</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [6]: np.dtype(np.float) == np.float
Out[6]: True"><pre class="notranslate"><code class="notranslate">In [6]: np.dtype(np.float) == np.float
Out[6]: True
</code></pre></div>
| 1 |
<h5 dir="auto">ISSUE TYPE</h5>
<ul dir="auto">
<li>Bug Report</li>
<li>Feature Idea</li>
</ul>
<h5 dir="auto">COMPONENT NAME</h5>
<h5 dir="auto">ANSIBLE VERSION</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[root@k8s-09 deploy-on-k8s]# ansible --version
ansible 2.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
[root@k8s-09 deploy-on-k8s]#"><pre class="notranslate"><code class="notranslate">[root@k8s-09 deploy-on-k8s]# ansible --version
ansible 2.3.0
config file = /etc/ansible/ansible.cfg
configured module search path = Default w/o overrides
[root@k8s-09 deploy-on-k8s]#
</code></pre></div>
<h5 dir="auto">CONFIGURATION</h5>
<h5 dir="auto">OS / ENVIRONMENT</h5>
<p dir="auto">CentOS 7</p>
<h5 dir="auto">SUMMARY</h5>
<p dir="auto">I am not sure the root reason.<br>
"namespace" and "gitlab_deploy_suffix_name" are vars and work well at other places.<br>
I assume 'register' and 'when' support vars too.<br>
I do not know what is the meaning in the error message:</p>
<h1 dir="auto">The error was: |failed expects a dictionary</h1>
<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="
32 # Service
33 - name: check "{{ gitlab_deploy_suffix_name }}" svc exist or not
34 command: "kubctl get svc {{ [namespace, gitlab_deploy_suffix_name]|join('-') }} --namespace={{ namespace }}"
35 register: "{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists"
36 ignore_errors: True
37
38 - name: "create gitlab svc if it does not exist and its deployment exists or just created succeefully"
39 shell: "notify to create {{ gitlab_deploy_suffix_name }} service"
40 when: "{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists|failed"
41 ignore_errors: True
42 notify: "create {{ gitlab_deploy_suffix_name }} service""><pre class="notranslate"> <span class="pl-s">32 </span><span class="pl-c"><span class="pl-c">#</span> Service</span>
<span class="pl-ent">33 - name</span>: <span class="pl-s">check "{{ gitlab_deploy_suffix_name }}" svc exist or not</span>
<span class="pl-ent">34 command</span>: <span class="pl-s"><span class="pl-pds">"</span>kubctl get svc {{ [namespace, gitlab_deploy_suffix_name]|join('-') }} --namespace={{ namespace }}<span class="pl-pds">"</span></span>
<span class="pl-ent">35 register</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists<span class="pl-pds">"</span></span>
<span class="pl-ent">36 ignore_errors</span>: <span class="pl-c1">True</span>
<span class="pl-s">37</span>
<span class="pl-ent">38 - name</span>: <span class="pl-s"><span class="pl-pds">"</span>create gitlab svc if it does not exist and its deployment exists or just created succeefully<span class="pl-pds">"</span></span>
<span class="pl-ent">39 shell</span>: <span class="pl-s"><span class="pl-pds">"</span>notify to create {{ gitlab_deploy_suffix_name }} service<span class="pl-pds">"</span></span>
<span class="pl-ent">40 when</span>: <span class="pl-s"><span class="pl-pds">"</span>{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists|failed<span class="pl-pds">"</span></span>
<span class="pl-ent">41 ignore_errors</span>: <span class="pl-c1">True</span>
<span class="pl-ent">42 notify</span>: <span class="pl-s"><span class="pl-pds">"</span>create {{ gitlab_deploy_suffix_name }} service<span class="pl-pds">"</span></span></pre></div>
<h5 dir="auto">EXPECTED RESULTS</h5>
<h5 dir="auto">ACTUAL RESULTS</h5>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [k8s-09]: FAILED! => {"failed": true, "msg": "The conditional check '{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists|failed' failed. The error was: |failed expects a dictionary\n\nThe error appears to have been in '/root/temp-bruce/deploy-on-k8s/roles/k8s/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: \"create gitlab svc if it does not exist and its deployment exists or just created succeefully\"\n ^ here\n"}"><pre class="notranslate"><code class="notranslate">fatal: [k8s-09]: FAILED! => {"failed": true, "msg": "The conditional check '{{ [namespace, gitlab_deploy_suffix_name]|join('-') }}_exists|failed' failed. The error was: |failed expects a dictionary\n\nThe error appears to have been in '/root/temp-bruce/deploy-on-k8s/roles/k8s/tasks/main.yml': line 38, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: \"create gitlab svc if it does not exist and its deployment exists or just created succeefully\"\n ^ here\n"}
</code></pre></div>
|
<p dir="auto">Hi,</p>
<p dir="auto">I encountered a problem with conditional role dependencies. The case is as follows:</p>
<p dir="auto">Role a depends on role b when var want_b is true.<br>
Role b depends on role c when var want_c is true.</p>
<p dir="auto">When want_b is false and want_c is true I expect both roles b and c to be skipped, because role b is skipped and role c is a dependency of role b. What happens is that role c is run anyway.</p>
<p dir="auto">Very simple playbook illustrating this problem:<br>
<a href="https://github.com/tronner/ansible-bug-roledep-conditions">https://github.com/tronner/ansible-bug-roledep-conditions</a></p>
| 0 |
<h3 dir="auto">Describe the issue linked to the documentation</h3>
<p dir="auto">pytest doesn't work with newer version</p>
<h3 dir="auto">Suggest a potential alternative/fix</h3>
<p dir="auto"><em>No response</em></p>
|
<p dir="auto">We recently pinned pytest to 6.2.5 in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1124905071" data-permission-text="Title is private" data-url="https://github.com/scikit-learn/scikit-learn/issues/22389" data-hovercard-type="pull_request" data-hovercard-url="/scikit-learn/scikit-learn/pull/22389/hovercard" href="https://github.com/scikit-learn/scikit-learn/pull/22389">#22389</a> because <code class="notranslate">pytest=7.0</code> stalled the CI.</p>
| 1 |
<p dir="auto">When compiling the following code: (the function <code class="notranslate">call</code> takes a 0-argument function and returns its result)</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type NoArgsFn<T> = () => T;
function call<T, Fn extends NoArgsFn<T>>(fn: Fn): T {
return fn();
}
let result: number = call(() => 1);"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">NoArgsFn</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">call</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">Fn</span> <span class="pl-k">extends</span> <span class="pl-smi">NoArgsFn</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">fn</span>: <span class="pl-smi">Fn</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span> <span class="pl-kos">{</span>
<span class="pl-k">return</span> <span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">result</span>: <span class="pl-smi">number</span> <span class="pl-c1">=</span> <span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">I get the following incorrect error: (on the last line)</p>
<p dir="auto"><code class="notranslate">try.ts(7,5): error TS2322: Type '{}' is not assignable to type 'number'.</code></p>
<p dir="auto">The following workaround, adding an unused dummy argument of type T to the function, avoids this error:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="type NoArgsFn<T> = () => T;
function call<T, Fn extends NoArgsFn<T>>(fn: Fn, dummy: T): T {
return fn();
}
let result: number = call(() => 1, -1);"><pre class="notranslate"><span class="pl-k">type</span> <span class="pl-smi">NoArgsFn</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-k">function</span> <span class="pl-en">call</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">Fn</span> <span class="pl-k">extends</span> <span class="pl-smi">NoArgsFn</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">fn</span>: <span class="pl-smi">Fn</span><span class="pl-kos">,</span> <span class="pl-s1">dummy</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-k">return</span> <span class="pl-en">fn</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">result</span>: <span class="pl-smi">number</span> <span class="pl-c1">=</span> <span class="pl-en">call</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
|
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.8.0</p>
<p dir="auto"><strong>Code</strong></p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="interface Class<T> {
new(): T;
}
declare function create1<T>(ctor: Class<T>): T;
declare function create2<T, C extends Class<T>>(ctor: C): T;
class A {}
let a1 = create1(A); // a: A --> OK
let a2 = create2(A); // a: {} --> Should be A"><pre class="notranslate"><span class="pl-k">interface</span> <span class="pl-smi">Class</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span> <span class="pl-kos">{</span>
<span class="pl-k">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">create1</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">ctor</span>: <span class="pl-smi">Class</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">T</span><span class="pl-kos">;</span>
<span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">create2</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">C</span> <span class="pl-k">extends</span> <span class="pl-smi">Class</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">ctor</span>: <span class="pl-smi">C</span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-k">class</span> <span class="pl-smi">A</span> <span class="pl-kos">{</span><span class="pl-kos">}</span>
<span class="pl-k">let</span> <span class="pl-s1">a1</span> <span class="pl-c1">=</span> <span class="pl-en">create1</span><span class="pl-kos">(</span><span class="pl-smi">A</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// a: A --> OK</span>
<span class="pl-k">let</span> <span class="pl-s1">a2</span> <span class="pl-c1">=</span> <span class="pl-en">create2</span><span class="pl-kos">(</span><span class="pl-smi">A</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// a: {} --> Should be A</span></pre></div>
<p dir="auto"><strong>Context</strong></p>
<p dir="auto">The example above is simplified to illustrate the difference between <code class="notranslate">create1</code> and <code class="notranslate">create2</code>. I need both type parameters for the use case I have in mind (React) because it returns a type which is parameterized by both <code class="notranslate">T</code> and <code class="notranslate">C</code>:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="declare function createElement<T, C extends Class<T>>(type: C): Element<T, C>;
var e = createElement(A); // e: Element<{}, typeof A> --> Should be Element<A, typeof A>
declare function render<T>(e: Element<T, any>): T;
var a = render(e); // a: {} --> Should be A"><pre class="notranslate"><span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">createElement</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">C</span> <span class="pl-k">extends</span> <span class="pl-smi">Class</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">></span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">type</span>: <span class="pl-smi">C</span><span class="pl-kos">)</span>: <span class="pl-smi">Element</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">C</span><span class="pl-kos">></span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">e</span> <span class="pl-c1">=</span> <span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-smi">A</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// e: Element<{}, typeof A> --> Should be Element<A, typeof A></span>
<span class="pl-k">declare</span> <span class="pl-k">function</span> <span class="pl-s1">render</span><span class="pl-c1"><</span><span class="pl-smi">T</span><span class="pl-c1">></span><span class="pl-kos">(</span><span class="pl-s1">e</span>: <span class="pl-smi">Element</span><span class="pl-kos"><</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-smi">any</span><span class="pl-kos">></span><span class="pl-kos">)</span>: <span class="pl-smi">T</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">e</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// a: {} --> Should be A</span></pre></div>
<p dir="auto">Again, this is simplified, but the motivation is to improve the return type inference of <code class="notranslate">ReactDOM.render</code>.</p>
| 1 |
<h1 dir="auto">Keyboard Manager</h1>
<p dir="auto">Some keys have the ability to have multiple characters by pressing either Alt or Shift, heres where Keyboard Manager steps in, my idea is that you would be able to type a key that is only accesable by pressing Alt or Shift that you would like to remap and that you would be able choose to either choose a key that you would like to add the Alt or Shift ability to a key or either just choose the character you want to remap the character with. This would be useful for all those keys you cant access because they're not on the character list.<br>
A clear and concise description of what the problem is that the new feature would solve.<br>
Describe why and how a user would use this new functionality (if applicable).</p>
<p dir="auto">I want to be able to choose any sort of character on the keyboard. This would really be a great update and it would be super useful</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -Best regards, Rubenzoom"><pre class="notranslate"><code class="notranslate"> -Best regards, Rubenzoom
</code></pre></div>
|
<h1 dir="auto">Multiple layouts at the same time</h1>
<p dir="auto">Currently only one layout is active at one time. I want multiple layouts at the same time, when move the window, holding Shift and pressing Tab will cycle through list of configured selected layouts</p>
| 0 |
<p dir="auto">I have a code that sends GET and POST requests every 10 seconds. But in case there is a delay, the POST requests line itself posts twice. I tried to debug this to the best of my ability and I couldn't but finalize that the library sends the requests twice, or it is something to do with TCP (but then the library should deal with it, right?</p>
<p dir="auto">The code: # this is a general code to give an idea of my implementation</p>
<p dir="auto">import requests<br>
import time<br>
while True:<br>
source = requests.get(url)<br>
result = source.json()<br>
resp = request.post(another_url,json = result,headers)<br>
time.sleep(10)</p>
<p dir="auto">By default, this should be ok, but I don't understand why I get this :</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/11473261/8950185/8dc6db68-35f0-11e5-933c-bf0b7c49c0ef.PNG"><img src="https://cloud.githubusercontent.com/assets/11473261/8950185/8dc6db68-35f0-11e5-933c-bf0b7c49c0ef.PNG" alt="1 4 2_clean_3git" style="max-width: 100%;"></a></p>
<p dir="auto">If it is something to do with my code then please advise me, or otherwise I hope this bug can be fixed.</p>
<p dir="auto">Thank you so much for this awesome library.</p>
|
<h2 dir="auto">Expected Result</h2>
<p dir="auto">Sending a request with request.get(url, data=data) should return a normal web response.</p>
<h2 dir="auto">Actual Result</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File "d:\VSWorkspace\MyWebClient.py", line 64, in query_api
response = requests.get(url, data=query)
File "C:\Program Files\Python36\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "C:\Program Files\Python36\lib\site-packages\requests\sessions.py", line 658, in send
r.content
File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 823, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 745, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "C:\Program Files\Python36\lib\site-packages\urllib3\response.py", line 432, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "C:\Program Files\Python36\lib\site-packages\urllib3\response.py", line 601, in read_chunked
chunk = self._handle_chunk(amt)
File "C:\Program Files\Python36\lib\site-packages\urllib3\response.py", line 566, in _handle_chunk
returned_chunk = self._fp._safe_read(self.chunk_left)
File "C:\Program Files\Python36\lib\http\client.py", line 612, in _safe_read
chunk = self.fp.read(min(amt, MAXAMOUNT))
AttributeError: 'NoneType' object has no attribute 'read'"><pre class="notranslate"><code class="notranslate"> File "d:\VSWorkspace\MyWebClient.py", line 64, in query_api
response = requests.get(url, data=query)
File "C:\Program Files\Python36\lib\site-packages\requests\api.py", line 72, in get
return request('get', url, params=params, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\requests\api.py", line 58, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Program Files\Python36\lib\site-packages\requests\sessions.py", line 508, in request
resp = self.send(prep, **send_kwargs)
File "C:\Program Files\Python36\lib\site-packages\requests\sessions.py", line 658, in send
r.content
File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 823, in content
self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or bytes()
File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 745, in generate
for chunk in self.raw.stream(chunk_size, decode_content=True):
File "C:\Program Files\Python36\lib\site-packages\urllib3\response.py", line 432, in stream
for line in self.read_chunked(amt, decode_content=decode_content):
File "C:\Program Files\Python36\lib\site-packages\urllib3\response.py", line 601, in read_chunked
chunk = self._handle_chunk(amt)
File "C:\Program Files\Python36\lib\site-packages\urllib3\response.py", line 566, in _handle_chunk
returned_chunk = self._fp._safe_read(self.chunk_left)
File "C:\Program Files\Python36\lib\http\client.py", line 612, in _safe_read
chunk = self.fp.read(min(amt, MAXAMOUNT))
AttributeError: 'NoneType' object has no attribute 'read'
</code></pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.6"
},
"implementation": {
"name": "CPython",
"version": "3.6.4"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.18.4"
},
"system_ssl": {
"version": "100020bf"
},
"urllib3": {
"version": "1.22"
},
"using_pyopenssl": false
}"><pre class="notranslate"><code class="notranslate">{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": ""
},
"idna": {
"version": "2.6"
},
"implementation": {
"name": "CPython",
"version": "3.6.4"
},
"platform": {
"release": "10",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "",
"version": null
},
"requests": {
"version": "2.18.4"
},
"system_ssl": {
"version": "100020bf"
},
"urllib3": {
"version": "1.22"
},
"using_pyopenssl": false
}
</code></pre></div>
<p dir="auto">side note: my pylint in Visual Studio Code shows 8 errors in client.py: 6 constants that are undeclared, one global variable that's undeclared, and one index error that looks to be related to not declaring the variable type in the method definition. But I'm using python 3.6.4, so it could just be a compatibility issue in my pylint version.</p>
| 0 |
<p dir="auto">HI.<br>
I am trying to make some routes of my application to require a subdomain.<br>
I have added this to my routing.yml</p>
<p dir="auto">my_route:<br>
resource: "@MyBundle/Resources/config/routing.yml"<br>
host: "{subdomain}.{domain}"<br>
prefix: /some-path<br>
requirements:<br>
domain: %domain%<br>
subdomain: .+</p>
<p dir="auto">The route is matched correctly but when I try to use path in twig it shows the folloing error:<br>
An exception has been thrown during the rendering of a template ("Some mandatory parameters are missing ("subdomain", "domain")</p>
<p dir="auto">The host shouldnt be set automaticly? Even using the url function instead of path shows me the same error.<br>
I have to explicity add the subdomain and domain parameters to the path twig function.</p>
<p dir="auto">Is there an easier way?</p>
|
<p dir="auto">Currently running into an issue with the new host matching when I'm trying to generate urls that requires me to pass in a host parameter.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="InternalUserController:
resource: "@ApiBundle/Controller/Internal/UserController.php"
type: annotation
host: "api.{domain}"
DashboardController:
resource: "@DashboardBundle/Controller/DashboardController.php"
type: annotation
host: "{domain}""><pre lang="ymal" class="notranslate"><code class="notranslate">InternalUserController:
resource: "@ApiBundle/Controller/Internal/UserController.php"
type: annotation
host: "api.{domain}"
DashboardController:
resource: "@DashboardBundle/Controller/DashboardController.php"
type: annotation
host: "{domain}"
</code></pre></div>
<p dir="auto">The examples above work perfectly with the url matcher, but when needing to generate the url, it will require me to provide the domain parameter each time. I know this is how it's suppose to function, but it seems a bit annoying to require putting in the domain each time.</p>
| 1 |
<p dir="auto">The old router had this method <a href="https://github.com/angular/angular/blob/2.0.0-rc.4/modules/%40angular/router-deprecated/src/router.ts#L139"><code class="notranslate">router.isRouteActive()</code></a> which could be used to check whether a route was active.</p>
<p dir="auto">The new v3 component router does not offer this. Instead, the <code class="notranslate">RouterLinkActive</code> directive uses <a href="https://github.com/angular/angular/blob/2.0.0-rc.4/modules/%40angular/router/src/directives/router_link_active.ts#L99">some custom logic</a> to figure out whether a route is active or not. It all boils down to comparing the current <code class="notranslate">UrlTree</code> with the target <code class="notranslate">UrlTree</code> using <a href="https://github.com/angular/angular/blob/2.0.0-rc.4/modules/%40angular/router/src/url_tree.ts#L16"><code class="notranslate">containsTree</code></a>.</p>
<p dir="auto">Unfortunately, <code class="notranslate">containsTree</code> is not exported at module level. So anyone who wants to figure out whether a route is active or not (and cannot use the directive) has to implement all this logic on their own.</p>
<p dir="auto">Can we <a href="https://github.com/angular/angular/blob/2.0.0-rc.4/modules/%40angular/router/index.ts">reexport</a> the <code class="notranslate">containsTree</code> function, so it can be used?</p>
|
<p dir="auto">Usually, users create test components to test a component of a library that they wrote.<br>
However, if the component under test is an internal one and shouldn't be used by other users, the corresponding NgModule won't export that directive.<br>
The only way for a test component to use such a component under test is to duplicate the NgModule definition to be able to add the test component to the <code class="notranslate">declarations</code>. This leads to hard to maintain code.</p>
| 0 |
<p dir="auto">If I do the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ add-apt-repository 'deb http://example.com/ubuntu precise main'
$ add-apt-repository 'deb http://example.com/ubuntu precise-updates main'
"><pre class="notranslate"><code class="notranslate">$ add-apt-repository 'deb http://example.com/ubuntu precise main'
$ add-apt-repository 'deb http://example.com/ubuntu precise-updates main'
</code></pre></div>
<p dir="auto">I'll see the following in the sources.list:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="deb http://example.com/ubuntu precise main
deb-src http://example.com/ubuntu precise main
deb http://example.com/ubuntu precise-staging main
deb-src http://example.com/ubuntu precise-staging main"><pre class="notranslate"><code class="notranslate">deb http://example.com/ubuntu precise main
deb-src http://example.com/ubuntu precise main
deb http://example.com/ubuntu precise-staging main
deb-src http://example.com/ubuntu precise-staging main
</code></pre></div>
<p dir="auto">Yet, if I apply the following playbook:</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# Setup dependencies
---
- hosts: localhost
user: root
tasks:
- apt_repository: repo='deb http://example.com/ubuntu precise main'
- apt_repository: repo='deb http://example.com/ubuntu precise-updates main' "><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> Setup dependencies</span>
---
- <span class="pl-ent">hosts</span>: <span class="pl-s">localhost</span>
<span class="pl-ent">user</span>: <span class="pl-s">root</span>
<span class="pl-ent">tasks</span>:
- <span class="pl-ent">apt_repository</span>: <span class="pl-s">repo='deb http://example.com/ubuntu precise main'</span>
- <span class="pl-ent">apt_repository</span>: <span class="pl-s">repo='deb http://example.com/ubuntu precise-updates main' </span></pre></div>
<p dir="auto">then only the first deb-line is added. The output shows that ansible determines (in ...) that the second one already exists based on the url onl:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [apt_repository repo='deb http://example.com/ubuntu precise main'] ******
changed: [localhost]
TASK: [apt_repository repo='deb http://example.com/ubuntu precise-updates main'] ***
ok: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0 "><pre class="notranslate"><code class="notranslate">PLAY [localhost] **************************************************************
GATHERING FACTS ***************************************************************
ok: [localhost]
TASK: [apt_repository repo='deb http://example.com/ubuntu precise main'] ******
changed: [localhost]
TASK: [apt_repository repo='deb http://example.com/ubuntu precise-updates main'] ***
ok: [localhost]
PLAY RECAP ********************************************************************
localhost : ok=3 changed=1 unreachable=0 failed=0
</code></pre></div>
<p dir="auto">Looking at packaging/apt_repository:repo_exists seems to confirm that it's only checking the url of the debline.</p>
|
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/abergman/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/abergman">@abergman</a> on November 15, 2014 15:49</em></p>
<p dir="auto">Issue type: Bug report<br>
Ansible version: 1.7.2</p>
<p dir="auto">Component Name:<br>
vsphere_guest module</p>
<p dir="auto">Summary:<br>
vm_nic option in vsphere_guest does not reconfigure the networks a VM is connected to<br>
Steps To Reproduce:</p>
<p dir="auto">Have an existing VM connected to "VM Network".<br>
Run an ansible-playbook which reconfigures the VM to connect it to VM Network 2.</p>
<p dir="auto">Expected Results:</p>
<p dir="auto">The VM should be connected to VM Network 2.</p>
<p dir="auto">Actual Results:</p>
<p dir="auto">The VM is still connected to VM Network. Modifications to CPU/memory seem to work, but I am unable to use the vsphere_guest module to reconfigure a VM's networking.</p>
<p dir="auto">Thoughts:</p>
<p dir="auto">It looks like the entire code for adding a NIC to an existing VM is missing in vm_reconfigure, line 491.</p>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="48912908" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-core/issues/335" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-core/issues/335/hovercard" href="https://github.com/ansible/ansible-modules-core/issues/335">ansible/ansible-modules-core#335</a></em></p>
| 0 |
<p dir="auto"><code class="notranslate">DataFrame.drop_duplicates()</code> does not properly handle array objects returned by <code class="notranslate">DataFrame.columns</code> (whether or not you use <code class="notranslate">DataFrame.columns.values</code> to get a NumPy array). If you compute</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="list(DataFrame.columns.values)"><pre class="notranslate"><code class="notranslate">list(DataFrame.columns.values)
</code></pre></div>
<p dir="auto">then it works, but this is needless overkill, especially when dealing with a large number of columns. Below is an example from IPython.</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="In [71]: dfrm = pandas.DataFrame({"A":[1,2,1,2,1,2], "B":[3,4,3,4,3,4], "C":[1,2,1,2,1,3]})
In [72]: dfrm
Out[72]:
A B C
0 1 3 1
1 2 4 2
2 1 3 1
3 2 4 2
4 1 3 1
5 2 4 3
In [73]: dfrm.drop_duplicates(dfrm.columns)
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (882, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (6442, 0))
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
/home/espears/<ipython-input-73-bee9ee352073> in <module>()
----> 1 dfrm.drop_duplicates(dfrm.columns)
/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/frame.pyc in drop_duplicates(self, cols, take_last)
2254 deduplicated : DataFrame
2255 """
-> 2256 duplicated = self.duplicated(cols, take_last=take_last)
2257 return self[-duplicated]
2258
/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/frame.pyc in duplicated(self, cols, take_last)
2283
2284 duplicated = lib.duplicated(keys, take_last=take_last)
-> 2285 return Series(duplicated, index=self.index)
2286
2287 #----------------------------------------------------------------------
/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/series.pyc in __new__(cls, data, index, dtype, name, copy)
286 else:
287 subarr = subarr.view(Series)
--> 288 subarr.index = index
289 subarr.name = name
290
/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/_tseries.so in pandas._tseries.SeriesIndex.__set__ (pandas/src/tseries.c:73097)()
AssertionError: Index length did not match values
In [74]: dfrm.drop_duplicates(dfrm.columns.values)
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (882, 0))
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (6442, 0))
---------------------------------------------------------------------------
AssertionError Traceback (most recent call last)
/home/espears/<ipython-input-74-cb96df701a9b> in <module>()
----> 1 dfrm.drop_duplicates(dfrm.columns.values)
/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/frame.pyc in drop_duplicates(self, cols, take_last)
2254 deduplicated : DataFrame
2255 """
-> 2256 duplicated = self.duplicated(cols, take_last=take_last)
2257 return self[-duplicated]
2258
/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/frame.pyc in duplicated(self, cols, take_last)
2283
2284 duplicated = lib.duplicated(keys, take_last=take_last)
-> 2285 return Series(duplicated, index=self.index)
2286
2287 #----------------------------------------------------------------------
/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/series.pyc in __new__(cls, data, index, dtype, name, copy)
286 else:
287 subarr = subarr.view(Series)
--> 288 subarr.index = index
289 subarr.name = name
290
/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/_tseries.so in pandas._tseries.SeriesIndex.__set__ (pandas/src/tseries.c:73097)()
AssertionError: Index length did not match values
In [75]: dfrm.columns.values
Out[75]: array([A, B, C], dtype=object)
In [76]: list(dfrm.columns.values)
Out[76]: ['A', 'B', 'C']
In [77]: dfrm.drop_duplicates(list(dfrm.columns.values))
Out[77]:
A B C
0 1 3 1
1 2 4 2
5 2 4 3"><pre class="notranslate"><span class="pl-v">In</span> [<span class="pl-c1">71</span>]: <span class="pl-s1">dfrm</span> <span class="pl-c1">=</span> <span class="pl-s1">pandas</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">"A"</span>:[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>], <span class="pl-s">"B"</span>:[<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>,<span class="pl-c1">3</span>,<span class="pl-c1">4</span>], <span class="pl-s">"C"</span>:[<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>,<span class="pl-c1">2</span>,<span class="pl-c1">1</span>,<span class="pl-c1">3</span>]})
<span class="pl-v">In</span> [<span class="pl-c1">72</span>]: <span class="pl-s1">dfrm</span>
<span class="pl-v">Out</span>[<span class="pl-c1">72</span>]:
<span class="pl-v">A</span> <span class="pl-v">B</span> <span class="pl-v">C</span>
<span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span>
<span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">2</span>
<span class="pl-c1">2</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span>
<span class="pl-c1">3</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">2</span>
<span class="pl-c1">4</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span>
<span class="pl-c1">5</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">3</span>
<span class="pl-v">In</span> [<span class="pl-c1">73</span>]: <span class="pl-s1">dfrm</span>.<span class="pl-en">drop_duplicates</span>(<span class="pl-s1">dfrm</span>.<span class="pl-s1">columns</span>)
<span class="pl-v">ERROR</span>: <span class="pl-v">An</span> <span class="pl-s1">unexpected</span> <span class="pl-s1">error</span> <span class="pl-s1">occurred</span> <span class="pl-k">while</span> <span class="pl-s1">tokenizing</span> <span class="pl-s1">input</span>
<span class="pl-v">The</span> <span class="pl-s1">following</span> <span class="pl-s1">traceback</span> <span class="pl-s1">may</span> <span class="pl-s1">be</span> <span class="pl-s1">corrupted</span> <span class="pl-c1">or</span> <span class="pl-s1">invalid</span>
<span class="pl-v">The</span> <span class="pl-s1">error</span> <span class="pl-s1">message</span> <span class="pl-c1">is</span>: (<span class="pl-s">'EOF in multi-line statement'</span>, (<span class="pl-c1">882</span>, <span class="pl-c1">0</span>))
<span class="pl-v">ERROR</span>: <span class="pl-v">An</span> <span class="pl-s1">unexpected</span> <span class="pl-s1">error</span> <span class="pl-s1">occurred</span> <span class="pl-k">while</span> <span class="pl-s1">tokenizing</span> <span class="pl-s1">input</span>
<span class="pl-v">The</span> <span class="pl-s1">following</span> <span class="pl-s1">traceback</span> <span class="pl-s1">may</span> <span class="pl-s1">be</span> <span class="pl-s1">corrupted</span> <span class="pl-c1">or</span> <span class="pl-s1">invalid</span>
<span class="pl-v">The</span> <span class="pl-s1">error</span> <span class="pl-s1">message</span> <span class="pl-c1">is</span>: (<span class="pl-s">'EOF in multi-line statement'</span>, (<span class="pl-c1">6442</span>, <span class="pl-c1">0</span>))
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span>
<span class="pl-v">AssertionError</span> <span class="pl-v">Traceback</span> (<span class="pl-s1">most</span> <span class="pl-s1">recent</span> <span class="pl-s1">call</span> <span class="pl-s1">last</span>)
<span class="pl-c1">/</span><span class="pl-s1">home</span><span class="pl-c1">/</span><span class="pl-s1">espears</span><span class="pl-c1">/</span><span class="pl-c1"><</span><span class="pl-s1">ipython</span><span class="pl-c1">-</span><span class="pl-s1">input</span><span class="pl-c1">-</span><span class="pl-c1">73</span><span class="pl-c1">-</span><span class="pl-s1">bee9ee352073</span><span class="pl-c1">></span> <span class="pl-s1">in</span> <span class="pl-c1"><</span><span class="pl-s1">module</span><span class="pl-c1">></span>()
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">1</span> <span class="pl-s1">dfrm</span>.<span class="pl-en">drop_duplicates</span>(<span class="pl-s1">dfrm</span>.<span class="pl-s1">columns</span>)
<span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">epd</span><span class="pl-c1">/</span><span class="pl-c1">7.2</span><span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">frame</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">drop_duplicates</span>(<span class="pl-s1">self</span>, <span class="pl-s1">cols</span>, <span class="pl-s1">take_last</span>)
<span class="pl-c1">2254</span> <span class="pl-s1">deduplicated</span> : <span class="pl-v">DataFrame</span>
<span class="pl-c1">2255</span> <span class="pl-s">"""</span>
<span class="pl-s">-> 2256 duplicated = self.duplicated(cols, take_last=take_last)</span>
<span class="pl-s"> 2257 return self[-duplicated]</span>
<span class="pl-s"> 2258</span>
<span class="pl-s"></span>
<span class="pl-s">/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/frame.pyc in duplicated(self, cols, take_last)</span>
<span class="pl-s"> 2283</span>
<span class="pl-s"> 2284 duplicated = lib.duplicated(keys, take_last=take_last)</span>
<span class="pl-s">-> 2285 return Series(duplicated, index=self.index)</span>
<span class="pl-s"> 2286</span>
<span class="pl-s"> 2287 #----------------------------------------------------------------------</span>
<span class="pl-s"></span>
<span class="pl-s"></span>
<span class="pl-s">/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/series.pyc in __new__(cls, data, index, dtype, name, copy)</span>
<span class="pl-s"> 286 else:</span>
<span class="pl-s"> 287 subarr = subarr.view(Series)</span>
<span class="pl-s">--> 288 subarr.index = index</span>
<span class="pl-s"> 289 subarr.name = name</span>
<span class="pl-s"> 290</span>
<span class="pl-s"></span>
<span class="pl-s">/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/_tseries.so in pandas._tseries.SeriesIndex.__set__ (pandas/src/tseries.c:73097)()</span>
<span class="pl-s"></span>
<span class="pl-s">AssertionError: Index length did not match values</span>
<span class="pl-s"></span>
<span class="pl-s">In [74]: dfrm.drop_duplicates(dfrm.columns.values)</span>
<span class="pl-s">ERROR: An unexpected error occurred while tokenizing input</span>
<span class="pl-s">The following traceback may be corrupted or invalid</span>
<span class="pl-s">The error message is: ('EOF in multi-line statement', (882, 0))</span>
<span class="pl-s">ERROR: An unexpected error occurred while tokenizing input</span>
<span class="pl-s">The following traceback may be corrupted or invalid</span>
<span class="pl-s">The error message is: ('EOF in multi-line statement', (6442, 0))</span>
<span class="pl-s">---------------------------------------------------------------------------</span>
<span class="pl-s">AssertionError Traceback (most recent call last)</span>
<span class="pl-s">/home/espears/<ipython-input-74-cb96df701a9b> in <module>()</span>
<span class="pl-s">----> 1 dfrm.drop_duplicates(dfrm.columns.values)</span>
<span class="pl-s"></span>
<span class="pl-s">/opt/epd/7.2-1/lib/python2.7/site-packages/pandas/core/frame.pyc in drop_duplicates(self, cols, take_last)</span>
<span class="pl-s"> 2254 deduplicated : DataFrame</span>
<span class="pl-s"> 2255 """</span>
<span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">2256</span> <span class="pl-s1">duplicated</span> <span class="pl-c1">=</span> <span class="pl-s1">self</span>.<span class="pl-en">duplicated</span>(<span class="pl-s1">cols</span>, <span class="pl-s1">take_last</span><span class="pl-c1">=</span><span class="pl-s1">take_last</span>)
<span class="pl-c1">2257</span> <span class="pl-k">return</span> <span class="pl-s1">self</span>[<span class="pl-c1">-</span><span class="pl-s1">duplicated</span>]
<span class="pl-c1">2258</span>
<span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">epd</span><span class="pl-c1">/</span><span class="pl-c1">7.2</span><span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">frame</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">duplicated</span>(<span class="pl-s1">self</span>, <span class="pl-s1">cols</span>, <span class="pl-s1">take_last</span>)
<span class="pl-c1">2283</span>
<span class="pl-c1">2284</span> <span class="pl-s1">duplicated</span> <span class="pl-c1">=</span> <span class="pl-s1">lib</span>.<span class="pl-en">duplicated</span>(<span class="pl-s1">keys</span>, <span class="pl-s1">take_last</span><span class="pl-c1">=</span><span class="pl-s1">take_last</span>)
<span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">2285</span> <span class="pl-s1">return</span> <span class="pl-v">Series</span>(<span class="pl-s1">duplicated</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">self</span>.<span class="pl-s1">index</span>)
<span class="pl-c1">2286</span>
<span class="pl-c1">2287</span> <span class="pl-c">#----------------------------------------------------------------------</span>
<span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">epd</span><span class="pl-c1">/</span><span class="pl-c1">7.2</span><span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">core</span><span class="pl-c1">/</span><span class="pl-s1">series</span>.<span class="pl-s1">pyc</span> <span class="pl-c1">in</span> <span class="pl-en">__new__</span>(<span class="pl-s1">cls</span>, <span class="pl-s1">data</span>, <span class="pl-s1">index</span>, <span class="pl-s1">dtype</span>, <span class="pl-s1">name</span>, <span class="pl-s1">copy</span>)
<span class="pl-c1">286</span> <span class="pl-s1">else</span>:
<span class="pl-c1">287</span> <span class="pl-s1">subarr</span> <span class="pl-c1">=</span> <span class="pl-s1">subarr</span>.<span class="pl-en">view</span>(<span class="pl-v">Series</span>)
<span class="pl-c1">-</span><span class="pl-c1">-</span><span class="pl-c1">></span> <span class="pl-c1">288</span> <span class="pl-s1">subarr</span>.<span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">index</span>
<span class="pl-c1">289</span> <span class="pl-s1">subarr</span>.<span class="pl-s1">name</span> <span class="pl-c1">=</span> <span class="pl-s1">name</span>
<span class="pl-c1">290</span>
<span class="pl-c1">/</span><span class="pl-s1">opt</span><span class="pl-c1">/</span><span class="pl-s1">epd</span><span class="pl-c1">/</span><span class="pl-c1">7.2</span><span class="pl-c1">-</span><span class="pl-c1">1</span><span class="pl-c1">/</span><span class="pl-s1">lib</span><span class="pl-c1">/</span><span class="pl-s1">python2</span>.<span class="pl-c1">7</span><span class="pl-c1">/</span><span class="pl-s1">site</span><span class="pl-c1">-</span><span class="pl-s1">packages</span><span class="pl-c1">/</span><span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">_tseries</span>.<span class="pl-s1">so</span> <span class="pl-c1">in</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">_tseries</span>.<span class="pl-v">SeriesIndex</span>.<span class="pl-en">__set__</span> (<span class="pl-s1">pandas</span><span class="pl-c1">/</span><span class="pl-s1">src</span><span class="pl-c1">/</span><span class="pl-s1">tseries</span>.<span class="pl-s1">c</span>:<span class="pl-c1">73097</span>)()
<span class="pl-v">AssertionError</span>: <span class="pl-v">Index</span> <span class="pl-s1">length</span> <span class="pl-s1">did</span> <span class="pl-c1">not</span> <span class="pl-s1">match</span> <span class="pl-s1">values</span>
<span class="pl-v">In</span> [<span class="pl-c1">75</span>]: <span class="pl-s1">dfrm</span>.<span class="pl-s1">columns</span>.<span class="pl-s1">values</span>
<span class="pl-v">Out</span>[<span class="pl-c1">75</span>]: <span class="pl-en">array</span>([<span class="pl-v">A</span>, <span class="pl-v">B</span>, <span class="pl-v">C</span>], <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">object</span>)
<span class="pl-v">In</span> [<span class="pl-c1">76</span>]: <span class="pl-en">list</span>(<span class="pl-s1">dfrm</span>.<span class="pl-s1">columns</span>.<span class="pl-s1">values</span>)
<span class="pl-v">Out</span>[<span class="pl-c1">76</span>]: [<span class="pl-s">'A'</span>, <span class="pl-s">'B'</span>, <span class="pl-s">'C'</span>]
<span class="pl-v">In</span> [<span class="pl-c1">77</span>]: <span class="pl-s1">dfrm</span>.<span class="pl-en">drop_duplicates</span>(<span class="pl-en">list</span>(<span class="pl-s1">dfrm</span>.<span class="pl-s1">columns</span>.<span class="pl-s1">values</span>))
<span class="pl-v">Out</span>[<span class="pl-c1">77</span>]:
<span class="pl-v">A</span> <span class="pl-v">B</span> <span class="pl-v">C</span>
<span class="pl-c1">0</span> <span class="pl-c1">1</span> <span class="pl-c1">3</span> <span class="pl-c1">1</span>
<span class="pl-c1">1</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">2</span>
<span class="pl-c1">5</span> <span class="pl-c1">2</span> <span class="pl-c1">4</span> <span class="pl-c1">3</span></pre></div>
<p dir="auto">FWIW:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In [91]: pandas.__version__
Out[91]: '0.7.3'"><pre class="notranslate"><code class="notranslate">In [91]: pandas.__version__
Out[91]: '0.7.3'
</code></pre></div>
|
<p dir="auto">This was suggested by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/MaximilianR/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/MaximilianR">@MaximilianR</a> <a href="https://github.com/pandas-dev/pandas/issues/12392#issuecomment-186308548" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/12392/hovercard">here</a>, but <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jorisvandenbossche/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jorisvandenbossche">@jorisvandenbossche</a> (rightly) <a href="https://github.com/pandas-dev/pandas/issues/12392#issuecomment-186451899" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/12392/hovercard">proposed</a> to discuss separately.</p>
<p dir="auto">This is related to the discussion on <code class="notranslate">.rename</code> and <code class="notranslate">.rename_axis</code>'s signatures (see above), but touches a different issue. Currently, these two functions are confusing not just because they do the same thing, but also because they (each) do two <em>different</em> things (renaming axis/object name, and relabeling), and because they do not do the most obvious thing (relabeling by passing a list-like - since a list-like is assumed to refer to multiple names for a <code class="notranslate">MultiIndex</code>' levels).</p>
<p dir="auto">My proposal is the following:</p>
<ul dir="auto">
<li>add a new method <code class="notranslate">.relabel</code>, which changes the <em>content</em> of the axis, as in</li>
</ul>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="df.relabel(['l1', 'l2', 'l3']) # changes df.index labels - assuming df.index is flat
df.relabel([['l1a', 'l1b', 'l1c'], [...], [...]]) # changes df.index labels - assuming df.index has 3 levels
df.relabel(a_dict) # again, changes the index labels, analogously to what df.rename(a_dict) currently does"><pre class="notranslate"><span class="pl-s1">df</span>.<span class="pl-en">relabel</span>([<span class="pl-s">'l1'</span>, <span class="pl-s">'l2'</span>, <span class="pl-s">'l3'</span>]) <span class="pl-c"># changes df.index labels - assuming df.index is flat</span>
<span class="pl-s1">df</span>.<span class="pl-en">relabel</span>([[<span class="pl-s">'l1a'</span>, <span class="pl-s">'l1b'</span>, <span class="pl-s">'l1c'</span>], [...], [...]]) <span class="pl-c"># changes df.index labels - assuming df.index has 3 levels</span>
<span class="pl-s1">df</span>.<span class="pl-en">relabel</span>(<span class="pl-s1">a_dict</span>) <span class="pl-c"># again, changes the index labels, analogously to what df.rename(a_dict) currently does</span></pre></div>
<ul dir="auto">
<li>deprecate the use of <code class="notranslate">.rename</code> and <code class="notranslate">.rename_index</code> for doing the same operation, that is when the <code class="notranslate">index</code> or <code class="notranslate">mapper</code> argument (respectively) is a callable or dict-like; keep them (or, even better, keep one and deprecate the other) for changing only index names</li>
</ul>
<p dir="auto">Whether the signature of <code class="notranslate">.relabel</code> should follow the <code class="notranslate">axis=</code> or <code class="notranslate">index=</code>, <code class="notranslate">column=</code> standard will depend from the outcome of the discussion about <code class="notranslate">rename</code> and <code class="notranslate">rename_index</code> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="134767386" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/12392" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/12392/hovercard" href="https://github.com/pandas-dev/pandas/issues/12392">#12392</a>).</p>
| 0 |
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="nathan@jarvis ~/Development/projects/presence-rs $ RUST_BACKTRACE=1 cargo build --verbose
Fresh log v0.2.5
Fresh gcc v0.3.1
Fresh rustc-serialize v0.3.1
Fresh libc v0.1.2
Fresh websocket-stream v0.0.2
Fresh sha1 v0.0.7 (https://github.com/mitsuhiko/rust-sha1#d6a54754)
Fresh rand v0.1.4
Fresh time v0.1.19
Compiling presence v0.0.1 (file:///home/nathan/Development/projects/presence-rs)
Running `rustc src/main.rs --crate-name presence --crate-type bin -g --out-dir /home/nathan/Development/projects/presence-rs/target --emit=dep-info,link -L dependency=/home/nathan/Development/projects/presence-rs/target -L dependency=/home/nathan/Development/projects/presence-rs/target/deps --extern websocket-stream=/home/nathan/Development/projects/presence-rs/target/deps/libwebsocket-stream-34c135eedc7bbec4.rlib --extern sha1=/home/nathan/Development/projects/presence-rs/target/deps/libsha1-a2be330fbadef0c7.rlib --extern rand=/home/nathan/Development/projects/presence-rs/target/deps/librand-6dfe5258ada5ebf2.rlib --extern time=/home/nathan/Development/projects/presence-rs/target/deps/libtime-f5c2f62bb1bdf976.rlib --extern rustc-serialize=/home/nathan/Development/projects/presence-rs/target/deps/librustc-serialize-2aa16a9a901fcba8.rlib -L native=/home/nathan/Development/projects/presence-rs/target/build/time-f5c2f62bb1bdf976/out`
/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 18660, node: ExprStruct(Path { span: Span { lo: BytePos(4623140), hi: BytePos(4623151), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 18661, node: ExprPath(None, Path { span: Span { lo: BytePos(4623164), hi: BytePos(4623179), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4623164), hi: BytePos(4623179), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4623158), hi: BytePos(4623179), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 18662, node: ExprPath(None, Path { span: Span { lo: BytePos(4623193), hi: BytePos(4623210), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4623193), hi: BytePos(4623210), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4623185), hi: BytePos(4623210), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4623140), hi: BytePos(4623213), expn_id: ExpnId(4294967295) } })
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 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129
stack backtrace:
1: 0x7f2399a72f1f - sys::backtrace::write::hf79a3da4fdecb8a0OBA
2: 0x7f2399a9dc32 - panicking::on_panic::h9f64f4c69e19f194hHJ
3: 0x7f23999d2eda - rt::unwind::begin_unwind_inner::h37f4496c980fe936knJ
4: 0x7f2396e03abd - rt::unwind::begin_unwind::h8320268356453106285
5: 0x7f2396e03a63 - diagnostic::SpanHandler::span_bug::h83c8af232eaba6a9h0D
6: 0x7f23976dfca3 - session::Session::span_bug::h857b2c7ae23c9286ISp
7: 0x7f23991fd80c - trans::debuginfo::scope_metadata::hac54dfdbdcd04cd9SjE
8: 0x7f2399110408 - trans::debuginfo::set_source_location::h1067a74086ed9dd48MD
9: 0x7f23990c4e42 - trans::expr::trans_into::h95c6d2681fdd2548znh
10: 0x7f23990c5109 - trans::expr::trans_into::h95c6d2681fdd2548znh
11: 0x7f239912767f - trans::expr::trans_uniq_expr::h5f082eea62818f84ukj
12: 0x7f23991282ef - trans::expr::trans_unary::h4412379888608420Jgj
13: 0x7f239911280e - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
14: 0x7f23990c5417 - trans::expr::trans_into::h95c6d2681fdd2548znh
15: 0x7f23991456f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
16: 0x7f23991481af - trans::expr::trans_struct::closure.42069
17: 0x7f2399132016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
18: 0x7f239911453d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
19: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
20: 0x7f23990c6227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
21: 0x7f239919d821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
22: 0x7f23990aeb08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
23: 0x7f23990b05a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
24: 0x7f23990f5e4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
25: 0x7f23990f443e - trans::callee::trans_fn_ref::hb48e614c9b6dd9bcE9f
26: 0x7f23990f188d - trans::callee::trans::ha56f4fe94448e6baVYf
27: 0x7f2399107fbb - trans::callee::trans_call_inner::h9722042290657949952
28: 0x7f23991149e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
29: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
30: 0x7f23991456f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
31: 0x7f23991481af - trans::expr::trans_struct::closure.42069
32: 0x7f2399132016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
33: 0x7f239911453d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
34: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
35: 0x7f23991d5967 - trans::_match::mk_binding_alloca::h13035368140960659810
36: 0x7f23990c47fd - trans::base::init_local::h1e7c96bb7077440dczs
37: 0x7f23990c5f02 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
38: 0x7f239919d821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
39: 0x7f23990aeb08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
40: 0x7f23990b05a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
41: 0x7f23990f5e4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
42: 0x7f23990f443e - trans::callee::trans_fn_ref::hb48e614c9b6dd9bcE9f
43: 0x7f23990f188d - trans::callee::trans::ha56f4fe94448e6baVYf
44: 0x7f2399107fbb - trans::callee::trans_call_inner::h9722042290657949952
45: 0x7f23991149e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
46: 0x7f2399112668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
47: 0x7f23990c6b58 - trans::expr::trans::h23d7d0dd91a5190fHth
48: 0x7f23991039f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
49: 0x7f2399108ea0 - trans::callee::trans_call_inner::h9722042290657949952
50: 0x7f23991149e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
51: 0x7f2399112668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
52: 0x7f23990c6b58 - trans::expr::trans::h23d7d0dd91a5190fHth
53: 0x7f23991039f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
54: 0x7f2399108ea0 - trans::callee::trans_call_inner::h9722042290657949952
55: 0x7f23991149e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
56: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
57: 0x7f23991d5967 - trans::_match::mk_binding_alloca::h13035368140960659810
58: 0x7f23990c47fd - trans::base::init_local::h1e7c96bb7077440dczs
59: 0x7f23990c5f02 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
60: 0x7f2399113f7e - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
61: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
62: 0x7f23991bddf0 - trans::_match::trans_match_inner::hed8323987dcd430bCIw
63: 0x7f2399113f22 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
64: 0x7f2399112668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
65: 0x7f23990c6b58 - trans::expr::trans::h23d7d0dd91a5190fHth
66: 0x7f23990c48d2 - trans::base::init_local::h1e7c96bb7077440dczs
67: 0x7f23990c5f02 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
68: 0x7f239919d821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
69: 0x7f23990aeb08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
70: 0x7f23990b05a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
71: 0x7f23990f5e4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
72: 0x7f239910dea5 - trans::meth::trans_method_callee::h560647f9622b6732N6x
73: 0x7f23991098e9 - trans::callee::trans_call_inner::h3649553240631627052
74: 0x7f2399113789 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
75: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
76: 0x7f23990c6227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
77: 0x7f239919d821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
78: 0x7f23990aeb08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
79: 0x7f23990ab241 - trans::base::trans_item::h48fc370b7d259ac7vTt
80: 0x7f23990ab078 - trans::base::trans_item::h48fc370b7d259ac7vTt
81: 0x7f23991a67ec - trans::base::trans_crate::hc92be67ede893c70GPu
82: 0x7f239a0abe83 - driver::phase_4_translate_to_llvm::h9904f5d5fc3fb761rNa
83: 0x7f239a08783f - driver::compile_input::h3913ff7013f0c056Iba
84: 0x7f239a14fcb7 - run_compiler::h28a4446bae1034e7H5b
85: 0x7f239a14d829 - thunk::F.Invoke<A, R>::invoke::h6503055919709693733
86: 0x7f239a14c4a0 - rt::unwind::try::try_fn::h1384674024000742916
87: 0x7f2399b0dde8 - rust_try_inner
88: 0x7f2399b0ddd5 - rust_try
89: 0x7f239a14cc3f - thunk::F.Invoke<A, R>::invoke::h5780663349966142752
90: 0x7f2399a88965 - sys::thread::thread_start::h4ab695857833a5dar8E
91: 0x7f23938e3181 - start_thread
92: 0x7f239964347c - __clone
93: 0x0 - <unknown>
Could not compile `presence`.
Caused by:
Process didn't exit successfully: `rustc src/main.rs --crate-name presence --crate-type bin -g --out-dir /home/nathan/Development/projects/presence-rs/target --emit=dep-info,link -L dependency=/home/nathan/Development/projects/presence-rs/target -L dependency=/home/nathan/Development/projects/presence-rs/target/deps --extern websocket-stream=/home/nathan/Development/projects/presence-rs/target/deps/libwebsocket-stream-34c135eedc7bbec4.rlib --extern sha1=/home/nathan/Development/projects/presence-rs/target/deps/libsha1-a2be330fbadef0c7.rlib --extern rand=/home/nathan/Development/projects/presence-rs/target/deps/librand-6dfe5258ada5ebf2.rlib --extern time=/home/nathan/Development/projects/presence-rs/target/deps/libtime-f5c2f62bb1bdf976.rlib --extern rustc-serialize=/home/nathan/Development/projects/presence-rs/target/deps/librustc-serialize-2aa16a9a901fcba8.rlib -L native=/home/nathan/Development/projects/presence-rs/target/build/time-f5c2f62bb1bdf976/out` (exit code: 101)"><pre class="notranslate"><code class="notranslate">nathan@jarvis ~/Development/projects/presence-rs $ RUST_BACKTRACE=1 cargo build --verbose
Fresh log v0.2.5
Fresh gcc v0.3.1
Fresh rustc-serialize v0.3.1
Fresh libc v0.1.2
Fresh websocket-stream v0.0.2
Fresh sha1 v0.0.7 (https://github.com/mitsuhiko/rust-sha1#d6a54754)
Fresh rand v0.1.4
Fresh time v0.1.19
Compiling presence v0.0.1 (file:///home/nathan/Development/projects/presence-rs)
Running `rustc src/main.rs --crate-name presence --crate-type bin -g --out-dir /home/nathan/Development/projects/presence-rs/target --emit=dep-info,link -L dependency=/home/nathan/Development/projects/presence-rs/target -L dependency=/home/nathan/Development/projects/presence-rs/target/deps --extern websocket-stream=/home/nathan/Development/projects/presence-rs/target/deps/libwebsocket-stream-34c135eedc7bbec4.rlib --extern sha1=/home/nathan/Development/projects/presence-rs/target/deps/libsha1-a2be330fbadef0c7.rlib --extern rand=/home/nathan/Development/projects/presence-rs/target/deps/librand-6dfe5258ada5ebf2.rlib --extern time=/home/nathan/Development/projects/presence-rs/target/deps/libtime-f5c2f62bb1bdf976.rlib --extern rustc-serialize=/home/nathan/Development/projects/presence-rs/target/deps/librustc-serialize-2aa16a9a901fcba8.rlib -L native=/home/nathan/Development/projects/presence-rs/target/build/time-f5c2f62bb1bdf976/out`
/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 18660, node: ExprStruct(Path { span: Span { lo: BytePos(4623140), hi: BytePos(4623151), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 18661, node: ExprPath(None, Path { span: Span { lo: BytePos(4623164), hi: BytePos(4623179), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4623164), hi: BytePos(4623179), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4623158), hi: BytePos(4623179), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 18662, node: ExprPath(None, Path { span: Span { lo: BytePos(4623193), hi: BytePos(4623210), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4623193), hi: BytePos(4623210), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4623185), hi: BytePos(4623210), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4623140), hi: BytePos(4623213), expn_id: ExpnId(4294967295) } })
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 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129
stack backtrace:
1: 0x7f2399a72f1f - sys::backtrace::write::hf79a3da4fdecb8a0OBA
2: 0x7f2399a9dc32 - panicking::on_panic::h9f64f4c69e19f194hHJ
3: 0x7f23999d2eda - rt::unwind::begin_unwind_inner::h37f4496c980fe936knJ
4: 0x7f2396e03abd - rt::unwind::begin_unwind::h8320268356453106285
5: 0x7f2396e03a63 - diagnostic::SpanHandler::span_bug::h83c8af232eaba6a9h0D
6: 0x7f23976dfca3 - session::Session::span_bug::h857b2c7ae23c9286ISp
7: 0x7f23991fd80c - trans::debuginfo::scope_metadata::hac54dfdbdcd04cd9SjE
8: 0x7f2399110408 - trans::debuginfo::set_source_location::h1067a74086ed9dd48MD
9: 0x7f23990c4e42 - trans::expr::trans_into::h95c6d2681fdd2548znh
10: 0x7f23990c5109 - trans::expr::trans_into::h95c6d2681fdd2548znh
11: 0x7f239912767f - trans::expr::trans_uniq_expr::h5f082eea62818f84ukj
12: 0x7f23991282ef - trans::expr::trans_unary::h4412379888608420Jgj
13: 0x7f239911280e - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
14: 0x7f23990c5417 - trans::expr::trans_into::h95c6d2681fdd2548znh
15: 0x7f23991456f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
16: 0x7f23991481af - trans::expr::trans_struct::closure.42069
17: 0x7f2399132016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
18: 0x7f239911453d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
19: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
20: 0x7f23990c6227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
21: 0x7f239919d821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
22: 0x7f23990aeb08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
23: 0x7f23990b05a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
24: 0x7f23990f5e4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
25: 0x7f23990f443e - trans::callee::trans_fn_ref::hb48e614c9b6dd9bcE9f
26: 0x7f23990f188d - trans::callee::trans::ha56f4fe94448e6baVYf
27: 0x7f2399107fbb - trans::callee::trans_call_inner::h9722042290657949952
28: 0x7f23991149e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
29: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
30: 0x7f23991456f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
31: 0x7f23991481af - trans::expr::trans_struct::closure.42069
32: 0x7f2399132016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
33: 0x7f239911453d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
34: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
35: 0x7f23991d5967 - trans::_match::mk_binding_alloca::h13035368140960659810
36: 0x7f23990c47fd - trans::base::init_local::h1e7c96bb7077440dczs
37: 0x7f23990c5f02 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
38: 0x7f239919d821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
39: 0x7f23990aeb08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
40: 0x7f23990b05a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
41: 0x7f23990f5e4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
42: 0x7f23990f443e - trans::callee::trans_fn_ref::hb48e614c9b6dd9bcE9f
43: 0x7f23990f188d - trans::callee::trans::ha56f4fe94448e6baVYf
44: 0x7f2399107fbb - trans::callee::trans_call_inner::h9722042290657949952
45: 0x7f23991149e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
46: 0x7f2399112668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
47: 0x7f23990c6b58 - trans::expr::trans::h23d7d0dd91a5190fHth
48: 0x7f23991039f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
49: 0x7f2399108ea0 - trans::callee::trans_call_inner::h9722042290657949952
50: 0x7f23991149e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
51: 0x7f2399112668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
52: 0x7f23990c6b58 - trans::expr::trans::h23d7d0dd91a5190fHth
53: 0x7f23991039f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
54: 0x7f2399108ea0 - trans::callee::trans_call_inner::h9722042290657949952
55: 0x7f23991149e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
56: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
57: 0x7f23991d5967 - trans::_match::mk_binding_alloca::h13035368140960659810
58: 0x7f23990c47fd - trans::base::init_local::h1e7c96bb7077440dczs
59: 0x7f23990c5f02 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
60: 0x7f2399113f7e - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
61: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
62: 0x7f23991bddf0 - trans::_match::trans_match_inner::hed8323987dcd430bCIw
63: 0x7f2399113f22 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
64: 0x7f2399112668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
65: 0x7f23990c6b58 - trans::expr::trans::h23d7d0dd91a5190fHth
66: 0x7f23990c48d2 - trans::base::init_local::h1e7c96bb7077440dczs
67: 0x7f23990c5f02 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
68: 0x7f239919d821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
69: 0x7f23990aeb08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
70: 0x7f23990b05a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
71: 0x7f23990f5e4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
72: 0x7f239910dea5 - trans::meth::trans_method_callee::h560647f9622b6732N6x
73: 0x7f23991098e9 - trans::callee::trans_call_inner::h3649553240631627052
74: 0x7f2399113789 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
75: 0x7f23990c53f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
76: 0x7f23990c6227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
77: 0x7f239919d821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
78: 0x7f23990aeb08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
79: 0x7f23990ab241 - trans::base::trans_item::h48fc370b7d259ac7vTt
80: 0x7f23990ab078 - trans::base::trans_item::h48fc370b7d259ac7vTt
81: 0x7f23991a67ec - trans::base::trans_crate::hc92be67ede893c70GPu
82: 0x7f239a0abe83 - driver::phase_4_translate_to_llvm::h9904f5d5fc3fb761rNa
83: 0x7f239a08783f - driver::compile_input::h3913ff7013f0c056Iba
84: 0x7f239a14fcb7 - run_compiler::h28a4446bae1034e7H5b
85: 0x7f239a14d829 - thunk::F.Invoke<A, R>::invoke::h6503055919709693733
86: 0x7f239a14c4a0 - rt::unwind::try::try_fn::h1384674024000742916
87: 0x7f2399b0dde8 - rust_try_inner
88: 0x7f2399b0ddd5 - rust_try
89: 0x7f239a14cc3f - thunk::F.Invoke<A, R>::invoke::h5780663349966142752
90: 0x7f2399a88965 - sys::thread::thread_start::h4ab695857833a5dar8E
91: 0x7f23938e3181 - start_thread
92: 0x7f239964347c - __clone
93: 0x0 - <unknown>
Could not compile `presence`.
Caused by:
Process didn't exit successfully: `rustc src/main.rs --crate-name presence --crate-type bin -g --out-dir /home/nathan/Development/projects/presence-rs/target --emit=dep-info,link -L dependency=/home/nathan/Development/projects/presence-rs/target -L dependency=/home/nathan/Development/projects/presence-rs/target/deps --extern websocket-stream=/home/nathan/Development/projects/presence-rs/target/deps/libwebsocket-stream-34c135eedc7bbec4.rlib --extern sha1=/home/nathan/Development/projects/presence-rs/target/deps/libsha1-a2be330fbadef0c7.rlib --extern rand=/home/nathan/Development/projects/presence-rs/target/deps/librand-6dfe5258ada5ebf2.rlib --extern time=/home/nathan/Development/projects/presence-rs/target/deps/libtime-f5c2f62bb1bdf976.rlib --extern rustc-serialize=/home/nathan/Development/projects/presence-rs/target/deps/librustc-serialize-2aa16a9a901fcba8.rlib -L native=/home/nathan/Development/projects/presence-rs/target/build/time-f5c2f62bb1bdf976/out` (exit code: 101)
</code></pre></div>
<p dir="auto">Compiler info...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc --version
rustc 1.0.0-nightly (3b3bb0e68 2015-03-04) (built 2015-03-05)"><pre class="notranslate"><code class="notranslate">rustc --version
rustc 1.0.0-nightly (3b3bb0e68 2015-03-04) (built 2015-03-05)
</code></pre></div>
<p dir="auto">Code has been compiling for the past week or so, today I get this. Do not know exactly which section of the code base is causing the error? Let me know if there are anymore flags I can set to get more information out of the compiler...</p>
|
<p dir="auto">Received the following error while compiling a test application in rust. If this looks like a geuine error I can provide source, stack traces, etc. if needed.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/uuser/Tools/rust/rust_dev/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 4974, node: ExprStruct(Path { span: Span { lo: BytePos(4553404), hi: BytePos(4553415), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 4975, node: ExprPath(None, Path { span: Span { lo: BytePos(4553428), hi: BytePos(4553443), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4553428), hi: BytePos(4553443), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553422), hi: BytePos(4553443), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 4976, node: ExprPath(None, Path { span: Span { lo: BytePos(4553457), hi: BytePos(4553474), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4553457), hi: BytePos(4553474), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553449), hi: BytePos(4553474), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4553404), hi: BytePos(4553477), expn_id: ExpnId(4294967295) } })
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 'Box<Any>', /home/uuser/Tools/rust/rust_dev/src/libsyntax/diagnostic.rs:129"><pre class="notranslate"><code class="notranslate">/home/uuser/Tools/rust/rust_dev/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 4974, node: ExprStruct(Path { span: Span { lo: BytePos(4553404), hi: BytePos(4553415), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 4975, node: ExprPath(None, Path { span: Span { lo: BytePos(4553428), hi: BytePos(4553443), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4553428), hi: BytePos(4553443), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553422), hi: BytePos(4553443), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 4976, node: ExprPath(None, Path { span: Span { lo: BytePos(4553457), hi: BytePos(4553474), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4553457), hi: BytePos(4553474), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4553449), hi: BytePos(4553474), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4553404), hi: BytePos(4553477), expn_id: ExpnId(4294967295) } })
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 'Box<Any>', /home/uuser/Tools/rust/rust_dev/src/libsyntax/diagnostic.rs:129
</code></pre></div>
| 1 |
<p dir="auto">Is there any way to prevent Visual Studio form auto-formatting html onto one line?</p>
<p dir="auto">For example</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div ng-repeat="item in items"
ng-class="item.classes"
ng-init="i = $index">
</div>"><pre class="notranslate"><code class="notranslate"><div ng-repeat="item in items"
ng-class="item.classes"
ng-init="i = $index">
</div>
</code></pre></div>
<p dir="auto">Gets auto-formatted to:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<div ng-repeat="item in items" ng-class="item.classes" ng-init="i = $index">
</div>"><pre class="notranslate"><code class="notranslate"><div ng-repeat="item in items" ng-class="item.classes" ng-init="i = $index">
</div>
</code></pre></div>
<p dir="auto">This seems unreasonably opinionated, especially since many frameworks these days take advantage of element attributes. It's not nice to have 5+ attributes on one line and is the reason I've avoided auto-formatting my html, as much as I would REALLY like to be able to.</p>
|
<p dir="auto">HTML Formatting ideally should have a feature to separate attributes on new lines when using <code class="notranslate">format code</code>.</p>
<p dir="auto">e.g.</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<my-hero-list [heroes]="heroes" (selectHero)="onSelect($event)" class="nav"></my-hero-list>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">my-hero-list</span> <span class="pl-c1">[heroes]</span>="<span class="pl-s">heroes</span>" <span class="pl-c1">(selectHero)</span>="<span class="pl-s">onSelect($event)</span>" <span class="pl-c1">class</span>="<span class="pl-s">nav</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">my-hero-list</span><span class="pl-kos">></span></pre></div>
<p dir="auto">When using format code should be formatted as:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<my-hero-list [heroes]="heroes"
(selectHero)="onSelect($event)"
class="nav">
</my-hero-list>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">my-hero-list</span> <span class="pl-c1">[heroes]</span>="<span class="pl-s">heroes</span>"
<span class="pl-c1">(selectHero)</span>="<span class="pl-s">onSelect($event)</span>"
<span class="pl-c1">class</span>="<span class="pl-s">nav</span>"<span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">my-hero-list</span><span class="pl-kos">></span></pre></div>
| 1 |
<p dir="auto">For a future metaprogramming module, I would like to have a <code class="notranslate">deparse(ex::Expr)</code> function that produces a reasonable string that could have been parsed to produce <code class="notranslate">ex</code>. I implemented a simplistic version of this in the Calculus package to make the results of symbolic differentiation more readable:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="function deparse(ex::Expr)
if ex.head != :call
return string(ex)
else
if contains([:+, :-, :*, :/, :^], ex.args[1])
if length(ex.args) == 2
return strcat(ex.args[1], deparse(ex.args[2]))
else
return join(map(x -> deparse(x), ex.args[2:end]),
strcat(" ", string(ex.args[1]), " "))
end
else
return strcat(ex.args[1],
"(",
join(map(x -> deparse(x), ex.args[2:end]), ", "),
")")
end
end
end
deparse(other::Any) = string(other)"><pre class="notranslate"><code class="notranslate">function deparse(ex::Expr)
if ex.head != :call
return string(ex)
else
if contains([:+, :-, :*, :/, :^], ex.args[1])
if length(ex.args) == 2
return strcat(ex.args[1], deparse(ex.args[2]))
else
return join(map(x -> deparse(x), ex.args[2:end]),
strcat(" ", string(ex.args[1]), " "))
end
else
return strcat(ex.args[1],
"(",
join(map(x -> deparse(x), ex.args[2:end]), ", "),
")")
end
end
end
deparse(other::Any) = string(other)
</code></pre></div>
|
<p dir="auto">Hi everyone,</p>
<p dir="auto">I occasionally get a certain type of error upon calling "using [Package Name]" that crashes Julia. This error occurs at unpredictable timings; I would use a basic package during one session, but suddenly be prevented from loading it at all during the next session.</p>
<p dir="auto">For example,</p>
<p dir="auto">If I call<br>
<code class="notranslate">using Plots</code><br>
I would get the following:</p>
<p dir="auto"><code class="notranslate">[ Info: Recompiling stale cache file C:\Users\karen\.julia\compiled\v1.0\Plots\ld3vC.ji for Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] </code></p>
<p dir="auto">and then after a while, the error:</p>
<p dir="auto"><code class="notranslate">Exception: EXCEPTION_ACCESS_VIOLATION at 0x6b6496af -- jl_compile_linfo at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1191 in expression starting at no file:0 jl_compile_linfo at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1191 emit_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3094 emit_expr at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3893 emit_ssaval_assign at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3615 emit_stmtpos at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3801 [inlined] emit_function at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:6262 jl_compile_linfo at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1159 emit_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3094 emit_expr at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3893 emit_ssaval_assign at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3615 emit_stmtpos at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3801 [inlined] emit_function at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:6262 jl_compile_linfo at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1159 emit_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3094 emit_expr at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3893 emit_ssaval_assign at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3615 emit_stmtpos at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3801 [inlined] emit_function at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:6262 jl_compile_linfo at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1159 emit_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3094 emit_expr at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3893 emit_ssaval_assign at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3615 emit_stmtpos at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3801 [inlined] emit_function at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:6262 jl_compile_linfo at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1159 emit_invoke at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3094 emit_expr at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3893 emit_ssaval_assign at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3615 emit_stmtpos at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:3801 [inlined] emit_function at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:6262 jl_compile_linfo at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\codegen.cpp:1159 jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1774 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2162 wsitem at C:\Users\karen\.julia\packages\Atom\9h5Up\src\workspace.jl:22 wsitem at C:\Users\karen\.julia\packages\Atom\9h5Up\src\workspace.jl:19 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2162 #255 at C:\Users\karen\.julia\packages\Atom\9h5Up\src\workspace.jl:8 _collect at .\generator.jl:47 map at .\array.jl:561 [inlined] workspace at C:\Users\karen\.julia\packages\Atom\9h5Up\src\workspace.jl:8 jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1809 jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2162 handlemsg at C:\Users\karen\.julia\packages\Atom\9h5Up\src\comm.jl:169 unknown function (ip: 00000000144AE923) jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2162 jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1537 [inlined] jl_f__apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\builtins.c:556 #31 at .\task.jl:259 unknown function (ip: 0000000001E126DA) jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2162 jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1537 [inlined] start_task at /home/Administrator/buildbot/worker/package_win64/build/src/home/Administrator/buildbot/worker/package_win64/build/src\task.c:268 Allocations: 70192196 (Pool: 70176962; Big: 15234); GC: 150 </code></p>
<p dir="auto">Then Julia exits. I load the package again, then get the same errors...<br>
(All other commands not involving loading packages work as normal.)</p>
<p dir="auto">Again, I cannot think of what is causing this recurring problem. Previously, simply rebooting Atom or updating packages got rid of the error; that didn't work today but deleting/recompiling ~/.julia/registries/General has fixed it, at least for now.</p>
<p dir="auto">I realize that this report is quite vague / not generally reproducible, but any ideas on what could be the cause, and perhaps a permanent solution?</p>
<p dir="auto">Thank you!</p>
| 0 |
<p dir="auto">Giving the malformed URL <code class="notranslate">http://.com</code> should lead to <code class="notranslate">InvalidURL</code> but results in a misleading <code class="notranslate">UnicodeError</code>.</p>
<h2 dir="auto">Expected Result</h2>
<p dir="auto">Should raise <code class="notranslate">InvalidURL</code>.</p>
<h2 dir="auto">Actual Result</h2>
<p dir="auto">Raises <code class="notranslate">UnicodeError</code>.</p>
<h2 dir="auto">Reproduction Steps</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests
requests.get("https://.com")"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span>
<span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">"https://.com"</span>)</pre></div>
<p dir="auto">results in:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
UnicodeError Traceback (most recent call last)
~/miniconda3/lib/python3.7/encodings/idna.py in encode(self, input, errors)
164 if not (0 < len(label) < 64):
--> 165 raise UnicodeError("label empty or too long")
166 if len(labels[-1]) >= 64:
UnicodeError: label empty or too long
The above exception was the direct cause of the following exception:
UnicodeError Traceback (most recent call last)
<ipython-input-33-45504cf090ae> in <module>
----> 1 requests.get('http://.com')
~/miniconda3/lib/python3.7/site-packages/requests/api.py in get(url, params, **kwargs)
73
74 kwargs.setdefault('allow_redirects', True)
---> 75 return request('get', url, params=params, **kwargs)
76
77
~/miniconda3/lib/python3.7/site-packages/requests/api.py in request(method, url, **kwargs)
58 # cases, and look like a memory leak in others.
59 with sessions.Session() as session:
---> 60 return session.request(method=method, url=url, **kwargs)
61
62
~/miniconda3/lib/python3.7/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
531 }
532 send_kwargs.update(settings)
--> 533 resp = self.send(prep, **send_kwargs)
534
535 return resp
~/miniconda3/lib/python3.7/site-packages/requests/sessions.py in send(self, request, **kwargs)
644
645 # Send the request
--> 646 r = adapter.send(request, **kwargs)
647
648 # Total elapsed time of the request (approximately)
~/miniconda3/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
447 decode_content=False,
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
451
~/miniconda3/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
598 timeout=timeout_obj,
599 body=body, headers=headers,
--> 600 chunked=chunked)
601
602 # If we're going to release the connection in ``finally:``, then
~/miniconda3/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
352 conn.request_chunked(method, url, **httplib_request_kw)
353 else:
--> 354 conn.request(method, url, **httplib_request_kw)
355
356 # Reset the timeout for the recv() on the socket
~/miniconda3/lib/python3.7/http/client.py in request(self, method, url, body, headers, encode_chunked)
1227 encode_chunked=False):
1228 """Send a complete request to the server."""
-> 1229 self._send_request(method, url, body, headers, encode_chunked)
1230
1231 def _send_request(self, method, url, body, headers, encode_chunked):
~/miniconda3/lib/python3.7/http/client.py in _send_request(self, method, url, body, headers, encode_chunked)
1273 # default charset of iso-8859-1.
1274 body = _encode(body, 'body')
-> 1275 self.endheaders(body, encode_chunked=encode_chunked)
1276
1277 def getresponse(self):
~/miniconda3/lib/python3.7/http/client.py in endheaders(self, message_body, encode_chunked)
1222 else:
1223 raise CannotSendHeader()
-> 1224 self._send_output(message_body, encode_chunked=encode_chunked)
1225
1226 def request(self, method, url, body=None, headers={}, *,
~/miniconda3/lib/python3.7/http/client.py in _send_output(self, message_body, encode_chunked)
1014 msg = b"\r\n".join(self._buffer)
1015 del self._buffer[:]
-> 1016 self.send(msg)
1017
1018 if message_body is not None:
~/miniconda3/lib/python3.7/http/client.py in send(self, data)
954 if self.sock is None:
955 if self.auto_open:
--> 956 self.connect()
957 else:
958 raise NotConnected()
~/miniconda3/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
179
180 def connect(self):
--> 181 conn = self._new_conn()
182 self._prepare_conn(conn)
183
~/miniconda3/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
157 try:
158 conn = connection.create_connection(
--> 159 (self._dns_host, self.port), self.timeout, **extra_kw)
160
161 except SocketTimeout:
~/miniconda3/lib/python3.7/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
55 family = allowed_gai_family()
56
---> 57 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
58 af, socktype, proto, canonname, sa = res
59 sock = None
~/miniconda3/lib/python3.7/socket.py in getaddrinfo(host, port, family, type, proto, flags)
746 # and socket type values to enum constants.
747 addrlist = []
--> 748 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
749 af, socktype, proto, canonname, sa = res
750 addrlist.append((_intenum_converter(af, AddressFamily),
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
UnicodeError Traceback (most recent call last)
~/miniconda3/lib/python3.7/encodings/idna.py in encode(self, input, errors)
164 if not (0 < len(label) < 64):
--> 165 raise UnicodeError("label empty or too long")
166 if len(labels[-1]) >= 64:
UnicodeError: label empty or too long
The above exception was the direct cause of the following exception:
UnicodeError Traceback (most recent call last)
<ipython-input-33-45504cf090ae> in <module>
----> 1 requests.get('http://.com')
~/miniconda3/lib/python3.7/site-packages/requests/api.py in get(url, params, **kwargs)
73
74 kwargs.setdefault('allow_redirects', True)
---> 75 return request('get', url, params=params, **kwargs)
76
77
~/miniconda3/lib/python3.7/site-packages/requests/api.py in request(method, url, **kwargs)
58 # cases, and look like a memory leak in others.
59 with sessions.Session() as session:
---> 60 return session.request(method=method, url=url, **kwargs)
61
62
~/miniconda3/lib/python3.7/site-packages/requests/sessions.py in request(self, method, url, params, data, headers, cookies, files, auth, timeout, allow_redirects, proxies, hooks, stream, verify, cert, json)
531 }
532 send_kwargs.update(settings)
--> 533 resp = self.send(prep, **send_kwargs)
534
535 return resp
~/miniconda3/lib/python3.7/site-packages/requests/sessions.py in send(self, request, **kwargs)
644
645 # Send the request
--> 646 r = adapter.send(request, **kwargs)
647
648 # Total elapsed time of the request (approximately)
~/miniconda3/lib/python3.7/site-packages/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
447 decode_content=False,
448 retries=self.max_retries,
--> 449 timeout=timeout
450 )
451
~/miniconda3/lib/python3.7/site-packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, chunked, body_pos, **response_kw)
598 timeout=timeout_obj,
599 body=body, headers=headers,
--> 600 chunked=chunked)
601
602 # If we're going to release the connection in ``finally:``, then
~/miniconda3/lib/python3.7/site-packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, chunked, **httplib_request_kw)
352 conn.request_chunked(method, url, **httplib_request_kw)
353 else:
--> 354 conn.request(method, url, **httplib_request_kw)
355
356 # Reset the timeout for the recv() on the socket
~/miniconda3/lib/python3.7/http/client.py in request(self, method, url, body, headers, encode_chunked)
1227 encode_chunked=False):
1228 """Send a complete request to the server."""
-> 1229 self._send_request(method, url, body, headers, encode_chunked)
1230
1231 def _send_request(self, method, url, body, headers, encode_chunked):
~/miniconda3/lib/python3.7/http/client.py in _send_request(self, method, url, body, headers, encode_chunked)
1273 # default charset of iso-8859-1.
1274 body = _encode(body, 'body')
-> 1275 self.endheaders(body, encode_chunked=encode_chunked)
1276
1277 def getresponse(self):
~/miniconda3/lib/python3.7/http/client.py in endheaders(self, message_body, encode_chunked)
1222 else:
1223 raise CannotSendHeader()
-> 1224 self._send_output(message_body, encode_chunked=encode_chunked)
1225
1226 def request(self, method, url, body=None, headers={}, *,
~/miniconda3/lib/python3.7/http/client.py in _send_output(self, message_body, encode_chunked)
1014 msg = b"\r\n".join(self._buffer)
1015 del self._buffer[:]
-> 1016 self.send(msg)
1017
1018 if message_body is not None:
~/miniconda3/lib/python3.7/http/client.py in send(self, data)
954 if self.sock is None:
955 if self.auto_open:
--> 956 self.connect()
957 else:
958 raise NotConnected()
~/miniconda3/lib/python3.7/site-packages/urllib3/connection.py in connect(self)
179
180 def connect(self):
--> 181 conn = self._new_conn()
182 self._prepare_conn(conn)
183
~/miniconda3/lib/python3.7/site-packages/urllib3/connection.py in _new_conn(self)
157 try:
158 conn = connection.create_connection(
--> 159 (self._dns_host, self.port), self.timeout, **extra_kw)
160
161 except SocketTimeout:
~/miniconda3/lib/python3.7/site-packages/urllib3/util/connection.py in create_connection(address, timeout, source_address, socket_options)
55 family = allowed_gai_family()
56
---> 57 for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
58 af, socktype, proto, canonname, sa = res
59 sock = None
~/miniconda3/lib/python3.7/socket.py in getaddrinfo(host, port, family, type, proto, flags)
746 # and socket type values to enum constants.
747 addrlist = []
--> 748 for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
749 af, socktype, proto, canonname, sa = res
750 addrlist.append((_intenum_converter(af, AddressFamily),
UnicodeError: encoding with 'idna' codec failed (UnicodeError: label empty or too long)
</code></pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="➔ python -m requests.help
{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": "2.7"
},
"idna": {
"version": "2.7"
},
"implementation": {
"name": "CPython",
"version": "3.7.3"
},
"platform": {
"release": "19.4.0",
"system": "Darwin"
},
"pyOpenSSL": {
"openssl_version": "1010103f",
"version": "19.0.0"
},
"requests": {
"version": "2.20.1"
},
"system_ssl": {
"version": "1010103f"
},
"urllib3": {
"version": "1.24.3"
},
"using_pyopenssl": true
}"><pre class="notranslate"><code class="notranslate">➔ python -m requests.help
{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": "2.7"
},
"idna": {
"version": "2.7"
},
"implementation": {
"name": "CPython",
"version": "3.7.3"
},
"platform": {
"release": "19.4.0",
"system": "Darwin"
},
"pyOpenSSL": {
"openssl_version": "1010103f",
"version": "19.0.0"
},
"requests": {
"version": "2.20.1"
},
"system_ssl": {
"version": "1010103f"
},
"urllib3": {
"version": "1.24.3"
},
"using_pyopenssl": true
}
</code></pre></div>
|
<p dir="auto">Trying to use a Session object to have a common TLS verify option for a bunch of calls in a CI environment for test with self signed certificates.</p>
<p dir="auto">This works all right when no environment variable is set, but once REQUESTS_CA_BUNDLE or the equivalent curl var is set up, it fails.</p>
<p dir="auto">This probably happens due to the logic in <code class="notranslate">merge_environment_settings()</code> and the merge logic for settings.</p>
<h2 dir="auto">Expected Result</h2>
<p dir="auto">Verify works, the explicitly configured ca path on the Session object is used.<br>
<Response [200]></p>
<h2 dir="auto">Actual Result</h2>
<p dir="auto">Verify fails, the implicitly configured environment setting overrides the explicit setting on the Session.</p>
<p dir="auto">SSLError: HTTPSConnectionPool(host='example.org', port=8443): Max retries exceeded with url: /login (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED]</p>
<h2 dir="auto">Reproduction Steps</h2>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import requests, os
# One of the many linux default locations for a ca bundle
os.environ['REQUESTS_CA_BUNDLE'] = '/etc/ssl/certs/ca-bundle.crt'
ca = "/home/schlenk/sqlite/certs/ca.crt"
print requests.get('https://myhost.example.org:8443/', verify=ca)
# This gives a <Response [200]>
# Now try with Session
s = requests.Session()
s.verify = ca
s.get('https://myhost.example.org:8443/')
# This throws an SSLError exception
# SSLError: HTTPSConnectionPool(host='myhost.example.org', port=8443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),))
# But this works just fine
s.get('https://myhost.example.org:8443/', verify=ca)
<Response [200]>"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">requests</span>, <span class="pl-s1">os</span>
<span class="pl-c"># One of the many linux default locations for a ca bundle</span>
<span class="pl-s1">os</span>.<span class="pl-s1">environ</span>[<span class="pl-s">'REQUESTS_CA_BUNDLE'</span>] <span class="pl-c1">=</span> <span class="pl-s">'/etc/ssl/certs/ca-bundle.crt'</span>
<span class="pl-s1">ca</span> <span class="pl-c1">=</span> <span class="pl-s">"/home/schlenk/sqlite/certs/ca.crt"</span>
<span class="pl-k">print</span> <span class="pl-s1">requests</span>.<span class="pl-en">get</span>(<span class="pl-s">'https://myhost.example.org:8443/'</span>, <span class="pl-s1">verify</span><span class="pl-c1">=</span><span class="pl-s1">ca</span>)
<span class="pl-c"># This gives a <Response [200]></span>
<span class="pl-c"># Now try with Session</span>
<span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">requests</span>.<span class="pl-v">Session</span>()
<span class="pl-s1">s</span>.<span class="pl-s1">verify</span> <span class="pl-c1">=</span> <span class="pl-s1">ca</span>
<span class="pl-s1">s</span>.<span class="pl-en">get</span>(<span class="pl-s">'https://myhost.example.org:8443/'</span>)
<span class="pl-c"># This throws an SSLError exception</span>
<span class="pl-c"># SSLError: HTTPSConnectionPool(host='myhost.example.org', port=8443): Max retries exceeded with url: / (Caused by SSLError(SSLError(1, u'[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)'),))</span>
<span class="pl-c"># But this works just fine</span>
<span class="pl-s1">s</span>.<span class="pl-en">get</span>(<span class="pl-s">'https://myhost.example.org:8443/'</span>, <span class="pl-s1">verify</span><span class="pl-c1">=</span><span class="pl-s1">ca</span>)
<span class="pl-c1"><</span><span class="pl-v">Response</span> [<span class="pl-c1">200</span>]<span class="pl-c1">></span></pre></div>
<h2 dir="auto">System Information</h2>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -m requests.help"><pre class="notranslate"><code class="notranslate">$ python -m requests.help
</code></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="d:\code\trunk64>win32\debug\img\python.exe -m requests.help
{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": "2.2.2"
},
"idna": {
"version": "2.6"
},
"implementation": {
"name": "CPython",
"version": "2.7.15"
},
"platform": {
"release": "2012ServerR2",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "100020df",
"version": "18.0.0"
},
"requests": {
"version": "2.18.4"
},
"system_ssl": {
"version": "100020ff"
},
"urllib3": {
"version": "1.22"
},
"using_pyopenssl": true
}"><pre class="notranslate"><code class="notranslate">d:\code\trunk64>win32\debug\img\python.exe -m requests.help
{
"chardet": {
"version": "3.0.4"
},
"cryptography": {
"version": "2.2.2"
},
"idna": {
"version": "2.6"
},
"implementation": {
"name": "CPython",
"version": "2.7.15"
},
"platform": {
"release": "2012ServerR2",
"system": "Windows"
},
"pyOpenSSL": {
"openssl_version": "100020df",
"version": "18.0.0"
},
"requests": {
"version": "2.18.4"
},
"system_ssl": {
"version": "100020ff"
},
"urllib3": {
"version": "1.22"
},
"using_pyopenssl": true
}
</code></pre></div>
<p dir="auto">Same issue happens on Linux with identical versions.</p>
| 0 |
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="╭─mindcat@mindcat-linux-pc ~/workspace/nekoneko ‹master*›
╰─➤ RUST_BACKTRACE=1 RUST_LOG=nekoneko cargo build
Compiling env_logger v0.2.2 (https://github.com/rust-lang/log#e78b7368)
/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 8309, node: ExprStruct(Path { span: Span { lo: BytePos(4566650), hi: BytePos(4566661), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 8310, node: ExprPath(None, Path { span: Span { lo: BytePos(4566674), hi: BytePos(4566689), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4566674), hi: BytePos(4566689), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4566668), hi: BytePos(4566689), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 8311, node: ExprPath(None, Path { span: Span { lo: BytePos(4566703), hi: BytePos(4566720), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4566703), hi: BytePos(4566720), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4566695), hi: BytePos(4566720), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4566650), hi: BytePos(4566723), expn_id: ExpnId(4294967295) } })
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 'Box<Any>', /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129
stack backtrace:
1: 0x7fa61c039f1f - sys::backtrace::write::hf79a3da4fdecb8a0OBA
2: 0x7fa61c064c32 - panicking::on_panic::h9f64f4c69e19f194hHJ
3: 0x7fa61bf99eda - rt::unwind::begin_unwind_inner::h37f4496c980fe936knJ
4: 0x7fa6193ecabd - rt::unwind::begin_unwind::h8320268356453106285
5: 0x7fa6193eca63 - diagnostic::SpanHandler::span_bug::h83c8af232eaba6a9h0D
6: 0x7fa619cc8ca3 - session::Session::span_bug::h857b2c7ae23c9286ISp
7: 0x7fa61b7e680c - trans::debuginfo::scope_metadata::hac54dfdbdcd04cd9SjE
8: 0x7fa61b6f9408 - trans::debuginfo::set_source_location::h1067a74086ed9dd48MD
9: 0x7fa61b6ade42 - trans::expr::trans_into::h95c6d2681fdd2548znh
10: 0x7fa61b6ae109 - trans::expr::trans_into::h95c6d2681fdd2548znh
11: 0x7fa61b71067f - trans::expr::trans_uniq_expr::h5f082eea62818f84ukj
12: 0x7fa61b7112ef - trans::expr::trans_unary::h4412379888608420Jgj
13: 0x7fa61b6fb80e - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
14: 0x7fa61b6ae417 - trans::expr::trans_into::h95c6d2681fdd2548znh
15: 0x7fa61b72e6f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
16: 0x7fa61b7311af - trans::expr::trans_struct::closure.42069
17: 0x7fa61b71b016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
18: 0x7fa61b6fd53d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
19: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
20: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
21: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
22: 0x7fa61b697b08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
23: 0x7fa61b6995a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
24: 0x7fa61b6dee4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
25: 0x7fa61b6dd43e - trans::callee::trans_fn_ref::hb48e614c9b6dd9bcE9f
26: 0x7fa61b6da88d - trans::callee::trans::ha56f4fe94448e6baVYf
27: 0x7fa61b6f0fbb - trans::callee::trans_call_inner::h9722042290657949952
28: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
29: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
30: 0x7fa61b72e6f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
31: 0x7fa61b7311af - trans::expr::trans_struct::closure.42069
32: 0x7fa61b71b016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
33: 0x7fa61b6fd53d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
34: 0x7fa61b6fb668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
35: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
36: 0x7fa61b6ec9f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
37: 0x7fa61b6f1ea0 - trans::callee::trans_call_inner::h9722042290657949952
38: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
39: 0x7fa61b6fb668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
40: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
41: 0x7fa61b6adee3 - trans::expr::trans_into::h95c6d2681fdd2548znh
42: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
43: 0x7fa61b6fcf7e - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
44: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
45: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
46: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
47: 0x7fa61b72f139 - trans::closure::trans_closure_expr::hc99a1619c43ed333flx
48: 0x7fa61b6fda38 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
49: 0x7fa61b6fb764 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
50: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
51: 0x7fa61b6ec9f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
52: 0x7fa61b6f1ea0 - trans::callee::trans_call_inner::h9722042290657949952
53: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
54: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
55: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
56: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
57: 0x7fa61b697b08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
58: 0x7fa61b6938a1 - trans::base::trans_item::h48fc370b7d259ac7vTt
59: 0x7fa61b78f7ec - trans::base::trans_crate::hc92be67ede893c70GPu
60: 0x7fa61c672e83 - driver::phase_4_translate_to_llvm::h9904f5d5fc3fb761rNa
61: 0x7fa61c64e83f - driver::compile_input::h3913ff7013f0c056Iba
62: 0x7fa61c716cb7 - run_compiler::h28a4446bae1034e7H5b
63: 0x7fa61c714829 - thunk::F.Invoke<A, R>::invoke::h6503055919709693733
64: 0x7fa61c7134a0 - rt::unwind::try::try_fn::h1384674024000742916
65: 0x7fa61c0d4de8 - rust_try_inner
66: 0x7fa61c0d4dd5 - rust_try
67: 0x7fa61c713c3f - thunk::F.Invoke<A, R>::invoke::h5780663349966142752
68: 0x7fa61c04f965 - sys::thread::thread_start::h4ab695857833a5dar8E
69: 0x7fa615ecc373 - start_thread
70: 0x7fa61bc1a27c - __clone
71: 0x0 - <unknown>
Could not compile `env_logger`.
To learn more, run the command again with --verbose.
╭─mindcat@mindcat-linux-pc ~/workspace/nekoneko ‹master*›
╰─➤ rustc --version 101 ↵
rustc 1.0.0-nightly (3b3bb0e68 2015-03-04) (built 2015-03-05)"><pre class="notranslate">╭─mindcat@mindcat-linux-pc <span class="pl-k">~</span>/workspace/nekoneko ‹master<span class="pl-k">*</span>›
╰─➤ RUST_BACKTRACE=1 RUST_LOG=nekoneko cargo build
Compiling env_logger v0.2.2 (https://github.com/rust-lang/log#e78b7368)
/home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libstd/sync/mutex.rs:177:37: 180:2 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 8309, node: ExprStruct(Path { span: Span { lo: BytePos(4566650), hi: BytePos(4566661), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(1770102), hi: BytePos(1770106), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 8310, node: ExprPath(None, Path { span: Span { lo: BytePos(4566674), hi: BytePos(4566689), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4566674), hi: BytePos(4566689), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4566668), hi: BytePos(4566689), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(1770129), hi: BytePos(1770135), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 8311, node: ExprPath(None, Path { span: Span { lo: BytePos(4566703), hi: BytePos(4566720), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(4566703), hi: BytePos(4566720), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(4566695), hi: BytePos(4566720), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(4566650), hi: BytePos(4566723), expn_id: ExpnId(4294967295) } })
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 <span class="pl-s"><span class="pl-pds">`</span>RUST_BACKTRACE=1<span class="pl-pds">`</span></span> <span class="pl-k">for</span> a backtrace
thread <span class="pl-s"><span class="pl-pds">'</span>rustc<span class="pl-pds">'</span></span> panicked at <span class="pl-s"><span class="pl-pds">'</span>Box<Any><span class="pl-pds">'</span></span>, /home/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-linux/build/src/libsyntax/diagnostic.rs:129
stack backtrace:
1: 0x7fa61c039f1f - sys::backtrace::write::hf79a3da4fdecb8a0OBA
2: 0x7fa61c064c32 - panicking::on_panic::h9f64f4c69e19f194hHJ
3: 0x7fa61bf99eda - rt::unwind::begin_unwind_inner::h37f4496c980fe936knJ
4: 0x7fa6193ecabd - rt::unwind::begin_unwind::h8320268356453106285
5: 0x7fa6193eca63 - diagnostic::SpanHandler::span_bug::h83c8af232eaba6a9h0D
6: 0x7fa619cc8ca3 - session::Session::span_bug::h857b2c7ae23c9286ISp
7: 0x7fa61b7e680c - trans::debuginfo::scope_metadata::hac54dfdbdcd04cd9SjE
8: 0x7fa61b6f9408 - trans::debuginfo::set_source_location::h1067a74086ed9dd48MD
9: 0x7fa61b6ade42 - trans::expr::trans_into::h95c6d2681fdd2548znh
10: 0x7fa61b6ae109 - trans::expr::trans_into::h95c6d2681fdd2548znh
11: 0x7fa61b71067f - trans::expr::trans_uniq_expr::h5f082eea62818f84ukj
12: 0x7fa61b7112ef - trans::expr::trans_unary::h4412379888608420Jgj
13: 0x7fa61b6fb80e - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
14: 0x7fa61b6ae417 - trans::expr::trans_into::h95c6d2681fdd2548znh
15: 0x7fa61b72e6f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
16: 0x7fa61b7311af - trans::expr::trans_struct::closure.42069
17: 0x7fa61b71b016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
18: 0x7fa61b6fd53d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
19: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
20: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
21: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
22: 0x7fa61b697b08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
23: 0x7fa61b6995a0 - trans::monomorphize::monomorphic_fn::hc1b7393dd1dc77f1usd
24: 0x7fa61b6dee4e - trans::callee::trans_fn_ref_with_substs::hd01acb4398310d154kg
25: 0x7fa61b6dd43e - trans::callee::trans_fn_ref::hb48e614c9b6dd9bcE9f
26: 0x7fa61b6da88d - trans::callee::trans::ha56f4fe94448e6baVYf
27: 0x7fa61b6f0fbb - trans::callee::trans_call_inner::h9722042290657949952
28: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
29: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
30: 0x7fa61b72e6f9 - trans::expr::trans_adt::h1af69b9b4e52152aO6i
31: 0x7fa61b7311af - trans::expr::trans_struct::closure.42069
32: 0x7fa61b71b016 - trans::expr::trans_struct::hcae8f9103f3460d5K2i
33: 0x7fa61b6fd53d - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
34: 0x7fa61b6fb668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
35: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
36: 0x7fa61b6ec9f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
37: 0x7fa61b6f1ea0 - trans::callee::trans_call_inner::h9722042290657949952
38: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
39: 0x7fa61b6fb668 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
40: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
41: 0x7fa61b6adee3 - trans::expr::trans_into::h95c6d2681fdd2548znh
42: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
43: 0x7fa61b6fcf7e - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
44: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
45: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
46: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
47: 0x7fa61b72f139 - trans::closure::trans_closure_expr::hc99a1619c43ed333flx
48: 0x7fa61b6fda38 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
49: 0x7fa61b6fb764 - trans::expr::trans_unadjusted::hfd3a5e1b5cbe37d5z4h
50: 0x7fa61b6afb58 - trans::expr::trans::h23d7d0dd91a5190fHth
51: 0x7fa61b6ec9f3 - trans::callee::trans_args::h29a92a6ed71c85ebm1g
52: 0x7fa61b6f1ea0 - trans::callee::trans_call_inner::h9722042290657949952
53: 0x7fa61b6fd9e0 - trans::expr::trans_rvalue_dps_unadjusted::hd47de7ac66e018254zi
54: 0x7fa61b6ae3f6 - trans::expr::trans_into::h95c6d2681fdd2548znh
55: 0x7fa61b6af227 - trans::controlflow::trans_block::h3e86dfa8c58560e6b5d
56: 0x7fa61b786821 - trans::base::trans_closure::hab3cc3c679d5ff23Kkt
57: 0x7fa61b697b08 - trans::base::trans_fn::he0569b8eb832adf9Dvt
58: 0x7fa61b6938a1 - trans::base::trans_item::h48fc370b7d259ac7vTt
59: 0x7fa61b78f7ec - trans::base::trans_crate::hc92be67ede893c70GPu
60: 0x7fa61c672e83 - driver::phase_4_translate_to_llvm::h9904f5d5fc3fb761rNa
61: 0x7fa61c64e83f - driver::compile_input::h3913ff7013f0c056Iba
62: 0x7fa61c716cb7 - run_compiler::h28a4446bae1034e7H5b
63: 0x7fa61c714829 - thunk::F.Invoke<span class="pl-k"><</span>A, R<span class="pl-k">></span>::invoke::h6503055919709693733
64: 0x7fa61c7134a0 - rt::unwind::try::try_fn::h1384674024000742916
65: 0x7fa61c0d4de8 - rust_try_inner
66: 0x7fa61c0d4dd5 - rust_try
67: 0x7fa61c713c3f - thunk::F.Invoke<span class="pl-k"><</span>A, R<span class="pl-k">></span>::invoke::h5780663349966142752
68: 0x7fa61c04f965 - sys::thread::thread_start::h4ab695857833a5dar8E
69: 0x7fa615ecc373 - start_thread
70: 0x7fa61bc1a27c - __clone
71: 0x0 - <span class="pl-k"><</span>unknown<span class="pl-k">></span>
Could not compile <span class="pl-s"><span class="pl-pds">`</span>env_logger<span class="pl-pds">`</span></span>.
To learn more, run the <span class="pl-c1">command</span> again with --verbose.
╭─mindcat@mindcat-linux-pc <span class="pl-k">~</span>/workspace/nekoneko ‹master<span class="pl-k">*</span>›
╰─➤ rustc --version 101 ↵
rustc 1.0.0-nightly (3b3bb0e68 2015-03-04) (built 2015-03-05)</pre></div>
|
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ RUST_BACKTRACE=1 cargo build --verbose
Fresh gcc v0.2.1
Fresh pkg-config v0.2.1
Compiling openssl-sys v0.4.0 (file:///tmp/rust-openssl/openssl-sys)
Running `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim`
src/lib.rs:1:1: 1:1 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 5326, node: ExprStruct(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5327, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5328, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } })
src/lib.rs:1 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /mnt/trash1/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:129
stack backtrace:
1: 0x7fa97995e8e0 - sys::backtrace::write::he6b1641fd079577cfmB
2: 0x7fa979984760 - <unknown>
3: 0x7fa9798d60f0 - rt::unwind::begin_unwind_inner::h634afd378febd66detK
4: 0x7fa976e432b0 - <unknown>
5: 0x7fa976e43240 - diagnostic::SpanHandler::span_bug::h189abf680a7a28f874E
6: 0x7fa97793d500 - session::Session::span_bug::h720ba33852c899b7rSs
7: 0x7fa9787a8a10 - <unknown>
8: 0x7fa9786d9700 - <unknown>
9: 0x7fa978698f50 - <unknown>
10: 0x7fa978698f50 - <unknown>
11: 0x7fa9786999b0 - <unknown>
12: 0x7fa978756fc0 - <unknown>
13: 0x7fa97870d900 - <unknown>
14: 0x7fa97873aef0 - <unknown>
15: 0x7fa9786d9d30 - <unknown>
16: 0x7fa97869a200 - <unknown>
17: 0x7fa9786cea00 - <unknown>
18: 0x7fa9786d50f0 - <unknown>
19: 0x7fa9786dbb30 - <unknown>
20: 0x7fa9786db080 - <unknown>
21: 0x7fa97869a200 - <unknown>
22: 0x7fa9786cea00 - <unknown>
23: 0x7fa9786d50f0 - <unknown>
24: 0x7fa9786dbb30 - <unknown>
25: 0x7fa9786db080 - <unknown>
26: 0x7fa97869a200 - <unknown>
27: 0x7fa9786cea00 - <unknown>
28: 0x7fa9786d3a90 - <unknown>
29: 0x7fa9786dbb30 - <unknown>
30: 0x7fa978698f50 - <unknown>
31: 0x7fa978787d40 - <unknown>
32: 0x7fa978698830 - <unknown>
33: 0x7fa9786999b0 - <unknown>
34: 0x7fa9786dbb30 - <unknown>
35: 0x7fa978698f50 - <unknown>
36: 0x7fa9786999b0 - <unknown>
37: 0x7fa978756fc0 - <unknown>
38: 0x7fa97870d900 - <unknown>
39: 0x7fa9786dbb30 - <unknown>
40: 0x7fa9786db080 - <unknown>
41: 0x7fa97869a200 - <unknown>
42: 0x7fa9786cea00 - <unknown>
43: 0x7fa9786d50f0 - <unknown>
44: 0x7fa9786dbb30 - <unknown>
45: 0x7fa978698f50 - <unknown>
46: 0x7fa9786999b0 - <unknown>
47: 0x7fa9786dbb30 - <unknown>
48: 0x7fa978698f50 - <unknown>
49: 0x7fa9786999b0 - <unknown>
50: 0x7fa978756fc0 - <unknown>
51: 0x7fa9786887a0 - <unknown>
52: 0x7fa978684210 - <unknown>
53: 0x7fa97875dd80 - trans::base::trans_crate::ha8556e563b91ec61fQv
54: 0x7fa979f5f250 - driver::phase_4_translate_to_llvm::hc334bfd7f2b08e6d2Oa
55: 0x7fa979f384b0 - driver::compile_input::h6a09d1f5442479b9Eba
56: 0x7fa97a007770 - run_compiler::h940da8caa9037102Bbc
57: 0x7fa97a005d00 - <unknown>
58: 0x7fa97a004be0 - <unknown>
59: 0x7fa9799e1770 - <unknown>
60: 0x7fa9799e1760 - rust_try
61: 0x7fa97a004e90 - <unknown>
62: 0x7fa979971e00 - <unknown>
63: 0x7fa974614f70 - <unknown>
64: 0x7fa97955d389 - clone
65: 0x0 - <unknown>
Could not compile `openssl-sys`.
Caused by:
Process didn't exit successfully: `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim` (status=101)"><pre class="notranslate"><code class="notranslate">$ RUST_BACKTRACE=1 cargo build --verbose
Fresh gcc v0.2.1
Fresh pkg-config v0.2.1
Compiling openssl-sys v0.4.0 (file:///tmp/rust-openssl/openssl-sys)
Running `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim`
src/lib.rs:1:1: 1:1 error: internal compiler error: debuginfo: Could not find scope info for node NodeExpr(Expr { id: 5326, node: ExprStruct(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: StaticMutex#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }, [Field { ident: Spanned { node: lock#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5327, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: sys#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: MUTEX_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, Field { ident: Spanned { node: poison#0, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, expr: Expr { id: 5328, node: ExprPath(Path { span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) }, global: false, segments: [PathSegment { identifier: poison#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }, PathSegment { identifier: FLAG_INIT#0, parameters: AngleBracketedParameters(AngleBracketedParameterData { lifetimes: [], types: [], bindings: [] }) }] }), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }, span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } }], None), span: Span { lo: BytePos(0), hi: BytePos(0), expn_id: ExpnId(4294967295) } })
src/lib.rs:1 #![allow(non_camel_case_types, non_upper_case_globals, non_snake_case)]
^
note: the compiler unexpectedly panicked. this is a bug.
note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html
note: run with `RUST_BACKTRACE=1` for a backtrace
thread 'rustc' panicked at 'Box<Any>', /mnt/trash1/tmp/portage/dev-lang/rust-9999/work/rust-9999/src/libsyntax/diagnostic.rs:129
stack backtrace:
1: 0x7fa97995e8e0 - sys::backtrace::write::he6b1641fd079577cfmB
2: 0x7fa979984760 - <unknown>
3: 0x7fa9798d60f0 - rt::unwind::begin_unwind_inner::h634afd378febd66detK
4: 0x7fa976e432b0 - <unknown>
5: 0x7fa976e43240 - diagnostic::SpanHandler::span_bug::h189abf680a7a28f874E
6: 0x7fa97793d500 - session::Session::span_bug::h720ba33852c899b7rSs
7: 0x7fa9787a8a10 - <unknown>
8: 0x7fa9786d9700 - <unknown>
9: 0x7fa978698f50 - <unknown>
10: 0x7fa978698f50 - <unknown>
11: 0x7fa9786999b0 - <unknown>
12: 0x7fa978756fc0 - <unknown>
13: 0x7fa97870d900 - <unknown>
14: 0x7fa97873aef0 - <unknown>
15: 0x7fa9786d9d30 - <unknown>
16: 0x7fa97869a200 - <unknown>
17: 0x7fa9786cea00 - <unknown>
18: 0x7fa9786d50f0 - <unknown>
19: 0x7fa9786dbb30 - <unknown>
20: 0x7fa9786db080 - <unknown>
21: 0x7fa97869a200 - <unknown>
22: 0x7fa9786cea00 - <unknown>
23: 0x7fa9786d50f0 - <unknown>
24: 0x7fa9786dbb30 - <unknown>
25: 0x7fa9786db080 - <unknown>
26: 0x7fa97869a200 - <unknown>
27: 0x7fa9786cea00 - <unknown>
28: 0x7fa9786d3a90 - <unknown>
29: 0x7fa9786dbb30 - <unknown>
30: 0x7fa978698f50 - <unknown>
31: 0x7fa978787d40 - <unknown>
32: 0x7fa978698830 - <unknown>
33: 0x7fa9786999b0 - <unknown>
34: 0x7fa9786dbb30 - <unknown>
35: 0x7fa978698f50 - <unknown>
36: 0x7fa9786999b0 - <unknown>
37: 0x7fa978756fc0 - <unknown>
38: 0x7fa97870d900 - <unknown>
39: 0x7fa9786dbb30 - <unknown>
40: 0x7fa9786db080 - <unknown>
41: 0x7fa97869a200 - <unknown>
42: 0x7fa9786cea00 - <unknown>
43: 0x7fa9786d50f0 - <unknown>
44: 0x7fa9786dbb30 - <unknown>
45: 0x7fa978698f50 - <unknown>
46: 0x7fa9786999b0 - <unknown>
47: 0x7fa9786dbb30 - <unknown>
48: 0x7fa978698f50 - <unknown>
49: 0x7fa9786999b0 - <unknown>
50: 0x7fa978756fc0 - <unknown>
51: 0x7fa9786887a0 - <unknown>
52: 0x7fa978684210 - <unknown>
53: 0x7fa97875dd80 - trans::base::trans_crate::ha8556e563b91ec61fQv
54: 0x7fa979f5f250 - driver::phase_4_translate_to_llvm::hc334bfd7f2b08e6d2Oa
55: 0x7fa979f384b0 - driver::compile_input::h6a09d1f5442479b9Eba
56: 0x7fa97a007770 - run_compiler::h940da8caa9037102Bbc
57: 0x7fa97a005d00 - <unknown>
58: 0x7fa97a004be0 - <unknown>
59: 0x7fa9799e1770 - <unknown>
60: 0x7fa9799e1760 - rust_try
61: 0x7fa97a004e90 - <unknown>
62: 0x7fa979971e00 - <unknown>
63: 0x7fa974614f70 - <unknown>
64: 0x7fa97955d389 - clone
65: 0x0 - <unknown>
Could not compile `openssl-sys`.
Caused by:
Process didn't exit successfully: `rustc src/lib.rs --crate-name openssl-sys --crate-type lib -g -C metadata=dd0e973e71d408a3 -C extra-filename=-dd0e973e71d408a3 --out-dir /tmp/rust-openssl/openssl-sys/target --emit=dep-info,link -L dependency=/tmp/rust-openssl/openssl-sys/target -L dependency=/tmp/rust-openssl/openssl-sys/target/deps -L native=/usr/lib64 -L native=/tmp/rust-openssl/openssl-sys/target/build/openssl-sys-dd0e973e71d408a3/out -l ssl -l crypto -l static=old_openssl_shim` (status=101)
</code></pre></div>
<p dir="auto">Rust version:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rustc 1.0.0-dev (81bce5290 2015-02-16) (built 2015-02-17)
binary: rustc
commit-hash: 81bce5290ff55b9a2eddd83d31b0778180904d7f
commit-date: 2015-02-16
build-date: 2015-02-17
host: x86_64-unknown-linux-gnu
release: 1.0.0-dev"><pre class="notranslate"><code class="notranslate">rustc 1.0.0-dev (81bce5290 2015-02-16) (built 2015-02-17)
binary: rustc
commit-hash: 81bce5290ff55b9a2eddd83d31b0778180904d7f
commit-date: 2015-02-16
build-date: 2015-02-17
host: x86_64-unknown-linux-gnu
release: 1.0.0-dev
</code></pre></div>
<p dir="auto">OS: Gentoo Linux AMD64</p>
| 1 |
<h3 dir="auto">Apache Airflow version</h3>
<p dir="auto">2.3.3 (latest released)</p>
<h3 dir="auto">What happened</h3>
<p dir="auto">check pod airflow-db-migrations and get the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py:528: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
option = self._get_environment_variables(deprecated_key, deprecated_section, key, section)
/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py:356: FutureWarning: The auth_backends setting in [api] has had airflow.api.auth.backend.session added in the running config, which is needed by the UI. Please update your config before Apache Airflow 3.0.
warnings.warn(
/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/log/file_task_handler.py:52 DeprecationWarning: Passing filename_template to FileTaskHandler is deprecated and has no effect
[2022-07-15 12:54:20,686] {settings.py:260} DEBUG - Setting up DB connection pool (PID 7)
[2022-07-15 12:54:20,686] {settings.py:362} DEBUG - settings.prepare_engine_args(): Using pool settings. pool_size=5, max_overflow=10, pool_recycle=1800, pid=7
[2022-07-15 12:54:29,461] {db.py:707} INFO - Waiting for migrations... 0 second(s)
[2022-07-15 12:54:29,468] {db_migrations.py:53} WARNING - there are unapplied db migrations, triggering apply...
[2022-07-15 12:54:29,468] {db_migrations.py:45} INFO - -------- START - APPLY DB MIGRATIONS --------
[2022-07-15 12:54:29,470] {db.py:1336} DEBUG - running check function check_task_fail_for_duplicates
[2022-07-15 12:54:29,519] {db.py:935} WARNING - Found 835 duplicates in table task_fail. Will attempt to move them.
[2022-07-15 12:54:29,563] {db.py:1336} DEBUG - running check function check_conn_id_duplicates
[2022-07-15 12:54:29,572] {db.py:1336} DEBUG - running check function check_conn_type_null
[2022-07-15 12:54:29,586] {db.py:1336} DEBUG - running check function check_run_id_null
[2022-07-15 12:54:29,611] {db.py:1336} DEBUG - running check function check_bad_references
[2022-07-15 12:54:29,712] {db.py:1279} DEBUG - checking model task_instance
[2022-07-15 12:54:29,713] {db.py:1279} DEBUG - checking model task_reschedule
[2022-07-15 12:54:29,713] {db.py:1279} DEBUG - checking model rendered_task_instance_fields
[2022-07-15 12:54:29,713] {db.py:1308} DEBUG - moving data for table rendered_task_instance_fields
[2022-07-15 12:54:29,714] {db.py:1076} DEBUG - running CTAS for table _airflow_moved__2_3__dangling__rendered_task_instance_fields
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1802, in _execute_context
self.dialect.do_execute(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 719, in do_execute
cursor.execute(statement, parameters)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
res = self._query(query)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
db.query(q)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query
_mysql.connection.query(self, query)
MySQLdb.OperationalError: (1067, "Invalid default value for 'execution_date'")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/mnt/scripts/db_migrations.py", line 78, in <module>
main(sync_forever=True)
File "/mnt/scripts/db_migrations.py", line 54, in main
apply_db_migrations()
File "/mnt/scripts/db_migrations.py", line 46, in apply_db_migrations
upgradedb()
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/session.py", line 71, in wrapper
return func(*args, session=session, **kwargs)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1452, in upgradedb
for err in _check_migration_errors(session=session):
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1337, in _check_migration_errors
yield from check_fn(session=session)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1309, in check_bad_references
_move_dangling_data_to_new_table(
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1077, in _move_dangling_data_to_new_table
_create_table_as(
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1057, in _create_table_as
session.execute(f"CREATE TABLE {target_table_name} LIKE {source_table_name}")
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1689, in execute
result = conn._execute_20(statement, params or {}, execution_options)
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1614, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 325, in _execute_on_connection
return connection._execute_clauseelement(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1481, in _execute_clauseelement
ret = self._execute_context(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1845, in _execute_context
self._handle_dbapi_exception(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2026, in _handle_dbapi_exception
util.raise_(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1802, in _execute_context
self.dialect.do_execute(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 719, in do_execute
cursor.execute(statement, parameters)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
res = self._query(query)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
db.query(q)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query
_mysql.connection.query(self, query)
sqlalchemy.exc.OperationalError: (MySQLdb.OperationalError) (1067, "Invalid default value for 'execution_date'")
[SQL: CREATE TABLE _airflow_moved__2_3__dangling__rendered_task_instance_fields LIKE rendered_task_instance_fields]
(Background on this error at: https://sqlalche.me/e/14/e3q8)
[2022-07-15 12:54:29,726] {settings.py:398} DEBUG - Disposing DB connection pool (PID 7)
"><pre class="notranslate"><code class="notranslate">/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py:528: DeprecationWarning: The auth_backend option in [api] has been renamed to auth_backends - the old setting has been used, but please update your config.
option = self._get_environment_variables(deprecated_key, deprecated_section, key, section)
/home/airflow/.local/lib/python3.9/site-packages/airflow/configuration.py:356: FutureWarning: The auth_backends setting in [api] has had airflow.api.auth.backend.session added in the running config, which is needed by the UI. Please update your config before Apache Airflow 3.0.
warnings.warn(
/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/log/file_task_handler.py:52 DeprecationWarning: Passing filename_template to FileTaskHandler is deprecated and has no effect
[2022-07-15 12:54:20,686] {settings.py:260} DEBUG - Setting up DB connection pool (PID 7)
[2022-07-15 12:54:20,686] {settings.py:362} DEBUG - settings.prepare_engine_args(): Using pool settings. pool_size=5, max_overflow=10, pool_recycle=1800, pid=7
[2022-07-15 12:54:29,461] {db.py:707} INFO - Waiting for migrations... 0 second(s)
[2022-07-15 12:54:29,468] {db_migrations.py:53} WARNING - there are unapplied db migrations, triggering apply...
[2022-07-15 12:54:29,468] {db_migrations.py:45} INFO - -------- START - APPLY DB MIGRATIONS --------
[2022-07-15 12:54:29,470] {db.py:1336} DEBUG - running check function check_task_fail_for_duplicates
[2022-07-15 12:54:29,519] {db.py:935} WARNING - Found 835 duplicates in table task_fail. Will attempt to move them.
[2022-07-15 12:54:29,563] {db.py:1336} DEBUG - running check function check_conn_id_duplicates
[2022-07-15 12:54:29,572] {db.py:1336} DEBUG - running check function check_conn_type_null
[2022-07-15 12:54:29,586] {db.py:1336} DEBUG - running check function check_run_id_null
[2022-07-15 12:54:29,611] {db.py:1336} DEBUG - running check function check_bad_references
[2022-07-15 12:54:29,712] {db.py:1279} DEBUG - checking model task_instance
[2022-07-15 12:54:29,713] {db.py:1279} DEBUG - checking model task_reschedule
[2022-07-15 12:54:29,713] {db.py:1279} DEBUG - checking model rendered_task_instance_fields
[2022-07-15 12:54:29,713] {db.py:1308} DEBUG - moving data for table rendered_task_instance_fields
[2022-07-15 12:54:29,714] {db.py:1076} DEBUG - running CTAS for table _airflow_moved__2_3__dangling__rendered_task_instance_fields
Traceback (most recent call last):
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1802, in _execute_context
self.dialect.do_execute(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 719, in do_execute
cursor.execute(statement, parameters)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
res = self._query(query)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
db.query(q)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query
_mysql.connection.query(self, query)
MySQLdb.OperationalError: (1067, "Invalid default value for 'execution_date'")
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/mnt/scripts/db_migrations.py", line 78, in <module>
main(sync_forever=True)
File "/mnt/scripts/db_migrations.py", line 54, in main
apply_db_migrations()
File "/mnt/scripts/db_migrations.py", line 46, in apply_db_migrations
upgradedb()
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/session.py", line 71, in wrapper
return func(*args, session=session, **kwargs)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1452, in upgradedb
for err in _check_migration_errors(session=session):
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1337, in _check_migration_errors
yield from check_fn(session=session)
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1309, in check_bad_references
_move_dangling_data_to_new_table(
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1077, in _move_dangling_data_to_new_table
_create_table_as(
File "/home/airflow/.local/lib/python3.9/site-packages/airflow/utils/db.py", line 1057, in _create_table_as
session.execute(f"CREATE TABLE {target_table_name} LIKE {source_table_name}")
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/orm/session.py", line 1689, in execute
result = conn._execute_20(statement, params or {}, execution_options)
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1614, in _execute_20
return meth(self, args_10style, kwargs_10style, execution_options)
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 325, in _execute_on_connection
return connection._execute_clauseelement(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1481, in _execute_clauseelement
ret = self._execute_context(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1845, in _execute_context
self._handle_dbapi_exception(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 2026, in _handle_dbapi_exception
util.raise_(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 207, in raise_
raise exception
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1802, in _execute_context
self.dialect.do_execute(
File "/home/airflow/.local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 719, in do_execute
cursor.execute(statement, parameters)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/cursors.py", line 206, in execute
res = self._query(query)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/cursors.py", line 319, in _query
db.query(q)
File "/home/airflow/.local/lib/python3.9/site-packages/MySQLdb/connections.py", line 254, in query
_mysql.connection.query(self, query)
sqlalchemy.exc.OperationalError: (MySQLdb.OperationalError) (1067, "Invalid default value for 'execution_date'")
[SQL: CREATE TABLE _airflow_moved__2_3__dangling__rendered_task_instance_fields LIKE rendered_task_instance_fields]
(Background on this error at: https://sqlalche.me/e/14/e3q8)
[2022-07-15 12:54:29,726] {settings.py:398} DEBUG - Disposing DB connection pool (PID 7)
</code></pre></div>
<h3 dir="auto">What you think should happen instead</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Operating System</h3>
<p dir="auto">NAME="CentOS Linux" VERSION="7 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="7" PRETTY_NAME="CentOS Linux 7 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:7" HOME_URL="<a href="https://www.centos.org/" rel="nofollow">https://www.centos.org/</a>" BUG_REPORT_URL="<a href="https://bugs.centos.org/" rel="nofollow">https://bugs.centos.org/</a>" CENTOS_MANTISBT_PROJECT="CentOS-7" CENTOS_MANTISBT_PROJECT_VERSION="7" REDHAT_SUPPORT_PRODUCT="centos" REDHAT_SUPPORT_PRODUCT_VERSION="7"</p>
<h3 dir="auto">Versions of Apache Airflow Providers</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Deployment</h3>
<p dir="auto">Official Apache Airflow Helm Chart</p>
<h3 dir="auto">Deployment details</h3>
<p dir="auto">upgrade airflow from 2.5.5 to 2.3.3</p>
<h3 dir="auto">Anything else</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>
|
<h3 dir="auto">Description</h3>
<p dir="auto">We need async support for S3 facilities for use in our Triggers.<br>
We see AwsBaseAsyncHook was introduced in <a href="https://github.com/apache/airflow/commit/cf77c3b96609aa8c260566274d54b06eb38c8100">this commit</a> (<a href="https://github.com/apache/airflow/pull/28850" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/28850/hovercard">PR 28850</a>) merged on <a href="https://github.com/apache/airflow/pull/28850" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/28850/hovercard">2023-03-14</a>.</p>
<p dir="auto">However in <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1732066036" data-permission-text="Title is private" data-url="https://github.com/apache/airflow/issues/31610" data-hovercard-type="pull_request" data-hovercard-url="/apache/airflow/pull/31610/hovercard" href="https://github.com/apache/airflow/pull/31610">#31610</a> , AwsBaseAsyncHook was marked Deprecated by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pankajastro/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pankajastro">@pankajastro</a> and subsequently approved by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vincbeck/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vincbeck">@vincbeck</a> .</p>
<p dir="auto">I would like to know:</p>
<ul dir="auto">
<li>on what basis do you determine this class is not used? There has been no discussions in the PR.</li>
<li>from a user stance, providing a new functionality then removing it a few months later is not very good practice.</li>
<li>is async S3 operations going to be supported ? We have code based on this and deprecating this will break our code.</li>
</ul>
<p dir="auto">Many thanks, particularly to the two gentlemen I named above.</p>
<h3 dir="auto">Use case/motivation</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Related issues</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Are you willing to submit a PR?</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Yes I am willing to submit a PR!</li>
</ul>
<h3 dir="auto">Code of Conduct</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow this project's <a href="https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md">Code of Conduct</a></li>
</ul>
| 0 |
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37997057/60977048-584b5d00-a361-11e9-8a3e-29a183deb1e5.png"><img src="https://user-images.githubusercontent.com/37997057/60977048-584b5d00-a361-11e9-8a3e-29a183deb1e5.png" alt="企业微信截图_f4c6df24-39ee-40d7-9bc6-dcd6b60a2469" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/37997057/60977073-6305f200-a361-11e9-84b5-8724f2e20675.png"><img src="https://user-images.githubusercontent.com/37997057/60977073-6305f200-a361-11e9-84b5-8724f2e20675.png" alt="E38F8C81-7897-4A0A-B2A9-877517931A5C" style="max-width: 100%;"></a></p>
<p dir="auto">when FLASK_DEBUG set to 1<br>
debugger will report</p>
<p dir="auto">No module named flask.flask</p>
<p dir="auto">error</p>
<p dir="auto">when i revert back flask version to 1.0.4, the error disappear.<br>
I think this error is related new version.<br>
please fix it, thank you.</p>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Python version: 3.7.2</li>
<li>Flask version: 1.1.0</li>
</ul>
|
<p dir="auto"><em>My colleague said 'get Flask'.</em></p>
<p dir="auto"><em>I said 'Okay! ... wow, looks cool, and it installs so easily! ... and this site is even built on it—how delightful! ... and I can download the docs as a zipped HTML—how convenient! ... and... the link's broken—how sloppy!' ;-)</em></p>
<p dir="auto">Since the site's supposed to be built on Flask, I thought this would be the place to report this. Please excuse me if this assumption is incorrect.</p>
<p dir="auto">At <strong><a href="http://flask.pocoo.org/" rel="nofollow">http://flask.pocoo.org/</a></strong>, which Google took me to, <strong>clicking either of the latter links in 'Read the documentation or download as <a href="http://flask.pocoo.org/docs/flask-docs.pdf" rel="nofollow">PDF</a> and <a href="http://flask.pocoo.org/docs/flask-docs.zip" rel="nofollow">zipped HTML</a>'</strong> took me to <a href="http://flask.pocoo.org/docs/flask-docs.pdf" rel="nofollow">http://flask.pocoo.org/docs/flask-docs.pdf</a> and <a href="http://flask.pocoo.org/docs/flask-docs.zip" rel="nofollow">http://flask.pocoo.org/docs/flask-docs.zip</a>, respectively. <strong>Both 404ed.</strong></p>
| 0 |
<p dir="auto">Vertical select is a must have feature for modern text editors</p>
|
<p dir="auto">Please Implement Column Mode selection/editing.</p>
<p dir="auto">Previously requested here<br>
<a href="https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7761618-implement-column-mode-selection-editing" rel="nofollow">https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/7761618-implement-column-mode-selection-editing</a></p>
<p dir="auto">On Mac preferred shortcut is cmd+option(alt) like Sublime Text does.</p>
| 1 |
<p dir="auto">Hi guys,</p>
<p dir="auto">First of all, thanks for the lib. It's very very handy and useful.</p>
<p dir="auto">I found an issue about loading images from web. There are some URLs when I hit them with Glide then it didn't show the image. For example:</p>
<blockquote>
<p dir="auto"><a href="http://2.bp.blogspot.com/_wOtGwObrPyI/SgbEunh78vI/AAAAAAAAAx4/UAk7SuQkUu8/s320/s%C3%BCt%C3%A9s+1146.jpg" rel="nofollow">http://2.bp.blogspot.com/_wOtGwObrPyI/SgbEunh78vI/AAAAAAAAAx4/UAk7SuQkUu8/s320/s%C3%BCt%C3%A9s+1146.jpg</a></p>
</blockquote>
<p dir="auto">The URL is UTF-8 encoded.</p>
<p dir="auto">Usage of Glide:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Glide.with(this.context).load(currentRecipe.getRecipeThumbnailUrl()).into(categoryIcon);"><pre class="notranslate"><span class="pl-smi">Glide</span>.<span class="pl-en">with</span>(<span class="pl-smi">this</span>.<span class="pl-s1">context</span>).<span class="pl-en">load</span>(<span class="pl-s1">currentRecipe</span>.<span class="pl-en">getRecipeThumbnailUrl</span>()).<span class="pl-en">into</span>(<span class="pl-s1">categoryIcon</span>);</pre></div>
<p dir="auto">A part of the layout of the ImageView:</p>
<div class="highlight highlight-text-xml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<ImageView
android:id="@+id/categoryPic"
android:layout_width="wrap_content"
android:layout_height="wrap_content""><pre class="notranslate"><<span class="pl-ent">ImageView</span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">id</span>=<span class="pl-s"><span class="pl-pds">"</span>@+id/categoryPic<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_width</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span>
<span class="pl-e">android</span><span class="pl-e">:</span><span class="pl-e">layout_height</span>=<span class="pl-s"><span class="pl-pds">"</span>wrap_content<span class="pl-pds">"</span></span></pre></div>
<p dir="auto">Device: Xiaomi Redmi 1S<br>
Android version: 4.4.4<br>
Glide version: 3.7.0</p>
<p dir="auto"><strong>UPDATE</strong>:</p>
<p dir="auto">I found this entry in the console:<br>
SkImageDecoder::Factory returned null</p>
<p dir="auto">I've searched around but hadn't found any useful solution.</p>
<p dir="auto">Thanks for any help! :)</p>
|
<p dir="auto">Noticed that some of the URIs we are trying to load that contain a <code class="notranslate">%</code> sign in the filename end up not getting loaded, the exception being:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="java.io.FileNotFoundException: No such file or directory"><pre class="notranslate"><code class="notranslate">java.io.FileNotFoundException: No such file or directory
</code></pre></div>
<p dir="auto">Example URI name:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="file:///storage/emulated/0/Tumblr/https%3A%2F%2F40.media.tumblr.com%2Fe14acf4122fcff3ccd312b606e4edd6d%2Ftumblr_o08kd903HD1tt3zoto1_500_1.jpg"><pre class="notranslate"><code class="notranslate">file:///storage/emulated/0/Tumblr/https%3A%2F%2F40.media.tumblr.com%2Fe14acf4122fcff3ccd312b606e4edd6d%2Ftumblr_o08kd903HD1tt3zoto1_500_1.jpg
</code></pre></div>
<p dir="auto">However, if the same uri was renamed to be</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="file:///storage/emulated/0/Tumblr/https3A2F2F40.media.tumblr.com2Fe14acf4122fcff3ccd312b606e4edd6d2Ftumblr_o08kd903HD1tt3zoto1_500_1.jpg"><pre class="notranslate"><code class="notranslate">file:///storage/emulated/0/Tumblr/https3A2F2F40.media.tumblr.com2Fe14acf4122fcff3ccd312b606e4edd6d2Ftumblr_o08kd903HD1tt3zoto1_500_1.jpg
</code></pre></div>
<p dir="auto">Glide has no problem loading the image.<br>
Is this expected or no? Any other symbols to watch out for in the filepath? Thanks!</p>
| 1 |
<p dir="auto">I wonder if you guys know how we can test a custom server with express using supertest</p>
|
<p dir="auto">I didn't find an integration test with a custom server, I think it would be useful to add that. I'd like to see in particular how the babel config should be set up to avoid transpiling the server files as they aren't transpiled when started the normal way with <code class="notranslate">"start": "node server"</code>, but they will if I simply <code class="notranslate">require</code> the server file from within Jest.</p>
| 1 |
<p dir="auto">I tried using the <code class="notranslate">@types/lodash</code> package and had problems.<br>
Compiled with tsc v2.1.1<br>
<a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/bczengel/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/bczengel">@bczengel</a> , <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Sheeo/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Sheeo">@Sheeo</a></p>
<p dir="auto">received the following errors:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/@types/lodash/index.d.ts(11444,21): error TS1005: ']' expected.
node_modules/@types/lodash/index.d.ts(11444,22): error TS1005: ';' expected.
node_modules/@types/lodash/index.d.ts(11444,23): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(11444,33): error TS1005: ']' expected.
node_modules/@types/lodash/index.d.ts(11444,34): error TS1005: ')' expected.
node_modules/@types/lodash/index.d.ts(11444,35): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(11444,37): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(19441,1): error TS1128: Declaration or statement expected.
~$ tsc -v
Version 2.1.1"><pre class="notranslate"><code class="notranslate">node_modules/@types/lodash/index.d.ts(11444,21): error TS1005: ']' expected.
node_modules/@types/lodash/index.d.ts(11444,22): error TS1005: ';' expected.
node_modules/@types/lodash/index.d.ts(11444,23): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(11444,33): error TS1005: ']' expected.
node_modules/@types/lodash/index.d.ts(11444,34): error TS1005: ')' expected.
node_modules/@types/lodash/index.d.ts(11444,35): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(11444,37): error TS1128: Declaration or statement expected.
node_modules/@types/lodash/index.d.ts(19441,1): error TS1128: Declaration or statement expected.
~$ tsc -v
Version 2.1.1
</code></pre></div>
|
<ul dir="auto">
<li>[ x] I tried using the <code class="notranslate">@types/lodash</code> package and had problems.</li>
</ul>
<p dir="auto">Using @types/lodash 4.14.50 tslint (Using the default tsconfig from angular-cli) runs without problems, when updated to version @types/lodash 4.14.51 I get consistently the following tslint error:</p>
<p dir="auto">`<br>
node_modules/tslint/lib/runner.js:91<br>
throw new Error(messages.join("\n"));<br>
^</p>
<p dir="auto">node_modules/@types/lodash/index.d.ts:245:25: Cannot find name 'Partial'.<br>
at Runner.run (/opt/atlassian/pipelines/agent/build/node_modules/tslint/lib/runner.js:91:27)<br>
at Object. (/opt/atlassian/pipelines/agent/build/node_modules/tslint/lib/tslint-cli.js:138:6)<br>
at Module._compile (module.js:570:32)<br>
at Object.Module._extensions..js (module.js:579:10)<br>
at Module.load (module.js:487:32)<br>
at tryModuleLoad (module.js:446:12)<br>
at Function.Module._load (module.js:438:3)<br>
at Module.require (module.js:497:17)<br>
at require (internal/module.js:20:19)<br>
at Object. (/opt/atlassian/pipelines/agent/build/node_modules/tslint/bin/tslint:3:1)<br>
`</p>
| 1 |
<p dir="auto">I have tried opening .php and .html files from a NAS drive and while Atom recognizes the file, its type, and sets the syntax checker accordingly, the contents of the file do not display.</p>
|
<p dir="auto">OS: Windows 7<br>
Atom Version: 0.95.0-3f0640f</p>
<p dir="auto">Hosting files on a network drive (i.e. \network\private\myfiles) and opening files in atom does not show anything. Files list on left pane and a tab opens up in editor, but tab is empty and shows nothing.</p>
<p dir="auto">Additional Note: I tested using a mapped drive and it worked. It appears there's an issue running atom in Windows and trying to open files on a network path.</p>
| 1 |
<h3 dir="auto">Describe the bug</h3>
<p dir="auto"><code class="notranslate">content-encoding</code> header is ignored if <code class="notranslate">content-length</code> is not set on response. For connect compression middleware, the returned response appears to have <code class="notranslate">Transfer-Encoding</code>, <code class="notranslate">content-encoding</code>, but no <code class="notranslate">content-length</code> header, so axios request returns uncompressed value.</p>
<p dir="auto">I believe <code class="notranslate">content-length</code> is an optional header?</p>
<p dir="auto">Related to commit: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/axios/axios/commit/a3d901777bc06e78adae3081f694cdbf76241303/hovercard" href="https://github.com/axios/axios/commit/a3d901777bc06e78adae3081f694cdbf76241303"><tt>a3d9017</tt></a></p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Code snippet</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const responseLength = +res.headers['content-length'];
...
// if no content, but headers still say that it is encoded,
// remove the header not confuse downstream operations
if ((!responseLength || res.statusCode === 204) && res.headers['content-encoding']) {
delete res.headers['content-encoding'];
}"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">responseLength</span> <span class="pl-c1">=</span> <span class="pl-c1">+</span><span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">[</span><span class="pl-s">'content-length'</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
...
<span class="pl-c">// if no content, but headers still say that it is encoded,</span>
<span class="pl-c">// remove the header not confuse downstream operations</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-s1">responseLength</span> <span class="pl-c1">||</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">statusCode</span> <span class="pl-c1">===</span> <span class="pl-c1">204</span><span class="pl-kos">)</span> <span class="pl-c1">&&</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">[</span><span class="pl-s">'content-encoding'</span><span class="pl-kos">]</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">delete</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-c1">headers</span><span class="pl-kos">[</span><span class="pl-s">'content-encoding'</span><span class="pl-kos">]</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">This was working in 1.2.x</p>
<h3 dir="auto">Axios Version</h3>
<p dir="auto">1.2.0</p>
<h3 dir="auto">Adapter Version</h3>
<p dir="auto">HTTP</p>
<h3 dir="auto">Browser</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Browser Version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Node.js Version</h3>
<p dir="auto">16</p>
<h3 dir="auto">OS</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Library Versions</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context/Screenshots</h3>
<p dir="auto"><em>No response</em></p>
|
<h3 dir="auto">Describe the bug</h3>
<p dir="auto">`<br>
var axios = require('axios');<br>
var data = JSON.stringify({<br>
"production_status": "",<br>
"package_status": [],<br>
"extra_status_reason": [],<br>
"page": 1,<br>
"limit": 1<br>
});</p>
<p dir="auto">var config = {<br>
method: 'post',<br>
url: '<a href="https://example.com/" rel="nofollow">https://example.com/</a>',<br>
headers: {<br>
'Authorization': 'Bearer token',<br>
},<br>
data: {<br>
"production_status": "",<br>
"package_status": [],<br>
"extra_status_reason": [],<br>
"page": 1,<br>
"limit": 1<br>
}<br>
};</p>
<p dir="auto">axios(config)<br>
.then(function (response) {<br>
console.log(response.data);<br>
})<br>
.catch(function (error) {<br>
console.log(error);<br>
});<br>
`</p>
<p dir="auto">When i send API this response<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/73536823/203527806-e7f74bca-c6aa-45b0-b9b5-73138981228b.png"><img src="https://user-images.githubusercontent.com/73536823/203527806-e7f74bca-c6aa-45b0-b9b5-73138981228b.png" alt="image" style="max-width: 100%;"></a><br>
I want respose must be json like that<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/73536823/203528048-a5555c94-ce21-4f7a-922b-53337e49aca6.png"><img src="https://user-images.githubusercontent.com/73536823/203528048-a5555c94-ce21-4f7a-922b-53337e49aca6.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Code snippet</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Axios Version</h3>
<p dir="auto">1.2.0</p>
<h3 dir="auto">Adapter Version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Browser</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Browser Version</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Node.js Version</h3>
<p dir="auto">14.20.1</p>
<h3 dir="auto">OS</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional Library Versions</h3>
<p dir="auto"><em>No response</em></p>
<h3 dir="auto">Additional context/Screenshots</h3>
<p dir="auto"><em>No response</em></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: Microsoft Windows [Version 10.0.18362.356]
Windows Terminal version (if applicable): 0.5.2661.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.356]
Windows Terminal version (if applicable): 0.5.2661.0
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<ol dir="auto">
<li>Create three tabs</li>
<li>Use the CTRL+ALT+{1,2,3} short cut to quickly jump between tabs in random order</li>
</ol>
<p dir="auto">I've had the problem occur under more normal usage, but the above steps reproduce it consistently.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">Tabs continue to change and apply focus.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">At least one tab will forget it's focused pane, causing:</p>
<p dir="auto">a) The tab's title to go blank<br>
b) The keyboard bindings to stop responding</p>
<p dir="auto">Clicking inside the tab's terminal restores the focus, title, and binding responsiveness.</p>
|
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18363.0
Windows Terminal version (if applicable): 0.6.2911.0
Any other software?
Windows vim 8.1.1006"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18363.0
Windows Terminal version (if applicable): 0.6.2911.0
Any other software?
Windows vim 8.1.1006
</code></pre></div>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Open a file in vim and type <kbd>Ctrl+b</kbd> repeatedly. The 3 screenshots below are each after typing <kbd>Ctrl+b</kbd> once.</p>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">No weird blank diagonals while using vim.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2148248/67248410-41fd7480-f419-11e9-911e-b8314ca66f5e.png"><img src="https://user-images.githubusercontent.com/2148248/67248410-41fd7480-f419-11e9-911e-b8314ca66f5e.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2148248/67248420-488bec00-f419-11e9-800e-08024fa48ada.png"><img src="https://user-images.githubusercontent.com/2148248/67248420-488bec00-f419-11e9-800e-08024fa48ada.png" alt="image" style="max-width: 100%;"></a><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/2148248/67248430-4e81cd00-f419-11e9-8e2b-b94b7c32d5d1.png"><img src="https://user-images.githubusercontent.com/2148248/67248430-4e81cd00-f419-11e9-8e2b-b94b7c32d5d1.png" alt="image" style="max-width: 100%;"></a></p>
| 0 |
<ul dir="auto">
<li>[ *] I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li>[ *] I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.3</li>
<li>Operating System version: MAC_OS</li>
<li>Java version: 1.8.0_181</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">URL.getColonSeparatedKey() 正常结果应该是{interface}:[version]:[group]<br>
在获取{interface}时,是直接通过INTERFACE_KEY从parameters中获取的,在registry.simplified=true 时:</p>
<p dir="auto">final URL registeredProviderUrl = getRegisteredProviderUrl(providerUrl, registryUrl);</p>
<p dir="auto">registeredProviderUrl 的 parameters中是没有INTERFACE_KEY的。<br>
导致NacosRegistry在获取serviceName时不完整。</p>
<p dir="auto">在append时对INTERFACE_KEY进行特殊处理可以解决<br>
<strong>String parameterValue = INTERFACE_KEY.equals(parameterName)?getServiceInterface():this.getParameter(parameterName);</strong><br>
`</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public String getColonSeparatedKey() {
StringBuilder serviceNameBuilder = new StringBuilder();
append(serviceNameBuilder, INTERFACE_KEY, true);
append(serviceNameBuilder, VERSION_KEY, false);
append(serviceNameBuilder, GROUP_KEY, false);
return serviceNameBuilder.toString();
}
private void append(StringBuilder target, String parameterName, boolean first) {
String parameterValue = INTERFACE_KEY.equals(parameterName)?getServiceInterface():this.getParameter(parameterName);
if (!StringUtils.isBlank(parameterValue)) {
if (!first) {
target.append(":");
}
target.append(parameterValue);
} else {
target.append(":");
}
}`"><pre class="notranslate"><code class="notranslate">public String getColonSeparatedKey() {
StringBuilder serviceNameBuilder = new StringBuilder();
append(serviceNameBuilder, INTERFACE_KEY, true);
append(serviceNameBuilder, VERSION_KEY, false);
append(serviceNameBuilder, GROUP_KEY, false);
return serviceNameBuilder.toString();
}
private void append(StringBuilder target, String parameterName, boolean first) {
String parameterValue = INTERFACE_KEY.equals(parameterName)?getServiceInterface():this.getParameter(parameterName);
if (!StringUtils.isBlank(parameterValue)) {
if (!first) {
target.append(":");
}
target.append(parameterValue);
} else {
target.append(":");
}
}`
</code></pre></div>
|
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h3 dir="auto">Environment</h3>
<ul dir="auto">
<li>Dubbo version: 2.7.8</li>
<li>Operating System version: deepin 15.11</li>
<li>Java version: 1.8.0_261</li>
</ul>
<h3 dir="auto">Steps to reproduce this issue</h3>
<p dir="auto">no step</p>
<p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p>
<h3 dir="auto">Involved documents</h3>
<p dir="auto">1.dubbo-common/src/test/java/org/apache/dubbo/common/config/configcenter/ConfigChangedEventTest.java<br>
2.dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/registry/MockRegistryFactory.java</p>
<h3 dir="auto">Actual Result</h3>
<p dir="auto">What actually happens?</p>
<p dir="auto">If there is an exception, please attach the exception trace:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here!
</code></pre></div>
| 0 |
<p dir="auto">Flask's automatic redirects to add a trailing slash don't appear to work for the root view. This isn't noticeable when the application is mounted at the root of a domain, but mine is mounted in a subdirectory using mod-wsgi:</p>
<p dir="auto">WSGIScriptAlias /myapp /path/to/myapp/modwsgi/stub.py</p>
<p dir="auto">The result is that when someone visits <a href="http://mysite/myapp" rel="nofollow">http://mysite/myapp</a>, none of the application's relative urls work. (This is expected if the trailing slash is missing, because a relative url like static/image.png means something different depending on whether the current page is <a href="http://foo/bar" rel="nofollow">http://foo/bar</a> or <a href="http://foo/bar/" rel="nofollow">http://foo/bar/</a>)</p>
|
<p dir="auto">Given the following HTTP request from client</p>
<p dir="auto">GET /somescript HTTP/1.1<br>
Host: <a href="http://www.example.com" rel="nofollow">www.example.com</a></p>
<p dir="auto">SCRIPT_NAME='/somescript'<br>
PATH_INFO=''</p>
<p dir="auto">MapAdapter.match should raise a RequestRedirect to <a href="http://www.example.com/somescript/" rel="nofollow">http://www.example.com/somescript/</a> other than take it as if client issued a GET request to <a href="http://www.example.com/somescript/" rel="nofollow">http://www.example.com/somescript/</a></p>
| 1 |
<p dir="auto">Per request from the application during an update install:</p>
<p dir="auto"><a href="https://github.com/microsoft/PowerToys/files/5035049/2020-08-06.txt">2020-08-06.txt</a></p>
<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/06/2020 07:53:15<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>
|
<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"><em>Please make sure that this is a build/installation issue. 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:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Win 10</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary): source</li>
<li>TensorFlow version: 1.10</li>
<li>Python version: 3.6</li>
<li>Installed using virtualenv: Canopy pip: 1.18</li>
<li>Bazel version (if compiling from source):NA</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:NA</li>
<li>GPU model and memory:NA</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ImportError Traceback (most recent call last)
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>()
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import __version__
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in <module>()
27 return _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
23 try:
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25 finally:
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py in load_module(name, file, filename, details)
241 else:
--> 242 return load_dynamic(name, filename, file)
243 elif type_ == PKG_DIRECTORY:
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py in load_dynamic(name, path, file)
341 name=name, loader=loader, origin=path)
--> 342 return _load(spec)
343
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-7-6b0f4483b0d5> in <module>()
----> 1 import tensorflow as tf
2
3 a = tf.Variable(1, name="a")
4 b = tf.Variable(2, name="b")
5 f = a + b
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\__init__.py in <module>()
20
21 # pylint: disable=g-bad-import-order
---> 22 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
23
24 try:
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\__init__.py in <module>()
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>()
72 for some common reasons and solutions. Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74 raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help."><pre class="notranslate"><code class="notranslate">ImportError Traceback (most recent call last)
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>()
57
---> 58 from tensorflow.python.pywrap_tensorflow_internal import *
59 from tensorflow.python.pywrap_tensorflow_internal import __version__
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in <module>()
27 return _mod
---> 28 _pywrap_tensorflow_internal = swig_import_helper()
29 del swig_import_helper
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py in swig_import_helper()
23 try:
---> 24 _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
25 finally:
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py in load_module(name, file, filename, details)
241 else:
--> 242 return load_dynamic(name, filename, file)
243 elif type_ == PKG_DIRECTORY:
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py in load_dynamic(name, path, file)
341 name=name, loader=loader, origin=path)
--> 342 return _load(spec)
343
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
During handling of the above exception, another exception occurred:
ImportError Traceback (most recent call last)
<ipython-input-7-6b0f4483b0d5> in <module>()
----> 1 import tensorflow as tf
2
3 a = tf.Variable(1, name="a")
4 b = tf.Variable(2, name="b")
5 f = a + b
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\__init__.py in <module>()
20
21 # pylint: disable=g-bad-import-order
---> 22 from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
23
24 try:
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\__init__.py in <module>()
47 import numpy as np
48
---> 49 from tensorflow.python import pywrap_tensorflow
50
51 # Protocol buffers
C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py in <module>()
72 for some common reasons and solutions. Include the entire stack trace
73 above this error message when asking for help.""" % traceback.format_exc()
---> 74 raise ImportError(msg)
75
76 # pylint: enable=wildcard-import,g-import-not-at-top,unused-import,line-too-long
ImportError: Traceback (most recent call last):
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in <module>
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in <module>
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description)
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\Dell\AppData\Local\Enthought\Canopy\edm\envs\User\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/install_sources#common_installation_problems
for some common reasons and solutions. Include the entire stack trace
above this error message when asking for help.
</code></pre></div>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import tensorflow as tf
a = tf.Variable(1, name="a")
b = tf.Variable(2, name="b")
f = a + b
init = tf.global_variables_initializer()
with tf.Session() as s:
init.run()
print( f.eval() )"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">tensorflow</span> <span class="pl-k">as</span> <span class="pl-s1">tf</span>
<span class="pl-s1">a</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">1</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"a"</span>)
<span class="pl-s1">b</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-v">Variable</span>(<span class="pl-c1">2</span>, <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"b"</span>)
<span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-s1">a</span> <span class="pl-c1">+</span> <span class="pl-s1">b</span>
<span class="pl-s1">init</span> <span class="pl-c1">=</span> <span class="pl-s1">tf</span>.<span class="pl-en">global_variables_initializer</span>()
<span class="pl-k">with</span> <span class="pl-s1">tf</span>.<span class="pl-v">Session</span>() <span class="pl-k">as</span> <span class="pl-s1">s</span>:
<span class="pl-s1">init</span>.<span class="pl-en">run</span>()
<span class="pl-en">print</span>( <span class="pl-s1">f</span>.<span class="pl-en">eval</span>() )</pre></div>
<p dir="auto"><strong>Any 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.<br>
``</p>
|
<p dir="auto">As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:</p>
<ul dir="auto">
<li><code class="notranslate">ImportError: DLL load failed:</code></li>
<li>A crash with return code 132</li>
</ul>
<p dir="auto">Our recommendation is to build TF from sources on these systems.</p>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: ubuntu/windows/macos</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.6 and up</li>
<li><strong>Python version</strong>: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer</li>
<li><strong>Bazel version (if compiling from source)</strong>: n/a</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li>
<li><strong>CUDA/cuDNN version</strong>: any</li>
<li><strong>GPU model and memory</strong>: any</li>
<li><strong>Exact command to reproduce</strong>: python -c "import tensorflow as tf"</li>
</ul>
| 1 |
<p dir="auto"><strong>How to reproduce this issue:</strong></p>
<p dir="auto">Apply <code class="notranslate">transform: scale(0.8)</code> style on a <code class="notranslate"><webview></code> element, and then resize the screen. The webview contents take up an area smaller than the expected size based on the CSS transform. The issue also also occurs when a script changes the style attribute of the webview or its ancestor elements.</p>
<p dir="auto"><strong>Example:</strong></p>
<p dir="auto">For this example I used a webview with <code class="notranslate">style="height: 100%; width: 100%;"</code>, but I've experimented with webviews with different style configurations and the issue seems to occur regardless of how the page is set up.</p>
<p dir="auto">Before scaling:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5552308/11701846/0c14ad0c-9ea0-11e5-9c97-d93b22a0ab99.png"><img src="https://cloud.githubusercontent.com/assets/5552308/11701846/0c14ad0c-9ea0-11e5-9c97-d93b22a0ab99.png" alt="screen shot 2015-12-09 at 6 09 35 pm" style="max-width: 100%;"></a></p>
<p dir="auto">After scaling, before resize:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5552308/11701545/24cbd0c0-9e9e-11e5-82b0-31bd16c41f3f.png"><img src="https://cloud.githubusercontent.com/assets/5552308/11701545/24cbd0c0-9e9e-11e5-82b0-31bd16c41f3f.png" alt="screen shot 2015-12-09 at 5 56 02 pm" style="max-width: 100%;"></a></p>
<p dir="auto">After resize:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/5552308/11701501/e87a7a5e-9e9d-11e5-86ff-4070eb108a92.png"><img src="https://cloud.githubusercontent.com/assets/5552308/11701501/e87a7a5e-9e9d-11e5-86ff-4070eb108a92.png" alt="screen shot 2015-12-09 at 5 53 54 pm" style="max-width: 100%;"></a></p>
|
<p dir="auto">This is what's happening:<br>
<a href="https://github.com/pakastin/electron-bug">http://github.com/pakastin/electron-bug</a></p>
| 1 |
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>:<br>
Ubuntu 18.04 Bionic Beaver<br>
AMD Phenom x4 II 965</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary; docker image tensorflow-1.8.0-gpu-py3</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.18.0</li>
<li><strong>Python version</strong>: 3.5</li>
<li><strong>Bazel version (if compiling from source)</strong>:N/A</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>:N/A</li>
<li><strong>CUDA/cuDNN version</strong>:<br>
CUDA 9.0<br>
CuDNN 7.0.5</li>
<li><strong>GPU model and memory</strong>:<br>
Geforce GTX 760 (compute capability 3.0) 2GB</li>
<li><strong>Exact command to reproduce</strong>:<br>
<code class="notranslate">import tensorflow as tf</code> on tensorflow-gpu on system without AVX</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Jupyter Kernel crashes when doing <code class="notranslate">import tensorflow as tf</code>using a system that does not have AVX.</p>
<p dir="auto">Similarly if i enter a python shell and do <code class="notranslate">import tensorflow as tf</code> i get an <code class="notranslate">Illegal Instruction (core dumped)</code> error and it exits the shell.</p>
<p dir="auto">I have confirmed this is due to the AVX instruction because when i use the docker image Tensorflow-1.15.0-gpu-py3 I am able to successfully import tensorflow.</p>
<p dir="auto"><em>Unfortunately</em>, tensorflow 1.15.0 requires compute capability 3.5 or higher which is extremely frusterating because i cannot find a build of tensorflow online that supports compute capaibility 3.0 but does not use AVX instructions.</p>
<p dir="auto">Why do i need a CPU that supports AVX just to import tensorflow when i dont actually need the AVX instruction since i have a supported GPU (at least it is supported on all tensorflow versions other than 1.15.0).</p>
<p dir="auto">Is there a way around this or do i need to build tensorflow from source to not use AVX but to allow compute capability 3.0? I tried using tensorflow-gpu-1.18.0-devel-py to build a new version from source but it did not even ask me what compute capabilities i wanted to build for and so i just let it build but it took over 24 hours and it was still going.</p>
<p dir="auto">Can someone either provide a tensorflow-gpu release with CUDA 9.0 and CuDNN 7 support that does not use AVX and supports compute capability 3.0 or at least tell me the best way to obtain such a build (since apparently building using the docker-devel image wont work).</p>
|
<p dir="auto">As announced in release notes, TensorFlow release binaries version 1.6 and higher are prebuilt with AVX instruction sets. This means on any CPU that do not have these instruction sets either CPU or GPU version of TF will fail to load with any of the following errors:</p>
<ul dir="auto">
<li><code class="notranslate">ImportError: DLL load failed:</code></li>
<li>A crash with return code 132</li>
</ul>
<p dir="auto">Our recommendation is to build TF from sources on these systems.</p>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: ubuntu/windows/macos</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: binary</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.6 and up</li>
<li><strong>Python version</strong>: 2.7, 3.3, 3.4, 3.5, 3.6 and any newer</li>
<li><strong>Bazel version (if compiling from source)</strong>: n/a</li>
<li><strong>GCC/Compiler version (if compiling from source)</strong>: n/a</li>
<li><strong>CUDA/cuDNN version</strong>: any</li>
<li><strong>GPU model and memory</strong>: any</li>
<li><strong>Exact command to reproduce</strong>: python -c "import tensorflow as tf"</li>
</ul>
| 1 |
<h1 dir="auto">Environment</h1>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1750.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: Microsoft Windows [Version 10.0.18362.175]
Windows Terminal version (if applicable): 0.2.1750.0
</code></pre></div>
<p dir="auto">My font is <code class="notranslate">Input Mono</code>.</p>
<h1 dir="auto">Steps to reproduce</h1>
<p dir="auto">Open Windows Terminal, PowerShell with this profile (it's basically posh-git and Chocolatey):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# poshgit...
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-git module from current directory
Import-Module .\posh-git\posh-git
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git
# Set up a simple prompt, adding the git prompt parts inside git repos
function global:prompt {
$realLASTEXITCODE = $LASTEXITCODE
Write-Host($pwd.ProviderPath) -nonewline
Write-VcsStatus
$global:LASTEXITCODE = $realLASTEXITCODE
return "> "
}
Pop-Location
Start-SshAgent -Quiet
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
function semver { gitversion /output json /showvariable fullsemver }
$env:Path += (";" + $PSScriptRoot)"><pre class="notranslate"><code class="notranslate"># poshgit...
Push-Location (Split-Path -Path $MyInvocation.MyCommand.Definition -Parent)
# Load posh-git module from current directory
Import-Module .\posh-git\posh-git
# If module is installed in a default location ($env:PSModulePath),
# use this instead (see about_Modules for more information):
# Import-Module posh-git
# Set up a simple prompt, adding the git prompt parts inside git repos
function global:prompt {
$realLASTEXITCODE = $LASTEXITCODE
Write-Host($pwd.ProviderPath) -nonewline
Write-VcsStatus
$global:LASTEXITCODE = $realLASTEXITCODE
return "> "
}
Pop-Location
Start-SshAgent -Quiet
# Chocolatey profile
$ChocolateyProfile = "$env:ChocolateyInstall\helpers\chocolateyProfile.psm1"
if (Test-Path($ChocolateyProfile)) {
Import-Module "$ChocolateyProfile"
}
function semver { gitversion /output json /showvariable fullsemver }
$env:Path += (";" + $PSScriptRoot)
</code></pre></div>
<ol dir="auto">
<li>Go to a git folder (such that the posh-git prompt appears)</li>
<li>Type a character</li>
<li>Type another character</li>
<li>Type yet another character (the suspense is killing me!)</li>
</ol>
<h1 dir="auto">Expected behavior</h1>
<p dir="auto">The first two character stay as they were, and the third appears right next to them.</p>
<h1 dir="auto">Actual behavior</h1>
<p dir="auto">The first two characters move to the left one position, and the third appears next to them. I.e. any commands 3 characters or greater get shifted to the left one position when the 3rd character is typed.</p>
<p dir="auto">This occurs for any 3rd character, including spaces.</p>
<p dir="auto">Have just found <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="442405820" data-permission-text="Title is private" data-url="https://github.com/microsoft/terminal/issues/635" data-hovercard-type="issue" data-hovercard-url="/microsoft/terminal/issues/635/hovercard" href="https://github.com/microsoft/terminal/issues/635">#635</a> ... it looks very similar but that talks about rendering characters the wrong width? That doesn't seem to be the case here?</p>
|
<ul dir="auto">
<li>
<p dir="auto">Your Windows build number: (Type <code class="notranslate">ver</code> at a Windows Command Prompt)<br>
Windows 10 18362.30 (Enterprise)<br>
oh-my-posh 2.0.263 - <code class="notranslate">agnoster</code> theme<br>
posh-git 0.7.3<br>
Screenshots taken using Nerd Fonts <code class="notranslate">Inconsolata NF</code>, also tried using <code class="notranslate">FuraCode NF</code> with same results.<br>
I am using a build from master as of ~11am PDT today.</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>
<strong>Windows Terminal</strong><br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57481005-03527400-7256-11e9-995e-d1f91f5663a9.png"><img src="https://user-images.githubusercontent.com/10136407/57481005-03527400-7256-11e9-995e-d1f91f5663a9.png" alt="image" style="max-width: 100%;"></a><br>
<strong>Fluent Terminal</strong> (expected result)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57481119-41e82e80-7256-11e9-86bd-fbd21c09298c.png"><img src="https://user-images.githubusercontent.com/10136407/57481119-41e82e80-7256-11e9-86bd-fbd21c09298c.png" alt="image" style="max-width: 100%;"></a><br>
<strong>Windows Terminal</strong> (oh-my-posh disabled, posh-git enabled)<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57481689-80321d80-7257-11e9-84d6-04c28a97733e.png"><img src="https://user-images.githubusercontent.com/10136407/57481689-80321d80-7257-11e9-84d6-04c28a97733e.png" alt="image" style="max-width: 100%;"></a></p>
</li>
</ul>
<p dir="auto"><strong>Windows Terminal</strong> with agnoster - the problematic theme<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57482363-4c57f780-7259-11e9-91da-2406dff60231.png"><img src="https://user-images.githubusercontent.com/10136407/57482363-4c57f780-7259-11e9-91da-2406dff60231.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">In this case, I typed <code class="notranslate">test</code> then backspaced the 4 characters and typed <code class="notranslate">cd</code>. The <code class="notranslate">e</code> from <code class="notranslate">test</code> is still rendered in its original position, while the other characters erased as expected.</p>
<p dir="auto">Typing <code class="notranslate">tes</code>, the <code class="notranslate">te</code> is rendered in its original position and moved position:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57482444-80331d00-7259-11e9-9c49-76aaf5540600.png"><img src="https://user-images.githubusercontent.com/10136407/57482444-80331d00-7259-11e9-9c49-76aaf5540600.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">Typing further works as expected, removing those characters from the screen:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/10136407/57482498-9f31af00-7259-11e9-8dc4-33c87dbab5c2.png"><img src="https://user-images.githubusercontent.com/10136407/57482498-9f31af00-7259-11e9-8dc4-33c87dbab5c2.png" alt="image" style="max-width: 100%;"></a></p>
<ul dir="auto">
<li>What's wrong / what should be happening instead:<br>
Typing the third character should not cause the command to move its rendering (see <code class="notranslate">cd ~</code> and <code class="notranslate">Get-Command</code> in first screenshot - first character gets covered, no issues with one or two character commands.</li>
</ul>
<p dir="auto">There is no theme with ohmyposh disabled (poshgit still enabled), or with different ohmyposh themes including the others that render those arrows. Only agnoster causes this moving to occur.</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 d (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:5744)<br>
at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:8526)<br>
at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:275512)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)<br>
at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br>
at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363<br>
at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:51:4368)</p>
<p dir="auto">Component stack: in bi<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>
|
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.0.2-2bcc6c6</p>
<p dir="auto">Call stack: at d (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:5744)<br>
at e.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:11:8526)<br>
at Ai (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:274200)<br>
at Ha (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:55890)<br>
at bi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:62939)<br>
at Xl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:99535)<br>
at Hl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:84255)<br>
at Fl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:81285)<br>
at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:43:25363<br>
at n.unstable_runWithPriority (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:56:4368)</p>
<p dir="auto">Component stack: in Ai<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 Ua<br>
in le<br>
in ve<br>
in ko<br>
in Fl</p>
| 1 |
<p dir="auto">Hi,</p>
<p dir="auto">looks like <code class="notranslate">DocumentMapper</code> is creating its own list of root field mappers:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" ...
// UID first so it will be the first stored field to load (so will benefit from "fields: []" early termination
this.rootMappers.put(UidFieldMapper.class, new UidFieldMapper());
this.rootMappers.put(IdFieldMapper.class, idFieldMapper);
this.rootMappers.put(RoutingFieldMapper.class, new RoutingFieldMapper());
// add default mappers, order is important (for example analyzer should come before the rest to set context.analyzer)
this.rootMappers.put(SizeFieldMapper.class, new SizeFieldMapper());
this.rootMappers.put(IndexFieldMapper.class, new IndexFieldMapper());
this.rootMappers.put(SourceFieldMapper.class, new SourceFieldMapper());
this.rootMappers.put(TypeFieldMapper.class, new TypeFieldMapper());
this.rootMappers.put(AnalyzerMapper.class, new AnalyzerMapper());
this.rootMappers.put(AllFieldMapper.class, new AllFieldMapper());
this.rootMappers.put(BoostFieldMapper.class, new BoostFieldMapper());
this.rootMappers.put(TimestampFieldMapper.class, new TimestampFieldMapper());
this.rootMappers.put(TTLFieldMapper.class, new TTLFieldMapper());
this.rootMappers.put(ParentFieldMapper.class, new ParentFieldMapper());
..."><pre class="notranslate"> ...
<span class="pl-c">// UID first so it will be the first stored field to load (so will benefit from "fields: []" early termination</span>
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">UidFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">UidFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">IdFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-s1">idFieldMapper</span>);
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">RoutingFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">RoutingFieldMapper</span>());
<span class="pl-c">// add default mappers, order is important (for example analyzer should come before the rest to set context.analyzer)</span>
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">SizeFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">SizeFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">IndexFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">IndexFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">SourceFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">SourceFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">TypeFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">TypeFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">AnalyzerMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">AnalyzerMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">AllFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">AllFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">BoostFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">BoostFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">TimestampFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">TimestampFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">TTLFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">TTLFieldMapper</span>());
<span class="pl-smi">this</span>.<span class="pl-s1">rootMappers</span>.<span class="pl-en">put</span>(<span class="pl-smi">ParentFieldMapper</span>.<span class="pl-k">class</span>, <span class="pl-k">new</span> <span class="pl-smi">ParentFieldMapper</span>());
...</pre></div>
<p dir="auto">and <code class="notranslate">DocumentMapperParser</code> is creating its own:</p>
<div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="...
rootTypeParsers = new MapBuilder<String, Mapper.TypeParser>()
.put(SizeFieldMapper.NAME, new SizeFieldMapper.TypeParser())
.put(IndexFieldMapper.NAME, new IndexFieldMapper.TypeParser())
.put(SourceFieldMapper.NAME, new SourceFieldMapper.TypeParser())
.put(TypeFieldMapper.NAME, new TypeFieldMapper.TypeParser())
.put(AllFieldMapper.NAME, new AllFieldMapper.TypeParser())
.put(AnalyzerMapper.NAME, new AnalyzerMapper.TypeParser())
.put(BoostFieldMapper.NAME, new BoostFieldMapper.TypeParser())
.put(ParentFieldMapper.NAME, new ParentFieldMapper.TypeParser())
.put(RoutingFieldMapper.NAME, new RoutingFieldMapper.TypeParser())
.put(TimestampFieldMapper.NAME, new TimestampFieldMapper.TypeParser())
.put(TTLFieldMapper.NAME, new TTLFieldMapper.TypeParser())
.put(UidFieldMapper.NAME, new UidFieldMapper.TypeParser())
.put(IdFieldMapper.NAME, new IdFieldMapper.TypeParser())
.immutableMap();
..."><pre class="notranslate">...
<span class="pl-s1">rootTypeParsers</span> = <span class="pl-k">new</span> <span class="pl-smi">MapBuilder</span><<span class="pl-smi">String</span>, <span class="pl-smi">Mapper</span>.<span class="pl-smi">TypeParser</span>>()
.<span class="pl-en">put</span>(<span class="pl-smi">SizeFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">SizeFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">IndexFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">IndexFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">SourceFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">SourceFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">TypeFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">TypeFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">AllFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">AllFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">AnalyzerMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">AnalyzerMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">BoostFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">BoostFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">ParentFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">ParentFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">RoutingFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">RoutingFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">TimestampFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">TimestampFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">TTLFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">TTLFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">UidFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">UidFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">put</span>(<span class="pl-smi">IdFieldMapper</span>.<span class="pl-c1">NAME</span>, <span class="pl-k">new</span> <span class="pl-smi">IdFieldMapper</span>.<span class="pl-smi">TypeParser</span>())
.<span class="pl-en">immutableMap</span>();
...</pre></div>
<p dir="auto">From external plugin it is possible to modify only root type parsers from <code class="notranslate">DocumentMapperParser</code>, but it is the list from <code class="notranslate">DocumentMapper</code> that is used when creating <code class="notranslate">ParsedDocument</code> instance.</p>
<p dir="auto">BTW,<br>
im trying to create plugin that will add support for computed fields (based on script), i wanted to borrow some 'inspiration' from how '_all' field is implemented (as it is in a way computed field). Is implementing root field mapper the right way to do it ? I tried to use field mappers (not root), but looks like they are not used unless field value is present in indexed document (which is kinda problem for computed fields, as they are never present in source document)</p>
|
<p dir="auto">A use case we see a lot with users is that they want to move some data out of one index to another. Would it be possible to combine the <code class="notranslate">reindex</code> with <code class="notranslate">delete-by-query</code> essentially? After a document is indexed in the target index a delete operation will be issued on the source index.</p>
<p dir="auto">Of course this couldn't be done atomically, but even on best effort basis this would be super useful for a lot of people - essentially executing <code class="notranslate">reindex</code> and <code class="notranslate">delete-by-query</code> at the same time (on the same point in time snapshot of the index) with no additional guarantees than those two operations have individually.</p>
| 0 |
<p dir="auto"><strong>Migrated issue, originally created by Priit Laes (<a href="https://github.com/plaes">@plaes</a>)</strong></p>
<p dir="auto">Postgres full text search with query strings that are not in proper format fails. Example from documentation:</p>
<p dir="auto">Following SQLAlchemy code (taken from "Full Text Search" section under PostgreSQL dialect docs):</p>
<p dir="auto"><code class="notranslate">select([sometable.c.text.match("search string")])</code><br>
should emit following SQL:</p>
<p dir="auto"><code class="notranslate">SELECT text @@ to_tsquery('search string') FROM table</code></p>
<p dir="auto">But when executing that (using real column name and table name) ends up with:</p>
<p dir="auto"><code class="notranslate">ERROR: syntax error in tsquery: "search string"</code><br>
There's <code class="notranslate">plainto_tsquery</code> function that should be used instead, when query string is not in proper format:<br>
<code class="notranslate">SELECT text @@ plainto_tsquery('search string') FROM table</code></p>
<p dir="auto">My idea would be to use plainto_tsquery with column.match and introduce column.match_tsquery which ends up emitting to_tsquery SQL.</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 recently realized some implementation details of <code class="notranslate">to_tsquery</code> that are incompatible with the docs I drafted and how sqlalchemy integrates it.</p>
<p dir="auto">Not sure how to handle this.</p>
<p dir="auto">I based the docs/examples on existing tests and text. So we have this as the first bit of "Full Text Search" ( <a href="http://docs.sqlalchemy.org/en/latest/dialects/postgresql.html#full-text-search" rel="nofollow">http://docs.sqlalchemy.org/en/latest/dialects/postgresql.html#full-text-search</a> )</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select([sometable.c.text.match("search string")])
SELECT text @@ to_tsquery('search string') FROM table"><pre class="notranslate"><code class="notranslate">select([sometable.c.text.match("search string")])
SELECT text @@ to_tsquery('search string') FROM table
</code></pre></div>
<p dir="auto">well, if we put this into psql...</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="badsql=> select to_tsquery('search string') ;
ERROR: syntax error in tsquery: "search string""><pre class="notranslate"><code class="notranslate">badsql=> select to_tsquery('search string') ;
ERROR: syntax error in tsquery: "search string"
</code></pre></div>
<p dir="auto">that's because tsquery has a rigid enforcement of input. text must either be tokenized and joined with acceptable operators :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select to_tsquery('cat & rat');"><pre class="notranslate"><code class="notranslate">select to_tsquery('cat & rat');
</code></pre></div>
<p dir="auto">be quoted :</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select to_tsquery('''search string''');"><pre class="notranslate"><code class="notranslate">select to_tsquery('''search string''');
</code></pre></div>
<p dir="auto">or use the alternate function</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select plainto_tsquery('search string');"><pre class="notranslate"><code class="notranslate">select plainto_tsquery('search string');
</code></pre></div>
<p dir="auto">So, these are acceptable:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select to_tsquery('search & string');
select to_tsquery('''search string''');
select plainto_tsquery('search string');"><pre class="notranslate"><code class="notranslate">select to_tsquery('search & string');
select to_tsquery('''search string''');
select plainto_tsquery('search string');
</code></pre></div>
<p dir="auto">but this is not:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="select to_tsquery('search string');"><pre class="notranslate"><code class="notranslate">select to_tsquery('search string');
</code></pre></div>
<p dir="auto">I'm not sure the best way to handle this nuance in the docs.</p>
<p dir="auto">As far as the implementation detail goes...</p>
<p dir="auto">this creates issues with <code class="notranslate">Column.match</code>, because that generates (invalid) sql like this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="table.column @@ to_tsquery('search string')"><pre class="notranslate"><code class="notranslate">table.column @@ to_tsquery('search string')
</code></pre></div>
<p dir="auto">not valid sql like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="table.column @@ to_tsquery('''search string''')
table.column @@ plainto_tsquery('search string')"><pre class="notranslate"><code class="notranslate">table.column @@ to_tsquery('''search string''')
table.column @@ plainto_tsquery('search string')
</code></pre></div>
<p dir="auto">This is an annoying implementation detail , but the content/type of string will affect the function or format t search on.</p>
<p dir="auto">i thought about just regexing this into submission, but the multitude of possible operators and edge cases suggests that the text would need to be parsed for tokenization instead -- otherwise throwing in a bit of text that has an operator will function as a real operator and probably trigger an invalid syntax.</p>
<p dir="auto">i think the easiest scenario would be to replace match's <code class="notranslate">to_tsquery</code> with <code class="notranslate">plainto_tsquery</code></p>
| 1 |
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const camelCase = (s: string) => s.charAt(0).toUpperCase().concat(s.slice(1));
// error: The module's source code could not be parsed: Expected ',', got ':' at <file-name>
const camelCase = (s) => s.charAt(0).toUpperCase().concat(s.slice(1));
OK
"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-en">camelCase</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">s</span>: <span class="pl-smi">string</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-en">charAt</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-en">toUpperCase</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-c">// error: The module's source code could not be parsed: Expected ',', got ':' at <file-name></span>
<span class="pl-k">const</span> <span class="pl-en">camelCase</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">s</span><span class="pl-kos">)</span> <span class="pl-c1">=></span> <span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-en">charAt</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-en">toUpperCase</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">concat</span><span class="pl-kos">(</span><span class="pl-s1">s</span><span class="pl-kos">.</span><span class="pl-en">slice</span><span class="pl-kos">(</span><span class="pl-c1">1</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-smi">OK</span></pre></div>
|
<p dir="auto">From <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="367497815" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/929" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/929/hovercard" href="https://github.com/denoland/deno/issues/929">#929</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384853190" data-permission-text="Title is private" data-url="https://github.com/denoland/deno/issues/1226" data-hovercard-type="issue" data-hovercard-url="/denoland/deno/issues/1226/hovercard" href="https://github.com/denoland/deno/issues/1226">#1226</a>, I believe that the intended behaviour is that extension-less shebang scripts are seen as TypeScript files, but that does not seems to be the case?</p>
<p dir="auto">Minimal example:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#!/usr/bin/env -S deno run --allow-all
// filename: hi
interface Foo {
bar: string;
}
console.log("Hi");"><pre class="notranslate">#!/usr/bin/env -S deno run --allow-all
<span class="pl-c">// filename: hi</span>
<span class="pl-k">interface</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span>
<span class="pl-c1">bar</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">"Hi"</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Running <code class="notranslate">./hi</code> or <code class="notranslate">deno run hi</code> yields <code class="notranslate">error: Unexpected token `interface`.</code></p>
| 1 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.11</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://github.com/TrueCarry/linktest">https://github.com/TrueCarry/linktest</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<h3 dir="auto">What is expected?</h3>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">This is a duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101491500" data-permission-text="Title is private" data-url="https://github.com/vuejs/vue/issues/1176" data-hovercard-type="issue" data-hovercard-url="/vuejs/vue/issues/1176/hovercard" href="https://github.com/vuejs/vue/issues/1176">#1176</a>, can we reopen it please?</p>
|
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">See <code class="notranslate">@click="doSomething('params')"</code>, the generated code will be <code class="notranslate">function($event){doSomething('params')}</code>, no return in it. Normal syntax with method name only has the return. So I think consistent may be better.<br>
And the use case is child component may want to manually call the event handler to get the result, not through <code class="notranslate">this.$emit</code></p>
<h3 dir="auto">What does the proposed API look like?</h3>
<p dir="auto">No added api</p>
| 0 |
<h4 dir="auto">Code Sample</h4>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd
import numpy as np
arrays = [['bar', 'bar', 'baz', 'baz', 'foo', 'foo', 'qux', 'qux'], ['one',
'two', 'one', 'two', 'one', 'two', 'one', 'two']]
tuples = list(zip(*arrays))
index = pd.MultiIndex.from_tuples(tuples, names=['first', 'second'])
series = pd.Series(np.random.randn(8), index=index)
print(series.to_json())"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-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">arrays</span> <span class="pl-c1">=</span> [[<span class="pl-s">'bar'</span>, <span class="pl-s">'bar'</span>, <span class="pl-s">'baz'</span>, <span class="pl-s">'baz'</span>, <span class="pl-s">'foo'</span>, <span class="pl-s">'foo'</span>, <span class="pl-s">'qux'</span>, <span class="pl-s">'qux'</span>], [<span class="pl-s">'one'</span>,
<span class="pl-s">'two'</span>, <span class="pl-s">'one'</span>, <span class="pl-s">'two'</span>, <span class="pl-s">'one'</span>, <span class="pl-s">'two'</span>, <span class="pl-s">'one'</span>, <span class="pl-s">'two'</span>]]
<span class="pl-s1">tuples</span> <span class="pl-c1">=</span> <span class="pl-en">list</span>(<span class="pl-en">zip</span>(<span class="pl-c1">*</span><span class="pl-s1">arrays</span>))
<span class="pl-s1">index</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">MultiIndex</span>.<span class="pl-en">from_tuples</span>(<span class="pl-s1">tuples</span>, <span class="pl-s1">names</span><span class="pl-c1">=</span>[<span class="pl-s">'first'</span>, <span class="pl-s">'second'</span>])
<span class="pl-s1">series</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randn</span>(<span class="pl-c1">8</span>), <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">index</span>)
<span class="pl-en">print</span>(<span class="pl-s1">series</span>.<span class="pl-en">to_json</span>())</pre></div>
<p dir="auto">Output:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{"["bar","one"]":-0.0591166327,"["bar","two"]":0.871145093,"["baz","one"]":0.61280938,"["baz","two"]":0.3848564991,"["foo","one"]":-0.8986592304,"["foo","two"]":-0.4631529084,"["qux","one"]":-1.3482521044,"["qux","two"]":0.5209236198}"><pre class="notranslate">{<span class="pl-s"><span class="pl-pds">"</span>[<span class="pl-pds">"</span></span><span class="pl-ii">bar","one"]":-0.0591166327,"["bar","two"]":0.871145093,"["baz","one"]":0.61280938,"["baz","two"]":0.3848564991,"["foo","one"]":-0.8986592304,"["foo","two"]":-0.4631529084,"["qux","one"]":-1.3482521044,"["qux","two"]":0.5209236198</span>}</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The output contains unescaped quotation marks, which makes the output invalid json.</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Quote marks should be escaped, for example:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{"[\"bar\",\"one\"]":-0.0591166327,"[\"bar\",\"two\"]":0.871145093,"[\"baz\",\"one\"]":0.61280938,"[\"baz\",\"two\"]":0.3848564991,"[\"foo\",\"one\"]":-0.8986592304,"[\"foo\",\"two\"]":-0.4631529084,"[\"qux\",\"one\"]":-1.3482521044,"[\"qux\",\"two\"]":0.5209236198}"><pre class="notranslate">{<span class="pl-ent">"[<span class="pl-cce">\"</span>bar<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>one<span class="pl-cce">\"</span>]"</span>:<span class="pl-c1">-0.0591166327</span>,<span class="pl-ent">"[<span class="pl-cce">\"</span>bar<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>two<span class="pl-cce">\"</span>]"</span>:<span class="pl-c1">0.871145093</span>,<span class="pl-ent">"[<span class="pl-cce">\"</span>baz<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>one<span class="pl-cce">\"</span>]"</span>:<span class="pl-c1">0.61280938</span>,<span class="pl-ent">"[<span class="pl-cce">\"</span>baz<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>two<span class="pl-cce">\"</span>]"</span>:<span class="pl-c1">0.3848564991</span>,<span class="pl-ent">"[<span class="pl-cce">\"</span>foo<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>one<span class="pl-cce">\"</span>]"</span>:<span class="pl-c1">-0.8986592304</span>,<span class="pl-ent">"[<span class="pl-cce">\"</span>foo<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>two<span class="pl-cce">\"</span>]"</span>:<span class="pl-c1">-0.4631529084</span>,<span class="pl-ent">"[<span class="pl-cce">\"</span>qux<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>one<span class="pl-cce">\"</span>]"</span>:<span class="pl-c1">-1.3482521044</span>,<span class="pl-ent">"[<span class="pl-cce">\"</span>qux<span class="pl-cce">\"</span>,<span class="pl-cce">\"</span>two<span class="pl-cce">\"</span>]"</span>:<span class="pl-c1">0.5209236198</span>}</pre></div>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<p dir="auto">I reproduced it in pandas install from master:</p>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.6.0.final.0
python-bits: 64
OS: Linux
OS-release: 4.8.8-200.fc24.x86_64
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_AU.UTF-8
LOCALE: en_AU.UTF-8
<p dir="auto">pandas: 0.19.0+401.g8452080<br>
nose: None<br>
pip: 9.0.1<br>
setuptools: 27.2.0<br>
Cython: 0.25.2<br>
numpy: 1.12.0<br>
scipy: None<br>
statsmodels: None<br>
xarray: None<br>
IPython: None<br>
sphinx: None<br>
patsy: None<br>
dateutil: 2.6.0<br>
pytz: 2016.10<br>
blosc: None<br>
bottleneck: None<br>
tables: None<br>
numexpr: None<br>
feather: None<br>
matplotlib: None<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: None<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: None<br>
s3fs: None<br>
pandas_datareader: None</p>
</details>
|
<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 pandas as pd
import datetime
pd.read_json(pd.DataFrame(True, index=pd.date_range(datetime.date(2017, 1, 20), datetime.date(2017, 1, 23)), columns=['foo', 'bar']).stack().to_json())
"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-k">import</span> <span class="pl-s1">datetime</span>
<span class="pl-s1">pd</span>.<span class="pl-en">read_json</span>(<span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>(<span class="pl-c1">True</span>, <span class="pl-s1">index</span><span class="pl-c1">=</span><span class="pl-s1">pd</span>.<span class="pl-en">date_range</span>(<span class="pl-s1">datetime</span>.<span class="pl-en">date</span>(<span class="pl-c1">2017</span>, <span class="pl-c1">1</span>, <span class="pl-c1">20</span>), <span class="pl-s1">datetime</span>.<span class="pl-en">date</span>(<span class="pl-c1">2017</span>, <span class="pl-c1">1</span>, <span class="pl-c1">23</span>)), <span class="pl-s1">columns</span><span class="pl-c1">=</span>[<span class="pl-s">'foo'</span>, <span class="pl-s">'bar'</span>]).<span class="pl-en">stack</span>().<span class="pl-en">to_json</span>())</pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">The result of <code class="notranslate">pd.DataFrame(True, index=pd.date_range(datetime.date(2017, 1, 20), datetime.date(2017, 1, 23)), columns=['foo', 'bar']).stack().to_json()</code> contains</p>
<p dir="auto"><code class="notranslate">r'{"[1484870400000,"foo"]":true,"[1484870400000,"bar"]"'</code>,</p>
<h4 dir="auto">Expected Output</h4>
<p dir="auto">Whereas it should be:<br>
<code class="notranslate">r'{"[1484870400000,\"foo\"]":true,"[1484870400000,\"bar\"]"'</code></p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 3.4.5.final.0
python-bits: 32
OS: Windows
machine: AMD64
LC_ALL: None
LANG: None
LOCALE: None.None
<p dir="auto">pandas: 0.19.1<br>
Cython: 0.25.1<br>
numpy: 1.11.2<br>
pandas_datareader: None</p>
</details>
| 1 |
<p dir="auto">When using a multi-line text field with full width the field isn't full width.</p>
<p dir="auto">Regression of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268192316" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8835" data-hovercard-type="pull_request" data-hovercard-url="/mui/material-ui/pull/8835/hovercard" href="https://github.com/mui/material-ui/pull/8835">#8835</a> (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="268008317" data-permission-text="Title is private" data-url="https://github.com/mui/material-ui/issues/8825" data-hovercard-type="issue" data-hovercard-url="/mui/material-ui/issues/8825/hovercard" href="https://github.com/mui/material-ui/issues/8825">#8825</a>)</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">The textfield / textarea should be full width.</p>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">The textfield / textarea is not full width.</p>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto"><a href="https://codesandbox.io/s/l5on3rjokl" rel="nofollow">https://codesandbox.io/s/l5on3rjokl</a></p>
<p dir="auto">Input field should be full width.</p>
<h2 dir="auto">Context</h2>
<p dir="auto">Works in beta 18</p>
<p dir="auto">Culprit is this change <a href="https://github.com/callemall/material-ui/pull/8835/files#diff-deaeb5c7e253bfa4f497fa8ace0b3607R67">https://github.com/callemall/material-ui/pull/8835/files#diff-deaeb5c7e253bfa4f497fa8ace0b3607R67</a></p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>v1.0.0-beta.19</td>
</tr>
<tr>
<td>React</td>
<td>15</td>
</tr>
<tr>
<td>browser</td>
<td>Chrome 62</td>
</tr>
</tbody>
</table>
|
<p dir="auto">The <code class="notranslate"><Input /></code> and <code class="notranslate"><TextField /></code> component's props: <em>spellcheck</em> and <em>lang</em> should be set on the input and textfield respectively</p>
<ul dir="auto">
<li>[x ] I have searched the <a href="https://github.com/callemall/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li>
</ul>
<h2 dir="auto">Expected Behavior</h2>
<p dir="auto">I would expect that spellcheck and lang props propagates down to the input or textfield elements within the respective components.</p>
<p dir="auto">Rendered expected html looks something like this(Simplified):</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div class="mui-root" >
<div class="muiTextArea-root">
<textarea spellcheck=true lang="nn"/>
</div>
<div/>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">mui-root</span>" <span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">muiTextArea-root</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">textarea</span> <span class="pl-c1">spellcheck</span>=<span class="pl-s">true</span> <span class="pl-c1">lang</span>="<span class="pl-s">nn</span>"/>
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span>/></pre></div>
<h2 dir="auto">Current Behavior</h2>
<p dir="auto">Currently when rendered the props are set on the wrapper when using <code class="notranslate"><Input /></code> or <code class="notranslate"><TextField /></code> . The props are not set on the input or textfield element.</p>
<p dir="auto">Rendered html:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<div class="mui-root" spellcheck=true lang="nn">
<div class="muiTextArea-root">
<textarea />
</div>
<div/>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">mui-root</span>" <span class="pl-c1">spellcheck</span>=<span class="pl-s">true</span> <span class="pl-c1">lang</span>="<span class="pl-s">nn</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">muiTextArea-root</span>"<span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">textarea</span> />
<span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span>/></pre></div>
<h2 dir="auto">Steps to Reproduce (for bugs)</h2>
<p dir="auto">Test the html in IE: <a href="https://codepen.io/doff3n/pen/xPqgGR" rel="nofollow">https://codepen.io/doff3n/pen/xPqgGR</a> You may need to paste the text again</p>
<p dir="auto">This is what I used:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<Input
spellCheck={true}
lang={language}
multiline
fullWidth={true}
value={this.state.text}
onChange={this.handleChangeText}
/>"><pre class="notranslate"><span class="pl-c1"><</span><span class="pl-ent">Input</span>
<span class="pl-c1">spellCheck</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span>
<span class="pl-c1">lang</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">language</span><span class="pl-kos">}</span>
<span class="pl-c1">multiline</span>
<span class="pl-c1">fullWidth</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-c1">true</span><span class="pl-kos">}</span>
<span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">state</span><span class="pl-kos">.</span><span class="pl-c1">text</span><span class="pl-kos">}</span>
<span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">handleChangeText</span><span class="pl-kos">}</span>
<span class="pl-c1">/</span><span class="pl-c1">></span></pre></div>
<h2 dir="auto">Context</h2>
<p dir="auto">I am implementing a spellchecker where you should be able to switch between different spellchecking languages, In norway we have two different official written languages. It should also be possible to turn off the spellcheck. In chrome the value is inherited as according to <a href="https://html.spec.whatwg.org/multipage/interaction.html#spelling-and-grammar-checking" rel="nofollow"> spec</a>. A solution where I could set the props directly on the input element would work for me, or that the props are inherited down to the element.</p>
<h2 dir="auto">Your Environment</h2>
<table role="table">
<thead>
<tr>
<th>Tech</th>
<th>Version</th>
</tr>
</thead>
<tbody>
<tr>
<td>Material-UI</td>
<td>1.0.0-beta.17</td>
</tr>
<tr>
<td>React</td>
<td>16.0.0</td>
</tr>
<tr>
<td>browser</td>
<td>IE11</td>
</tr>
</tbody>
</table>
| 0 |
<p dir="auto">I am trying to load my web application to electron. But many of my application functions are not working in electron. Major problem is dropdown lists are not showing up. I tried loading with window.loadurl and also using webview in index.html.</p>
<ul dir="auto">
<li>Electron version: 1.7.9</li>
<li>Operating system: Windows 10</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">I like to get my web application with full functionalities working in electron</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">Many jquery functions not working. Dropdowns not showing up...</p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">My current html is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<html>
<head>
<title>jQuery injection into webview preload</title>
</head>
<body style="overflow:hidden;">
<webview id="webview" preload="./preload.js" src="http://www.mcgeoautomation.com" style="position:absolute;width:100%;height:100%;"></webview>
<script>
// need to have a script tag make webview work even if you don't plan to use it...
</script>
</body>
</html>"><pre lang="<!DOCTYPE" class="notranslate"><code class="notranslate"><html>
<head>
<title>jQuery injection into webview preload</title>
</head>
<body style="overflow:hidden;">
<webview id="webview" preload="./preload.js" src="http://www.mcgeoautomation.com" style="position:absolute;width:100%;height:100%;"></webview>
<script>
// need to have a script tag make webview work even if you don't plan to use it...
</script>
</body>
</html>
</code></pre></div>
<p dir="auto">Preload.js is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var script = document.createElement("script");
script.src = "./jquery.min.js";
document.body.appendChild(script);
};"><pre lang="window.onload" class="notranslate"><code class="notranslate"> var script = document.createElement("script");
script.src = "./jquery.min.js";
document.body.appendChild(script);
};
</code></pre></div>
<p dir="auto">index.js is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="const app = electron.app;
var path=require('path');
const BrowserWindow = electron.BrowserWindow;
var mainWindow;
app.on('ready',function(){
mainWindow = new BrowserWindow({
width: 1024,
height: 768,
backgroundColor: '#2e2c29',
show:false,
});
mainWindow.loadURL(`file://${__dirname}/webView.html`);
mainWindow.maximize(true);
mainWindow.once('ready-to-show',()=>{
mainWindow.show()
})
mainWindow.on('close', (e)=>{
app.quit();
});
});"><pre lang="const" class="notranslate"><code class="notranslate">const app = electron.app;
var path=require('path');
const BrowserWindow = electron.BrowserWindow;
var mainWindow;
app.on('ready',function(){
mainWindow = new BrowserWindow({
width: 1024,
height: 768,
backgroundColor: '#2e2c29',
show:false,
});
mainWindow.loadURL(`file://${__dirname}/webView.html`);
mainWindow.maximize(true);
mainWindow.once('ready-to-show',()=>{
mainWindow.show()
})
mainWindow.on('close', (e)=>{
app.quit();
});
});
</code></pre></div>
<p dir="auto">Package json:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" "name": "crushmate",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "electron ."
},
"author": "",
"license": "ISC",
"dependencies": {
"electron": "^1.7.9",
"jquery": "^3.2.1"
},
"devDependencies": {
"electron-prebuilt": "^1.4.13"
}
}"><pre lang="{" class="notranslate"><code class="notranslate"> "name": "crushmate",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "electron ."
},
"author": "",
"license": "ISC",
"dependencies": {
"electron": "^1.7.9",
"jquery": "^3.2.1"
},
"devDependencies": {
"electron-prebuilt": "^1.4.13"
}
}
</code></pre></div>
<p dir="auto">Please help....<br>
Regards</p>
|
<p dir="auto">Electron version: 1.7.3 beta<br>
Operating system: Windows 7 x86_64 Professional</p>
<p dir="auto">Clicking the pyramid icon on an input control associated with a data list and picking a value from the list, then evaluating <code class="notranslate">value</code> property of the input control, the value is expected to match the text chosen from the data list, which the input control is now showing.</p>
<p dir="auto">Instead, the text returned by <code class="notranslate">value</code> property is an empty string, or at least the string that was manually typed into the input control prior.</p>
<p dir="auto">Only manual editing of value of the input control, as you would with an ordinary text input without a n associated datalist, causes the <code class="notranslate">value</code> property to yield the same text that the input control is showing.</p>
<p dir="auto">Using following markup to reproduce by loading up default Electron distribution and typing <code class="notranslate">document.location = ...; /* path to file containing below text */</code> in Developer Tools console:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="<!DOCTYPE html>
<html>
<body>
<input list="foobar">
<datalist id="foobar">
<option value="apple">
<option value="orange">
<option value="banana">
</datalist>
</body>
</html>"><pre class="notranslate"><code class="notranslate"><!DOCTYPE html>
<html>
<body>
<input list="foobar">
<datalist id="foobar">
<option value="apple">
<option value="orange">
<option value="banana">
</datalist>
</body>
</html>
</code></pre></div>
| 1 |
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/zyy7259/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/zyy7259">@zyy7259</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.10.4</li>
<li><strong>Node version:</strong> 5.10.1</li>
<li><strong>npm version:</strong> 3.8.3</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="query: {
presets: ['es2015'],
cacheDirectory: true,
plugins: [
'transform-es3-property-literals',
'transform-es3-member-expression-literals',
["transform-es2015-modules-commonjs", {
"loose": true
}]
]
}"><pre class="notranslate"><code class="notranslate">query: {
presets: ['es2015'],
cacheDirectory: true,
plugins: [
'transform-es3-property-literals',
'transform-es3-member-expression-literals',
["transform-es2015-modules-commonjs", {
"loose": true
}]
]
}
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export * from './mixin'"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-c1">*</span> <span class="pl-k">from</span> <span class="pl-s">'./mixin'</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">The <a href="http://babeljs.io/docs/plugins/transform-es2015-modules-commonjs/" rel="nofollow">doc</a> says:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="In environments that don’t support this you can enable loose mode on es6.modules and instead of using Object.defineProperty an assignment will be used instead."><pre class="notranslate"><code class="notranslate">In environments that don’t support this you can enable loose mode on es6.modules and instead of using Object.defineProperty an assignment will be used instead.
</code></pre></div>
<p dir="auto">But it only works for the <code class="notranslate">__esModule</code> property.</p>
<p dir="auto">Without loose, the output is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Object.defineProperty(exports, "__esModule", {
value: true
});"><pre class="notranslate"><code class="notranslate">Object.defineProperty(exports, "__esModule", {
value: true
});
</code></pre></div>
<p dir="auto">With loose, the output is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="exports.__esModule = true;"><pre class="notranslate"><code class="notranslate">exports.__esModule = true;
</code></pre></div>
<p dir="auto">But when I re-export a module</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export * from './mixin'"><pre class="notranslate"><code class="notranslate">export * from './mixin'
</code></pre></div>
<p dir="auto">The output is (with or without the loose option):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Object.keys(_mixin).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _mixin[key];
}
});
});"><pre class="notranslate"><code class="notranslate">Object.keys(_mixin).forEach(function (key) {
if (key === "default") return;
Object.defineProperty(exports, key, {
enumerable: true,
get: function get() {
return _mixin[key];
}
});
});
</code></pre></div>
<p dir="auto">Which will break on IE8</p>
|
<blockquote>
<p dir="auto">Issue originally made by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/timdorr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/timdorr">@timdorr</a></p>
</blockquote>
<h3 dir="auto">Bug information</h3>
<ul dir="auto">
<li><strong>Babel version:</strong> 6.7.7</li>
<li><strong>Node version:</strong> 5.5.0</li>
<li><strong>npm version:</strong> 3.8.7</li>
</ul>
<h3 dir="auto">Options</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
"presets": ["es2015-loose", "stage-1", "react"],
"plugins": [
"transform-es3-member-expression-literals",
"transform-es3-property-literals"
]
}"><pre class="notranslate"><code class="notranslate">{
"presets": ["es2015-loose", "stage-1", "react"],
"plugins": [
"transform-es3-member-expression-literals",
"transform-es3-property-literals"
]
}
</code></pre></div>
<h3 dir="auto">Input code</h3>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export { foo, bar } from './baz'"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-kos">{</span> <span class="pl-s1">foo</span><span class="pl-kos">,</span> <span class="pl-s1">bar</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./baz'</span></pre></div>
<h3 dir="auto">Description</h3>
<p dir="auto">Apologies if this has been discussed before. T2322 is tangentially related and fixed by <code class="notranslate">add-module-exports</code>.</p>
<p dir="auto">When using the above input code, you get something like this as output:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var _baz = require('./baz');
Object.defineProperty(exports, 'foo', {
enumerable: true,
get: function get() {
return _baz.foo;
}
});
Object.defineProperty(exports, 'bar', {
enumerable: true,
get: function get() {
return _baz.bar;
}
});"><pre class="notranslate"><code class="notranslate">var _baz = require('./baz');
Object.defineProperty(exports, 'foo', {
enumerable: true,
get: function get() {
return _baz.foo;
}
});
Object.defineProperty(exports, 'bar', {
enumerable: true,
get: function get() {
return _baz.bar;
}
});
</code></pre></div>
<p dir="auto">While core-js/babel-polyfill can add in defineProperty support, it cannot do getters. I'm not sure why defineProperty is used, so pardon my ignorance if I'm missing something super-obvious. But can't a simple property assignment be used instead? It's enumerable anyways, so I'm not sure of the practical difference.</p>
<p dir="auto">It appears <a href="https://github.com/babel/babel/blob/master/packages/babel-plugin-transform-es2015-modules-commonjs/src/index.js#L17-L24">the code template remains untouched since the original 6.0.0 release</a>, so perhaps it needs to be touched up a bit? I'm happy to submit a PR.</p>
| 1 |
<p dir="auto">I have a following class</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class AddAnimalComponent {
public st: string;
public dyn: string;
public errMessage: string;
@Output() added = new EventEmitter<Animal>();
constructor() {
}
add() {
throw new Error('Not implemented');
}
clearErr() {
this.errMessage = '';
}
normalize() {
this.st = this.st.trim();
if (this.dyn) {
this.dyn = this.dyn.trim();
}
}
clear() {
this.clearErr();
this.st = '';
if (this.dyn) {
this.dyn = '';
}
}
}"><pre class="notranslate"><code class="notranslate">export class AddAnimalComponent {
public st: string;
public dyn: string;
public errMessage: string;
@Output() added = new EventEmitter<Animal>();
constructor() {
}
add() {
throw new Error('Not implemented');
}
clearErr() {
this.errMessage = '';
}
normalize() {
this.st = this.st.trim();
if (this.dyn) {
this.dyn = this.dyn.trim();
}
}
clear() {
this.clearErr();
this.st = '';
if (this.dyn) {
this.dyn = '';
}
}
}
</code></pre></div>
<p dir="auto">And then a subclass:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Component({
selector: 'add-expansion',
templateUrl: './templates/add-expansion.html',
directives: [MultiValueInput]
})
export class AddExpansionComponent extends AddAnimalComponent implements AfterViewInit {
//@Input('expansion') expansionType: string;
constructor(private _animalService: AnimalService,
@Inject('App.constants') private constants,
private toastr: ToastsManager
) {
super();
}
ngAfterViewInit() {
//if (!this.expansionType) {
// throw new Error('No expansion synonym type specified.');
//}
}
add() {
this.clearErr();
this.normalize();
if (this.st && this.st.length) {
let abbr = new Animal(this.st);
this._animalService.addAnimal(this.constants.activePartner, 'expansion-synonym', abbr)
.subscribe((data) => {
if (!data.success) {
this.toastr.error(data.error, 'Oops');
if (data.result) {
this.errMessage = 'Existed: ' + JSON.stringify(data.result[0]);
}
} else {
abbr = new Animal(data.result.st, data.result.dyn, data.result._id, data.result.status, data.result.action, data.result.newdyn);
this.added.emit(abbr);
this.clear();
}
},
(err) => { this.errMessage = `Oops, server error: ${err}`; }
);
}
}
onDuplicate(item) {
this.toastr.warning(`You have entered '${item}' more than once.`);
}
}"><pre class="notranslate"><code class="notranslate">@Component({
selector: 'add-expansion',
templateUrl: './templates/add-expansion.html',
directives: [MultiValueInput]
})
export class AddExpansionComponent extends AddAnimalComponent implements AfterViewInit {
//@Input('expansion') expansionType: string;
constructor(private _animalService: AnimalService,
@Inject('App.constants') private constants,
private toastr: ToastsManager
) {
super();
}
ngAfterViewInit() {
//if (!this.expansionType) {
// throw new Error('No expansion synonym type specified.');
//}
}
add() {
this.clearErr();
this.normalize();
if (this.st && this.st.length) {
let abbr = new Animal(this.st);
this._animalService.addAnimal(this.constants.activePartner, 'expansion-synonym', abbr)
.subscribe((data) => {
if (!data.success) {
this.toastr.error(data.error, 'Oops');
if (data.result) {
this.errMessage = 'Existed: ' + JSON.stringify(data.result[0]);
}
} else {
abbr = new Animal(data.result.st, data.result.dyn, data.result._id, data.result.status, data.result.action, data.result.newdyn);
this.added.emit(abbr);
this.clear();
}
},
(err) => { this.errMessage = `Oops, server error: ${err}`; }
);
}
}
onDuplicate(item) {
this.toastr.warning(`You have entered '${item}' more than once.`);
}
}
</code></pre></div>
<p dir="auto">When I have <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/input/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/input">@input</a> expansionType defined, the line<br>
<code class="notranslate">this.added.emit(abbr);</code> is not emitting any events. However, once I got all expansionType commented, the emit works.</p>
|
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> bug report => search github for a similar issue or PR before submitting</li>
</ul>
<p dir="auto"><strong>Current behavior</strong><br>
[ngStyle] is ignored when using a dynamic component</p>
<p dir="auto"><strong>Expected behavior</strong><br>
[ngStyle] should not be ignored</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Using the quick start, here are the relevant changes (I couldn't find a ready to use plunker I can duplicate and share...)<br>
Add a dynamic component:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({
selector: "dynamic",
template: `<div [ngStyle]="{color: 'red'}">Red</div>`
})
export class DynamicComponent { }"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">selector</span>: <span class="pl-s">"dynamic"</span><span class="pl-kos">,</span>
<span class="pl-c1">template</span>: <span class="pl-s">`<div [ngStyle]="{color: 'red'}">Red</div>`</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">DynamicComponent</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">in app.component.ts:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="@Component({
selector: 'my-app',
template: `<h1 [ngStyle]="{color: 'red' }">Hello {{name}}</h1>`
})
export class AppComponent {
name = 'Angular';
constructor(private injector: Injector,
private componentFactoryResolver: ComponentFactoryResolver,) {
let componentFactory = this.componentFactoryResolver.resolveComponentFactory(DynamicComponent);
let divComp = document.getElementById("thisOne");
componentFactory.create(this.injector, [], divComp);
}
}"><pre class="notranslate">@<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span>
<span class="pl-c1">selector</span>: <span class="pl-s">'my-app'</span><span class="pl-kos">,</span>
<span class="pl-c1">template</span>: <span class="pl-s">`<h1 [ngStyle]="{color: 'red' }">Hello {{name}}</h1>`</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span>
<span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">AppComponent</span> <span class="pl-kos">{</span>
<span class="pl-c1">name</span> <span class="pl-c1">=</span> <span class="pl-s">'Angular'</span><span class="pl-kos">;</span>
<span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-k">private</span> <span class="pl-s1">injector</span>: <span class="pl-smi">Injector</span><span class="pl-kos">,</span>
<span class="pl-k">private</span> <span class="pl-s1">componentFactoryResolver</span>: <span class="pl-smi">ComponentFactoryResolver</span><span class="pl-kos">,</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> <span class="pl-s1">componentFactory</span> <span class="pl-c1">=</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">componentFactoryResolver</span><span class="pl-kos">.</span><span class="pl-en">resolveComponentFactory</span><span class="pl-kos">(</span><span class="pl-smi">DynamicComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">let</span> <span class="pl-s1">divComp</span> <span class="pl-c1">=</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">getElementById</span><span class="pl-kos">(</span><span class="pl-s">"thisOne"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-s1">componentFactory</span><span class="pl-kos">.</span><span class="pl-en">create</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">injector</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">divComp</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 index.html add a div and remove all existing styles:</p>
<div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="<body>
<div id="thisOne"></div>
<my-app>Loading AppComponent content here ...</my-app>
</body>"><pre class="notranslate"><span class="pl-kos"><</span><span class="pl-ent">body</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">thisOne</span>"<span class="pl-kos">></span><span class="pl-kos"></</span><span class="pl-ent">div</span><span class="pl-kos">></span>
<span class="pl-kos"><</span><span class="pl-ent">my-app</span><span class="pl-kos">></span>Loading AppComponent content here ...<span class="pl-kos"></</span><span class="pl-ent">my-app</span><span class="pl-kos">></span>
<span class="pl-kos"></</span><span class="pl-ent">body</span><span class="pl-kos">></span></pre></div>
<p dir="auto">This is what I get:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/3269297/25746236/3e95b6c8-31ab-11e7-996c-1c37c9e14c52.png"><img src="https://cloud.githubusercontent.com/assets/3269297/25746236/3e95b6c8-31ab-11e7-996c-1c37c9e14c52.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">the word "red" should be in red color I believe, unless I did something wrong.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
I'm using visual studio, but I don't think it matters here as I was able to reproduce it in a plunker that I can't share for some reason...</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 4.0.3</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> checked on Chrome, but probably all</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> TypeScript 2.2.1 | ES6</p>
</li>
</ul>
| 0 |
<p dir="auto">Test case:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="trait T<X> { }
fn foo<I:T<&'self int>>() { }
fn main() { }"><pre class="notranslate"><span class="pl-k">trait</span> <span class="pl-smi">T</span><span class="pl-kos"><</span><span class="pl-smi">X</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">foo</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-c1">&</span><span class="pl-c1">'</span><span class="pl-ent">self</span> <span class="pl-smi">int</span><span class="pl-kos">></span><span class="pl-kos">></span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span></pre></div>
<p dir="auto">Transcript:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="% RUST_LOG=rustc=1 rustc --version
/Users/pnkfelix/opt/rust-dbg/bin/rustc 0.8-pre (dd5c737 2013-09-08 12:05:55 -0700)
host: x86_64-apple-darwin
% RUST_LOG=rustc=1 rustc /tmp/baz.rs
task <unnamed> failed at 'assertion failed: rp.is_none()', /Users/pnkfelix/Dev/Mozilla/rust.git/src/librustc/middle/typeck/collect.rs:1108
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=1 to get further details and report the results to github.com/mozilla/rust/issues
task <unnamed> failed at 'explicit failure', /Users/pnkfelix/Dev/Mozilla/rust.git/src/librustc/rustc.rs:376"><pre class="notranslate"><code class="notranslate">% RUST_LOG=rustc=1 rustc --version
/Users/pnkfelix/opt/rust-dbg/bin/rustc 0.8-pre (dd5c737 2013-09-08 12:05:55 -0700)
host: x86_64-apple-darwin
% RUST_LOG=rustc=1 rustc /tmp/baz.rs
task <unnamed> failed at 'assertion failed: rp.is_none()', /Users/pnkfelix/Dev/Mozilla/rust.git/src/librustc/middle/typeck/collect.rs:1108
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=1 to get further details and report the results to github.com/mozilla/rust/issues
task <unnamed> failed at 'explicit failure', /Users/pnkfelix/Dev/Mozilla/rust.git/src/librustc/rustc.rs:376
</code></pre></div>
|
<p dir="auto">Compile:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example #1
mod mod_a {
mod sub_a {
pub struct InnerA;
}
pub type A = sub_a::InnerA;
}
use mod_a::A;
fn main() {
let a=A;
}"><pre class="notranslate"><span class="pl-c">// Example #1</span>
<span class="pl-k">mod</span> mod_a <span class="pl-kos">{</span>
<span class="pl-k">mod</span> sub_a <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">pub</span> <span class="pl-k">type</span> <span class="pl-smi">A</span> = sub_a<span class="pl-kos">::</span><span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">use</span> mod_a<span class="pl-kos">::</span><span class="pl-v">A</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a=<span class="pl-v">A</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error[E0425]: unresolved name `A`
--> test.rs:12:11
|
12 | let a=A;
| ^ unresolved name"><pre class="notranslate"><code class="notranslate">error[E0425]: unresolved name `A`
--> test.rs:12:11
|
12 | let a=A;
| ^ unresolved name
</code></pre></div>
<p dir="auto">Yet A is quite obviously imported. The same error appears in a different place when compiling:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example #2
mod mod_a {
mod sub_a {
pub struct InnerA;
}
pub type A = sub_a::InnerA;
pub fn make_a() -> A {
A
}
}
use mod_a::{A,make_a};
fn main() {
let a: A=make_a();
}"><pre class="notranslate"><span class="pl-c">// Example #2</span>
<span class="pl-k">mod</span> mod_a <span class="pl-kos">{</span>
<span class="pl-k">mod</span> sub_a <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">pub</span> <span class="pl-k">type</span> <span class="pl-smi">A</span> = sub_a<span class="pl-kos">::</span><span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">make_a</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
<span class="pl-v">A</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">use</span> mod_a<span class="pl-kos">::</span><span class="pl-kos">{</span><span class="pl-v">A</span><span class="pl-kos">,</span>make_a<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a<span class="pl-kos">:</span> <span class="pl-smi">A</span>=<span class="pl-en">make_a</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error[E0425]: unresolved name `A`
--> test.rs:9:9
|
9 | A
| ^ unresolved name"><pre class="notranslate"><code class="notranslate">error[E0425]: unresolved name `A`
--> test.rs:9:9
|
9 | A
| ^ unresolved name
</code></pre></div>
<p dir="auto">This compiles:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example #3
mod mod_a {
mod sub_a {
pub struct InnerA;
}
pub type A = sub_a::InnerA;
pub fn make_a() -> A {
sub_a::InnerA
}
}
use mod_a::{A,make_a};
fn main() {
let a: A=make_a();
}"><pre class="notranslate"><span class="pl-c">// Example #3</span>
<span class="pl-k">mod</span> mod_a <span class="pl-kos">{</span>
<span class="pl-k">mod</span> sub_a <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">pub</span> <span class="pl-k">type</span> <span class="pl-smi">A</span> = sub_a<span class="pl-kos">::</span><span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">make_a</span><span class="pl-kos">(</span><span class="pl-kos">)</span> -> <span class="pl-smi">A</span> <span class="pl-kos">{</span>
sub_a<span class="pl-kos">::</span><span class="pl-v">InnerA</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">use</span> mod_a<span class="pl-kos">::</span><span class="pl-kos">{</span><span class="pl-v">A</span><span class="pl-kos">,</span>make_a<span class="pl-kos">}</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a<span class="pl-kos">:</span> <span class="pl-smi">A</span>=<span class="pl-en">make_a</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">But wait, I thought in example no. 1, we couldn't resolve <code class="notranslate">A</code> from <code class="notranslate">main()</code>?</p>
<p dir="auto">Using <code class="notranslate">pub use</code> instead makes example no. 1 work:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example #4
mod mod_a {
mod sub_a {
pub struct InnerA;
}
pub use self::sub_a::InnerA as A;
}
use mod_a::A;
fn main() {
let a=A;
}"><pre class="notranslate"><span class="pl-c">// Example #4</span>
<span class="pl-k">mod</span> mod_a <span class="pl-kos">{</span>
<span class="pl-k">mod</span> sub_a <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">pub</span> <span class="pl-k">use</span> <span class="pl-k">self</span><span class="pl-kos">::</span>sub_a<span class="pl-kos">::</span><span class="pl-v">InnerA</span> <span class="pl-k">as</span> <span class="pl-v">A</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">use</span> mod_a<span class="pl-kos">::</span><span class="pl-v">A</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a=<span class="pl-v">A</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">For completeness, here is the tuple-struct version:</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example #5
mod mod_a {
mod sub_a {
pub struct InnerA(pub u8);
}
pub type A = sub_a::InnerA;
}
use mod_a::A;
fn main() {
let a=A(0);
}"><pre class="notranslate"><span class="pl-c">// Example #5</span>
<span class="pl-k">mod</span> mod_a <span class="pl-kos">{</span>
<span class="pl-k">mod</span> sub_a <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">InnerA</span><span class="pl-kos">(</span><span class="pl-k">pub</span> <span class="pl-smi">u8</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">pub</span> <span class="pl-k">type</span> <span class="pl-smi">A</span> = sub_a<span class="pl-kos">::</span><span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">use</span> mod_a<span class="pl-kos">::</span><span class="pl-v">A</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a=<span class="pl-v">A</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-kos">}</span></pre></div>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error[E0425]: unresolved name `A`
--> test.rs:12:11
|
12 | let a=A(0);
| ^ unresolved name"><pre class="notranslate"><code class="notranslate">error[E0425]: unresolved name `A`
--> test.rs:12:11
|
12 | let a=A(0);
| ^ unresolved name
</code></pre></div>
<p dir="auto">And the regular struct version (compiles without errors):</p>
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Example #6
mod mod_a {
mod sub_a {
pub struct InnerA {pub i:u8}
}
pub type A = sub_a::InnerA;
}
use mod_a::A;
fn main() {
let a=A{i:0};
}"><pre class="notranslate"><span class="pl-c">// Example #6</span>
<span class="pl-k">mod</span> mod_a <span class="pl-kos">{</span>
<span class="pl-k">mod</span> sub_a <span class="pl-kos">{</span>
<span class="pl-k">pub</span> <span class="pl-k">struct</span> <span class="pl-smi">InnerA</span> <span class="pl-kos">{</span><span class="pl-k">pub</span> <span class="pl-c1">i</span><span class="pl-kos">:</span><span class="pl-smi">u8</span><span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-k">pub</span> <span class="pl-k">type</span> <span class="pl-smi">A</span> = sub_a<span class="pl-kos">::</span><span class="pl-smi">InnerA</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-k">use</span> mod_a<span class="pl-kos">::</span><span class="pl-v">A</span><span class="pl-kos">;</span>
<span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">let</span> a=<span class="pl-smi">A</span><span class="pl-kos">{</span><span class="pl-c1">i</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-kos">}</span></pre></div>
<p dir="auto">It seems like structure <del>expressions</del>constructors are handled differently from other uses of types with regards to aliases. Also, the phrase <code class="notranslate">pub type</code> does not appear in the Rust Book or the Rust Reference.</p>
<p dir="auto">I propose the following:</p>
<ul dir="auto">
<li>Improve the error message in cases 1, 2 and 5 above</li>
<li>Improve documentation on public type aliases</li>
<li>Improve documentation on structure <del>expressions</del>constructors involving type aliases</li>
</ul>
| 0 |
<p dir="auto"><strong>I'm submitting a ...</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => 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>
rxjs_observable_of.of is undefined in ApplyRedirects.prototype.expandSegment when using rxjs bundle (5.0.0-beta.12)</p>
<p dir="auto"><strong>Expected behavior</strong><br>
rxjs_observable_of.of should be defined as the Of operator.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Unable to use the router when using the bundle. The load time of my application is slow when all operators has to be loaded one by one.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>
<h3 dir="auto">package.json:</h3>
<blockquote>
<p dir="auto">{<br>
"name": "angular-quickstart",<br>
"version": "1.0.0",<br>
"description": "QuickStart package.json from the documentation, supplemented with testing support",<br>
"scripts": {<br>
"start": "tsc && concurrently "tsc -w" "lite-server" ",<br>
"pree2e": "npm run webdriver:update",<br>
"e2e": "tsc && concurrently "http-server -s" "protractor protractor.config.js" --kill-others --success first",<br>
"lint": "tslint ./Application/*<em>/</em>.ts -t verbose",<br>
"lite": "lite-server",<br>
"test": "grunt build && concurrently "grunt watch" "karma start Build/karma.conf.js"",<br>
"test-once": "tsc && karma start karma.conf.js --single-run",<br>
"tsc": "tsc",<br>
"tsc:w": "tsc -w",<br>
"webdriver:update": "webdriver-manager update"<br>
},<br>
"keywords": [],<br>
"author": "",<br>
"license": "ISC",<br>
"dependencies": {<br>
"@angular/common": "2.0.1",<br>
"@angular/compiler": "2.0.1",<br>
"@angular/core": "2.0.1",<br>
"@angular/forms": "2.0.1",<br>
"@angular/http": "2.0.1",<br>
"@angular/platform-browser": "2.0.1",<br>
"@angular/platform-browser-dynamic": "2.0.1",<br>
"@angular/router": "3.0.1",<br>
"systemjs": "0.19.39",<br>
"core-js": "^2.4.1",<br>
"reflect-metadata": "^0.1.3",<br>
"rxjs": "5.0.0-beta.12",<br>
"zone.js": "^0.6.23",<br>
"bootstrap": "^3.3.6",<br>
"system-text": "0.1.0",<br>
"angular2-jwt": "0.1.23",<br>
"es6-module-loader": "0.17.11",<br>
"es6-promise": "4.0.5",<br>
"es6-shim": "0.35.1",<br>
"font-awesome": "4.6.3",<br>
"jquery": "3.1.1",<br>
"ng2-bootstrap": "1.1.5",<br>
"normalize.css": "4.2.0",<br>
"underscore": "1.8.3"<br>
},<br>
"devDependencies": {<br>
"@types/core-js": "^0.9.34",<br>
"@types/jasmine": "^2.2.34",<br>
"@types/jquery": "^2.0.32",<br>
"@types/karma": "^0.13.33",<br>
"@types/moment": "^2.13.0",<br>
"@types/underscore": "^1.7.33",<br>
"canonical-path": "0.0.2",<br>
"concurrently": "^3.0.0",<br>
"extend": "3.0.0",<br>
"grunt": "~0.4.0",<br>
"grunt-cli": "1.2.0",<br>
"grunt-contrib-clean": "1.0.0",<br>
"grunt-contrib-connect": "1.0.2",<br>
"grunt-contrib-copy": "1.0.0",<br>
"grunt-contrib-less": "1.4.0",<br>
"grunt-este-watch": "0.1.18",<br>
"grunt-ts": "6.0.0-beta.3",<br>
"grunt-tslint": "3.2.1",<br>
"http-server": "^0.9.0",<br>
"jasmine-core": "~2.5.2",<br>
"karma": "^1.3.0",<br>
"karma-chrome-launcher": "^2.0.0",<br>
"karma-cli": "^1.0.1",<br>
"karma-htmlfile-reporter": "^0.3.4",<br>
"karma-jasmine": "^1.0.2",<br>
"karma-jasmine-html-reporter": "^0.2.2",<br>
"lite-server": "^2.2.2",<br>
"lodash": "^4.16.1",<br>
"protractor": "^4.0.9",<br>
"rimraf": "^2.5.2",<br>
"tslint": "^3.15.1",<br>
"typescript": "^2.0.3"<br>
},<br>
"repository": {}<br>
}</p>
</blockquote>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.1</li>
<li><strong>Browser:</strong> [Chrome 53.0.2785.116 m]</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>
I updated system-config.ts file to download umd file for rxjs I.e rxjs\bundles\Rx.umd.js. This worked. But I still see in dev tools a lot of individual JS being load like rxjs\observer.js</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
When using UMD for rxjs it should not download individual files</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
See this plunker when you riun in full screen mode observe the files being loaded in dev tools. <a href="http://plnkr.co/edit/TvjW2YK3NVJ7sDb7cHV4?p=preview" rel="nofollow">http://plnkr.co/edit/TvjW2YK3NVJ7sDb7cHV4?p=preview</a></p>
<p dir="auto">No community response on question: <a href="http://stackoverflow.com/questions/37881825/using-rxjs-umd-bundles" rel="nofollow">http://stackoverflow.com/questions/37881825/using-rxjs-umd-bundles</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
When using UMD for rxjs it should not download individual files</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
To reduce load request when angular app starting up</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.2</li>
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br>
Tested only on chrome</li>
<li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5 | Dart]<br>
Tested with Typescript only</li>
</ul>
| 1 |
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<p dir="auto">lazyloading can be made to work for this case:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def get_age():
return 15
class Child(Base):
__tablename__ = 'child'
id = Column('id', Integer, primary_key=True)
age = Column(Integer)
parent_id = Column(Integer, ForeignKey('parent.id'))
class Parent(Base):
__tablename__ = 'parent'
id = Column('id', Integer, primary_key=True)
@classmethod
def __declare_last__(cls):
cls.children_by_age = relationship(
Child,
lazy=True,
primaryjoin=and_(
Parent.id == Child.parent_id,
Child.age == bindparam('age', callable_=get_age)
)
)
"><pre class="notranslate"><code class="notranslate">def get_age():
return 15
class Child(Base):
__tablename__ = 'child'
id = Column('id', Integer, primary_key=True)
age = Column(Integer)
parent_id = Column(Integer, ForeignKey('parent.id'))
class Parent(Base):
__tablename__ = 'parent'
id = Column('id', Integer, primary_key=True)
@classmethod
def __declare_last__(cls):
cls.children_by_age = relationship(
Child,
lazy=True,
primaryjoin=and_(
Parent.id == Child.parent_id,
Child.age == bindparam('age', callable_=get_age)
)
)
</code></pre></div>
<p dir="auto">if we do this:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py
index 67dac1c..aa0a9f7 100644
--- a/lib/sqlalchemy/orm/strategies.py
+++ b/lib/sqlalchemy/orm/strategies.py
@@ -434,6 +434,8 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots):
params = []
def visit_bindparam(bindparam):
+ if bindparam.callable:
+ return
bindparam.unique = False
if bindparam._identifying_key in bind_to_col:
params.append(("><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py
index 67dac1c..aa0a9f7 100644
--- a/lib/sqlalchemy/orm/strategies.py
+++ b/lib/sqlalchemy/orm/strategies.py
@@ -434,6 +434,8 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots):
params = []
def visit_bindparam(bindparam):
+ if bindparam.callable:
+ return
bindparam.unique = False
if bindparam._identifying_key in bind_to_col:
params.append((
</code></pre></div>
<p dir="auto">should we do that (and is that where we should do that)? Is there a better way to support bound callables in join conditions? what are the use cases for this ? note that the bindparam w/ callable_ works for joinedload, subqueryload, works for query.join(Parent.foo), so it's likely we should do this so that the behavior is consistent.</p>
|
<p dir="auto"><strong>Migrated issue, originally created by Michael Bayer (<a href="https://github.com/zzzeek">@zzzeek</a>)</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class A(Base):
__tablename__ = 'a'
id1 = Column(Integer, primary_key=True)
id2 = Column(Integer, primary_key=True)
class B(Base):
__tablename__ = 'b'
id = Column(Integer, primary_key=True)
a_id1 = Column(Integer, ForeignKey('a.id1'))
a = relationship(
"A", uselist=False,
primaryjoin=and_(
a_id1 == A.id1,
A.id2 == bindparam("my_bindparam", callable_=lambda: 2)))
configure_mappers()
assert not B.a.property.strategy.use_get
e = create_engine("sqlite://", echo=True)
Base.metadata.create_all(e)
s = Session(e)
s.add(A(id1=1, id2=1))
s.add(A(id1=1, id2=2))
s.add(B(a_id1=1))
s.commit()
b1 = s.query(B).first()
print b1.a
"><pre class="notranslate"><code class="notranslate">from sqlalchemy import *
from sqlalchemy.orm import *
from sqlalchemy.ext.declarative import declarative_base
Base = declarative_base()
class A(Base):
__tablename__ = 'a'
id1 = Column(Integer, primary_key=True)
id2 = Column(Integer, primary_key=True)
class B(Base):
__tablename__ = 'b'
id = Column(Integer, primary_key=True)
a_id1 = Column(Integer, ForeignKey('a.id1'))
a = relationship(
"A", uselist=False,
primaryjoin=and_(
a_id1 == A.id1,
A.id2 == bindparam("my_bindparam", callable_=lambda: 2)))
configure_mappers()
assert not B.a.property.strategy.use_get
e = create_engine("sqlite://", echo=True)
Base.metadata.create_all(e)
s = Session(e)
s.add(A(id1=1, id2=1))
s.add(A(id1=1, id2=2))
s.add(B(a_id1=1))
s.commit()
b1 = s.query(B).first()
print b1.a
</code></pre></div>
<p dir="auto">first, use_get is improperly detected. We would need to compare for something like the "callable" as well (we don't seem to be able to compare for the "key", not sure why):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index e277b28..1d19707 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -1142,7 +1142,8 @@ class BindParameter(ColumnElement):
return isinstance(other, BindParameter) \
and self.type._compare_type_affinity(other.type) \
- and self.value == other.value
+ and self.value == other.value \
+ and self.callable == other.callable
def __getstate__(self):
"""execute a deferred value for serialization purposes."""
"><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/sql/elements.py b/lib/sqlalchemy/sql/elements.py
index e277b28..1d19707 100644
--- a/lib/sqlalchemy/sql/elements.py
+++ b/lib/sqlalchemy/sql/elements.py
@@ -1142,7 +1142,8 @@ class BindParameter(ColumnElement):
return isinstance(other, BindParameter) \
and self.type._compare_type_affinity(other.type) \
- and self.value == other.value
+ and self.value == other.value \
+ and self.callable == other.callable
def __getstate__(self):
"""execute a deferred value for serialization purposes."""
</code></pre></div>
<p dir="auto">next, the visitation in <code class="notranslate">_memoized_attr__simple_lazy_clause</code> is picking up on this bind as one of their own. ideally we'd use annotations to get around this but then we need to get rid of that deep_deannotate, this seems overall more risky:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py
index e8a2992..e16c52d 100644
--- a/lib/sqlalchemy/orm/relationships.py
+++ b/lib/sqlalchemy/orm/relationships.py
@@ -2827,7 +2827,8 @@ class JoinCondition(object):
):
if col not in binds:
binds[col] = sql.bindparam(
- None, None, type_=col.type, unique=True)
+ None, None, type_=col.type, unique=True).\
+ _annotate({"lazyloader": True})
return binds[col]
return None
@@ -2845,9 +2846,6 @@ class JoinCondition(object):
bind_to_col = dict((binds[col].key, col) for col in binds)
- # this is probably not necessary
- lazywhere = _deep_deannotate(lazywhere)
-
return lazywhere, bind_to_col, equated_columns
diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py
index 8260732..f5bf041 100644
--- a/lib/sqlalchemy/orm/strategies.py
+++ b/lib/sqlalchemy/orm/strategies.py
@@ -473,6 +473,9 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots):
params = []
def visit_bindparam(bindparam):
+ if not bindparam._annotations.get("lazyloader"):
+ return
+
bindparam.unique = False
if bindparam._identifying_key in bind_to_col:
params.append((
"><pre class="notranslate"><code class="notranslate">diff --git a/lib/sqlalchemy/orm/relationships.py b/lib/sqlalchemy/orm/relationships.py
index e8a2992..e16c52d 100644
--- a/lib/sqlalchemy/orm/relationships.py
+++ b/lib/sqlalchemy/orm/relationships.py
@@ -2827,7 +2827,8 @@ class JoinCondition(object):
):
if col not in binds:
binds[col] = sql.bindparam(
- None, None, type_=col.type, unique=True)
+ None, None, type_=col.type, unique=True).\
+ _annotate({"lazyloader": True})
return binds[col]
return None
@@ -2845,9 +2846,6 @@ class JoinCondition(object):
bind_to_col = dict((binds[col].key, col) for col in binds)
- # this is probably not necessary
- lazywhere = _deep_deannotate(lazywhere)
-
return lazywhere, bind_to_col, equated_columns
diff --git a/lib/sqlalchemy/orm/strategies.py b/lib/sqlalchemy/orm/strategies.py
index 8260732..f5bf041 100644
--- a/lib/sqlalchemy/orm/strategies.py
+++ b/lib/sqlalchemy/orm/strategies.py
@@ -473,6 +473,9 @@ class LazyLoader(AbstractRelationshipLoader, util.MemoizedSlots):
params = []
def visit_bindparam(bindparam):
+ if not bindparam._annotations.get("lazyloader"):
+ return
+
bindparam.unique = False
if bindparam._identifying_key in bind_to_col:
params.append((
</code></pre></div>
| 1 |
<p dir="auto">Can not be run properly because when broken output of --module system.<br>
Version of tsc problems occur 1.7.5 and 1.8.0.</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// bug.ts
export var test = false;
if (!test) {
test = false;
}"><pre class="notranslate"><span class="pl-c">// bug.ts</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-c1">false</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">test</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span></pre></div>
<p dir="auto">tsc --module system bug.ts</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// bug.js
System.register([], function(exports_1) {
var test;
return {
setters:[],
execute: function() {
exports_1("test", test = false);
if (exports_1("test", !test)) { // <- broken output
exports_1("test", test = false); // <- broken output
}
}
}
});"><pre class="notranslate"><span class="pl-c">// bug.js</span>
<span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">register</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">exports_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">test</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span>
<span class="pl-c1">setters</span>:<span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-en">execute</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"test"</span><span class="pl-kos">,</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"test"</span><span class="pl-kos">,</span> <span class="pl-c1">!</span><span class="pl-s1">test</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-c">// <- broken output</span>
<span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"test"</span><span class="pl-kos">,</span> <span class="pl-s1">test</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// <- broken output</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">Don't understand why this code:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { enableProdMode } from 'angular2/core';
export var DEBUG: boolean = false;
if (!DEBUG) {
enableProdMode();
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">enableProdMode</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'angular2/core'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-smi">DEBUG</span>: <span class="pl-smi">boolean</span> <span class="pl-c1">=</span> <span class="pl-c1">false</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-smi">DEBUG</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">enableProdMode</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">Transpiles to this one, which in fact makes DEBUG to be true at the end! (tried also with <code class="notranslate">export const DEBUG: boolean = false;</code> with exactly the same result)</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="System.register(['angular2/core'], function(exports_1) {
var core_1;
var DEBUG;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
exports_1("DEBUG", DEBUG = false);
if (exports_1("DEBUG", !DEBUG)) {
core_1.enableProdMode();
}
}
}
});"><pre class="notranslate"><span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">register</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'angular2/core'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">exports_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">core_1</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-c1">DEBUG</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span>
<span class="pl-c1">setters</span>:<span class="pl-kos">[</span>
<span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">core_1_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">core_1</span> <span class="pl-c1">=</span> <span class="pl-s1">core_1_1</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-en">execute</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"DEBUG"</span><span class="pl-kos">,</span> <span class="pl-c1">DEBUG</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"DEBUG"</span><span class="pl-kos">,</span> <span class="pl-c1">!</span><span class="pl-c1">DEBUG</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">core_1</span><span class="pl-kos">.</span><span class="pl-en">enableProdMode</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">And this one:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { enableProdMode } from 'angular2/core';
export var DEBUG: boolean = false;
if (DEBUG == false) {
enableProdMode();
}"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">enableProdMode</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'angular2/core'</span><span class="pl-kos">;</span>
<span class="pl-k">export</span> <span class="pl-k">var</span> <span class="pl-smi">DEBUG</span>: <span class="pl-smi">boolean</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-smi">DEBUG</span> <span class="pl-c1">==</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-en">enableProdMode</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">Transpiles to this one which is the correct one:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="System.register(['angular2/core'], function(exports_1) {
var core_1;
var DEBUG;
return {
setters:[
function (core_1_1) {
core_1 = core_1_1;
}],
execute: function() {
exports_1("DEBUG", DEBUG = false);
if (DEBUG == false) {
core_1.enableProdMode();
}
}
}
});"><pre class="notranslate"><span class="pl-v">System</span><span class="pl-kos">.</span><span class="pl-en">register</span><span class="pl-kos">(</span><span class="pl-kos">[</span><span class="pl-s">'angular2/core'</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">exports_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-k">var</span> <span class="pl-s1">core_1</span><span class="pl-kos">;</span>
<span class="pl-k">var</span> <span class="pl-c1">DEBUG</span><span class="pl-kos">;</span>
<span class="pl-k">return</span> <span class="pl-kos">{</span>
<span class="pl-c1">setters</span>:<span class="pl-kos">[</span>
<span class="pl-k">function</span> <span class="pl-kos">(</span><span class="pl-s1">core_1_1</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">core_1</span> <span class="pl-c1">=</span> <span class="pl-s1">core_1_1</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span>
<span class="pl-en">execute</span>: <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">exports_1</span><span class="pl-kos">(</span><span class="pl-s">"DEBUG"</span><span class="pl-kos">,</span> <span class="pl-c1">DEBUG</span> <span class="pl-c1">=</span> <span class="pl-c1">false</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">DEBUG</span> <span class="pl-c1">==</span> <span class="pl-c1">false</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
<span class="pl-s1">core_1</span><span class="pl-kos">.</span><span class="pl-en">enableProdMode</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Here are my typescript options (gulp-typescript):</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var tsOptions = {
outDir: PATHS.outDir,
target: "ES5",
module: "system",
moduleResolution: "node",
sourceMap: false,
emitDecoratorMetadata: true,
experimentalDecorators: true,
removeComments: true,
noImplicitAny: false,
noExternalResolve: true
};"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">tsOptions</span> <span class="pl-c1">=</span> <span class="pl-kos">{</span>
<span class="pl-c1">outDir</span>: <span class="pl-c1">PATHS</span><span class="pl-kos">.</span><span class="pl-c1">outDir</span><span class="pl-kos">,</span>
<span class="pl-c1">target</span>: <span class="pl-s">"ES5"</span><span class="pl-kos">,</span>
<span class="pl-c1">module</span>: <span class="pl-s">"system"</span><span class="pl-kos">,</span>
<span class="pl-c1">moduleResolution</span>: <span class="pl-s">"node"</span><span class="pl-kos">,</span>
<span class="pl-c1">sourceMap</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">emitDecoratorMetadata</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">experimentalDecorators</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">removeComments</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span>
<span class="pl-c1">noImplicitAny</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span>
<span class="pl-c1">noExternalResolve</span>: <span class="pl-c1">true</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div>
| 1 |
<p dir="auto">Describe what you were doing when the bug occurred:</p>
<ol dir="auto">
<li>I was trying to stop re-renders of my react project.</li>
<li>This error occurred when I was checking <code class="notranslate">Commit information</code> for a component.</li>
</ol>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.10.1-f160547f47</p>
<p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19661:17)<br>
at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19594:26)<br>
at ProfilingCache_ProfilingCache.getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:20115:11)<br>
at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34161:33)<br>
at Hh (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:12807:7)<br>
at qi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:13457:7)<br>
at mk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:16074:86)<br>
at lk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15459:11)<br>
at kk (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15451:23)<br>
at ck (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:15435:5)</p>
<p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34144:50)<br>
at div<br>
at div<br>
at div<br>
at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28206:3)<br>
at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35772:50)<br>
at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29219:5)<br>
at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29336:32)<br>
at div<br>
at div<br>
at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32934:3)<br>
at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24322:3)<br>
at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24811:3)<br>
at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29404:3)<br>
at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36207:3)</p>
|
<p dir="auto">Describe what you were doing when the bug occurred:<br>
1.<br>
2.<br>
3.</p>
<hr>
<h2 dir="auto">Please do not remove the text below this line</h2>
<p dir="auto">DevTools version: 4.2.1-3816ae7c3</p>
<p dir="auto">Call stack: at chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157108<br>
at Map.forEach ()<br>
at commitIndex (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157054)<br>
at e.getRankedChartData (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:157577)<br>
at vl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:40:314907)<br>
at gi (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:59907)<br>
at jl (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:107381)<br>
at Lc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92715)<br>
at Pc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:92640)<br>
at wc (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32:89544)</p>
<p dir="auto">Component stack: in vl<br>
in div<br>
in div<br>
in div<br>
in wo<br>
in Unknown<br>
in n<br>
in Unknown<br>
in div<br>
in div<br>
in Li<br>
in $e<br>
in dn<br>
in Ca<br>
in Pc</p>
| 0 |
<p dir="auto">I'm using bootstrap v2.3.0, when I am using data-backdrop="static" in html and using javascript modal('hide') to hide the modal, the javascript occured error:<br>
Uncaught TypeError: Cannot call method 'remove' of undefined bootstrap.min.js:6</p>
<p dir="auto">Below is my solution:<br>
change:<br>
removeBackdrop: function () {<br>
this.$backdrop.remove()<br>
this.$backdrop = null<br>
}<br>
to:<br>
removeBackdrop: function () {<br>
if(this.$backdrop){<br>
this.$backdrop.remove()<br>
this.$backdrop = null<br>
}<br>
}</p>
<p dir="auto">Thanks guys.</p>
|
<p dir="auto">With options { backdrop: false }, this.$backdrop.remove() is still being called which results in an exception as this.$backdrop is null.</p>
<code class="notranslate">
hideModal: function () {
var that = this
this.$element.hide()
this.backdrop(function () {
that.removeBackdrop()
that.$element.trigger('hidden')
})
}
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="removeBackdrop: function () {
this.$backdrop.remove()
this.$backdrop = null
}"><pre class="notranslate"><code class="notranslate">removeBackdrop: function () {
this.$backdrop.remove()
this.$backdrop = null
}
</code></pre></div>
</code>
| 1 |
<p dir="auto">Please:</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Check for duplicate issues.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Provide a complete example of how to reproduce the bug, wrapped in triple backticks like this:</li>
</ul>
<ol dir="auto">
<li>Build from source.</li>
<li>Run the full test suite.</li>
</ol>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> If applicable, include full error messages/tracebacks.</li>
</ul>
<h3 dir="auto">Errors</h3>
<p dir="auto">I'm seeing loads of errors of the form</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2022-07-28T00:41:03.1426552Z stderr: > self.assertEqual(tangents[1].dtype, dtypes.float0)
2022-07-28T00:41:03.1427091Z stderr: E AssertionError: dtype('bool') != dtype([('float0', 'V')])"><pre class="notranslate"><code class="notranslate">2022-07-28T00:41:03.1426552Z stderr: > self.assertEqual(tangents[1].dtype, dtypes.float0)
2022-07-28T00:41:03.1427091Z stderr: E AssertionError: dtype('bool') != dtype([('float0', 'V')])
</code></pre></div>
<p dir="auto">It seems to be affecting 59 tests:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="2022-07-28T00:41:03.1428063Z stderr: =========================== short test summary info ============================
2022-07-28T00:41:03.1456495Z stderr: FAILED tests/api_test.py::APITest::test_float0_reshape - AssertionError: dtyp...
2022-07-28T00:41:03.1457678Z stderr: FAILED tests/api_test.py::APITest::test_float0_error - KeyError: dtype([('flo...
2022-07-28T00:41:03.1461929Z stderr: FAILED tests/api_test.py::APITest::test_grad_of_bool - KeyError: dtype([('flo...
2022-07-28T00:41:03.1462520Z stderr: FAILED tests/api_test.py::APITest::test_jit_jvp_of_int - AssertionError: (dty...
2022-07-28T00:41:03.1463325Z stderr: FAILED tests/api_test.py::APITest::test_grad_of_int - KeyError: dtype([('floa...
2022-07-28T00:41:03.1463925Z stderr: FAILED tests/api_test.py::APITest::test_grad_of_int_index - TypeError: a byte...
2022-07-28T00:41:03.1464520Z stderr: FAILED tests/api_test.py::APITest::test_issue_871 - TypeError: reduce_sum doe...
2022-07-28T00:41:03.1465103Z stderr: FAILED tests/api_test.py::APITest::test_vjp_of_int_index - TypeError: a bytes...
2022-07-28T00:41:03.1465685Z stderr: FAILED tests/api_test.py::APITest::test_jvp_of_int_add - AssertionError: (dty...
2022-07-28T00:41:03.1466273Z stderr: FAILED tests/api_test.py::APITest::test_jit_grad_of_int - TypeError: a bytes-...
2022-07-28T00:41:03.1466856Z stderr: FAILED tests/api_test.py::APITest::test_jit_vjp_of_int - TypeError: Called ad...
2022-07-28T00:41:03.1467420Z stderr: FAILED tests/api_test.py::APITest::test_vjp_of_int_shapes - TypeError: (Shape...
2022-07-28T00:41:03.1468005Z stderr: FAILED tests/api_test.py::APITest::test_vjp_of_int_fulllike - KeyError: dtype...
2022-07-28T00:41:03.1468604Z stderr: FAILED tests/api_test.py::CustomJVPTest::test_float0 - AssertionError: dtype(...
2022-07-28T00:41:03.1469198Z stderr: FAILED tests/api_test.py::CustomJVPTest::test_float0_initial_style - Assertio...
2022-07-28T00:41:03.1469786Z stderr: FAILED tests/api_test.py::CustomVJPTest::test_float0 - KeyError: dtype([('flo...
2022-07-28T00:41:03.1470267Z stderr: FAILED tests/api_test.py::CleanupTest::test_call_wrapped_second_phase_cleanup
2022-07-28T00:41:03.1470855Z stderr: FAILED tests/api_test.py::CustomVJPTest::test_float0_initial_style - Assertio...
2022-07-28T00:41:03.1471446Z stderr: FAILED tests/core_test.py::CoreTest::test_reference_cycles_jit - AssertionErr...
2022-07-28T00:41:03.1471942Z stderr: FAILED tests/lax_numpy_indexing_test.py::IndexingTest::testJVPOfGradOfIndexing
2022-07-28T00:41:03.1472485Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testOperatorOverload__lshift___uint16_uint32[]
2022-07-28T00:41:03.1473052Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testOperatorOverload__rshift___uint16_uint32[]
2022-07-28T00:41:03.1473765Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testDeleteIndexArray_bool[1,4]_axis=-1_idx=pyint64
2022-07-28T00:41:03.1474342Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testDeleteIndexArray_uint16[2,3,4]_axis=2_idx=int64
2022-07-28T00:41:03.1474905Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testDeleteIndexArray_uint32[2,3,4]_axis=2_idx=int64
2022-07-28T00:41:03.1475440Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testPiecewise_bfloat16_ncond=3_nfunc=3
2022-07-28T00:41:03.1475967Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testPiecewise_int16_ncond=1_nfunc=2
2022-07-28T00:41:03.1476496Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testPiecewise_pyint32_ncond=2_nfunc=2
2022-07-28T00:41:03.1477073Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testRightOperatorOverload__rlshift___uint16_uint32[]
2022-07-28T00:41:03.1477781Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testRightOperatorOverload__rrshift___uint16_uint32[]
2022-07-28T00:41:03.1478374Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testTake_bfloat16[3,4]_index=pyint32_axis=None_mode=clip
2022-07-28T00:41:03.1478937Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testTake_int16[3,4]_index=pyint16_axis=None_mode=None
2022-07-28T00:41:03.1479638Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testTake_int32[3,4,5]_index=int32_axis=-1_mode=None
2022-07-28T00:41:03.1480350Z stderr: FAILED tests/lax_numpy_test.py::NumpySignaturesTest::testWrappedSignaturesMatch
2022-07-28T00:41:03.1480994Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGrad - KeyError: dtype(...
2022-07-28T00:41:03.1481614Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGradInf - KeyError: dty...
2022-07-28T00:41:03.1482225Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGradNan - KeyError: dty...
2022-07-28T00:41:03.1482946Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGradNegInf - KeyError: ...
2022-07-28T00:41:03.1483575Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGradZero - KeyError: dt...
2022-07-28T00:41:03.1484343Z stderr: FAILED tests/random_test.py::LaxRandomTest::testPermutation_dtype=<class 'numpy.float32'>_range_or_shape=(0, 5)_axis=-1_independent=False
2022-07-28T00:41:03.1485153Z stderr: FAILED tests/random_test.py::LaxRandomTest::testPermutation_dtype=<class 'numpy.float32'>_range_or_shape=(0, 5)_axis=-2_independent=True
2022-07-28T00:41:03.1486016Z stderr: FAILED tests/random_test.py::LaxRandomTest::testPermutation_dtype=<class 'numpy.int32'>_range_or_shape=(0, 5)_axis=-1_independent=False
2022-07-28T00:41:03.1486822Z stderr: FAILED tests/random_test.py::LaxRandomTest::testPermutation_dtype=<class 'numpy.int32'>_range_or_shape=(0,)_axis=-1_independent=False
2022-07-28T00:41:03.1487372Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_complex64[5,5]
2022-07-28T00:41:03.1487859Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_complex64[5,8]
2022-07-28T00:41:03.1488375Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_complex64[8,5]
2022-07-28T00:41:03.1488849Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_complex64[8,8]
2022-07-28T00:41:03.1489320Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_float32[5,5]
2022-07-28T00:41:03.1489790Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_float32[5,8]
2022-07-28T00:41:03.1490252Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_float32[8,5]
2022-07-28T00:41:03.1490709Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_float32[8,8]
2022-07-28T00:41:03.1491169Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_complex64[5,5]
2022-07-28T00:41:03.1491650Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_complex64[5,8]
2022-07-28T00:41:03.1492124Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_complex64[8,5]
2022-07-28T00:41:03.1492595Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_complex64[8,8]
2022-07-28T00:41:03.1493069Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_float32[5,5]
2022-07-28T00:41:03.1493516Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_float32[5,8]
2022-07-28T00:41:03.1493974Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_float32[8,5]
2022-07-28T00:41:03.1494438Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_float32[8,8]
2022-07-28T00:41:03.1494868Z stderr: ========= 59 failed, 14190 passed, 1447 skipped in 1589.83s (0:26:29) =========="><pre class="notranslate"><code class="notranslate">2022-07-28T00:41:03.1428063Z stderr: =========================== short test summary info ============================
2022-07-28T00:41:03.1456495Z stderr: FAILED tests/api_test.py::APITest::test_float0_reshape - AssertionError: dtyp...
2022-07-28T00:41:03.1457678Z stderr: FAILED tests/api_test.py::APITest::test_float0_error - KeyError: dtype([('flo...
2022-07-28T00:41:03.1461929Z stderr: FAILED tests/api_test.py::APITest::test_grad_of_bool - KeyError: dtype([('flo...
2022-07-28T00:41:03.1462520Z stderr: FAILED tests/api_test.py::APITest::test_jit_jvp_of_int - AssertionError: (dty...
2022-07-28T00:41:03.1463325Z stderr: FAILED tests/api_test.py::APITest::test_grad_of_int - KeyError: dtype([('floa...
2022-07-28T00:41:03.1463925Z stderr: FAILED tests/api_test.py::APITest::test_grad_of_int_index - TypeError: a byte...
2022-07-28T00:41:03.1464520Z stderr: FAILED tests/api_test.py::APITest::test_issue_871 - TypeError: reduce_sum doe...
2022-07-28T00:41:03.1465103Z stderr: FAILED tests/api_test.py::APITest::test_vjp_of_int_index - TypeError: a bytes...
2022-07-28T00:41:03.1465685Z stderr: FAILED tests/api_test.py::APITest::test_jvp_of_int_add - AssertionError: (dty...
2022-07-28T00:41:03.1466273Z stderr: FAILED tests/api_test.py::APITest::test_jit_grad_of_int - TypeError: a bytes-...
2022-07-28T00:41:03.1466856Z stderr: FAILED tests/api_test.py::APITest::test_jit_vjp_of_int - TypeError: Called ad...
2022-07-28T00:41:03.1467420Z stderr: FAILED tests/api_test.py::APITest::test_vjp_of_int_shapes - TypeError: (Shape...
2022-07-28T00:41:03.1468005Z stderr: FAILED tests/api_test.py::APITest::test_vjp_of_int_fulllike - KeyError: dtype...
2022-07-28T00:41:03.1468604Z stderr: FAILED tests/api_test.py::CustomJVPTest::test_float0 - AssertionError: dtype(...
2022-07-28T00:41:03.1469198Z stderr: FAILED tests/api_test.py::CustomJVPTest::test_float0_initial_style - Assertio...
2022-07-28T00:41:03.1469786Z stderr: FAILED tests/api_test.py::CustomVJPTest::test_float0 - KeyError: dtype([('flo...
2022-07-28T00:41:03.1470267Z stderr: FAILED tests/api_test.py::CleanupTest::test_call_wrapped_second_phase_cleanup
2022-07-28T00:41:03.1470855Z stderr: FAILED tests/api_test.py::CustomVJPTest::test_float0_initial_style - Assertio...
2022-07-28T00:41:03.1471446Z stderr: FAILED tests/core_test.py::CoreTest::test_reference_cycles_jit - AssertionErr...
2022-07-28T00:41:03.1471942Z stderr: FAILED tests/lax_numpy_indexing_test.py::IndexingTest::testJVPOfGradOfIndexing
2022-07-28T00:41:03.1472485Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testOperatorOverload__lshift___uint16_uint32[]
2022-07-28T00:41:03.1473052Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testOperatorOverload__rshift___uint16_uint32[]
2022-07-28T00:41:03.1473765Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testDeleteIndexArray_bool[1,4]_axis=-1_idx=pyint64
2022-07-28T00:41:03.1474342Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testDeleteIndexArray_uint16[2,3,4]_axis=2_idx=int64
2022-07-28T00:41:03.1474905Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testDeleteIndexArray_uint32[2,3,4]_axis=2_idx=int64
2022-07-28T00:41:03.1475440Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testPiecewise_bfloat16_ncond=3_nfunc=3
2022-07-28T00:41:03.1475967Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testPiecewise_int16_ncond=1_nfunc=2
2022-07-28T00:41:03.1476496Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testPiecewise_pyint32_ncond=2_nfunc=2
2022-07-28T00:41:03.1477073Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testRightOperatorOverload__rlshift___uint16_uint32[]
2022-07-28T00:41:03.1477781Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testRightOperatorOverload__rrshift___uint16_uint32[]
2022-07-28T00:41:03.1478374Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testTake_bfloat16[3,4]_index=pyint32_axis=None_mode=clip
2022-07-28T00:41:03.1478937Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testTake_int16[3,4]_index=pyint16_axis=None_mode=None
2022-07-28T00:41:03.1479638Z stderr: FAILED tests/lax_numpy_test.py::LaxBackedNumpyTests::testTake_int32[3,4,5]_index=int32_axis=-1_mode=None
2022-07-28T00:41:03.1480350Z stderr: FAILED tests/lax_numpy_test.py::NumpySignaturesTest::testWrappedSignaturesMatch
2022-07-28T00:41:03.1480994Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGrad - KeyError: dtype(...
2022-07-28T00:41:03.1481614Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGradInf - KeyError: dty...
2022-07-28T00:41:03.1482225Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGradNan - KeyError: dty...
2022-07-28T00:41:03.1482946Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGradNegInf - KeyError: ...
2022-07-28T00:41:03.1483575Z stderr: FAILED tests/nn_test.py::NNFunctionsTest::testSoftplusGradZero - KeyError: dt...
2022-07-28T00:41:03.1484343Z stderr: FAILED tests/random_test.py::LaxRandomTest::testPermutation_dtype=<class 'numpy.float32'>_range_or_shape=(0, 5)_axis=-1_independent=False
2022-07-28T00:41:03.1485153Z stderr: FAILED tests/random_test.py::LaxRandomTest::testPermutation_dtype=<class 'numpy.float32'>_range_or_shape=(0, 5)_axis=-2_independent=True
2022-07-28T00:41:03.1486016Z stderr: FAILED tests/random_test.py::LaxRandomTest::testPermutation_dtype=<class 'numpy.int32'>_range_or_shape=(0, 5)_axis=-1_independent=False
2022-07-28T00:41:03.1486822Z stderr: FAILED tests/random_test.py::LaxRandomTest::testPermutation_dtype=<class 'numpy.int32'>_range_or_shape=(0,)_axis=-1_independent=False
2022-07-28T00:41:03.1487372Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_complex64[5,5]
2022-07-28T00:41:03.1487859Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_complex64[5,8]
2022-07-28T00:41:03.1488375Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_complex64[8,5]
2022-07-28T00:41:03.1488849Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_complex64[8,8]
2022-07-28T00:41:03.1489320Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_float32[5,5]
2022-07-28T00:41:03.1489790Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_float32[5,8]
2022-07-28T00:41:03.1490252Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_float32[8,5]
2022-07-28T00:41:03.1490709Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_csr_fromdense_ad_float32[8,8]
2022-07-28T00:41:03.1491169Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_complex64[5,5]
2022-07-28T00:41:03.1491650Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_complex64[5,8]
2022-07-28T00:41:03.1492124Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_complex64[8,5]
2022-07-28T00:41:03.1492595Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_complex64[8,8]
2022-07-28T00:41:03.1493069Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_float32[5,5]
2022-07-28T00:41:03.1493516Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_float32[5,8]
2022-07-28T00:41:03.1493974Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_float32[8,5]
2022-07-28T00:41:03.1494438Z stderr: FAILED tests/sparse_test.py::cuSparseTest::test_coo_fromdense_ad_float32[8,8]
2022-07-28T00:41:03.1494868Z stderr: ========= 59 failed, 14190 passed, 1447 skipped in 1589.83s (0:26:29) ==========
</code></pre></div>
<p dir="auto">You can access the full build logs here: <a href="https://github.com/samuela/nixpkgs-upkeep/runs/7551101765?check_suite_focus=true">https://github.com/samuela/nixpkgs-upkeep/runs/7551101765?check_suite_focus=true</a>.</p>
<p dir="auto">To me, this indicates a dependency version issue, possibly with numpy. However, all of the versions are within their constraints as far as <code class="notranslate">python setup.py build</code> is concerned. Here are the relevant pip freeze dependency versions:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[nix-shell:~/dev/nixpkgs]$ pip freeze
absl-py @ file:///build/absl-py-1.0.0/dist/absl_py-1.0.0-py3-none-any.whl
flatbuffers @ file:///build/source/python/dist/flatbuffers-2.0.0-py2.py3-none-any.whl
jax @ file:///build/source/dist/jax-0.3.6-py3-none-any.whl
jaxlib @ file:///build/dist/jaxlib-0.3.0-cp39-none-manylinux2010_x86_64.whl
numpy @ file:///build/numpy-1.21.5/dist/numpy-1.21.5-cp39-cp39-linux_x86_64.whl
opt-einsum @ file:///build/opt_einsum-3.3.0/dist/opt_einsum-3.3.0-py3-none-any.whl
SciPy @ file:///build/scipy-1.8.0/dist/SciPy-1.8.0-cp39-cp39-linux_x86_64.whl
six @ file:///build/six-1.16.0/dist/six-1.16.0-py2.py3-none-any.whl
typing_extensions @ file:///build/typing_extensions-4.1.1/dist/typing_extensions-4.1.1-py3-none-any.whl"><pre class="notranslate"><code class="notranslate">[nix-shell:~/dev/nixpkgs]$ pip freeze
absl-py @ file:///build/absl-py-1.0.0/dist/absl_py-1.0.0-py3-none-any.whl
flatbuffers @ file:///build/source/python/dist/flatbuffers-2.0.0-py2.py3-none-any.whl
jax @ file:///build/source/dist/jax-0.3.6-py3-none-any.whl
jaxlib @ file:///build/dist/jaxlib-0.3.0-cp39-none-manylinux2010_x86_64.whl
numpy @ file:///build/numpy-1.21.5/dist/numpy-1.21.5-cp39-cp39-linux_x86_64.whl
opt-einsum @ file:///build/opt_einsum-3.3.0/dist/opt_einsum-3.3.0-py3-none-any.whl
SciPy @ file:///build/scipy-1.8.0/dist/SciPy-1.8.0-cp39-cp39-linux_x86_64.whl
six @ file:///build/six-1.16.0/dist/six-1.16.0-py2.py3-none-any.whl
typing_extensions @ file:///build/typing_extensions-4.1.1/dist/typing_extensions-4.1.1-py3-none-any.whl
</code></pre></div>
<p dir="auto">More information is available in the CI run linked above.</p>
|
<p dir="auto">I'm trying to install JAX and ran into different problems with different approaches:</p>
<ol dir="auto">
<li>When building source, I got an error message saying <code class="notranslate">gcc versions later than 7 are not supported</code>, despite the fact my gcc version is 6.3.0:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: Invocation ID: e47c8044-2dc9-43e8-a08b-6a3d96bf5376
Bazel binary path: ./bazel-0.22.0-linux-x86_64
Python binary path: /home/labs/adamh/miniconda3/bin/python
MKL-DNN enabled: yes
-march=native: no
CUDA enabled: yes
CUDA toolkit path: /usr/local/cuda
CUDNN library path: /apps/RH7U2/general/cudnn/10.1/
Building XLA and installing it in the jaxlib source tree...
INFO: Invocation ID: 363bb8f2-fc0c-405f-91ea-3d77ef9db18b
DEBUG: /home/labs/adamh/.cache/bazel/_bazel_adamh/63707596de86748e21162cbeff2def7e/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:
Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default
INFO: Analysed target //build:install_xla_in_source_tree (1 packages loaded, 1 target configured).
INFO: Found 1 target...
INFO: From Compiling external/llvm/lib/Support/VirtualFileSystem.cpp:
external/llvm/lib/Support/VirtualFileSystem.cpp: In member function 'std::unique_ptr<llvm::vfs::RedirectingFileSystem::Entry> llvm::vfs::RedirectingFileSystemParser::parseEntry(llvm::yaml::Node*, llvm::vfs::RedirectingFileSystem*, bool)':
external/llvm/lib/Support/VirtualFileSystem.cpp:1421:5: warning: 'Kind' may be used uninitialized in this function [-Wmaybe-uninitialized]
switch (Kind) {
^~~~~~
external/llvm/lib/Support/VirtualFileSystem.cpp:1112:66: warning: 'NameValueNode' may be used uninitialized in this function [-Wmaybe-uninitialized]
void error(yaml::Node *N, const Twine &Msg) { Stream.printError(N, Msg); }
~~~~~~~~~~~~~~~~~^~~~~~~~
external/llvm/lib/Support/VirtualFileSystem.cpp:1282:17: note: 'NameValueNode' was declared here
yaml::Node *NameValueNode;
^~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/Support/YAMLParser.cpp:
external/llvm/lib/Support/YAMLParser.cpp: In member function 'bool llvm::yaml::Scanner::findBlockScalarIndent(unsigned int&, unsigned int, unsigned int&, bool&)':
external/llvm/lib/Support/YAMLParser.cpp:1517:17: warning: 'LongestAllSpaceLine' may be used uninitialized in this function [-Wmaybe-uninitialized]
setError(
~~~~~~~~^
"Leading all-spaces line must be smaller than the block indent",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LongestAllSpaceLine);
~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/Support/UnicodeCaseFold.cpp:
external/llvm/lib/Support/UnicodeCaseFold.cpp:8:1: warning: multi-line comment [-Wcomment]
// utils/unicode-case-fold.py \
^
INFO: From Compiling external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:
external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp: In member function 'virtual llvm::Error llvm::codeview::TypeRecordMapping::visitKnownRecord(llvm::codeview::CVType&, llvm::codeview::VFTableShapeRecord&)':
external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:282:66: warning: 'Byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
Record.Slots.push_back(static_cast<VFTableSlotKind>(Byte >> 4));
~~~~~^~~~
INFO: From Compiling external/llvm/lib/MC/MachObjectWriter.cpp:
external/llvm/lib/MC/MachObjectWriter.cpp: In member function 'void llvm::MachObjectWriter::writeNlist(llvm::MachObjectWriter::MachSymbolData&, const llvm::MCAsmLayout&)':
external/llvm/lib/MC/MachObjectWriter.cpp:379:13: warning: 'AliaseeInfo' may be used uninitialized in this function [-Wmaybe-uninitialized]
Address = AliaseeInfo->StringIndex;
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/MC/ELFObjectWriter.cpp:
external/llvm/lib/MC/ELFObjectWriter.cpp: In function 'uint64_t {anonymous}::ELFWriter::writeObject(llvm::MCAssembler&, const llvm::MCAsmLayout&)':
external/llvm/lib/MC/ELFObjectWriter.cpp:1188:36: warning: 'AddrsigSection' may be used uninitialized in this function [-Wmaybe-uninitialized]
SectionOffsets[AddrsigSection] = std::make_pair(SecStart, SecEnd);
^
INFO: From Compiling external/protobuf_archive/src/google/protobuf/descriptor.cc:
external/protobuf_archive/src/google/protobuf/descriptor.cc: In member function 'google::protobuf::Symbol google::protobuf::DescriptorPool::NewPlaceholderWithMutexHeld(const string&, google::protobuf::DescriptorPool::PlaceholderType) const':
external/protobuf_archive/src/google/protobuf/descriptor.cc:3893:58: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class google::protobuf::EnumDescriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(placeholder_enum, 0, sizeof(*placeholder_enum));
^
In file included from external/protobuf_archive/src/google/protobuf/message.h:122,
from external/protobuf_archive/src/google/protobuf/descriptor.pb.h:29,
from external/protobuf_archive/src/google/protobuf/descriptor.cc:52:
external/protobuf_archive/src/google/protobuf/descriptor.h:885:26: note: 'class google::protobuf::EnumDescriptor' declared here
class LIBPROTOBUF_EXPORT EnumDescriptor {
^~~~~~~~~~~~~~
external/protobuf_archive/src/google/protobuf/descriptor.cc:3907:60: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class google::protobuf::EnumValueDescriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(placeholder_value, 0, sizeof(*placeholder_value));
^
In file included from external/protobuf_archive/src/google/protobuf/message.h:122,
from external/protobuf_archive/src/google/protobuf/descriptor.pb.h:29,
from external/protobuf_archive/src/google/protobuf/descriptor.cc:52:
external/protobuf_archive/src/google/protobuf/descriptor.h:1040:26: note: 'class google::protobuf::EnumValueDescriptor' declared here
class LIBPROTOBUF_EXPORT EnumValueDescriptor {
^~~~~~~~~~~~~~~~~~~
external/protobuf_archive/src/google/protobuf/descriptor.cc:3926:64: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class google::protobuf::Descriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(placeholder_message, 0, sizeof(*placeholder_message));
^
In file included from external/protobuf_archive/src/google/protobuf/message.h:122,
from external/protobuf_archive/src/google/protobuf/descriptor.pb.h:29,
from external/protobuf_archive/src/google/protobuf/descriptor.cc:52:
external/protobuf_archive/src/google/protobuf/descriptor.h:223:26: note: 'class google::protobuf::Descriptor' declared here
class LIBPROTOBUF_EXPORT Descriptor {
^~~~~~~~~~
external/protobuf_archive/src/google/protobuf/descriptor.cc: In member function 'google::protobuf::FileDescriptor* google::protobuf::DescriptorPool::NewPlaceholderFileWithMutexHeld(const string&) const':
external/protobuf_archive/src/google/protobuf/descriptor.cc:3960:46: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class google::protobuf::FileDescriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(placeholder, 0, sizeof(*placeholder));
^
In file included from external/protobuf_archive/src/google/protobuf/message.h:122,
from external/protobuf_archive/src/google/protobuf/descriptor.pb.h:29,
from external/protobuf_archive/src/google/protobuf/descriptor.cc:52:
external/protobuf_archive/src/google/protobuf/descriptor.h:1283:26: note: 'class google::protobuf::FileDescriptor' declared here
class LIBPROTOBUF_EXPORT FileDescriptor {
^~~~~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-writable-strings'
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/service/hlo_profile_printer_data.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/service/hlo.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/core/lib/core/error_codes.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/core/example/example.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/service/gpu/backend_configs.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/xla.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/service/gpu/autotuning.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/stream_executor/logging.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/xla_data.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/stream_executor/dnn.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/core/grappler/costs/op_performance_data.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From Compiling external/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:
external/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp: In function 'void getIntOperandsFromRegisterString(llvm::StringRef, llvm::SelectionDAG*, const llvm::SDLoc&, std::vector<llvm::SDValue, std::allocator<llvm::SDValue> >&)':
external/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:3843:16: warning: 'IntField' may be used uninitialized in this function [-Wmaybe-uninitialized]
unsigned IntField;
^~~~~~~~
INFO: From Compiling external/org_tensorflow/tensorflow/compiler/xla/service/algebraic_simplifier.cc:
external/org_tensorflow/tensorflow/compiler/xla/service/algebraic_simplifier.cc:3676:6: warning: 'bool xla::{anonymous}::AlgebraicSimplifierVisitor::TransformToClampIfSameShape(xla::HloInstruction*, xla::HloInstruction*, xla::HloInstruction*, xla::HloInstruction*, xla::HloInstruction*, xla::HloInstruction*)' defined but not used [-Wunused-function]
bool AlgebraicSimplifierVisitor::TransformToClampIfSameShape(
^~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:
external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp: In member function 'virtual llvm::Error llvm::codeview::TypeRecordMapping::visitKnownRecord(llvm::codeview::CVType&, llvm::codeview::VFTableShapeRecord&)':
external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:282:66: warning: 'Byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
Record.Slots.push_back(static_cast<VFTableSlotKind>(Byte >> 4));
~~~~~^~~~
INFO: From Compiling external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp:
external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp: In function 'int llvm::X86Disassembler::decodeInstruction(llvm::X86Disassembler::InternalInstruction*, llvm::X86Disassembler::byteReader_t, const void*, llvm::X86Disassembler::dlog_t, void*, const void*, uint64_t, llvm::X86Disassembler::DisassemblerMode)':
external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp:1902:53: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct llvm::X86Disassembler::InternalInstruction'; use assignment or value-initialization instead [-Wclass-memaccess]
memset(insn, 0, sizeof(struct InternalInstruction));
^
In file included from external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp:20:
external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h:524:8: note: 'struct llvm::X86Disassembler::InternalInstruction' declared here
struct InternalInstruction {
^~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/MC/MachObjectWriter.cpp:
external/llvm/lib/MC/MachObjectWriter.cpp: In member function 'void llvm::MachObjectWriter::writeNlist(llvm::MachObjectWriter::MachSymbolData&, const llvm::MCAsmLayout&)':
external/llvm/lib/MC/MachObjectWriter.cpp:379:13: warning: 'AliaseeInfo' may be used uninitialized in this function [-Wmaybe-uninitialized]
Address = AliaseeInfo->StringIndex;
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/MC/ELFObjectWriter.cpp:
external/llvm/lib/MC/ELFObjectWriter.cpp: In function 'uint64_t {anonymous}::ELFWriter::writeObject(llvm::MCAssembler&, const llvm::MCAsmLayout&)':
external/llvm/lib/MC/ELFObjectWriter.cpp:1188:36: warning: 'AddrsigSection' may be used uninitialized in this function [-Wmaybe-uninitialized]
SectionOffsets[AddrsigSection] = std::make_pair(SecStart, SecEnd);
^
INFO: From Compiling external/org_tensorflow/tensorflow/compiler/xla/service/gpu/thunk.cc:
external/org_tensorflow/tensorflow/compiler/xla/service/gpu/thunk.cc: In function 'std::ostream& xla::gpu::operator<<(std::ostream&, xla::gpu::Thunk::Kind)':
external/org_tensorflow/tensorflow/compiler/xla/service/gpu/thunk.cc:62:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/GVNHoist.cpp:
external/llvm/lib/Transforms/Scalar/GVNHoist.cpp:137:1: warning: multi-line comment [-Wcomment]
// / \
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp:
external/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp:350:5: warning: multi-line comment [-Wcomment]
// / | \
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:
external/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp: In function 'llvm::Value* FindLIVLoopCondition(llvm::Value*, llvm::Loop*, bool&, OperatorChain&, llvm::DenseMap<llvm::Value*, llvm::Value*>&)':
external/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:474:7: warning: 'NewChain' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (NewChain != OC_OpChainMixed) {
^~
INFO: From Compiling external/llvm/lib/Transforms/Scalar/MergeICmps.cpp:
external/llvm/lib/Transforms/Scalar/MergeICmps.cpp:484:7: warning: multi-line comment [-Wcomment]
// \ \ \ \
^
external/llvm/lib/Transforms/Scalar/MergeICmps.cpp:745:3: warning: multi-line comment [-Wcomment]
// \ \ \ \
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/SROA.cpp:
external/llvm/lib/Transforms/Scalar/SROA.cpp: In member function 'llvm::iterator_range<llvm::sroa::AllocaSlices::partition_iterator> llvm::sroa::AllocaSlices::partitions()':
external/llvm/lib/Transforms/Scalar/SROA.cpp:355:19: warning: '<anonymous>.llvm::sroa::Partition::BeginOffset' may be used uninitialized in this function [-Wmaybe-uninitialized]
class llvm::sroa::Partition {
^~~~~~~~~
external/llvm/lib/Transforms/Scalar/SROA.cpp:355:19: warning: '<anonymous>.llvm::sroa::Partition::EndOffset' may be used uninitialized in this function [-Wmaybe-uninitialized]
external/llvm/lib/Transforms/Scalar/SROA.cpp: In function 'llvm::Value* getAdjustedPtr({anonymous}::IRBuilderTy&, const llvm::DataLayout&, llvm::Value*, llvm::APInt, llvm::Type*, llvm::Twine)':
external/llvm/lib/Transforms/Scalar/SROA.cpp:1585:34: warning: 'OffsetBasePtr' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (OffsetPtr && OffsetPtr != OffsetBasePtr)
~~~~~~~~~~^~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:
external/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:1201:3: warning: multi-line comment [-Wcomment]
// | ----------------\
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp:
external/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp: In function 'bool unswitchBestCondition(llvm::Loop&, llvm::DominatorTree&, llvm::LoopInfo&, llvm::AssumptionCache&, llvm::TargetTransformInfo&, llvm::function_ref<void(bool, llvm::ArrayRef<llvm::Loop*>)>, llvm::ScalarEvolution*, llvm::MemorySSAUpdater*)':
external/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp:2740:3: warning: 'BestUnswitchCost' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (BestUnswitchCost >= UnswitchThreshold) {
^~
INFO: From Compiling external/org_tensorflow/tensorflow/core/framework/common_shape_fns.cc:
In file included from external/org_tensorflow/tensorflow/core/util/padding.h:26,
from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.h:21,
from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.cc:15:
external/org_tensorflow/tensorflow/core/util/tensor_format.h: In function 'int tensorflow::GetTensorDimsFromSpatialDims(int, tensorflow::TensorFormat)':
external/org_tensorflow/tensorflow/core/util/tensor_format.h:148:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
external/org_tensorflow/tensorflow/core/util/tensor_format.h: In function 'int tensorflow::GetTensorSpatialDims(int, tensorflow::TensorFormat)':
external/org_tensorflow/tensorflow/core/util/tensor_format.h:124:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
INFO: From Compiling external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc: In function 'bool tensorflow::tensor::internal::PackedValuesNotEqual(T, T) [with T = float]':
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:250:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<int32_t&>(a) != reinterpret_cast<int32_t&>(b);
^
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:250:71: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<int32_t&>(a) != reinterpret_cast<int32_t&>(b);
^
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc: In function 'bool tensorflow::tensor::internal::PackedValuesNotEqual(T, T) [with T = double]':
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:254:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<int64_t&>(a) != reinterpret_cast<int64_t&>(b);
^
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:254:71: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<int64_t&>(a) != reinterpret_cast<int64_t&>(b);
^
INFO: From Compiling external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:
In file included from external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:49:
external/org_tensorflow/tensorflow/core/platform/platform_strings.h:96:1: warning: multi-line comment [-Wcomment]
// #define TF_PLAT_STR_(x) \
^
ERROR: /home/labs/adamh/.cache/bazel/_bazel_adamh/63707596de86748e21162cbeff2def7e/external/nccl_archive/BUILD.bazel:67:1: error while parsing .d file: /home/labs/adamh/.cache/bazel/_bazel_adamh/63707596de86748e21162cbeff2def7e/execroot/__main__/bazel-out/k8-opt/bin/external/nccl_archive/_objs/device_lib/max_all_gather.cu.d (No such file or directory)
In file included from /usr/local/cuda-9.2/bin/..//include/host_config.h:50,
from /usr/local/cuda-9.2/bin/..//include/cuda_runtime.h:78,
from <command-line>:
/usr/local/cuda-9.2/bin/..//include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
#error -- unsupported GNU version! gcc versions later than 7 are not supported!
^~~~~
Target //build:install_xla_in_source_tree failed to build
INFO: Elapsed time: 462.630s, Critical Path: 50.51s
INFO: 1198 processes: 1198 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
File "build/build.py", line 313, in <module>
main()
File "build/build.py", line 309, in main
[":install_xla_in_source_tree", os.getcwd()])
File "build/build.py", line 50, in shell
output = subprocess.check_output(cmd)
File "/home/labs/adamh/miniconda3/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/home/labs/adamh/miniconda3/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['./bazel-0.22.0-linux-x86_64', 'run', '--verbose_failures=true', '--config=mkl_open_source_only', '--config=cuda', ':install_xla_in_source_tree', '/home/labs/adamh/jax/build']' returned non-zero exit status 1."><pre class="notranslate"><code class="notranslate">INFO: Invocation ID: e47c8044-2dc9-43e8-a08b-6a3d96bf5376
Bazel binary path: ./bazel-0.22.0-linux-x86_64
Python binary path: /home/labs/adamh/miniconda3/bin/python
MKL-DNN enabled: yes
-march=native: no
CUDA enabled: yes
CUDA toolkit path: /usr/local/cuda
CUDNN library path: /apps/RH7U2/general/cudnn/10.1/
Building XLA and installing it in the jaxlib source tree...
INFO: Invocation ID: 363bb8f2-fc0c-405f-91ea-3d77ef9db18b
DEBUG: /home/labs/adamh/.cache/bazel/_bazel_adamh/63707596de86748e21162cbeff2def7e/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:
Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default
INFO: Analysed target //build:install_xla_in_source_tree (1 packages loaded, 1 target configured).
INFO: Found 1 target...
INFO: From Compiling external/llvm/lib/Support/VirtualFileSystem.cpp:
external/llvm/lib/Support/VirtualFileSystem.cpp: In member function 'std::unique_ptr<llvm::vfs::RedirectingFileSystem::Entry> llvm::vfs::RedirectingFileSystemParser::parseEntry(llvm::yaml::Node*, llvm::vfs::RedirectingFileSystem*, bool)':
external/llvm/lib/Support/VirtualFileSystem.cpp:1421:5: warning: 'Kind' may be used uninitialized in this function [-Wmaybe-uninitialized]
switch (Kind) {
^~~~~~
external/llvm/lib/Support/VirtualFileSystem.cpp:1112:66: warning: 'NameValueNode' may be used uninitialized in this function [-Wmaybe-uninitialized]
void error(yaml::Node *N, const Twine &Msg) { Stream.printError(N, Msg); }
~~~~~~~~~~~~~~~~~^~~~~~~~
external/llvm/lib/Support/VirtualFileSystem.cpp:1282:17: note: 'NameValueNode' was declared here
yaml::Node *NameValueNode;
^~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/Support/YAMLParser.cpp:
external/llvm/lib/Support/YAMLParser.cpp: In member function 'bool llvm::yaml::Scanner::findBlockScalarIndent(unsigned int&, unsigned int, unsigned int&, bool&)':
external/llvm/lib/Support/YAMLParser.cpp:1517:17: warning: 'LongestAllSpaceLine' may be used uninitialized in this function [-Wmaybe-uninitialized]
setError(
~~~~~~~~^
"Leading all-spaces line must be smaller than the block indent",
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LongestAllSpaceLine);
~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/Support/UnicodeCaseFold.cpp:
external/llvm/lib/Support/UnicodeCaseFold.cpp:8:1: warning: multi-line comment [-Wcomment]
// utils/unicode-case-fold.py \
^
INFO: From Compiling external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:
external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp: In member function 'virtual llvm::Error llvm::codeview::TypeRecordMapping::visitKnownRecord(llvm::codeview::CVType&, llvm::codeview::VFTableShapeRecord&)':
external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:282:66: warning: 'Byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
Record.Slots.push_back(static_cast<VFTableSlotKind>(Byte >> 4));
~~~~~^~~~
INFO: From Compiling external/llvm/lib/MC/MachObjectWriter.cpp:
external/llvm/lib/MC/MachObjectWriter.cpp: In member function 'void llvm::MachObjectWriter::writeNlist(llvm::MachObjectWriter::MachSymbolData&, const llvm::MCAsmLayout&)':
external/llvm/lib/MC/MachObjectWriter.cpp:379:13: warning: 'AliaseeInfo' may be used uninitialized in this function [-Wmaybe-uninitialized]
Address = AliaseeInfo->StringIndex;
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/MC/ELFObjectWriter.cpp:
external/llvm/lib/MC/ELFObjectWriter.cpp: In function 'uint64_t {anonymous}::ELFWriter::writeObject(llvm::MCAssembler&, const llvm::MCAsmLayout&)':
external/llvm/lib/MC/ELFObjectWriter.cpp:1188:36: warning: 'AddrsigSection' may be used uninitialized in this function [-Wmaybe-uninitialized]
SectionOffsets[AddrsigSection] = std::make_pair(SecStart, SecEnd);
^
INFO: From Compiling external/protobuf_archive/src/google/protobuf/descriptor.cc:
external/protobuf_archive/src/google/protobuf/descriptor.cc: In member function 'google::protobuf::Symbol google::protobuf::DescriptorPool::NewPlaceholderWithMutexHeld(const string&, google::protobuf::DescriptorPool::PlaceholderType) const':
external/protobuf_archive/src/google/protobuf/descriptor.cc:3893:58: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class google::protobuf::EnumDescriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(placeholder_enum, 0, sizeof(*placeholder_enum));
^
In file included from external/protobuf_archive/src/google/protobuf/message.h:122,
from external/protobuf_archive/src/google/protobuf/descriptor.pb.h:29,
from external/protobuf_archive/src/google/protobuf/descriptor.cc:52:
external/protobuf_archive/src/google/protobuf/descriptor.h:885:26: note: 'class google::protobuf::EnumDescriptor' declared here
class LIBPROTOBUF_EXPORT EnumDescriptor {
^~~~~~~~~~~~~~
external/protobuf_archive/src/google/protobuf/descriptor.cc:3907:60: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class google::protobuf::EnumValueDescriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(placeholder_value, 0, sizeof(*placeholder_value));
^
In file included from external/protobuf_archive/src/google/protobuf/message.h:122,
from external/protobuf_archive/src/google/protobuf/descriptor.pb.h:29,
from external/protobuf_archive/src/google/protobuf/descriptor.cc:52:
external/protobuf_archive/src/google/protobuf/descriptor.h:1040:26: note: 'class google::protobuf::EnumValueDescriptor' declared here
class LIBPROTOBUF_EXPORT EnumValueDescriptor {
^~~~~~~~~~~~~~~~~~~
external/protobuf_archive/src/google/protobuf/descriptor.cc:3926:64: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class google::protobuf::Descriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(placeholder_message, 0, sizeof(*placeholder_message));
^
In file included from external/protobuf_archive/src/google/protobuf/message.h:122,
from external/protobuf_archive/src/google/protobuf/descriptor.pb.h:29,
from external/protobuf_archive/src/google/protobuf/descriptor.cc:52:
external/protobuf_archive/src/google/protobuf/descriptor.h:223:26: note: 'class google::protobuf::Descriptor' declared here
class LIBPROTOBUF_EXPORT Descriptor {
^~~~~~~~~~
external/protobuf_archive/src/google/protobuf/descriptor.cc: In member function 'google::protobuf::FileDescriptor* google::protobuf::DescriptorPool::NewPlaceholderFileWithMutexHeld(const string&) const':
external/protobuf_archive/src/google/protobuf/descriptor.cc:3960:46: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class google::protobuf::FileDescriptor' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess]
memset(placeholder, 0, sizeof(*placeholder));
^
In file included from external/protobuf_archive/src/google/protobuf/message.h:122,
from external/protobuf_archive/src/google/protobuf/descriptor.pb.h:29,
from external/protobuf_archive/src/google/protobuf/descriptor.cc:52:
external/protobuf_archive/src/google/protobuf/descriptor.h:1283:26: note: 'class google::protobuf::FileDescriptor' declared here
class LIBPROTOBUF_EXPORT FileDescriptor {
^~~~~~~~~~~~~~
At global scope:
cc1plus: warning: unrecognized command line option '-Wno-writable-strings'
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/service/hlo_profile_printer_data.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/service/hlo.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/core/lib/core/error_codes.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/core/example/example.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/service/gpu/backend_configs.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/xla.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/service/gpu/autotuning.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/stream_executor/logging.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/compiler/xla/xla_data.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/stream_executor/dnn.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From ProtoCompile external/org_tensorflow/tensorflow/core/grappler/costs/op_performance_data.pb.cc:
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
bazel-out/k8-opt/genfiles/external/protobuf_archive/src: warning: directory does not exist.
INFO: From Compiling external/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:
external/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp: In function 'void getIntOperandsFromRegisterString(llvm::StringRef, llvm::SelectionDAG*, const llvm::SDLoc&, std::vector<llvm::SDValue, std::allocator<llvm::SDValue> >&)':
external/llvm/lib/Target/ARM/ARMISelDAGToDAG.cpp:3843:16: warning: 'IntField' may be used uninitialized in this function [-Wmaybe-uninitialized]
unsigned IntField;
^~~~~~~~
INFO: From Compiling external/org_tensorflow/tensorflow/compiler/xla/service/algebraic_simplifier.cc:
external/org_tensorflow/tensorflow/compiler/xla/service/algebraic_simplifier.cc:3676:6: warning: 'bool xla::{anonymous}::AlgebraicSimplifierVisitor::TransformToClampIfSameShape(xla::HloInstruction*, xla::HloInstruction*, xla::HloInstruction*, xla::HloInstruction*, xla::HloInstruction*, xla::HloInstruction*)' defined but not used [-Wunused-function]
bool AlgebraicSimplifierVisitor::TransformToClampIfSameShape(
^~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:
external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp: In member function 'virtual llvm::Error llvm::codeview::TypeRecordMapping::visitKnownRecord(llvm::codeview::CVType&, llvm::codeview::VFTableShapeRecord&)':
external/llvm/lib/DebugInfo/CodeView/TypeRecordMapping.cpp:282:66: warning: 'Byte' may be used uninitialized in this function [-Wmaybe-uninitialized]
Record.Slots.push_back(static_cast<VFTableSlotKind>(Byte >> 4));
~~~~~^~~~
INFO: From Compiling external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp:
external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp: In function 'int llvm::X86Disassembler::decodeInstruction(llvm::X86Disassembler::InternalInstruction*, llvm::X86Disassembler::byteReader_t, const void*, llvm::X86Disassembler::dlog_t, void*, const void*, uint64_t, llvm::X86Disassembler::DisassemblerMode)':
external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp:1902:53: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct llvm::X86Disassembler::InternalInstruction'; use assignment or value-initialization instead [-Wclass-memaccess]
memset(insn, 0, sizeof(struct InternalInstruction));
^
In file included from external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp:20:
external/llvm/lib/Target/X86/Disassembler/X86DisassemblerDecoder.h:524:8: note: 'struct llvm::X86Disassembler::InternalInstruction' declared here
struct InternalInstruction {
^~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/MC/MachObjectWriter.cpp:
external/llvm/lib/MC/MachObjectWriter.cpp: In member function 'void llvm::MachObjectWriter::writeNlist(llvm::MachObjectWriter::MachSymbolData&, const llvm::MCAsmLayout&)':
external/llvm/lib/MC/MachObjectWriter.cpp:379:13: warning: 'AliaseeInfo' may be used uninitialized in this function [-Wmaybe-uninitialized]
Address = AliaseeInfo->StringIndex;
~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/MC/ELFObjectWriter.cpp:
external/llvm/lib/MC/ELFObjectWriter.cpp: In function 'uint64_t {anonymous}::ELFWriter::writeObject(llvm::MCAssembler&, const llvm::MCAsmLayout&)':
external/llvm/lib/MC/ELFObjectWriter.cpp:1188:36: warning: 'AddrsigSection' may be used uninitialized in this function [-Wmaybe-uninitialized]
SectionOffsets[AddrsigSection] = std::make_pair(SecStart, SecEnd);
^
INFO: From Compiling external/org_tensorflow/tensorflow/compiler/xla/service/gpu/thunk.cc:
external/org_tensorflow/tensorflow/compiler/xla/service/gpu/thunk.cc: In function 'std::ostream& xla::gpu::operator<<(std::ostream&, xla::gpu::Thunk::Kind)':
external/org_tensorflow/tensorflow/compiler/xla/service/gpu/thunk.cc:62:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/GVNHoist.cpp:
external/llvm/lib/Transforms/Scalar/GVNHoist.cpp:137:1: warning: multi-line comment [-Wcomment]
// / \
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp:
external/llvm/lib/Transforms/Scalar/LoopRerollPass.cpp:350:5: warning: multi-line comment [-Wcomment]
// / | \
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:
external/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp: In function 'llvm::Value* FindLIVLoopCondition(llvm::Value*, llvm::Loop*, bool&, OperatorChain&, llvm::DenseMap<llvm::Value*, llvm::Value*>&)':
external/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp:474:7: warning: 'NewChain' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (NewChain != OC_OpChainMixed) {
^~
INFO: From Compiling external/llvm/lib/Transforms/Scalar/MergeICmps.cpp:
external/llvm/lib/Transforms/Scalar/MergeICmps.cpp:484:7: warning: multi-line comment [-Wcomment]
// \ \ \ \
^
external/llvm/lib/Transforms/Scalar/MergeICmps.cpp:745:3: warning: multi-line comment [-Wcomment]
// \ \ \ \
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/SROA.cpp:
external/llvm/lib/Transforms/Scalar/SROA.cpp: In member function 'llvm::iterator_range<llvm::sroa::AllocaSlices::partition_iterator> llvm::sroa::AllocaSlices::partitions()':
external/llvm/lib/Transforms/Scalar/SROA.cpp:355:19: warning: '<anonymous>.llvm::sroa::Partition::BeginOffset' may be used uninitialized in this function [-Wmaybe-uninitialized]
class llvm::sroa::Partition {
^~~~~~~~~
external/llvm/lib/Transforms/Scalar/SROA.cpp:355:19: warning: '<anonymous>.llvm::sroa::Partition::EndOffset' may be used uninitialized in this function [-Wmaybe-uninitialized]
external/llvm/lib/Transforms/Scalar/SROA.cpp: In function 'llvm::Value* getAdjustedPtr({anonymous}::IRBuilderTy&, const llvm::DataLayout&, llvm::Value*, llvm::APInt, llvm::Type*, llvm::Twine)':
external/llvm/lib/Transforms/Scalar/SROA.cpp:1585:34: warning: 'OffsetBasePtr' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (OffsetPtr && OffsetPtr != OffsetBasePtr)
~~~~~~~~~~^~~~~~~~~~~~~~~~
INFO: From Compiling external/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:
external/llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:1201:3: warning: multi-line comment [-Wcomment]
// | ----------------\
^
INFO: From Compiling external/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp:
external/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp: In function 'bool unswitchBestCondition(llvm::Loop&, llvm::DominatorTree&, llvm::LoopInfo&, llvm::AssumptionCache&, llvm::TargetTransformInfo&, llvm::function_ref<void(bool, llvm::ArrayRef<llvm::Loop*>)>, llvm::ScalarEvolution*, llvm::MemorySSAUpdater*)':
external/llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp:2740:3: warning: 'BestUnswitchCost' may be used uninitialized in this function [-Wmaybe-uninitialized]
if (BestUnswitchCost >= UnswitchThreshold) {
^~
INFO: From Compiling external/org_tensorflow/tensorflow/core/framework/common_shape_fns.cc:
In file included from external/org_tensorflow/tensorflow/core/util/padding.h:26,
from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.h:21,
from external/org_tensorflow/tensorflow/core/framework/common_shape_fns.cc:15:
external/org_tensorflow/tensorflow/core/util/tensor_format.h: In function 'int tensorflow::GetTensorDimsFromSpatialDims(int, tensorflow::TensorFormat)':
external/org_tensorflow/tensorflow/core/util/tensor_format.h:148:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
external/org_tensorflow/tensorflow/core/util/tensor_format.h: In function 'int tensorflow::GetTensorSpatialDims(int, tensorflow::TensorFormat)':
external/org_tensorflow/tensorflow/core/util/tensor_format.h:124:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
INFO: From Compiling external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc: In function 'bool tensorflow::tensor::internal::PackedValuesNotEqual(T, T) [with T = float]':
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:250:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<int32_t&>(a) != reinterpret_cast<int32_t&>(b);
^
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:250:71: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<int32_t&>(a) != reinterpret_cast<int32_t&>(b);
^
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc: In function 'bool tensorflow::tensor::internal::PackedValuesNotEqual(T, T) [with T = double]':
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:254:38: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<int64_t&>(a) != reinterpret_cast<int64_t&>(b);
^
external/org_tensorflow/tensorflow/core/framework/tensor_util.cc:254:71: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
return reinterpret_cast<int64_t&>(a) != reinterpret_cast<int64_t&>(b);
^
INFO: From Compiling external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:
In file included from external/org_tensorflow/tensorflow/core/framework/op_kernel.cc:49:
external/org_tensorflow/tensorflow/core/platform/platform_strings.h:96:1: warning: multi-line comment [-Wcomment]
// #define TF_PLAT_STR_(x) \
^
ERROR: /home/labs/adamh/.cache/bazel/_bazel_adamh/63707596de86748e21162cbeff2def7e/external/nccl_archive/BUILD.bazel:67:1: error while parsing .d file: /home/labs/adamh/.cache/bazel/_bazel_adamh/63707596de86748e21162cbeff2def7e/execroot/__main__/bazel-out/k8-opt/bin/external/nccl_archive/_objs/device_lib/max_all_gather.cu.d (No such file or directory)
In file included from /usr/local/cuda-9.2/bin/..//include/host_config.h:50,
from /usr/local/cuda-9.2/bin/..//include/cuda_runtime.h:78,
from <command-line>:
/usr/local/cuda-9.2/bin/..//include/crt/host_config.h:119:2: error: #error -- unsupported GNU version! gcc versions later than 7 are not supported!
#error -- unsupported GNU version! gcc versions later than 7 are not supported!
^~~~~
Target //build:install_xla_in_source_tree failed to build
INFO: Elapsed time: 462.630s, Critical Path: 50.51s
INFO: 1198 processes: 1198 processwrapper-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
Traceback (most recent call last):
File "build/build.py", line 313, in <module>
main()
File "build/build.py", line 309, in main
[":install_xla_in_source_tree", os.getcwd()])
File "build/build.py", line 50, in shell
output = subprocess.check_output(cmd)
File "/home/labs/adamh/miniconda3/lib/python3.6/subprocess.py", line 336, in check_output
**kwargs).stdout
File "/home/labs/adamh/miniconda3/lib/python3.6/subprocess.py", line 418, in run
output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['./bazel-0.22.0-linux-x86_64', 'run', '--verbose_failures=true', '--config=mkl_open_source_only', '--config=cuda', ':install_xla_in_source_tree', '/home/labs/adamh/jax/build']' returned non-zero exit status 1.
</code></pre></div>
<ol start="2" dir="auto">
<li>When I tried to pip install jaxlib+jax, installation seemed to go OK, but when I tried to import jax I got the following error message:</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-122f308a8eba> in <module>
----> 1 import jax.numpy as np
~/jax/jax/__init__.py in <module>
17
18 from jax.version import __version__
---> 19 from jax.api import *
20 import jax.numpy as np # side-effecting import sets up operator overloads
~/jax/jax/api.py in <module>
44 from .util import (unzip2, unzip3, curry, partial, safe_map, safe_zip,
45 WrapHashably, prod)
---> 46 from .lib.xla_bridge import canonicalize_dtype, device_count
47 from .abstract_arrays import ShapedArray
48 from .interpreters import partial_eval as pe
~/jax/jax/lib/xla_bridge.py in <module>
31 import numpy as onp # 'onp' rather than 'np' to distinguish from autograd.numpy
32
---> 33 import jaxlib
34
35 # Check the jaxlib version before importing anything else from jaxlib.
~/miniconda3/lib/python3.6/site-packages/jaxlib/__init__.py in <module>
13 # limitations under the License.
14
---> 15 from . import xla_client
16 from .version import __version__
17
~/miniconda3/lib/python3.6/site-packages/jaxlib/xla_client.py in <module>
36 # and TensorFlow may fail with duplicate protocol buffer message definitions.
37
---> 38 from . import pywrap_xla as c_api
39
40 # Import the XRT backend, if available.
~/miniconda3/lib/python3.6/site-packages/jaxlib/pywrap_xla.py in <module>
26 fp.close()
27 return _mod
---> 28 _pywrap_xla = swig_import_helper()
29 del swig_import_helper
30 else:
~/miniconda3/lib/python3.6/site-packages/jaxlib/pywrap_xla.py in swig_import_helper()
22 if fp is not None:
23 try:
---> 24 _mod = imp.load_module('_pywrap_xla', fp, pathname, description)
25 finally:
26 fp.close()
~/miniconda3/lib/python3.6/imp.py in load_module(name, file, filename, details)
241 return load_dynamic(name, filename, opened_file)
242 else:
--> 243 return load_dynamic(name, filename, file)
244 elif type_ == PKG_DIRECTORY:
245 return load_package(name, filename)
~/miniconda3/lib/python3.6/imp.py in load_dynamic(name, path, file)
341 spec = importlib.machinery.ModuleSpec(
342 name=name, loader=loader, origin=path)
--> 343 return _load(spec)
344
345 else:
ImportError: /lib64/libm.so.6: version `GLIBC_2.23' not found (required by /home/labs/adamh/miniconda3/lib/python3.6/site-packages/jaxlib/_pywrap_xla.so)"><pre class="notranslate"><code class="notranslate">---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-122f308a8eba> in <module>
----> 1 import jax.numpy as np
~/jax/jax/__init__.py in <module>
17
18 from jax.version import __version__
---> 19 from jax.api import *
20 import jax.numpy as np # side-effecting import sets up operator overloads
~/jax/jax/api.py in <module>
44 from .util import (unzip2, unzip3, curry, partial, safe_map, safe_zip,
45 WrapHashably, prod)
---> 46 from .lib.xla_bridge import canonicalize_dtype, device_count
47 from .abstract_arrays import ShapedArray
48 from .interpreters import partial_eval as pe
~/jax/jax/lib/xla_bridge.py in <module>
31 import numpy as onp # 'onp' rather than 'np' to distinguish from autograd.numpy
32
---> 33 import jaxlib
34
35 # Check the jaxlib version before importing anything else from jaxlib.
~/miniconda3/lib/python3.6/site-packages/jaxlib/__init__.py in <module>
13 # limitations under the License.
14
---> 15 from . import xla_client
16 from .version import __version__
17
~/miniconda3/lib/python3.6/site-packages/jaxlib/xla_client.py in <module>
36 # and TensorFlow may fail with duplicate protocol buffer message definitions.
37
---> 38 from . import pywrap_xla as c_api
39
40 # Import the XRT backend, if available.
~/miniconda3/lib/python3.6/site-packages/jaxlib/pywrap_xla.py in <module>
26 fp.close()
27 return _mod
---> 28 _pywrap_xla = swig_import_helper()
29 del swig_import_helper
30 else:
~/miniconda3/lib/python3.6/site-packages/jaxlib/pywrap_xla.py in swig_import_helper()
22 if fp is not None:
23 try:
---> 24 _mod = imp.load_module('_pywrap_xla', fp, pathname, description)
25 finally:
26 fp.close()
~/miniconda3/lib/python3.6/imp.py in load_module(name, file, filename, details)
241 return load_dynamic(name, filename, opened_file)
242 else:
--> 243 return load_dynamic(name, filename, file)
244 elif type_ == PKG_DIRECTORY:
245 return load_package(name, filename)
~/miniconda3/lib/python3.6/imp.py in load_dynamic(name, path, file)
341 spec = importlib.machinery.ModuleSpec(
342 name=name, loader=loader, origin=path)
--> 343 return _load(spec)
344
345 else:
ImportError: /lib64/libm.so.6: version `GLIBC_2.23' not found (required by /home/labs/adamh/miniconda3/lib/python3.6/site-packages/jaxlib/_pywrap_xla.so)
</code></pre></div>
<p dir="auto">Any help would be much appreciated!</p>
| 0 |
<ul dir="auto">
<li>Output of <code class="notranslate">node_modules/.bin/electron --version</code>: 3.0.0-beta.8</li>
<li>Operating System (Platform and Version): Mac OSX Mojave</li>
</ul>
<p dir="auto"><strong>Expected Behavior</strong></p>
<p dir="auto">There should be an option to accept mouse events when a window is unfocused.</p>
<p dir="auto"><strong>Actual behavior</strong></p>
<p dir="auto">WIndows don't accept any hover CSS states or events while unfocused.</p>
<p dir="auto"><strong>Additional Information</strong></p>
<p dir="auto">I know about this ticket: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="106677921" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/2797" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/2797/hovercard" href="https://github.com/electron/electron/issues/2797">#2797</a>, but it was already closed and I'm not sure why. It's actually a requirement for desktop apps that want to feel native, as electron hopes to provide.</p>
<p dir="auto">I understand this would need to be enabled in Chromium, hoping to hear if there's been any progress here, perhaps the latest builds enable it, or even just tips on where to look to make these changes.</p>
|
<p dir="auto">Repro:</p>
<ul dir="auto">
<li>Add something with a hover style in CSS</li>
<li>Focus another window</li>
<li>Hover over the unfocused Electron window</li>
<li>Usually the hover style will be seen for a split second before disappearing</li>
</ul>
<p dir="auto">This sounds like a small thing, and it is - but it's actually quite frustrating in our particular UI as we have buttons that appear on hover which you accidentally click when focusing. It also <em>looks</em> buggy as the hover style visually flashes.</p>
<p dir="auto">Note: On Windows this works as expected, showing the hover styles in the Electron window continuously even when unfocused.</p>
| 1 |
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p>
<p dir="auto">Bug.</p>
<p dir="auto"><strong>What is the current behavior?</strong></p>
<p dir="auto">By way of example, I have:</p>
<ul dir="auto">
<li><code class="notranslate">util.js</code>: ES exports two methods: <code class="notranslate">red</code> and <code class="notranslate">blue</code> via two scenarios: <code class="notranslate">one-file</code> (all code within one file) and <code class="notranslate">re-export</code> (methods re-exported from external files)</li>
<li><code class="notranslate">app1.js</code>: Imports and uses only <code class="notranslate">red</code></li>
<li><code class="notranslate">app2.js</code>: Imports and uses only <code class="notranslate">blue</code></li>
</ul>
<p dir="auto"><em>Expected</em>: If I build webpack bundles for both apps, <code class="notranslate">app1</code> will have <code class="notranslate">red</code> and <code class="notranslate">blue</code> will be eliminated. Conversely, <code class="notranslate">app2</code> will have <code class="notranslate">blue</code> and <code class="notranslate">red</code> will be eliminated:</p>
<p dir="auto"><em>Actual</em>: Depends on config</p>
<ol dir="auto">
<li><em>Array of Configs</em>: If there is an array of configurations with a single entry point each for <code class="notranslate">app1.js</code> and <code class="notranslate">app2.js</code> the correct unused methods are dropped.</li>
<li><em>Multiple Entry Points</em>: If there is a single configuration object with multiple entry points for both <code class="notranslate">app1.js</code> and <code class="notranslate">app2.js</code>, then <strong>neither <code class="notranslate">blue</code> nor <code class="notranslate">red</code> are eliminated in either bundle</strong>. I would consider this a bug. Perhaps there is some known thing for "multiple entry points get any esnext exports used by <em>any</em> other entry point", but that seems weird.</li>
</ol>
<p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce.</strong></p>
<p dir="auto">We made a repository with passing and failing mocha tests to show the situation: <a href="https://github.com/FormidableLabs/webpack-tree-shaking-multiple-entry-points">https://github.com/FormidableLabs/webpack-tree-shaking-multiple-entry-points</a>.</p>
<p dir="auto"><em>Reproduction</em>:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/FormidableLabs/webpack-tree-shaking-multiple-entry-points.git
$ cd webpack-tree-shaking-multiple-entry-points
$ yarn install
$ yarn run build
$ yarn run test"><pre class="notranslate">$ git clone https://github.com/FormidableLabs/webpack-tree-shaking-multiple-entry-points.git
$ <span class="pl-c1">cd</span> webpack-tree-shaking-multiple-entry-points
$ yarn install
$ yarn run build
$ yarn run <span class="pl-c1">test</span></pre></div>
<p dir="auto">The test output is:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tree shaking in webpack4
array
one-file
✓ app1 should have red, not blue
✓ app2 should have blue, not red
re-export
✓ app1 should have red, not blue
✓ app2 should have blue, not red
multiple-entries
one-file
1) app1 should have red, not blue
2) app2 should have blue, not red
re-export
3) app1 should have red, not blue
4) app2 should have blue, not red
4 passing (22ms)
4 failing"><pre class="notranslate"><code class="notranslate"> tree shaking in webpack4
array
one-file
✓ app1 should have red, not blue
✓ app2 should have blue, not red
re-export
✓ app1 should have red, not blue
✓ app2 should have blue, not red
multiple-entries
one-file
1) app1 should have red, not blue
2) app2 should have blue, not red
re-export
3) app1 should have red, not blue
4) app2 should have blue, not red
4 passing (22ms)
4 failing
</code></pre></div>
<p dir="auto">The failing ones show that the ES methods that should be dropped aren't.</p>
<p dir="auto"><strong>What is the expected behavior?</strong></p>
<p dir="auto">See above section on <code class="notranslate">current behavior</code>.</p>
<p dir="auto"><strong>If this is a feature request, what is motivation or use case for changing the behavior?</strong></p>
<p dir="auto">Nope, it's a bug.</p>
<p dir="auto"><strong>Please mention other relevant information such as the browser version, Node.js version, webpack version and Operating System.</strong></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ node --version
v8.4.0
$ $ yarn list webpack
yarn list v1.3.2
└─ webpack@4.0.0-beta.1
$ uname -a
Darwin small.lan 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018; root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64"><pre class="notranslate">$ node --version
v8.4.0
$ $ yarn list webpack
yarn list v1.3.2
└─ webpack@4.0.0-beta.1
$ uname -a
Darwin small.lan 16.7.0 Darwin Kernel Version 16.7.0: Thu Jan 11 22:59:40 PST 2018<span class="pl-k">;</span> root:xnu-3789.73.8~1/RELEASE_X86_64 x86_64</pre></div>
|
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br>
bug webpack 3.8.1</p>
<p dir="auto">Tree shaking does not seem to work if an exported item is used in other chunks.</p>
<p dir="auto">From the below example both page1.js and page2.js will have <strong>ALL</strong> the exports from utils.js even though page1 for only imported {a , b} from './utils' and page2 for only imported {c , d} from './utils';</p>
<p dir="auto">I expected that each file will keep only the imports it needs and the reset will be minified away at production build.</p>
<p dir="auto">However if for example I remove the {c} import from page2.js only then will c be mark as unused in both page1.js and page2.js complied files</p>
<p dir="auto">e.g.</p>
<p dir="auto">As seen both page1 and page 2 have the code for import a,b,c,d after compilation.</p>
<p dir="auto"><strong>page1.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {
a,
b
} from "./utils";
console.log(a, b);"><pre class="notranslate"><code class="notranslate">import {
a,
b
} from "./utils";
console.log(a, b);
</code></pre></div>
<p dir="auto"><strong>page2.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import {
c,
d
} from "./utils";
console.log(c, d);"><pre class="notranslate"><code class="notranslate">import {
c,
d
} from "./utils";
console.log(c, d);
</code></pre></div>
<p dir="auto"><strong>utils.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export const a = 1;
export const b = 2;
export const c = 3;
export const d = 4;"><pre class="notranslate"><code class="notranslate">export const a = 1;
export const b = 2;
export const c = 3;
export const d = 4;
</code></pre></div>
<p dir="auto"><strong>After compilation</strong></p>
<p dir="auto"><strong>page1.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(function(modules) { // webpackBootstrap
})
/************************************************************************/
([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
const a = 1;
/* harmony export (immutable) */ __webpack_exports__["a"] = a;
const b = 2;
/* harmony export (immutable) */ __webpack_exports__["b"] = b;
const c = 3;
/* harmony export (immutable) */ __webpack_exports__["c"] = c;
const d = 4;
/* harmony export (immutable) */ __webpack_exports__["d"] = d;
/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(0);
console.log(__WEBPACK_IMPORTED_MODULE_0__utils__["a"], __WEBPACK_IMPORTED_MODULE_0__utils__["b"]);
/***/ })
]);"><pre class="notranslate"><code class="notranslate">(function(modules) { // webpackBootstrap
})
/************************************************************************/
([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
const a = 1;
/* harmony export (immutable) */ __webpack_exports__["a"] = a;
const b = 2;
/* harmony export (immutable) */ __webpack_exports__["b"] = b;
const c = 3;
/* harmony export (immutable) */ __webpack_exports__["c"] = c;
const d = 4;
/* harmony export (immutable) */ __webpack_exports__["d"] = d;
/***/ }),
/* 1 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(0);
console.log(__WEBPACK_IMPORTED_MODULE_0__utils__["a"], __WEBPACK_IMPORTED_MODULE_0__utils__["b"]);
/***/ })
]);
</code></pre></div>
<p dir="auto"><strong>page2.js</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" (function(modules) { // webpackBootstrap
})
/************************************************************************/
([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
const a = 1;
/* harmony export (immutable) */ __webpack_exports__["a"] = a;
const b = 2;
/* harmony export (immutable) */ __webpack_exports__["b"] = b;
const c = 3;
/* harmony export (immutable) */ __webpack_exports__["c"] = c;
const d = 4;
/* harmony export (immutable) */ __webpack_exports__["d"] = d;
/***/ }),
/* 1 */,
/* 2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(0);
console.log(__WEBPACK_IMPORTED_MODULE_0__utils__["c"], __WEBPACK_IMPORTED_MODULE_0__utils__["d"]);
/***/ })
]);"><pre class="notranslate"><code class="notranslate"> (function(modules) { // webpackBootstrap
})
/************************************************************************/
([
/* 0 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
const a = 1;
/* harmony export (immutable) */ __webpack_exports__["a"] = a;
const b = 2;
/* harmony export (immutable) */ __webpack_exports__["b"] = b;
const c = 3;
/* harmony export (immutable) */ __webpack_exports__["c"] = c;
const d = 4;
/* harmony export (immutable) */ __webpack_exports__["d"] = d;
/***/ }),
/* 1 */,
/* 2 */
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__utils__ = __webpack_require__(0);
console.log(__WEBPACK_IMPORTED_MODULE_0__utils__["c"], __WEBPACK_IMPORTED_MODULE_0__utils__["d"]);
/***/ })
]);
</code></pre></div>
<p dir="auto"><strong>webpack config</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = {
entry: {
page1: './page1.js',
page2: './page2.js'
},
output: {
filename: '[name].dist.js'
}
};"><pre class="notranslate"><code class="notranslate">module.exports = {
entry: {
page1: './page1.js',
page2: './page2.js'
},
output: {
filename: '[name].dist.js'
}
};
</code></pre></div>
| 1 |
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=leos" rel="nofollow">Leoš Bitto</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5610?redirect=false" rel="nofollow">SPR-5610</a></strong> and commented</p>
<p dir="auto">It would be nice if Spring Framework would reject any Map or Set which contain duplicate entries by throwing some exception. It would be perfect if that could be the default behaviour with the upcoming version 3.0, and optional in the currect versions 2.x (where it could be too disruptive if made default). There are two main reasons: First is that the current behaviour, which tolerates duplicates, can easily cover a configuration mistake (consider especially Map with more entries with the same key and different values). Second is that if the used Map or Set implementation is order-preserving, it is unclear how are the duplicates going to be ordered.</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.6, 3.0 M2</p>
<p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?p=233277" rel="nofollow">http://forum.springsource.org/showthread.php?p=233277</a></p>
|
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=tblachowicz" rel="nofollow">Tomasz Blachowicz</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7972?redirect=false" rel="nofollow">SPR-7972</a></strong> and commented</p>
<p dir="auto">Currently the PUT methods on RestTemplate are void. I'm aware that in typical scenarios PUT does not return any value, but there are some cases where methods putForObject and/or putForEntity are required.</p>
<p dir="auto">Prime example is connectivity with Apache CouchDB that return revision number of the document when updating the document using PUT method.<br>
More details can be seen here: <a href="http://wiki.apache.org/couchdb/HTTP_Document_API#PUT" rel="nofollow">http://wiki.apache.org/couchdb/HTTP_Document_API#PUT</a></p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.0.5</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398159425" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15256" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15256/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15256">#15256</a> Please add a putForEntity and a putForLocation method to RestTemplate (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398159425" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15256" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15256/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15256">#15256</a> Please add a putForEntity and a putForLocation method to RestTemplate (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">3 votes, 5 watchers</p>
| 0 |
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Some code does not show due to bad filename/path.</p>
<p dir="auto"><strong>Expected/desired behavior</strong><br>
Example code shown</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
Go to <a href="https://angular.io/docs/ts/latest/tutorial/toh-pt6.html" rel="nofollow">https://angular.io/docs/ts/latest/tutorial/toh-pt6.html</a></p>
<p dir="auto"><strong>What is the expected behavior?</strong><br>
Shown code<br>
<a target="_blank" rel="noopener noreferrer" href=""><img src="" alt="Uploading Screen Shot 2016-08-30 at 2.15.21 PM.png…" style="max-width: 100%;"></a></p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Chrome 52.0.2743.116 (64 bit)</p>
|
<p dir="auto">A number of snippet links from the Angular2 tour of heroes page <a href="https://angular.io/docs/ts/latest/tutorial/toh-pt6.html" rel="nofollow">https://angular.io/docs/ts/latest/tutorial/toh-pt6.html</a> are broken. For example:</p>
<p dir="auto">app/hero.service.ts (post)</p>
<p dir="auto">BAD FILENAME: ../../../_fragments/toh-6/ts/app/hero.service-post.ts.md Current path: docs,ts,latest,tutorial,toh-pt6 PathToDocs: ../../../</p>
<p dir="auto">I raised this initially as <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="173648794" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/11127" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/11127/hovercard" href="https://github.com/angular/angular/issues/11127">angular/angular#11127</a>, but then Eric Martinez asked me to raise it in this issues repo. I noted an issues like this were previously opened and closed in the same angular issues repo - search issues for "BAD FILENAME".</p>
| 1 |
<p dir="auto">As noticed here: <a href="https://circleci.com/gh/pytorch/pytorch/219276?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link/console" rel="nofollow">https://circleci.com/gh/pytorch/pytorch/219276?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link/console</a></p>
<p dir="auto">cc: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/goldsborough/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/goldsborough">@goldsborough</a></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Nov 11 02:46:56 [ FAILED ] 1 test, listed below:
Nov 11 02:46:56 [ FAILED ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured
Nov 11 02:46:56
Nov 11 02:46:56 1 FAILED TEST
Nov 11 02:46:56 + cleanup"><pre class="notranslate"><code class="notranslate">Nov 11 02:46:56 [ FAILED ] 1 test, listed below:
Nov 11 02:46:56 [ FAILED ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured
Nov 11 02:46:56
Nov 11 02:46:56 1 FAILED TEST
Nov 11 02:46:56 + cleanup
</code></pre></div>
|
<p dir="auto">I got this on my PR which is unrelated with C++ dataloader:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Nov 06 19:49:10 [ RUN ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured
Nov 06 19:49:10 /var/lib/jenkins/workspace/test/cpp/api/dataloader.cpp:864: Failure
Nov 06 19:49:10 Expected equality of these values:
Nov 06 19:49:10 value
Nov 06 19:49:10 Which is: 1
Nov 06 19:49:10 index++
Nov 06 19:49:10 Which is: 0
Nov 06 19:49:10 [ FAILED ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured (1 ms)"><pre class="notranslate"><code class="notranslate">Nov 06 19:49:10 [ RUN ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured
Nov 06 19:49:10 /var/lib/jenkins/workspace/test/cpp/api/dataloader.cpp:864: Failure
Nov 06 19:49:10 Expected equality of these values:
Nov 06 19:49:10 value
Nov 06 19:49:10 Which is: 1
Nov 06 19:49:10 index++
Nov 06 19:49:10 Which is: 0
Nov 06 19:49:10 [ FAILED ] DataLoaderTest.EnforcesOrderingAmongThreadsWhenConfigured (1 ms)
</code></pre></div>
<p dir="auto">log: <a href="https://circleci.com/gh/pytorch/pytorch/190910" rel="nofollow">https://circleci.com/gh/pytorch/pytorch/190910</a></p>
<p dir="auto">cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/goldsborough/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/goldsborough">@goldsborough</a></p>
| 1 |
<h3 dir="auto">Version</h3>
<p dir="auto">2.6.10</p>
<h3 dir="auto">Reproduction link</h3>
<p dir="auto"><a href="https://codesandbox.io/s/vue-template-7x6nl" rel="nofollow">https://codesandbox.io/s/vue-template-7x6nl</a></p>
<h3 dir="auto">Steps to reproduce</h3>
<p dir="auto">Use <code class="notranslate">v-slot</code> directive with "is" attribute</p>
<h3 dir="auto">What is expected?</h3>
<p dir="auto">similar behavior with the old syntax of slots</p>
<h3 dir="auto">What is actually happening?</h3>
<p dir="auto">scoped slot not working with dynamic component</p>
|
<h3 dir="auto">What problem does this feature solve?</h3>
<p dir="auto">When using mapGetters from vuex it would be nice to be able to provide the store namespace from a prop.</p>
<p dir="auto">The use case for us is, that we have several store modules whose interfaces basically look the same. If we could provide the store namespace as a prop we could rely on that interface from a specific component without having to duplicate the mapGetters calls in all parent components that use the component.</p>
<h3 dir="auto">What does the proposed API look like?</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="computed: {
...mapGetters(this.storeNamespace, {'item': 'myGetter' })
}"><pre class="notranslate"><code class="notranslate">computed: {
...mapGetters(this.storeNamespace, {'item': 'myGetter' })
}
</code></pre></div>
<p dir="auto">See the following Codepen for a full example:</p>
<p dir="auto"><a href="https://codepen.io/dmnk_bln/pen/yMvpLq/" rel="nofollow">https://codepen.io/dmnk_bln/pen/yMvpLq/</a></p>
| 0 |
<p dir="auto">There should be a clear mention if the tooltip (and also for other components) can be activated just by including the corresponding css attribute on the element and including the v3 js file, or it does need to be called from a js file of the page.</p>
|
<p dir="auto">The v2.3.2 docs had the following notice, which is missing from the new docs yet is still applicable AFAICT:</p>
<blockquote>
<p dir="auto">For performance reasons, the tooltip and popover data-apis are opt in, meaning you must initialize them yourself.</p>
</blockquote>
| 1 |
<p dir="auto">When an accented character (e.g. åäö, but probably other unicode characters as well) is used in a file name the git implementation in Atom on OS X thinks that the file is new, even though it exists on github. You can test with this repo (small, markdown files only):</p>
<p dir="auto"><code class="notranslate">git clone https://github.com/morberg/recept.git</code></p>
<p dir="auto">Open root folder in atom and look at the incorrect status in the left tree navigation.</p>
<p dir="auto">Problem is seen with Atom 0.158.0 on OS X 10.10.1:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/956034/5450195/84f191da-8502-11e4-9f01-685719d6dc47.png"><img src="https://cloud.githubusercontent.com/assets/956034/5450195/84f191da-8502-11e4-9f01-685719d6dc47.png" alt="screen shot 2014-12-16 at 09 03 48" style="max-width: 100%;"></a></p>
<p dir="auto">Problem is <em>not</em> seen with Atom 0.158.0 on Windows 7 SP 1.<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/956034/5450203/a25e5c1c-8502-11e4-977f-3f64a6bbb69a.png"><img src="https://cloud.githubusercontent.com/assets/956034/5450203/a25e5c1c-8502-11e4-977f-3f64a6bbb69a.png" alt="screen shot 2014-12-16 at 09 04 45" style="max-width: 100%;"></a></p>
|
<p dir="auto">Halp ticket:</p>
<ul dir="auto">
<li>support/6c407d52c9f711e38a0cc47a4027f259</li>
</ul>
<blockquote>
<p dir="auto">Git support does not handle files with accented characters correctly, declaring them as new. See e.g spec/fixtures/subdir/áccéntéd.svg in atom/markdown-preview or lloeki/svg-preview plugins.</p>
</blockquote>
<p dir="auto">Steps to reproduce:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ git clone https://github.com/lloeki/svg-preview
$ cd svg-preview
$ atom ."><pre class="notranslate"><code class="notranslate">$ git clone https://github.com/lloeki/svg-preview
$ cd svg-preview
$ atom .
</code></pre></div>
<p dir="auto">Notice that there's a file marked as new in the tree view -- <code class="notranslate">spec/fixtures/subdir/áccéntéd.svg</code>.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/38924/2766300/8021b38c-ca2d-11e3-95fc-973f0db52106.png"><img src="https://cloud.githubusercontent.com/assets/38924/2766300/8021b38c-ca2d-11e3-95fc-973f0db52106.png" alt="dbb695e0-ca24-11e3-9ef4-e37cbd560a08" style="max-width: 100%;"></a></p>
<p dir="auto">However, I can't reproduce this issue with the markdown-preview repository which has a file with the same name.</p>
| 1 |
<p dir="auto">Hi!</p>
<p dir="auto">I have the following plotting code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" for idx, signal in enumerate(LIST_OF_SIGNALS):
df_ftrs_tmp = df_ftrs.copy()
df_ftrs_tmp.index = encode_meta(df_ftrs_tmp)
df_ftrs_tmp = df_ftrs_tmp.filter(like=signal)
for df_tmp_idx, df_tmp in df_ftrs_tmp.iterrows():
label = decode_meta(df_tmp_idx)
axes[idx].errorbar(
list(range(5)),
df_tmp.filter(like='[median]'),
yerr=df_tmp.filter(like='[std]'),
capsize=3, marker='o',
color=colors[df_tmp_idx], label='txt{}'.format(df_tmp_idx))"><pre class="notranslate"><code class="notranslate"> for idx, signal in enumerate(LIST_OF_SIGNALS):
df_ftrs_tmp = df_ftrs.copy()
df_ftrs_tmp.index = encode_meta(df_ftrs_tmp)
df_ftrs_tmp = df_ftrs_tmp.filter(like=signal)
for df_tmp_idx, df_tmp in df_ftrs_tmp.iterrows():
label = decode_meta(df_tmp_idx)
axes[idx].errorbar(
list(range(5)),
df_tmp.filter(like='[median]'),
yerr=df_tmp.filter(like='[std]'),
capsize=3, marker='o',
color=colors[df_tmp_idx], label='txt{}'.format(df_tmp_idx))
</code></pre></div>
<p dir="auto">The issue is when I'm trying to generate plots this way, legend gets 2 records for each <code class="notranslate">df_tmp_idx</code>.<br>
If I cast <code class="notranslate">as_matrix()</code> on vectors (<code class="notranslate">y</code> and <code class="notranslate">yerr</code>) before plotting, everything works as expected.<br>
So, I suppose the <code class="notranslate">Name</code>-field of dataframe row (<code class="notranslate">df_tmp</code> in this case) is being processed in any case and not correctly overwritten by <code class="notranslate">label=...</code> casting.</p>
<p dir="auto">Here are the pictures representing issue:<br>
Returned by example above:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1315589/11209298/4df9630a-8d31-11e5-8ece-1237648e219c.PNG"><img src="https://cloud.githubusercontent.com/assets/1315589/11209298/4df9630a-8d31-11e5-8ece-1237648e219c.PNG" alt="01" style="max-width: 100%;"></a><br>
Returned by example with <code class="notranslate">.as_matrix()</code> applied on vectors:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/1315589/11209317/65cd207a-8d31-11e5-9463-ab8597ecf362.PNG"><img src="https://cloud.githubusercontent.com/assets/1315589/11209317/65cd207a-8d31-11e5-9463-ab8597ecf362.PNG" alt="02" style="max-width: 100%;"></a></p>
<p dir="auto">Sorry for poorly prepared example, will rework it soon.</p>
|
<p dir="auto">When I make an errorbar plot from pandas Series, the names of the series appear twice in the legend. Once as a solid line, and once as a solid line with error bars. Explicitly setting the label argument replaces the label text for the solid line with errorbars.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="%matplotlib inline
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
df = pd.DataFrame(data = np.random.rand(10,3),index=pd.Series(np.arange(0,20,2),name="number"),columns="A B C".split())
plt.errorbar(df.index,df.A,df.B)
plt.legend()"><pre class="notranslate"><code class="notranslate">%matplotlib inline
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
df = pd.DataFrame(data = np.random.rand(10,3),index=pd.Series(np.arange(0,20,2),name="number"),columns="A B C".split())
plt.errorbar(df.index,df.A,df.B)
plt.legend()
</code></pre></div>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6113878/10935717/2fc98b4c-82e8-11e5-8750-683fbc66efdc.png"><img src="https://cloud.githubusercontent.com/assets/6113878/10935717/2fc98b4c-82e8-11e5-8750-683fbc66efdc.png" alt="image" style="max-width: 100%;"></a></p>
| 1 |
<p dir="auto">While viewing the component demos on the website chrome shows ink effects when pressing button and such but firefox does not</p>
|
<p dir="auto">I am using Firefox 45 on Linux, and the demo app at <a href="http://www.material-ui.com/#/customization/themes" rel="nofollow">http://www.material-ui.com/#/customization/themes</a> (version 0.14.4) shows that the ripple effect works well for everything but the buttons.</p>
<p dir="auto">That includes the Tab headers, which I suspect are buttons as well.</p>
<p dir="auto">The problem is present with alphas for 0.15 as well</p>
| 1 |
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$form->add('postage_option', 'entity', array(
'class' => 'AcmeBundle:PostageOption',
'property' => 'name',
'multiple' => false,
'expanded' => true
));"><pre class="notranslate"><span class="pl-s1"><span class="pl-c1">$</span>form</span>-><span class="pl-en">add</span>(<span class="pl-s">'postage_option'</span>, <span class="pl-s">'entity'</span>, <span class="pl-en">array</span>(
<span class="pl-s">'class'</span> => <span class="pl-s">'AcmeBundle:PostageOption'</span>,
<span class="pl-s">'property'</span> => <span class="pl-s">'name'</span>,
<span class="pl-s">'multiple'</span> => <span class="pl-c1">false</span>,
<span class="pl-s">'expanded'</span> => <span class="pl-c1">true</span>
));</pre></div>
<p dir="auto">Template:</p>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{% for option in form.postage_option %}
<div>
{{ dump(option.vars.data) }}
{{ form_widget(option) }}
</div>
{% endfor %}"><pre class="notranslate">{% for option in form.postage_option %}
<div>
{{ dump(option.vars.data) }}
{{ form_widget(option) }}
</div>
{% endfor %}</pre></div>
<p dir="auto">The dump returns false, what is wrong with this?</p>
<p dir="auto">Using Symfony 2.2</p>
|
<p dir="auto">Hi</p>
<p dir="auto">We're experiencing a problem that we have workarounded but would like to know if this is an expected behavior. We're using Symfony 2.1.4.</p>
<p dir="auto">We have a controller action with defaults: {"_format" => "json"} that makes a sub-request to another controller action also with same defaults: {"_format" => "json"}.</p>
<p dir="auto">The thing is that when the subrequest is done, in the second action we're receiving a "format" => "html" (which i guess is some kind of fallback) and of course, the controller returns json format, not html</p>
<p dir="auto">We've workarounded it with</p>
<p dir="auto">$this->forward('Controller:whatever', array('_format' => 'json')) and this way, the subrequest returns a json</p>
<p dir="auto">After some investigation, we've seen that inside HttpFoundation/Request.php -> duplicate</p>
<p dir="auto">$dup->format is set to null</p>
<p dir="auto">So it seems that it is reset when duplicated</p>
<p dir="auto">Is this a bug or an expected behavior? (and what I am calling workaround is the proper way to go)</p>
<p dir="auto">We expected the subrequest to be called with the format from the master request, but maybe we're wrong</p>
<p dir="auto">Any thoughts and replies will be much appreciated</p>
| 0 |
<p dir="auto">We currently have two <code class="notranslate">jsx</code> modes, <code class="notranslate">preserve</code> and <code class="notranslate">react</code>. Using <code class="notranslate">preserve</code> leaves the <code class="notranslate"><Something /></code> for an additional compilation step, and <code class="notranslate">react</code> ties you into using the <code class="notranslate">React</code> library. I want to propose a compiler option which allows you to define the emitted types. For example setting:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""jsx": {createElement: "el"}"><pre class="notranslate"><code class="notranslate">"jsx": {createElement: "el"}
</code></pre></div>
<p dir="auto">Which would transform this code:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let test = <div><span /><span /></div>;"><pre class="notranslate"><code class="notranslate">let test = <div><span /><span /></div>;
</code></pre></div>
<p dir="auto">Into this result:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="var test = el("div", null, el("span", null), el("span", null));"><pre class="notranslate"><code class="notranslate">var test = el("div", null, el("span", null), el("span", null));
</code></pre></div>
<p dir="auto">Essentially, replacing <code class="notranslate">React.createElement</code> with <code class="notranslate">el</code>. Now I can define an <code class="notranslate">el</code> function like:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="(name: string, properties: {[key: string]: string}, ...children: MyElement[]) => MyElement"><pre class="notranslate"><code class="notranslate">(name: string, properties: {[key: string]: string}, ...children: MyElement[]) => MyElement
</code></pre></div>
<p dir="auto">To implement an own library. Why? Because some of us don't like being forced into using <code class="notranslate">React</code>, and this would allow us to either create our own libraries or use an existing DSL such as <code class="notranslate">virtual-hyperscript</code> (perhaps with some minor modifications there).</p>
|
<p dir="auto">Seems like Babel supports other JSX factories other than <code class="notranslate">React.createElement(...)</code>:</p>
<p dir="auto">Here is docs from <code class="notranslate">deku</code> another JSX framework from Segment.io<br>
Using <code class="notranslate">.babelrc</code>:</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{
"jsxPragma": "element"
}"><pre class="notranslate">{
<span class="pl-ent">"jsxPragma"</span>: <span class="pl-s"><span class="pl-pds">"</span>element<span class="pl-pds">"</span></span>
}</pre></div>
<p dir="auto">Source: <a href="https://github.com/dekujs/deku/blob/master/docs/guides/jsx.md#babelrc">https://github.com/dekujs/deku/blob/master/docs/guides/jsx.md#babelrc</a></p>
<p dir="auto">I propose we add something similar to the TS compiler options. Letting people to do a post build of preserved JSX element is not the nicest solution.</p>
| 1 |
<p dir="auto">In the "Waypoint: Iterate with JavaScript While Loops" you're told to use a for loop.</p>
<p dir="auto">This is what the text says:<br>
"Let's try getting a for loop to work by pushing values to an array."</p>
<p dir="auto">It should be:<br>
"Let's try getting a while loop to work by pushing values to an array."</p>
|
<p dir="auto">Challenge <a href="http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops" rel="nofollow">http://freecodecamp.com/challenges/waypoint-iterate-with-javascript-while-loops</a> has an issue.</p>
<p dir="auto">Text reads, "Let's try getting a for loop to work by pushing values to an array." It should instead read, "Let's try getting a while loop to work by pushing values to an array."</p>
| 1 |
<ul dir="auto">
<li>Electron version: ^1.4.1</li>
<li>Operating system: Linux (ubuntu 16.04 gnome, kde ). 2 monitors</li>
</ul>
<h3 dir="auto">Expected behavior</h3>
<p dir="auto">When using 2 monitors, On Windows or macOS, the window of app started is centered</p>
<h3 dir="auto">Actual behavior</h3>
<p dir="auto">When using 2 monitors, on Linux, window is not centered</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/313952/19678357/b78fcd7a-9a9d-11e6-95e4-0b289c064e4f.png"><img src="https://cloud.githubusercontent.com/assets/313952/19678357/b78fcd7a-9a9d-11e6-95e4-0b289c064e4f.png" alt="" style="max-width: 100%;"></a></p>
<h3 dir="auto">How to reproduce</h3>
<p dir="auto">run <a href="https://github.com/electron/electron-quick-start">https://github.com/electron/electron-quick-start</a></p>
<p dir="auto">So this is basic problem. Another interesting thing:</p>
<p dir="auto">if I change <code class="notranslate"> mainWindow = new BrowserWindow({width: 800, height: 600})</code> to <code class="notranslate"> mainWindow = new BrowserWindow({width: 800, height: 600, center: true})</code> It has no effect. Window position is same.</p>
<p dir="auto">If I do however</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="mainWindow.webContents.on('did-finish-load', () => {
mainWindow.center()
})"><pre class="notranslate"><code class="notranslate">mainWindow.webContents.on('did-finish-load', () => {
mainWindow.center()
})
</code></pre></div>
<p dir="auto">the window will be moved one half on one monitor, second half at the other monitor , after the <code class="notranslate">did-finish-load</code>.</p>
|
<p dir="auto">When you have multi monitor set-up and you start <code class="notranslate">BrowserWindow</code> with option center:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="new BrowserWindow({width: 800, height: 600, center: true});"><pre class="notranslate"><span class="pl-k">new</span> <span class="pl-v">BrowserWindow</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">width</span>: <span class="pl-c1">800</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">600</span><span class="pl-kos">,</span> <span class="pl-c1">center</span>: <span class="pl-c1">true</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">The new window is opened in the center of all the monitors, instead of the center of primary one. Basically it counts width of all monitors and put the window in the center of it.</p>
<p dir="auto">OS: Linux only.<br>
Windows, OS X are fine ( window is opened in the center of main monitor)</p>
<p dir="auto">Tested with: Electron 0.35.0, Ubuntu 14.04, Linux Mint 17.2</p>
<p dir="auto"><em>This is pretty annoying when you are showing just a little window.</em><br>
Thanks</p>
| 1 |
<p dir="auto">I have a 3 node ES cluster. I just upgraded from 0.90.11 to 1.0.1 and started experiencing these exceptions. When I try to access <code class="notranslate">curl 'http://server:9200/_nodes?pretty=true'</code> on any of my nodes I get this exception in ES logs:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2014-03-06 03:52:23,848][DEBUG][action.admin.cluster.node.info] [logserver3-la] failed to execute on node [iPvGOBIQTuOV_YhNAmLAUg]
org.elasticsearch.transport.RemoteTransportException: Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.info.NodeInfo]
Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.info.NodeInfo]
at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:148)
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.IndexOutOfBoundsException: Readable byte limit exceeded: 7711
at org.elasticsearch.common.netty.buffer.AbstractChannelBuffer.readByte(AbstractChannelBuffer.java:236)
at org.elasticsearch.transport.netty.ChannelBufferStreamInput.readByte(ChannelBufferStreamInput.java:132)
at org.elasticsearch.common.io.stream.StreamInput.readString(StreamInput.java:276)
at org.elasticsearch.common.io.stream.HandlesStreamInput.readString(HandlesStreamInput.java:61)
at org.elasticsearch.threadpool.ThreadPool$Info.readFrom(ThreadPool.java:597)
at org.elasticsearch.threadpool.ThreadPoolInfo.readFrom(ThreadPoolInfo.java:65)
at org.elasticsearch.threadpool.ThreadPoolInfo.readThreadPoolInfo(ThreadPoolInfo.java:55)
at org.elasticsearch.action.admin.cluster.node.info.NodeInfo.readFrom(NodeInfo.java:224)
at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:146)
... 23 more"><pre class="notranslate"><code class="notranslate">[2014-03-06 03:52:23,848][DEBUG][action.admin.cluster.node.info] [logserver3-la] failed to execute on node [iPvGOBIQTuOV_YhNAmLAUg]
org.elasticsearch.transport.RemoteTransportException: Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.info.NodeInfo]
Caused by: org.elasticsearch.transport.TransportSerializationException: Failed to deserialize response of type [org.elasticsearch.action.admin.cluster.node.info.NodeInfo]
at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:148)
at org.elasticsearch.transport.netty.MessageChannelHandler.messageReceived(MessageChannelHandler.java:125)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline$DefaultChannelHandlerContext.sendUpstream(DefaultChannelPipeline.java:791)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:296)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.unfoldAndFireMessageReceived(FrameDecoder.java:462)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.callDecode(FrameDecoder.java:443)
at org.elasticsearch.common.netty.handler.codec.frame.FrameDecoder.messageReceived(FrameDecoder.java:303)
at org.elasticsearch.common.netty.channel.SimpleChannelUpstreamHandler.handleUpstream(SimpleChannelUpstreamHandler.java:70)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:564)
at org.elasticsearch.common.netty.channel.DefaultChannelPipeline.sendUpstream(DefaultChannelPipeline.java:559)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:268)
at org.elasticsearch.common.netty.channel.Channels.fireMessageReceived(Channels.java:255)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.read(NioWorker.java:88)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.process(AbstractNioWorker.java:108)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioSelector.run(AbstractNioSelector.java:318)
at org.elasticsearch.common.netty.channel.socket.nio.AbstractNioWorker.run(AbstractNioWorker.java:89)
at org.elasticsearch.common.netty.channel.socket.nio.NioWorker.run(NioWorker.java:178)
at org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
at org.elasticsearch.common.netty.util.internal.DeadLockProofWorker$1.run(DeadLockProofWorker.java:42)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.IndexOutOfBoundsException: Readable byte limit exceeded: 7711
at org.elasticsearch.common.netty.buffer.AbstractChannelBuffer.readByte(AbstractChannelBuffer.java:236)
at org.elasticsearch.transport.netty.ChannelBufferStreamInput.readByte(ChannelBufferStreamInput.java:132)
at org.elasticsearch.common.io.stream.StreamInput.readString(StreamInput.java:276)
at org.elasticsearch.common.io.stream.HandlesStreamInput.readString(HandlesStreamInput.java:61)
at org.elasticsearch.threadpool.ThreadPool$Info.readFrom(ThreadPool.java:597)
at org.elasticsearch.threadpool.ThreadPoolInfo.readFrom(ThreadPoolInfo.java:65)
at org.elasticsearch.threadpool.ThreadPoolInfo.readThreadPoolInfo(ThreadPoolInfo.java:55)
at org.elasticsearch.action.admin.cluster.node.info.NodeInfo.readFrom(NodeInfo.java:224)
at org.elasticsearch.transport.netty.MessageChannelHandler.handleResponse(MessageChannelHandler.java:146)
... 23 more
</code></pre></div>
<p dir="auto">I created a gist of the output of _nodes that I do get here:<br>
<a href="https://gist.github.com/daledude/c6c0fb018d06d1e45a62">https://gist.github.com/daledude/c6c0fb018d06d1e45a62</a></p>
<p dir="auto">The exception in the logs is the same for all nodes. Using ES 1.0.1 and Java HotSpot(TM) 64-Bit Server VM 1.7.0_25 on all nodes.</p>
<p dir="auto">This is my config which is the same for all nodes except the hosts, rack, zone:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="cluster.name: mycluster
node.name: "logserver1-chi"
node.rack: chi1
node.zone: chi
node.master: true
node.data: true
index.number_of_replicas: 0
# cluster discovery
discovery.zen.fd.ping_interval: 15s
discovery.zen.fd.ping_timeout: 60s
discovery.zen.fd.ping_retries: 5
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["logserver3-la.domain.com", "logserver2.domain.com"]
cluster.routing.allocation.awareness.attributes: zone
indices.memory.index_buffer_size: 20%
index.translog.flush_threshold_ops: 50000
indices.fielddata.cache.size: 30%
bootstrap.mlockall: true
threadpool.search.type: fixed
threadpool.search.size: 20
threadpool.search.queue_size: -1
threadpool.index.type: fixed
threadpool.index.size: 60
threadpool.index.queue_size: -1
action.disable_delete_all_indices: false"><pre class="notranslate"><code class="notranslate">cluster.name: mycluster
node.name: "logserver1-chi"
node.rack: chi1
node.zone: chi
node.master: true
node.data: true
index.number_of_replicas: 0
# cluster discovery
discovery.zen.fd.ping_interval: 15s
discovery.zen.fd.ping_timeout: 60s
discovery.zen.fd.ping_retries: 5
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["logserver3-la.domain.com", "logserver2.domain.com"]
cluster.routing.allocation.awareness.attributes: zone
indices.memory.index_buffer_size: 20%
index.translog.flush_threshold_ops: 50000
indices.fielddata.cache.size: 30%
bootstrap.mlockall: true
threadpool.search.type: fixed
threadpool.search.size: 20
threadpool.search.queue_size: -1
threadpool.index.type: fixed
threadpool.index.size: 60
threadpool.index.queue_size: -1
action.disable_delete_all_indices: false
</code></pre></div>
|
<p dir="auto">This issue exists in both in the 1.1 branch and head.</p>
<p dir="auto">I have set the threadpool.get.queue_size to -1 using the REST API.<br>
I am running the elasticsearch server with assertions enable (-ea).<br>
If then a TransportClient with "sniff=false" connects and tries to send a query it gets a org.elasticsearch.client.transport.NoNodeAvailableException<br>
The underlying exception is:<br>
Caused by: java.lang.AssertionError<br>
at org.elasticsearch.common.io.stream.StreamOutput.writeVLong(StreamOutput.java:176)<br>
at org.elasticsearch.common.io.stream.AdapterStreamOutput.writeVLong(AdapterStreamOutput.java:126)<br>
at org.elasticsearch.common.unit.SizeValue.writeTo(SizeValue.java:211)<br>
at org.elasticsearch.threadpool.ThreadPool$Info.writeTo(ThreadPool.java:643)<br>
at org.elasticsearch.threadpool.ThreadPoolInfo.writeTo(ThreadPoolInfo.java:74)<br>
at org.elasticsearch.action.admin.cluster.node.info.NodeInfo.writeTo(NodeInfo.java:291)<br>
at org.elasticsearch.action.admin.cluster.node.info.NodesInfoResponse.writeTo(NodesInfoResponse.java:68)<br>
at org.elasticsearch.transport.netty.NettyTransportChannel.sendResponse(NettyTransportChannel.java:83)<br>
at org.elasticsearch.action.support.nodes.TransportNodesOperationAction$TransportHandler$1.onResponse(TransportNodesOperationAction.java:246)<br>
at org.elasticsearch.action.support.nodes.TransportNodesOperationAction$TransportHandler$1.onResponse(TransportNodesOperationAction.java:241)<br>
at org.elasticsearch.action.support.nodes.TransportNodesOperationAction$AsyncAction.finishHim(TransportNodesOperationAction.java:227)<br>
at org.elasticsearch.action.support.nodes.TransportNodesOperationAction$AsyncAction.onOperation(TransportNodesOperationAction.java:202)<br>
at org.elasticsearch.action.support.nodes.TransportNodesOperationAction$AsyncAction.access$900(TransportNodesOperationAction.java:102)<br>
at org.elasticsearch.action.support.nodes.TransportNodesOperationAction$AsyncAction$2.run(TransportNodesOperationAction.java:146)<br>
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br>
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br>
at java.lang.Thread.run(Thread.java:724)</p>
<p dir="auto">That is the server tries to use OutputStream.writeVLong on a negative number.</p>
<p dir="auto">Please let me know if you need more information.</p>
| 1 |
<p dir="auto">Using pandas 0.13.1</p>
<p dir="auto">I have a dataframe with three columns. The first two contain datetimes and the third floats (the entire data frame originates from df = pandas.io.sql.frame_query(...,...) ).</p>
<p dir="auto">I need to remove rows for which dates in the first two columns are duplicated. So something like the following would seem to be appropriate:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df = df.groupby(['col1','col2']).first()
df.reset_index(inplace = True) "><pre class="notranslate"><code class="notranslate">df = df.groupby(['col1','col2']).first()
df.reset_index(inplace = True)
</code></pre></div>
<p dir="auto">However, this doesn't work: it executes without error, but returns df unmodified.</p>
<p dir="auto">I can get the functionality I need by first converting the datetimes to strings:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df['col1'] = [date.strftime('%Y-%m-%d') for date in df['col1']]
df['col2'] = [date.strftime('%Y-%m-%d') for date in df['col2']]"><pre class="notranslate"><code class="notranslate">df['col1'] = [date.strftime('%Y-%m-%d') for date in df['col1']]
df['col2'] = [date.strftime('%Y-%m-%d') for date in df['col2']]
</code></pre></div>
<p dir="auto">Only after this, it seems, do the original commands work:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df = df.groupby(['col1','col2']).first()
df.reset_index(inplace = True) "><pre class="notranslate"><code class="notranslate">df = df.groupby(['col1','col2']).first()
df.reset_index(inplace = True)
</code></pre></div>
<p dir="auto">Then to get back to the dataframe format I need, I have to revert back to datetimes:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="df['col1'] = to_datetime(df['col1'])
df['col2'] = to_datetime(df['col2'])"><pre class="notranslate"><code class="notranslate">df['col1'] = to_datetime(df['col1'])
df['col2'] = to_datetime(df['col2'])
</code></pre></div>
|
<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="from StringIO import StringIO
import pandas as pd
import numpy as np
data = "some_id,other_id,some_int\n1,234,0\n2,324,1"
dtypes = {'some_id': np.uint32, 'other_id': np.uint32, 'some_int': np.int8}
train = pd.read_csv(StringIO(data), dtype=dtypes)
print(train.dtypes) # dtypes is respected
grouped = train.groupby('some_id').some_int.agg(['sum'])
print(grouped.index.dtype) # dtype('int64')"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-v">StringIO</span> <span class="pl-k">import</span> <span class="pl-v">StringIO</span>
<span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>
<span class="pl-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">data</span> <span class="pl-c1">=</span> <span class="pl-s">"some_id,other_id,some_int<span class="pl-cce">\n</span>1,234,0<span class="pl-cce">\n</span>2,324,1"</span>
<span class="pl-s1">dtypes</span> <span class="pl-c1">=</span> {<span class="pl-s">'some_id'</span>: <span class="pl-s1">np</span>.<span class="pl-s1">uint32</span>, <span class="pl-s">'other_id'</span>: <span class="pl-s1">np</span>.<span class="pl-s1">uint32</span>, <span class="pl-s">'some_int'</span>: <span class="pl-s1">np</span>.<span class="pl-s1">int8</span>}
<span class="pl-s1">train</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">read_csv</span>(<span class="pl-v">StringIO</span>(<span class="pl-s1">data</span>), <span class="pl-s1">dtype</span><span class="pl-c1">=</span><span class="pl-s1">dtypes</span>)
<span class="pl-en">print</span>(<span class="pl-s1">train</span>.<span class="pl-s1">dtypes</span>) <span class="pl-c"># dtypes is respected</span>
<span class="pl-s1">grouped</span> <span class="pl-c1">=</span> <span class="pl-s1">train</span>.<span class="pl-en">groupby</span>(<span class="pl-s">'some_id'</span>).<span class="pl-s1">some_int</span>.<span class="pl-en">agg</span>([<span class="pl-s">'sum'</span>])
<span class="pl-en">print</span>(<span class="pl-s1">grouped</span>.<span class="pl-s1">index</span>.<span class="pl-s1">dtype</span>) <span class="pl-c"># dtype('int64')</span></pre></div>
<h4 dir="auto">Problem description</h4>
<p dir="auto">I am explicitly asking for uint32 but pandas coerces "some_id" column to int64 after using groupby. Is this intended? Possible duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="182959741" data-permission-text="Title is private" data-url="https://github.com/pandas-dev/pandas/issues/14423" data-hovercard-type="issue" data-hovercard-url="/pandas-dev/pandas/issues/14423/hovercard" href="https://github.com/pandas-dev/pandas/issues/14423">#14423</a> ?</p>
<h4 dir="auto">Output of <code class="notranslate">pd.show_versions()</code></h4>
<details>
INSTALLED VERSIONS
------------------
commit: None
python: 2.7.12.final.0
python-bits: 64
OS: Linux
OS-release: 4.4.0-57-generic
machine: x86_64
processor: x86_64
byteorder: little
LC_ALL: None
LANG: en_US.UTF-8
<p dir="auto">pandas: 0.18.1<br>
nose: 1.3.7<br>
pip: 8.1.2<br>
setuptools: 27.2.0<br>
Cython: 0.24.1<br>
numpy: 1.11.1<br>
scipy: 0.18.1<br>
statsmodels: 0.6.1<br>
xarray: None<br>
IPython: 5.1.0<br>
sphinx: 1.4.6<br>
patsy: 0.4.1<br>
dateutil: 2.5.3<br>
pytz: 2016.6.1<br>
blosc: None<br>
bottleneck: 1.1.0<br>
tables: 3.2.3.1<br>
numexpr: 2.6.1<br>
matplotlib: 1.5.3<br>
openpyxl: 2.3.2<br>
xlrd: 1.0.0<br>
xlwt: 1.1.2<br>
xlsxwriter: 0.9.3<br>
lxml: 3.6.4<br>
bs4: 4.5.1<br>
html5lib: None<br>
httplib2: None<br>
apiclient: None<br>
sqlalchemy: 1.0.13<br>
pymysql: None<br>
psycopg2: None<br>
jinja2: 2.8<br>
boto: 2.42.0<br>
pandas_datareader: None</p>
</details>
| 0 |
<p dir="auto">If the <code class="notranslate">.git/</code> directory isn't in the top level directory then git integration doesn't work:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/422013/2954963/0ade5726-da7a-11e3-9917-63747fe240ae.png"><img src="https://cloud.githubusercontent.com/assets/422013/2954963/0ade5726-da7a-11e3-9917-63747fe240ae.png" alt="atom-git" style="max-width: 100%;"></a></p>
|
<p dir="auto">Before, Atom used to just be super slow when working with large files, but it seems to have regressed to the point where Atom just doesn't respond and needs to be force closed.</p>
| 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.