text1
stringlengths
0
536k
text2
stringlengths
0
536k
label
int64
0
1
<div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(std_misc)] use std::cell::RefCell; fn main() { let b = RefCell::new(Some(5)); if let Some(x) = b.borrow().clone() { } }"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>std_misc<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">use</span> std<span class="pl-kos">::</span>cell<span class="pl-kos">::</span><span class="pl-v">RefCell</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> b = <span class="pl-smi">RefCell</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-v">Some</span><span class="pl-kos">(</span><span class="pl-c1">5</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">if</span> <span class="pl-k">let</span> <span class="pl-v">Some</span><span class="pl-kos">(</span>x<span class="pl-kos">)</span> = b<span class="pl-kos">.</span><span class="pl-en">borrow</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-kos">}</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">And the error is:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="error: `b` does not live long enough"><pre class="notranslate"><code class="notranslate">error: `b` does not live long enough </code></pre></div>
<p dir="auto">Spawned off of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54076219" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21022" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/21022/hovercard" href="https://github.com/rust-lang/rust/pull/21022">#21022</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="56708388" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21972" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/21972/hovercard" href="https://github.com/rust-lang/rust/pull/21972">#21972</a></p> <p dir="auto">There are a number of situations where a trailing expression like a for-loop ends up being treated by the region lifetime inferencer as requiring a much longer lifetime assignment than what you would intuitively expect.</p> <p dir="auto">A lot of the relevant cases have been addressed. In fact, its gotten to the point that I want to have a summary comment up here that specifies the status for each example. Each demo should link to a playpen (using AST-borrowck when that has a checkmark, and NLL when AST-borrowck does not have a checkmark). Some rows also include a link to the comment where it was pointed out.</p> <ul dir="auto"> <li>A checkmark (<g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji>) is used for cases where either 1. code is now accepted, or 2. code is (still) rejected but has a clear diagnostic explaining why.</li> <li>The column marked 2018 is testing here the 2018 edition, where migration mode gets <em>most</em> of the benefits from NLL. They will also eventually trickle down to the 2015 edition when we switch that to use NLL as well.</li> <li>The magnifying glass (<g-emoji class="g-emoji" alias="mag" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f50d.png">🔍</g-emoji>) is for cases where we issue a diagnostic suggesting that one add a local binding or a semi-colon (depending on whether the value is needed or not), explaining that the temporaries (under the current language semantics) are being dropped too late without it. This sort of case is, to my eye, acceptable.</li> <li>The column marked NLL is for cases where you need to opt into <code class="notranslate">#![feature(nll)]</code> (or use the synonymous command line options <code class="notranslate">-Z borrowck=mir -Z two-phase-borrows</code>) to get the nicest output. In most cases the 2018 output is the same, so I didn't fill in the column in those cases.</li> </ul> <table role="table"> <thead> <tr> <th>Example on playpen</th> <th>2015</th> <th>2018</th> <th>NLL</th> <th>source</th> </tr> </thead> <tbody> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2015&amp;gist=ed2d96f950b9ee7cb27efe2d6f861386" rel="nofollow">io::stdin demo 1</a></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td></td> <td></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=7aaf4635c187dd9db58776859fbabd2a" rel="nofollow">io::stdin demo 2</a></td> <td><g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td></td> <td></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2015&amp;gist=e2ec7e2845822b53a7dfc037758724ba" rel="nofollow">alloc::rc demo</a></td> <td>✅</td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td></td> <td></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=43b2bfa79979015adadbaed80d438cbb" rel="nofollow">ebfull drain demo</a></td> <td><g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></td> <td>✅</td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54255470" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21114" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21114/hovercard?comment_id=74242619&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/21114#issuecomment-74242619">#21114 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=96ecfaf797bfb8dab23f6a0fa566f584" rel="nofollow">felispere stdio demo</a></td> <td><g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54255470" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21114" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21114/hovercard?comment_id=74300312&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/21114#issuecomment-74300312">#21114 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2015&amp;gist=57cc22508735c359603e8849ff54efd2" rel="nofollow">drbawb demo</a></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54255470" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21114" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21114/hovercard?comment_id=74438455&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/21114#issuecomment-74438455">#21114 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=722bfa4840f78d15b38e625e16f11eba" rel="nofollow">niconii demo</a></td> <td><g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></td> <td>🔍</td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54255470" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21114" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21114/hovercard?comment_id=228331214&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/21114#issuecomment-228331214">#21114 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=4dd142514a64f72aaec3f63cdf6886e2" rel="nofollow">kixunil demo</a></td> <td><g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54255470" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21114" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21114/hovercard?comment_id=312447832&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/21114#issuecomment-312447832">#21114 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=d37416a2c2e4458b13ecea1af52cc616" rel="nofollow">thiez demo 1</a></td> <td><g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54255470" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21114" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21114/hovercard?comment_id=321158567&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/21114#issuecomment-321158567">#21114 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=8277a810e6e20becbc190366ebd60aa8" rel="nofollow">thiez demo 2</a></td> <td>🤢</td> <td><g-emoji class="g-emoji" alias="mag" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f50d.png">🔍</g-emoji></td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54255470" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21114" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21114/hovercard?comment_id=321158567&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/21114#issuecomment-321158567">#21114 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=01cb342d5eb6ffca31bc2f096b297ca8" rel="nofollow">shepmaster demo</a></td> <td>🤢</td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54255470" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21114" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/21114/hovercard?comment_id=357400013&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/21114#issuecomment-357400013">#21114 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=366c0fb4a21ffacdf98008fa60d30c38" rel="nofollow">jonas-schievink demo</a></td> <td>🤢</td> <td><g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></td> <td><g-emoji class="g-emoji" alias="white_check_mark" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2705.png">✅</g-emoji></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="234958213" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/42574" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/42574/hovercard" href="https://github.com/rust-lang/rust/issues/42574">#42574</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=a92017dbd39332967b70f5fe4cb2557c" rel="nofollow">stephaneyfx demo 1</a></td> <td><g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></td> <td><g-emoji class="g-emoji" alias="mag" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f50d.png">🔍</g-emoji></td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="278286308" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/46413" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/46413/hovercard?comment_id=352113056&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/46413#issuecomment-352113056">#46413 (comment)</a></td> </tr> <tr> <td><a href="https://play.rust-lang.org/?version=nightly&amp;mode=debug&amp;edition=2018&amp;gist=ed8abe64be080c951a072c0fd5bf855d" rel="nofollow">stephaneyfx demo 2</a></td> <td>🤢</td> <td><g-emoji class="g-emoji" alias="mag" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f50d.png">🔍</g-emoji></td> <td></td> <td><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="278286308" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/46413" data-hovercard-type="issue" data-hovercard-url="/rust-lang/rust/issues/46413/hovercard?comment_id=378353931&amp;comment_type=issue_comment" href="https://github.com/rust-lang/rust/issues/46413#issuecomment-378353931">#46413 (comment)</a></td> </tr> </tbody> </table> <h2 dir="auto">More details for issue follow.</h2> <p dir="auto">A simple example of this (from examples embedded in the docs for <code class="notranslate">io::stdio</code>):</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" use std::io; let mut stdin = io::stdin(); for line in stdin.lock().lines() { println!(&quot;{}&quot;, line.unwrap()); };"><pre class="notranslate"> <span class="pl-k">use</span> std<span class="pl-kos">::</span>io<span class="pl-kos">;</span> <span class="pl-k">let</span> <span class="pl-k">mut</span> stdin = io<span class="pl-kos">::</span><span class="pl-en">stdin</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">for</span> line <span class="pl-k">in</span> stdin<span class="pl-kos">.</span><span class="pl-en">lock</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">lines</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"{}"</span>, line.unwrap<span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Another example, this time from an example for <code class="notranslate">alloc::rc</code> (where this time I took the time to add a comment explaining what I encountered):</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fn main() { let gadget_owner : Rc&lt;Owner&gt; = Rc::new( Owner { name: &quot;Gadget Man&quot;.to_string(), gadgets: RefCell::new(Vec::new()) } ); let gadget1 = Rc::new(Gadget{id: 1, owner: gadget_owner.clone()}); let gadget2 = Rc::new(Gadget{id: 2, owner: gadget_owner.clone()}); gadget_owner.gadgets.borrow_mut().push(gadget1.clone().downgrade()); gadget_owner.gadgets.borrow_mut().push(gadget2.clone().downgrade()); for gadget_opt in gadget_owner.gadgets.borrow().iter() { let gadget = gadget_opt.upgrade().unwrap(); println!(&quot;Gadget {} owned by {}&quot;, gadget.id, gadget.owner.name); } // This is an unfortunate wart that is a side-effect of the implmentation // of new destructor semantics: if the above for-loop is the final expression // in the function, the borrow-checker treats the gadget_owner as needing to // live past the destruction scope of the function (which of course it does not). // To work around this, for now I am inserting a dummy value just so the above // for-loop is no longer the final expression in the block. () }"><pre class="notranslate"><span class="pl-k">fn</span> <span class="pl-en">main</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> gadget_owner <span class="pl-kos">:</span> <span class="pl-smi">Rc</span><span class="pl-kos">&lt;</span><span class="pl-smi">Owner</span><span class="pl-kos">&gt;</span> = <span class="pl-smi">Rc</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span> <span class="pl-smi">Owner</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span><span class="pl-kos">:</span> <span class="pl-s">"Gadget Man"</span><span class="pl-kos">.</span><span class="pl-en">to_string</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">gadgets</span><span class="pl-kos">:</span> <span class="pl-smi">RefCell</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-smi">Vec</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> gadget1 = <span class="pl-smi">Rc</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-smi">Gadget</span><span class="pl-kos">{</span><span class="pl-c1">id</span><span class="pl-kos">:</span> <span class="pl-c1">1</span><span class="pl-kos">,</span> <span class="pl-c1">owner</span><span class="pl-kos">:</span> gadget_owner<span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">let</span> gadget2 = <span class="pl-smi">Rc</span><span class="pl-kos">::</span><span class="pl-en">new</span><span class="pl-kos">(</span><span class="pl-smi">Gadget</span><span class="pl-kos">{</span><span class="pl-c1">id</span><span class="pl-kos">:</span> <span class="pl-c1">2</span><span class="pl-kos">,</span> <span class="pl-c1">owner</span><span class="pl-kos">:</span> gadget_owner<span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> gadget_owner<span class="pl-kos">.</span><span class="pl-c1">gadgets</span><span class="pl-kos">.</span><span class="pl-en">borrow_mut</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span>gadget1<span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">downgrade</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> gadget_owner<span class="pl-kos">.</span><span class="pl-c1">gadgets</span><span class="pl-kos">.</span><span class="pl-en">borrow_mut</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">push</span><span class="pl-kos">(</span>gadget2<span class="pl-kos">.</span><span class="pl-en">clone</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">downgrade</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">for</span> gadget_opt <span class="pl-k">in</span> gadget_owner<span class="pl-kos">.</span><span class="pl-c1">gadgets</span><span class="pl-kos">.</span><span class="pl-en">borrow</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">iter</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">let</span> gadget = gadget_opt<span class="pl-kos">.</span><span class="pl-en">upgrade</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">unwrap</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">println</span><span class="pl-en">!</span><span class="pl-kos">(</span><span class="pl-s">"Gadget {} owned by {}"</span>, gadget.id, gadget.owner.name<span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-c">// This is an unfortunate wart that is a side-effect of the implmentation</span> <span class="pl-c">// of new destructor semantics: if the above for-loop is the final expression</span> <span class="pl-c">// in the function, the borrow-checker treats the gadget_owner as needing to</span> <span class="pl-c">// live past the destruction scope of the function (which of course it does not).</span> <span class="pl-c">// To work around this, for now I am inserting a dummy value just so the above</span> <span class="pl-c">// for-loop is no longer the final expression in the block.</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Luckily for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54076219" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21022" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/21022/hovercard" href="https://github.com/rust-lang/rust/pull/21022">#21022</a>, the coincidence of factors here is not very frequent, which is why I'm not planning on blocking <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="54076219" data-permission-text="Title is private" data-url="https://github.com/rust-lang/rust/issues/21022" data-hovercard-type="pull_request" data-hovercard-url="/rust-lang/rust/pull/21022/hovercard" href="https://github.com/rust-lang/rust/pull/21022">#21022</a> on resolving this, but instead leaving it as something to address after issues for the alpha have been addressed.</p> <p dir="auto">(I'm filing this bug before landing the PR so that I can annotation each of the corresponding cases with a FIXME so that I can go back and address them after I get a chance to investigate this properly.)</p>
1
<ul dir="auto"> <li>[ Y] 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>[ Y] 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.5.9</li> <li>Operating System version: WIN10</li> <li>Java version: IBM 1.6</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>新增src\main\resources\META-INF\Dubbo\internal\com.alibaba.dubb.monitor.MonitorFactory,内容如aaa=com.xxx.xxx.AaaMonitorFactory</li> <li>应用配置</li> </ol> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">按自定义方式实现服务监控</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">以DubboMonitorFactory-DubboMonitor实现服务监控<br> 分析原因为MonitorConfig中getProtocol方式配置excluded为true,导致monitor上配置的protocol属性未识别,即无法按自定义的protocol执行</p> <p dir="auto">If there is an exception, please attach the exception trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Just put your stack trace here!"><pre class="notranslate"><code class="notranslate">Just put your stack trace here! </code></pre></div>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.7</li> <li>Operating System version: Linux</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>build project with dubbo 2.7.7, the deployed directory's structure should satisfy the requirement of <strong>start.sh</strong>;</li> <li>run application by <strong>start.sh</strong>;</li> </ol> <h3 dir="auto">Expected Result</h3> <p dir="auto">the application should be powered successfully</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">error occur: <strong>-bash: ./bin/start.sh: /bin/bash^M: bad interpreter: No such file or directory</strong></p>
0
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">On certain (at least many to many) relationships, the oracle dialect fails to convert unicode to string on oracle 8 if the Column type is not specified, but rather inferred from ForeignKey.</p> <p dir="auto">This causes <strong>ORA-12704: character set mismatch</strong></p> <p dir="auto">Script:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="#SHOW unicode problem with oracle 8 when inferring Column type from sqlalchemy import * from sqlalchemy.orm import * engine = create_engine('oracle://user:pass@ip:1521/sid',echo=True) engine.connect() print &quot;*****************************&quot; print &quot;server_version_info: &quot;, engine.dialect.server_version_info print &quot;_supports_char_length: &quot;, engine.dialect._supports_char_length print &quot;supports_unicode_binds: &quot;, engine.dialect.supports_unicode_binds print &quot;use_ansi:&quot;, engine.dialect.use_ansi print &quot;*****************************&quot; metadata = MetaData() Session = sessionmaker(bind=engine) DBSession = Session() orders_table = Table(&quot;orders&quot;, metadata, Column(&quot;orderid&quot;, Unicode(255), primary_key=True), Column(&quot;shipzipcode&quot;, ForeignKey('zipcodes.zipcode')) ) zipzones_table = Table(&quot;zipzones&quot;, metadata, Column(&quot;zoneid&quot;, ForeignKey('zones.zoneid'), primary_key=True), Column(&quot;zipcode&quot;, Unicode(255)) ) zones_table = Table(&quot;zones&quot;, metadata, Column(&quot;zoneid&quot;, Unicode(255), primary_key=True) ) zipcodes_table = Table('zipcodes', metadata, Column(&quot;zipcode&quot;, Unicode(9), primary_key=True) ) class Order(object): pass class Zone(object): pass mapper(Zone, zones_table) mapper(Order, orders_table, properties={'defaultzones': relationship(Zone, secondary=zipzones_table, primaryjoin=orders_table.c.shipzipcode==zipzones_table.c.zipcode, foreign_keys=[zones_table.c.zoneid](zipzones_table.c.zipcode,), order_by=zones_table.c.zoneid)} ) ord=DBSession.query(Order).filter_by(orderid=u'0109009OICY').one() ord.defaultzones"><pre class="notranslate"><code class="notranslate">#SHOW unicode problem with oracle 8 when inferring Column type from sqlalchemy import * from sqlalchemy.orm import * engine = create_engine('oracle://user:pass@ip:1521/sid',echo=True) engine.connect() print "*****************************" print "server_version_info: ", engine.dialect.server_version_info print "_supports_char_length: ", engine.dialect._supports_char_length print "supports_unicode_binds: ", engine.dialect.supports_unicode_binds print "use_ansi:", engine.dialect.use_ansi print "*****************************" metadata = MetaData() Session = sessionmaker(bind=engine) DBSession = Session() orders_table = Table("orders", metadata, Column("orderid", Unicode(255), primary_key=True), Column("shipzipcode", ForeignKey('zipcodes.zipcode')) ) zipzones_table = Table("zipzones", metadata, Column("zoneid", ForeignKey('zones.zoneid'), primary_key=True), Column("zipcode", Unicode(255)) ) zones_table = Table("zones", metadata, Column("zoneid", Unicode(255), primary_key=True) ) zipcodes_table = Table('zipcodes', metadata, Column("zipcode", Unicode(9), primary_key=True) ) class Order(object): pass class Zone(object): pass mapper(Zone, zones_table) mapper(Order, orders_table, properties={'defaultzones': relationship(Zone, secondary=zipzones_table, primaryjoin=orders_table.c.shipzipcode==zipzones_table.c.zipcode, foreign_keys=[zones_table.c.zoneid](zipzones_table.c.zipcode,), order_by=zones_table.c.zoneid)} ) ord=DBSession.query(Order).filter_by(orderid=u'0109009OICY').one() ord.defaultzones </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="2010-09-07 22:13:01,923 INFO sqlalchemy.engine.base.Engine.0x...0890 SELECT USER FROM DUAL 2010-09-07 22:13:01,928 INFO sqlalchemy.engine.base.Engine.0x...0890 {} ***************************** server_version_info: (8, 1, 7, 4, 0) _supports_char_length: False supports_unicode_binds: False use_ansi: False ***************************** 2010-09-07 22:13:02,426 INFO sqlalchemy.engine.base.Engine.0x...0890 BEGIN 2010-09-07 22:13:02,427 INFO sqlalchemy.engine.base.Engine.0x...0890 SELECT orders.orderid AS orders_orderid, orders.shipzipcode AS orders_shipzipcode FROM orders WHERE orders.orderid = :orderid_1 2010-09-07 22:13:02,427 INFO sqlalchemy.engine.base.Engine.0x...0890 {'orderid_1': '0109009OICY'} 2010-09-07 22:13:02,552 INFO sqlalchemy.engine.base.Engine.0x...0890 SELECT zones.zoneid AS zones_zoneid FROM zones, zipzones WHERE :param_1 = zipzones.zipcode AND zones.zoneid = zipzones.zoneid ORDER BY zones.zoneid 2010-09-07 22:13:02,552 INFO sqlalchemy.engine.base.Engine.0x...0890 {'param_1': u'33015'} Traceback (most recent call last): File &quot;ora8.py&quot;, line 59, in &lt;module&gt; ord.defaultzones File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/attributes.py&quot;, line 163, in __get__ instance_dict(instance)) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/attributes.py&quot;, line 382, in get value = callable_(passive=passive) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/strategies.py&quot;, line 629, in __call__ result = q.all() File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py&quot;, line 1470, in all return list(self) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py&quot;, line 1582, in __iter__ return self._execute_and_instances(context) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py&quot;, line 1587, in _execute_and_instances mapper=self._mapper_zero_or_none()) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/session.py&quot;, line 760, in execute clause, params or {}) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py&quot;, line 1157, in execute params) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py&quot;, line 1237, in _execute_clauseelement return self.__execute_context(context) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py&quot;, line 1268, in __execute_context context.parameters[0](0), context=context) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py&quot;, line 1367, in _cursor_execute context) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py&quot;, line 1360, in _cursor_execute context) File &quot;/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/default.py&quot;, line 299, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.DatabaseError: (DatabaseError) ORA-12704: character set mismatch 'SELECT zones.zoneid AS zones_zoneid \nFROM zones, zipzones \nWHERE :param_1 = zipzones.zipcode AND zones.zoneid = zipzones.zoneid ORDER BY zones.zoneid' {'param_1': u'33015'}"><pre class="notranslate"><code class="notranslate">2010-09-07 22:13:01,923 INFO sqlalchemy.engine.base.Engine.0x...0890 SELECT USER FROM DUAL 2010-09-07 22:13:01,928 INFO sqlalchemy.engine.base.Engine.0x...0890 {} ***************************** server_version_info: (8, 1, 7, 4, 0) _supports_char_length: False supports_unicode_binds: False use_ansi: False ***************************** 2010-09-07 22:13:02,426 INFO sqlalchemy.engine.base.Engine.0x...0890 BEGIN 2010-09-07 22:13:02,427 INFO sqlalchemy.engine.base.Engine.0x...0890 SELECT orders.orderid AS orders_orderid, orders.shipzipcode AS orders_shipzipcode FROM orders WHERE orders.orderid = :orderid_1 2010-09-07 22:13:02,427 INFO sqlalchemy.engine.base.Engine.0x...0890 {'orderid_1': '0109009OICY'} 2010-09-07 22:13:02,552 INFO sqlalchemy.engine.base.Engine.0x...0890 SELECT zones.zoneid AS zones_zoneid FROM zones, zipzones WHERE :param_1 = zipzones.zipcode AND zones.zoneid = zipzones.zoneid ORDER BY zones.zoneid 2010-09-07 22:13:02,552 INFO sqlalchemy.engine.base.Engine.0x...0890 {'param_1': u'33015'} Traceback (most recent call last): File "ora8.py", line 59, in &lt;module&gt; ord.defaultzones File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/attributes.py", line 163, in __get__ instance_dict(instance)) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/attributes.py", line 382, in get value = callable_(passive=passive) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/strategies.py", line 629, in __call__ result = q.all() File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 1470, in all return list(self) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 1582, in __iter__ return self._execute_and_instances(context) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/query.py", line 1587, in _execute_and_instances mapper=self._mapper_zero_or_none()) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/orm/session.py", line 760, in execute clause, params or {}) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1157, in execute params) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1237, in _execute_clauseelement return self.__execute_context(context) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1268, in __execute_context context.parameters[0](0), context=context) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1367, in _cursor_execute context) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/base.py", line 1360, in _cursor_execute context) File "/home/rarch/tg2env/lib/python2.6/site-packages/SQLAlchemy-0.6.3.2dev-py2.6-linux-x86_64.egg/sqlalchemy/engine/default.py", line 299, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.DatabaseError: (DatabaseError) ORA-12704: character set mismatch 'SELECT zones.zoneid AS zones_zoneid \nFROM zones, zipzones \nWHERE :param_1 = zipzones.zipcode AND zones.zoneid = zipzones.zoneid ORDER BY zones.zoneid' {'param_1': u'33015'} </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">(original reporter: ged) Is this intended? It used to work in 0.5.xxx...</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/1765/test_fk.py">test_fk.py</a> | <a href="../wiki/imported_issue_attachments/1765/1765.patch">1765.patch</a></p>
1
<p dir="auto">I'm on 5.8.23 (babel-core 5.8.25), and getting the following error for for..of on IE9 and IE11. Haven't tested on IE10.</p> <pre class="notranslate">ReferenceError: 'Symbol' is undefined</pre>
<p dir="auto">Hey there,</p> <p dir="auto">I've used a simple <code class="notranslate">for...of</code> statement in my JSX file, but the output breaks Safari (8.0.7). Works fine in Chrome and Firefox. The error message is "ReferenceError: Can't find variable: Symbol" and I indeed can't find any reference to <code class="notranslate">Symbol</code> in the file. Might be a missing polyfill?</p> <p dir="auto">This is the original code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="for (let block of blocks) { this.createColourBlockScene(scrollController, pageReference, block.blockReference, block.hexColour1, block.hexColour2); }"><pre class="notranslate"><code class="notranslate">for (let block of blocks) { this.createColourBlockScene(scrollController, pageReference, block.blockReference, block.hexColour1, block.hexColour2); } </code></pre></div> <p dir="auto">Which gets transpiled into this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = blocks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var block = _step.value; _this.createColourBlockScene(scrollController, pageReference, block.blockReference, block.hexColour1, block.hexColour2); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion &amp;&amp; _iterator['return']) { _iterator['return'](); } } finally { if (_didIteratorError) { throw _iteratorError; } } }"><pre class="notranslate"><code class="notranslate"> var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = blocks[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var block = _step.value; _this.createColourBlockScene(scrollController, pageReference, block.blockReference, block.hexColour1, block.hexColour2); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion &amp;&amp; _iterator['return']) { _iterator['return'](); } } finally { if (_didIteratorError) { throw _iteratorError; } } } </code></pre></div> <p dir="auto">In case you need it, this is the array I'm looping through:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let blocks = [ { blockReference: React.findDOMNode(this.refs.blockClient), hexColour1: '6114CC', hexColour2: '6A86EC' }, { blockReference: React.findDOMNode(this.refs.blockOwnStuff), hexColour1: '6A86EC', hexColour2: '3F63D9' }, { blockReference: React.findDOMNode(this.refs.blockVenture), hexColour1: '3F63D9', hexColour2: '143FCC' }, { blockReference: React.findDOMNode(this.refs.blockStudio), hexColour1: '143FCC', hexColour2: 'FFBF02' }, ];"><pre class="notranslate"><code class="notranslate">let blocks = [ { blockReference: React.findDOMNode(this.refs.blockClient), hexColour1: '6114CC', hexColour2: '6A86EC' }, { blockReference: React.findDOMNode(this.refs.blockOwnStuff), hexColour1: '6A86EC', hexColour2: '3F63D9' }, { blockReference: React.findDOMNode(this.refs.blockVenture), hexColour1: '3F63D9', hexColour2: '143FCC' }, { blockReference: React.findDOMNode(this.refs.blockStudio), hexColour1: '143FCC', hexColour2: 'FFBF02' }, ]; </code></pre></div>
1
<h3 dir="auto">System Information</h3> <p dir="auto">OpenCV version: 4.5.0<br> Operating System / Platform: Windows 10<br> Compiler &amp; compiler version: GCC 9.3.0</p> <h3 dir="auto">Detailed description</h3> <p dir="auto">When trying to save a matrix that has the depth CV_16F using cv::FileStorage the assertion <code class="notranslate">depth &gt;=0 &amp;&amp; depth &lt;= CV_64F in function 'cv::fs::typeSymbol'</code> fails.</p> <hr> <p dir="auto">A possible explanation of the error might be found in <code class="notranslate">opencv2/core/hal/interface.h</code>. The order of the different depth definitions is incorrect and therefore the assertion fails:</p> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#define CV_8U 0 #define CV_8S 1 #define CV_16U 2 #define CV_16S 3 #define CV_32S 4 #define CV_32F 5 #define CV_64F 6 #define CV_16F 7"><pre class="notranslate">#<span class="pl-k">define</span> <span class="pl-en">CV_8U</span> <span class="pl-c1">0</span> #<span class="pl-k">define</span> <span class="pl-en">CV_8S</span> <span class="pl-c1">1</span> #<span class="pl-k">define</span> <span class="pl-en">CV_16U</span> <span class="pl-c1">2</span> #<span class="pl-k">define</span> <span class="pl-en">CV_16S</span> <span class="pl-c1">3</span> #<span class="pl-k">define</span> <span class="pl-en">CV_32S</span> <span class="pl-c1">4</span> #<span class="pl-k">define</span> <span class="pl-en">CV_32F</span> <span class="pl-c1">5</span> #<span class="pl-k">define</span> <span class="pl-en">CV_64F</span> <span class="pl-c1">6</span> #<span class="pl-k">define</span> <span class="pl-en">CV_16F</span> <span class="pl-c1">7</span></pre></div> <p dir="auto">Therefore <code class="notranslate">CV_64F &lt;= CV_16F</code> and if <code class="notranslate">CV_16F = depth</code> then <code class="notranslate">depth &lt;= CV_64F</code> is <code class="notranslate">false</code> and the assertion failed. I did not manage to update opencv to 4.7.0 using vcpkg and therefore I could not verify if the issue still persists beyond 4.5.0.</p> <h3 dir="auto">Steps to reproduce</h3> <div class="highlight highlight-source-c++ notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="cv::Mat test = cv::Mat::zeros({100, 100}, CV_16F); cv::FileStorage file(&quot;test.yml&quot;, cv::FileStorage::WRITE); file.write(&quot;Test Mat&quot;, test);"><pre class="notranslate">cv::Mat test = cv::Mat::zeros({<span class="pl-c1">100</span>, <span class="pl-c1">100</span>}, CV_16F); cv::FileStorage <span class="pl-en">file</span>(<span class="pl-s"><span class="pl-pds">"</span>test.yml<span class="pl-pds">"</span></span>, cv::FileStorage::WRITE); file.write(<span class="pl-s"><span class="pl-pds">"</span>Test Mat<span class="pl-pds">"</span></span>, test);</pre></div> <h3 dir="auto">Issue submission checklist</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I report the issue, it's not a question</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I updated to the latest OpenCV version and the issue is still there</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> There is reproducer code and related data files (videos, images, onnx, etc)</li> </ul>
<p dir="auto">I'm seeking an approach for <code class="notranslate">CV_NODISCARD</code> that will work across all the compilers opencv 4.x and above supports.</p> <p dir="auto">The current approach is legacy for gcc and clang. Using <code class="notranslate">__attribute__((__warn_unused_result__))</code> on functions. No classes. And always at the end of the function declaration. This is supported on gcc 4.8.1 and higher (since 4.8.1 is needed for C++11).</p> <p dir="auto">MSVC supports the standard attribute approach of <code class="notranslate">[[nodiscard]]</code>. It can be on classes, functions, vars. And it goes before the name of the item. At the end is not allowed. The support is available with VS2017 v15.3 and later; with /std:c++17 or higher.</p> <p dir="auto">So these are somewhat mutually exclusive. One or the other compiler (gcc vs msvc) will complain with warnings. It should still compile. Both compilers have a method to disable the warnings, but I read on the internet that on some versions of gcc, it ignores the ignore command and still puts the warning.</p> <p dir="auto">Does the core team have a recommendation?</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 verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>5.0.0</strong>:</p> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">I'm a new celery user, not quite sure if I should report this as a bug or feature request and I'm not quite sure how to best fix this myself, so I hope you'll bear with me :-)</p> <p dir="auto">Redis 6.0 or greater implements users in the form of ACL (see <a href="https://redis.io/topics/acl" rel="nofollow">https://redis.io/topics/acl</a>), however, celery throws an WRONGPASS error when using the following broker URL:</p> <p dir="auto"><code class="notranslate">redis://user:password@localhost:6379/0</code></p> <p dir="auto">We would expect celery to connect to redis using the correct user:password combination and not throw a password error. Older redis versions did not implement ACL; looking at _params_from_url function on line 277 in celery/backend/redis.py, it seems like celery currently only implements a broker URL containing a password and no username, as indicated by line 278:</p> <p dir="auto"><code class="notranslate">scheme, host, port, _, password, path, query = _parse_url(url)</code></p> <p dir="auto">I would expect celery to implement the user:password@host scheme, as well as the current password@host scheme in order to correctly handle the ACL introduced in redis &gt;6.0</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">Celery throws this error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[2020-10-18 02:35:54,748: ERROR/MainProcess] consumer: Cannot connect to redis://user:**@localhost:6379/0: WRONGPASS invalid username-password pair. Trying again in 18.00 seconds... (9/100)```"><pre class="notranslate"><code class="notranslate">[2020-10-18 02:35:54,748: ERROR/MainProcess] consumer: Cannot connect to redis://user:**@localhost:6379/0: WRONGPASS invalid username-password pair. Trying again in 18.00 seconds... (9/100)``` </code></pre></div>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" 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 &amp; 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">Possible Duplicates</h4> <ul dir="auto"> <li><a href="https://github.com/celery/celery/issues/3585" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3585/hovercard">Subsequent groups within a chain fail #3585</a></li> <li><a href="https://github.com/celery/celery/issues/3585" data-hovercard-type="issue" data-hovercard-url="/celery/celery/issues/3585/hovercard">Consecutive groups in chain fails #4848 </a></li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>: 4.2.2 (windowlicker)<br> <strong>Celery report</strong>:<br> software -&gt; celery:4.2.2 (windowlicker)<br> kombu:4.3.0 py:2.7.5<br> billiard:3.5.0.5 redis:3.2.1<br> platform -&gt; system:Linux arch:64bit, ELF imp:CPython<br> loader -&gt; celery.loaders.app.AppLoader<br> settings -&gt; transport:redis results:redis://localhost:6379/0</p> <p dir="auto">broker_url: redis://localhost:6379/0<br> result_backend: redis://localhost:6379/0</p> <p dir="auto"></p> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Minimally Reproducible Test Case</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="from celery import signature, group, chain from tasks import task task1 = task.si('task1') task2 = task.si('task2') group1 = group(task.si('group1 job1'), task.si('group1 job2')) group2 = group(task.si('group2 job1'), task.si('group2 job2')) # working sequences #res = chain(group1, group2) #res = chain(group1, task1, group2) #res = chain(task1, group1, task2, group2) #res = chain(group1, group2, task1) # failing sequence res = chain(task1, group1, group2) res.delay()"><pre class="notranslate"><code class="notranslate">from celery import signature, group, chain from tasks import task task1 = task.si('task1') task2 = task.si('task2') group1 = group(task.si('group1 job1'), task.si('group1 job2')) group2 = group(task.si('group2 job1'), task.si('group2 job2')) # working sequences #res = chain(group1, group2) #res = chain(group1, task1, group2) #res = chain(task1, group1, task2, group2) #res = chain(group1, group2, task1) # failing sequence res = chain(task1, group1, group2) res.delay() </code></pre></div> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Tasks are passed to celery</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto">It looks like celery is making the wrong decision to convert this chain into a chord. There are some workarounds available, but no real fix is available yet.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;debug_run.py&quot;, line 19, in &lt;module&gt; res.delay() File &quot;/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py&quot;, line 179, in delay return self.apply_async(partial_args, partial_kwargs) File &quot;/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py&quot;, line 557, in apply_async dict(self.options, **options) if options else self.options)) File &quot;/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py&quot;, line 573, in run task_id, group_id, chord, File &quot;/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py&quot;, line 655, in prepare_steps task_id=prev_res.task_id, root_id=root_id, app=app, AttributeError: 'GroupResult' object has no attribute 'task_id'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "debug_run.py", line 19, in &lt;module&gt; res.delay() File "/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py", line 179, in delay return self.apply_async(partial_args, partial_kwargs) File "/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py", line 557, in apply_async dict(self.options, **options) if options else self.options)) File "/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py", line 573, in run task_id, group_id, chord, File "/home/ja04913/ocenter/ocenter-venv/lib/python2.7/site-packages/celery/canvas.py", line 655, in prepare_steps task_id=prev_res.task_id, root_id=root_id, app=app, AttributeError: 'GroupResult' object has no attribute 'task_id' </code></pre></div>
0
<p dir="auto">Challenge <a href="http://beta.freecodecamp.com/en/challenges/applied-visual-design/use-a-google-font" rel="nofollow">use-a-google-font</a> has an issue.<br> User Agent is: <code class="notranslate">Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_3) AppleWebKit/602.4.8 (KHTML, like Gecko) Version/10.0.3 Safari/602.4.8</code>.<br> Please describe how to reproduce this issue, and include links to screenshots if possible.</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" &lt;link href=&quot;https://fonts.googleapis.com/css?family=Open+Sans&quot; rel=&quot;stylesheet&quot;&gt; &lt;style&gt; body { font-family:&quot;Open Sans&quot;,sans-serif; } h4 { text-align: center; background-color: rgba(45, 45, 45, 0.1); padding: 10px; font-size: 27px; text-transform: uppercase; } p { text-align: justify; } .links { text-align: left; color: black; opacity: 0.7; } #thumbnail { box-shadow: 0 10px 20px rgba(0,0,0,0.19), 0 6px 6px rgba(0,0,0,0.23); } .fullCard { width: 245px; border: 1px solid #ccc; border-radius: 5px; margin: 10px 5px; padding: 4px; } .cardContent { padding: 10px; } .cardText { margin-bottom: 30px; } &lt;/style&gt; &lt;div class=&quot;fullCard&quot; id=&quot;thumbnail&quot;&gt; &lt;div class=&quot;cardContent&quot;&gt; &lt;div class=&quot;cardText&quot;&gt; &lt;h4&gt;Alphabet&lt;/h4&gt; &lt;hr&gt; &lt;em&gt;&lt;p&gt;Google was founded by Larry Page and Sergey Brin while they were &lt;u&gt;Ph.D. students&lt;/u&gt; at &lt;strong&gt;Stanford University&lt;/strong&gt;.&lt;/p&gt;&lt;/em&gt; &lt;/div&gt; &lt;div class=&quot;cardLinks&quot;&gt; &lt;a href=&quot;https://en.wikipedia.org/wiki/Larry_Page&quot; target=&quot;_blank&quot; class=&quot;links&quot;&gt;Larry Page&lt;/a&gt;&lt;br&gt;&lt;br&gt; &lt;a href=&quot;https://en.wikipedia.org/wiki/Sergey_Brin&quot; target=&quot;_blank&quot; class=&quot;links&quot;&gt;Sergey Brin&lt;/a&gt; &lt;/div&gt; &lt;/div&gt; &lt;/div&gt; "><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">link</span> <span class="pl-c1">href</span>="<span class="pl-s">https://fonts.googleapis.com/css?family=Open+Sans</span>" <span class="pl-c1">rel</span>="<span class="pl-s">stylesheet</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">body</span> { <span class="pl-c1">font-family</span><span class="pl-kos">:</span><span class="pl-s">"Open Sans"</span><span class="pl-kos">,</span>sans-serif; } <span class="pl-ent">h4</span> { <span class="pl-c1">text-align</span><span class="pl-kos">:</span> center; <span class="pl-c1">background-color</span><span class="pl-kos">:</span> <span class="pl-en">rgba</span>(<span class="pl-c1">45</span><span class="pl-kos">,</span> <span class="pl-c1">45</span><span class="pl-kos">,</span> <span class="pl-c1">45</span><span class="pl-kos">,</span> <span class="pl-c1">0.1</span>); <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; <span class="pl-c1">font-size</span><span class="pl-kos">:</span> <span class="pl-c1">27<span class="pl-smi">px</span></span>; <span class="pl-c1">text-transform</span><span class="pl-kos">:</span> uppercase; } <span class="pl-ent">p</span> { <span class="pl-c1">text-align</span><span class="pl-kos">:</span> justify; } .<span class="pl-c1">links</span> { <span class="pl-c1">text-align</span><span class="pl-kos">:</span> left; <span class="pl-c1">color</span><span class="pl-kos">:</span> black; <span class="pl-c1">opacity</span><span class="pl-kos">:</span> <span class="pl-c1">0.7</span>; } <span class="pl-kos">#</span><span class="pl-c1">thumbnail</span> { <span class="pl-c1">box-shadow</span><span class="pl-kos">:</span> <span class="pl-c1">0</span> <span class="pl-c1">10<span class="pl-smi">px</span></span> <span class="pl-c1">20<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.19</span>)<span class="pl-kos">,</span> <span class="pl-c1">0</span> <span class="pl-c1">6<span class="pl-smi">px</span></span> <span class="pl-c1">6<span class="pl-smi">px</span></span> <span class="pl-en">rgba</span>(<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">0.23</span>); } .<span class="pl-c1">fullCard</span> { <span class="pl-c1">width</span><span class="pl-kos">:</span> <span class="pl-c1">245<span class="pl-smi">px</span></span>; <span class="pl-c1">border</span><span class="pl-kos">:</span> <span class="pl-c1">1<span class="pl-smi">px</span></span> solid <span class="pl-pds"><span class="pl-kos">#</span>ccc</span>; <span class="pl-c1">border-radius</span><span class="pl-kos">:</span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">margin</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span> <span class="pl-c1">5<span class="pl-smi">px</span></span>; <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">4<span class="pl-smi">px</span></span>; } .<span class="pl-c1">cardContent</span> { <span class="pl-c1">padding</span><span class="pl-kos">:</span> <span class="pl-c1">10<span class="pl-smi">px</span></span>; } .<span class="pl-c1">cardText</span> { <span class="pl-c1">margin-bottom</span><span class="pl-kos">:</span> <span class="pl-c1">30<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">fullCard</span>" <span class="pl-c1">id</span>="<span class="pl-s">thumbnail</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">cardContent</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">cardText</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span>Alphabet<span class="pl-kos">&lt;/</span><span class="pl-ent">h4</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">hr</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">em</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>Google was founded by Larry Page and Sergey Brin while they were <span class="pl-kos">&lt;</span><span class="pl-ent">u</span><span class="pl-kos">&gt;</span>Ph.D. students<span class="pl-kos">&lt;/</span><span class="pl-ent">u</span><span class="pl-kos">&gt;</span> at <span class="pl-kos">&lt;</span><span class="pl-ent">strong</span><span class="pl-kos">&gt;</span>Stanford University<span class="pl-kos">&lt;/</span><span class="pl-ent">strong</span><span class="pl-kos">&gt;</span>.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">em</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">class</span>="<span class="pl-s">cardLinks</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">https://en.wikipedia.org/wiki/Larry_Page</span>" <span class="pl-c1">target</span>="<span class="pl-s">_blank</span>" <span class="pl-c1">class</span>="<span class="pl-s">links</span>"<span class="pl-kos">&gt;</span>Larry Page<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">br</span><span class="pl-kos">&gt;</span><span class="pl-kos">&lt;</span><span class="pl-ent">br</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">a</span> <span class="pl-c1">href</span>="<span class="pl-s">https://en.wikipedia.org/wiki/Sergey_Brin</span>" <span class="pl-c1">target</span>="<span class="pl-s">_blank</span>" <span class="pl-c1">class</span>="<span class="pl-s">links</span>"<span class="pl-kos">&gt;</span>Sergey Brin<span class="pl-kos">&lt;/</span><span class="pl-ent">a</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div>
<h4 dir="auto">Issue Description</h4> <p dir="auto">This is for the feature/curriculum-expansion branch only when run locally, and NOT the staging branch.</p> <p dir="auto">For several challenges (challengeType: 0, using the code editor with the mobile-phone output layout), the jQuery method .css() doesn't seem to be accessing the styles applied in a <code class="notranslate">style</code> tag in the given code. This is affecting any assert tests that use a pattern of <code class="notranslate">assert($('selector').css('propertyToCheck') == 'valueToCompare', 'message: ...');</code>.Here's an example:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;style&gt; h2 { position: relative; top: 15px; } &lt;/style&gt; &lt;body&gt; &lt;h1&gt;On Being Well-Positioned&lt;/h1&gt; &lt;h2 class=&quot;testCode&quot;&gt;Move me!&lt;/h2&gt; &lt;p&gt;I still think the h2 is where it normally sits.&lt;/p&gt; &lt;/body&gt; &lt;script&gt; console.log($('h2').attr('class')); // Works great, returns testCode console.log($('h2').css('position')); // returns undefined console.log($('h2').css('top')); // returns undefined &lt;/script&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-ent">h2</span> { <span class="pl-c1">position</span><span class="pl-kos">:</span> relative; <span class="pl-c1">top</span><span class="pl-kos">:</span> <span class="pl-c1">15<span class="pl-smi">px</span></span>; } <span class="pl-kos">&lt;/</span><span class="pl-ent">style</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span>On Being Well-Positioned<span class="pl-kos">&lt;/</span><span class="pl-ent">h1</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">h2</span> <span class="pl-c1">class</span>="<span class="pl-s">testCode</span>"<span class="pl-kos">&gt;</span>Move me!<span class="pl-kos">&lt;/</span><span class="pl-ent">h2</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span>I still think the h2 is where it normally sits.<span class="pl-kos">&lt;/</span><span class="pl-ent">p</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">attr</span><span class="pl-kos">(</span><span class="pl-s">'class'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// Works great, returns testCode</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'position'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// returns undefined</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-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'top'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// returns undefined</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">Related assert tests that aren't passing:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="assert($('h2').css('position') == 'relative', 'message: Add a CSS rule to specify that the &lt;code&gt;h2&lt;/code&gt; has a &lt;code&gt;position&lt;/code&gt; set to &lt;code&gt;relative&lt;/code&gt;.'); assert($('h2').css('top') == '15px', 'message: Use a CSS offset to relatively position the &lt;code&gt;h2&lt;/code&gt; 15px away from the &lt;code&gt;top&lt;/code&gt; of where it normally sits.');"><pre class="notranslate"><span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'position'</span><span class="pl-kos">)</span> <span class="pl-c1">==</span> <span class="pl-s">'relative'</span><span class="pl-kos">,</span> <span class="pl-s">'message: Add a CSS rule to specify that the &lt;code&gt;h2&lt;/code&gt; has a &lt;code&gt;position&lt;/code&gt; set to &lt;code&gt;relative&lt;/code&gt;.'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">assert</span><span class="pl-kos">(</span><span class="pl-en">$</span><span class="pl-kos">(</span><span class="pl-s">'h2'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'top'</span><span class="pl-kos">)</span> <span class="pl-c1">==</span> <span class="pl-s">'15px'</span><span class="pl-kos">,</span> <span class="pl-s">'message: Use a CSS offset to relatively position the &lt;code&gt;h2&lt;/code&gt; 15px away from the &lt;code&gt;top&lt;/code&gt; of where it normally sits.'</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Firefox 48.0.1</li> <li>Operating System: Mac OS X, El Capitan v10.11.3</li> <li>Mobile, Desktop, or Tablet:</li> </ul>
1
<p dir="auto">Repro gist: <a href="https://gist.github.com/mkscrg/9adea6ea14464876460c">https://gist.github.com/mkscrg/9adea6ea14464876460c</a></p> <p dir="auto">Calling <code class="notranslate">electron.ipcRenderer.sendSync()</code> within a <code class="notranslate">drop</code> event handler causes odd behavior with <code class="notranslate">dragEnd</code> event handlers.</p> <p dir="auto">Given this code in a <code class="notranslate">BrowserWindow</code>:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;!DOCTYPE html&gt; &lt;html lang=&quot;en&quot;&gt; &lt;body&gt; &lt;script&gt; window.allowDrop = function(e) { e.preventDefault(); }; window.drop = function() { console.log('DROP (1)'); require('electron').ipcRenderer.sendSync('sync-message'); console.log('DROP (2)'); }; window.dragEnd = function() { console.log('DRAG END (3)'); }; &lt;/script&gt; &lt;div draggable=&quot;true&quot; ondragend=&quot;dragEnd(event)&quot; style=&quot;width: 50px; height: 50px; background: blue;&quot;&gt;&lt;/div&gt; &lt;div ondragover=&quot;allowDrop(event)&quot; ondrop=&quot;drop(event)&quot; style=&quot;width: 100px; height: 100px; margin-top: 50px; background: red;&quot;&gt;&lt;/div&gt; &lt;/body&gt; &lt;/html&gt;"><pre class="notranslate"><span class="pl-c1">&lt;!DOCTYPE html<span class="pl-kos">&gt;</span></span> <span class="pl-kos">&lt;</span><span class="pl-ent">html</span> <span class="pl-c1">lang</span>="<span class="pl-s">en</span>"<span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">allowDrop</span> <span class="pl-c1">=</span> <span class="pl-k">function</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-s1">e</span><span class="pl-kos">.</span><span class="pl-en">preventDefault</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">drop</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'DROP (1)'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'electron'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">ipcRenderer</span><span class="pl-kos">.</span><span class="pl-en">sendSync</span><span class="pl-kos">(</span><span class="pl-s">'sync-message'</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">'DROP (2)'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span> <span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-en">dragEnd</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-smi">console</span><span class="pl-kos">.</span><span class="pl-en">log</span><span class="pl-kos">(</span><span class="pl-s">'DRAG END (3)'</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">&lt;/</span><span class="pl-ent">script</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">draggable</span>="<span class="pl-s">true</span>" <span class="pl-c1">ondragend</span>="<span class="pl-s">dragEnd(event)</span>" <span class="pl-c1">style</span>="<span class="pl-s">width: 50px; height: 50px; background: blue;</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">ondragover</span>="<span class="pl-s">allowDrop(event)</span>" <span class="pl-c1">ondrop</span>="<span class="pl-s">drop(event)</span>" <span class="pl-c1">style</span>="<span class="pl-s">width: 100px; height: 100px; margin-top: 50px; background: red;</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">body</span><span class="pl-kos">&gt;</span> <span class="pl-kos">&lt;/</span><span class="pl-ent">html</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">When the blue box is dragged to the red box, the console shows:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="DROP (1) DRAG END (3) DROP (2)"><pre class="notranslate"><code class="notranslate">DROP (1) DRAG END (3) DROP (2) </code></pre></div> <p dir="auto">Workaround: avoid calling IPC in drag/drop event handlers.</p> <p dir="auto">FWIW: this appeared for us as a bunch of React and ReactDnD invariant violations. We were calling <code class="notranslate">remote.getGlobal</code> from a React <code class="notranslate">render</code> method, and causing a re-render from a <code class="notranslate">drop</code> handler.</p>
<p dir="auto">I have an example repo here reproducing the issue in the smallest case I could come up with.</p> <p dir="auto"><a href="https://github.com/aackerman/electron-setImmediate-test">https://github.com/aackerman/electron-setImmediate-test</a></p> <p dir="auto">The gist is, when attempting to make a sync call in a 'renderer' process to a remote module in the 'browser' process, based on a reference from <code class="notranslate">remote.require</code>; the call doesn't block the <code class="notranslate">setImmediate</code> queue of tasks from being run. So the calls appear synchronous but don't completely block the run loop.</p> <p dir="auto">Is this intended behavior? It really threw me when debugging an issue.</p>
1
<ul dir="auto"> <li>Electron version: v0.36.8</li> <li>Operating system: Linux olimp 3.2.0-4-amd64 <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="14015029" data-permission-text="Title is private" data-url="https://github.com/electron/electron/issues/1" data-hovercard-type="issue" data-hovercard-url="/electron/electron/issues/1/hovercard" href="https://github.com/electron/electron/issues/1">#1</a> SMP Debian 3.2.68-1+deb7u3 x86_64 GNU/Linux</li> </ul> <p dir="auto"><a href="http://electron.atom.io/docs/v0.36.8/api/browser-window/#wincapturepagerect-callback" rel="nofollow">http://electron.atom.io/docs/v0.36.8/api/browser-window/#wincapturepagerect-callback</a></p> <p dir="auto">My app takes periodically screenshot every one second. After one hour electron memory usage is 6GB and then it crashes</p>
<p dir="auto">I capture the mainWindows screen every 40ms to stream it to another computer. But the memory consumption rises and rises and at about 15 GB it slows down the webpage.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="var handleScreenCapture = function(image) { image = null; setTimeout(screenTick, 40); } var screenTick = function() { mainWindow.capturePage({x:0,y:0, width:1920,height:360}, handleScreenCapture); } mainWindow.webContents.on('did-finish-load', function() { setTimeout(screenTick, 40); });"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-en">handleScreenCapture</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-s1">image</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">image</span> <span class="pl-c1">=</span> <span class="pl-c1">null</span><span class="pl-kos">;</span> <span class="pl-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-s1">screenTick</span><span class="pl-kos">,</span> <span class="pl-c1">40</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">var</span> <span class="pl-en">screenTick</span> <span class="pl-c1">=</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-en">capturePage</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">x</span>:<span class="pl-c1">0</span><span class="pl-kos">,</span><span class="pl-c1">y</span>:<span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">width</span>:<span class="pl-c1">1920</span><span class="pl-kos">,</span><span class="pl-c1">height</span>:<span class="pl-c1">360</span><span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-en">handleScreenCapture</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-s1">mainWindow</span><span class="pl-kos">.</span><span class="pl-c1">webContents</span><span class="pl-kos">.</span><span class="pl-en">on</span><span class="pl-kos">(</span><span class="pl-s">'did-finish-load'</span><span class="pl-kos">,</span> <span class="pl-k">function</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-en">screenTick</span><span class="pl-kos">,</span> <span class="pl-c1">40</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">Is there a fix for that. Is it possible to garbage collect manually?</p> <p dir="auto">Thanks<br> Christoph</p>
1
<p dir="auto">Axis labels are no longer displaying properly with the latest push to production. Please visit <a href="https://superset.d.musta.ch/superset/dashboard/meta/" rel="nofollow">https://superset.d.musta.ch/superset/dashboard/meta/</a> to reproduce the issue.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/8325152/23345845/013907fe-fc49-11e6-8141-01137fee3030.png"><img width="888" alt="screen shot 2017-02-26 at 5 25 43 pm" src="https://cloud.githubusercontent.com/assets/8325152/23345845/013907fe-fc49-11e6-8141-01137fee3030.png" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/130878/23325218/89b69602-faa8-11e6-9d5f-2939cc359ebf.png"><img src="https://cloud.githubusercontent.com/assets/130878/23325218/89b69602-faa8-11e6-9d5f-2939cc359ebf.png" alt="image" style="max-width: 100%;"></a></p>
1
<p dir="auto">Hello, how do I traverse the root path?<br> I found <a href="https://github.com/babel/babel/issues/9683" data-hovercard-type="issue" data-hovercard-url="/babel/babel/issues/9683/hovercard">this issue</a>, but it has been idle for a long time.<br> Is there any good way? thank!</p>
<p dir="auto">When including <code class="notranslate">6to5</code> in other build systems, 6to5 pulling extra deps (like chokidar) is unfortunate.<br> Especially when some of these have inherently brittle native extensions.</p>
0
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.32.3</li> <li>Operating System: [macOS 13.2.1 (22D68)]</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/hex0cter/playwright-locator-loop">playwright-locator-loop</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 { PlaywrightTestConfig } from &quot;@playwright/test&quot;; const config: PlaywrightTestConfig = { timeout: 60 * 1000, retries: 0, snapshotDir: &quot;./snapshots&quot;, reporter: [ [&quot;html&quot;, { outputFolder: `playwright-report` }], [&quot;line&quot;], ], projects: [ { name: &quot;chrome&quot;, use: { browserName: &quot;chromium&quot;, channel: &quot;chrome&quot;, headless: true, viewport: { width: 1500, height: 730 }, acceptDownloads: true, screenshot: &quot;only-on-failure&quot;, video: &quot;on&quot;, trace: &quot;on&quot;, }, } ], }; export default config;"><pre class="notranslate"><span class="pl-c">// playwright.config.ts</span> <span class="pl-k">import</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">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">timeout</span>: <span class="pl-c1">60</span> <span class="pl-c1">*</span> <span class="pl-c1">1000</span><span class="pl-kos">,</span> <span class="pl-c1">retries</span>: <span class="pl-c1">0</span><span class="pl-kos">,</span> <span class="pl-c1">snapshotDir</span>: <span class="pl-s">"./snapshots"</span><span class="pl-kos">,</span> <span class="pl-c1">reporter</span>: <span class="pl-kos">[</span> <span class="pl-kos">[</span><span class="pl-s">"html"</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">outputFolder</span>: <span class="pl-s">`playwright-report`</span> <span class="pl-kos">}</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-s">"line"</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-c1">projects</span>: <span class="pl-kos">[</span> <span class="pl-kos">{</span> <span class="pl-c1">name</span>: <span class="pl-s">"chrome"</span><span class="pl-kos">,</span> <span class="pl-c1">use</span>: <span class="pl-kos">{</span> <span class="pl-c1">browserName</span>: <span class="pl-s">"chromium"</span><span class="pl-kos">,</span> <span class="pl-c1">channel</span>: <span class="pl-s">"chrome"</span><span class="pl-kos">,</span> <span class="pl-c1">headless</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">viewport</span>: <span class="pl-kos">{</span> <span class="pl-c1">width</span>: <span class="pl-c1">1500</span><span class="pl-kos">,</span> <span class="pl-c1">height</span>: <span class="pl-c1">730</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-c1">acceptDownloads</span>: <span class="pl-c1">true</span><span class="pl-kos">,</span> <span class="pl-c1">screenshot</span>: <span class="pl-s">"only-on-failure"</span><span class="pl-kos">,</span> <span class="pl-c1">video</span>: <span class="pl-s">"on"</span><span class="pl-kos">,</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-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-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" test(&quot;should select all checkboxes by a loop&quot;, async ({ page }) =&gt; { page.goto( &quot;https://staging.scrive.com/s/9221714692413010618/9221932570717574475/d0661b5e62380af4&quot; ); await page.waitForLoadState(); await page.waitForLoadState(&quot;networkidle&quot;); const checkboxes = await page.locator(&quot;rect[data-test='checkbox']&quot;).all(); for (const checkbox of checkboxes) { await checkbox.click(); } await expect(page.locator(&quot;[data-test='signview_sign_btn']&quot;)).toBeEnabled(); }); "><pre class="notranslate"> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"should select all checkboxes by a loop"</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">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span> <span class="pl-s">"https://staging.scrive.com/s/9221714692413010618/9221932570717574475/d0661b5e62380af4"</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">waitForLoadState</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">waitForLoadState</span><span class="pl-kos">(</span><span class="pl-s">"networkidle"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">checkboxes</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">locator</span><span class="pl-kos">(</span><span class="pl-s">"rect[data-test='checkbox']"</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">all</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">for</span> <span class="pl-kos">(</span><span class="pl-k">const</span> <span class="pl-s1">checkbox</span> <span class="pl-k">of</span> <span class="pl-s1">checkboxes</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">checkbox</span><span class="pl-kos">.</span><span class="pl-en">click</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-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">locator</span><span class="pl-kos">(</span><span class="pl-s">"[data-test='signview_sign_btn']"</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeEnabled</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>npm install</li> <li>npm test</li> </ul> <p dir="auto"><strong>Expected</strong></p> <p dir="auto">All checkboxes should be checked by the end of the tests. And the Next button on the bottom should be enabled</p> <p dir="auto"><strong>Actual</strong></p> <p dir="auto">Some of the checkboxes are clicked multiple times and others are never clicked. When I looked at the trace, it seems when playwright loops through all the matching elements, it calls <code class="notranslate">locator.click(rect[data-test='checkbox'] &gt;&gt; nth=&lt;n&gt;</code> every time, and the order of that matched list may be non deterministic.</p>
<h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: [1.32.2]</li> <li>Operating System: [Windows 11]</li> <li>Browser: [Chrome]</li> <li>Other info: I haven't tested on other browsers and I can see this issue with versions above 1.30.0</li> </ul> <p dir="auto"><strong>Title:</strong> Browser closes unexpectedly when a test fails during Playwright Test execution</p> <p dir="auto"><strong>Description:</strong> When running Playwright Test using the VSCode extension and executing a test suite with two spec.ts files in the same folder, the browser unexpectedly closes and relaunches when the first test fails. This behavior is not expected, as the browser should continue to remain open even if a test fails within the suite.</p> <p dir="auto"><strong>Steps to Reproduce:</strong></p> <ol dir="auto"> <li>Open VSCode and install the Playwright Test extension.</li> <li>Create a test suite with two spec.ts files in the same folder.</li> <li>Add at least one test to each spec file.</li> <li>Execute the test suite using the "Run Test" option on the folder.</li> <li>Observe the behavior of the browser during the execution of the tests.</li> </ol> <p dir="auto"><strong>Expected Results:</strong><br> The browser should remain open throughout the entire execution of the test suite, regardless of whether any individual test fails.</p> <p dir="auto"><strong>Actual Results:</strong><br> When the first test fails during the execution of the test suite, the browser unexpectedly closes and then relaunches before the next test is executed.</p>
0
<p dir="auto">See discussion in <a href="https://discourse.julialang.org/t/no-automatic-type-promotion-for-parametric-structs/62664/1" rel="nofollow">https://discourse.julialang.org/t/no-automatic-type-promotion-for-parametric-structs/62664/1</a></p> <p dir="auto">When using different (but convertible) types in a constructor, for "standard" structs the types get converted automatically, e.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Struct1 x:: Float64 y end s1b = Struct1(5, 1) # output: Struct1b(5.0, 1)"><pre class="notranslate"><code class="notranslate">struct Struct1 x:: Float64 y end s1b = Struct1(5, 1) # output: Struct1b(5.0, 1) </code></pre></div> <p dir="auto">However, this is not done if the struct has a type parameter (even if this parameter is for a different field), instead I get a MethodError:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Struct2{T} x:: Float64 y:: T end s2b = Struct2(5, 1) # MethodError, I would expect Struct2{Int64}(5.0, 1) s2c = Struct2(5.0, 1) # this works, output: Struct2{Int64}(5.0, 1)"><pre class="notranslate"><code class="notranslate">struct Struct2{T} x:: Float64 y:: T end s2b = Struct2(5, 1) # MethodError, I would expect Struct2{Int64}(5.0, 1) s2c = Struct2(5.0, 1) # this works, output: Struct2{Int64}(5.0, 1) </code></pre></div> <p dir="auto">This behavior is confusing for me, I would expect that type promotion is also done for parametric structs. Or is there a good reason for it which I am not aware of?</p>
<p dir="auto">Consider a definition of a parameter-less struct:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Bar x::Int y::Float64 end"><pre class="notranslate"><code class="notranslate">struct Bar x::Int y::Float64 end </code></pre></div> <p dir="auto">This creates two constructors: A fully specified <code class="notranslate">Bar(x::Int64, y::Float64)</code> and a fully <em>un</em>specified <code class="notranslate">Bar(x, y)</code>. The latter is very convenient because you can just do <code class="notranslate">Bar(1, 1)</code> and it will automatically convert.</p> <p dir="auto">For a simple struct with a type param, we have something similar:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Baz{T} x::T end"><pre class="notranslate"><code class="notranslate">struct Baz{T} x::T end </code></pre></div> <p dir="auto">creates the specified <code class="notranslate">(::Type{Baz{T}})(x) where T</code> and the unspecified <code class="notranslate">(::Type{Baz})(x::T) where T</code>. The latter handily allows you to call <code class="notranslate">Baz(1.0)</code> and get exactly what you expect.</p> <p dir="auto">However, if you make:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="struct Foo{T} x::T y::Float64 end"><pre class="notranslate"><code class="notranslate">struct Foo{T} x::T y::Float64 end </code></pre></div> <p dir="auto">You get <code class="notranslate">(::Type{Foo{T}})(x, y) where T</code> and <code class="notranslate">(::Type{Foo})(x::T, y::Float64) where T</code>. But there is no equivalent convenience method <code class="notranslate">(::Type{Foo})(x::T, y) where T</code> that allows you to do <code class="notranslate">Foo(1, 1)</code> and have it work. That would be nice to have though.</p> <p dir="auto">This was raised by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/arnavs/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/arnavs">@arnavs</a> on Slack who found it counterintuitive.</p>
1
<p dir="auto">Why not to think of adding "right to left" support, I think this will be a great feature to bootstrap.</p>
<p dir="auto">I believe that bootstrap dropdowns should not close when the dropdowns themselves are clicked on. This will make it possible to put login forms inside the dropdowns.</p> <p dir="auto">You can reporoduce this by heading to <a href="http://twitter.github.com/bootstrap/javascript.html#dropdowns">http://twitter.github.com/bootstrap/javascript.html#dropdowns</a> , opening a dropdown, and clicking in the line seprtating the links.</p> <p dir="auto">It appears that line 95 is causing the conflict:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$('html').on('click.dropdown.data-api', clearMenus)"><pre class="notranslate"><code class="notranslate">$('html').on('click.dropdown.data-api', clearMenus) </code></pre></div> <p dir="auto">UPDATE:<br> When logged out, the signin dropdown at <a href="http://twitter.com/#!/search-home" rel="nofollow">http://twitter.com/#!/search-home</a> does not closed when clicked on, but rather closes when clicked outside of the dropdown. This is what I am talking about here.</p>
0
<ul dir="auto"> <li>VSCode Version: 1.1.1</li> <li>OS Version: 10</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Install VS Code.</li> <li>Install one or more extensions.</li> <li>Notice that there is a <code class="notranslate">.vscode</code> folder in your user directory.</li> </ol> <p dir="auto">In Windows, the root of the user directory is <em>NOT</em> the right place to store application settings. This is a very common convention in Linux but Windows != Linux and not all Windows users want to pretend they are running Linux. In windows the correct location for application settings is <code class="notranslate">%APPDATA%</code> and the correct location for extensions is <code class="notranslate">%LOCALAPPDATA%</code> or <code class="notranslate">%PROGRAMDATA%</code> (depending on level of security consciousness).</p> <p dir="auto">To avoid a flame war, I want to be clear that this issue isn't debating <em>why</em> <code class="notranslate">C:/Users/&lt;username&gt;/.&lt;appname&gt;</code> is the wrong place for these files, it is only asserting that Microsoft has very clearly documented the <em>right</em> place for settings files and VSCode does not follow it. If the authors of VSCode have consciously decided to go against the long-running convention established by the OS authors then I won't press on the issue (though I think that would be a silly decision for VSCode). I am submitting this issue under the assumption that the authors didn't realize there was an established convention (very common in open source projects) and did what was familiar to them.</p>
<ul dir="auto"> <li>VSCode Version: 0.10.11</li> <li>OS Version: Windows 7 Enterprise 64-bit</li> </ul> <p dir="auto">Steps to Reproduce:</p> <ol dir="auto"> <li>Press "Ctrl + =" to zoom in the view.</li> <li>Search for some text</li> <li>Click "F3" to jump to the "Next match"</li> </ol> <p dir="auto">The fonts are rendered with blur.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6037811/14419649/cef9e610-fff9-11e5-8941-dde568c84570.png"><img src="https://cloud.githubusercontent.com/assets/6037811/14419649/cef9e610-fff9-11e5-8941-dde568c84570.png" alt="screen_blur" style="max-width: 100%;"></a></p> <p dir="auto">If I pressed "Ctrl+Home" to "reset" the rendering, then use mouse to scroll to that line, the fonts are clear and sharp.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6037811/14419651/d2130afc-fff9-11e5-9fa5-da68d839d603.png"><img src="https://cloud.githubusercontent.com/assets/6037811/14419651/d2130afc-fff9-11e5-9fa5-da68d839d603.png" alt="screen_clear" style="max-width: 100%;"></a></p> <p dir="auto">The details of the fonts are as below:<br> blur:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6037811/14419664/eff0d0f4-fff9-11e5-9d31-9a18f4ab6ef2.png"><img src="https://cloud.githubusercontent.com/assets/6037811/14419664/eff0d0f4-fff9-11e5-9d31-9a18f4ab6ef2.png" alt="blur_detail" style="max-width: 100%;"></a></p> <p dir="auto">sharp:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/6037811/14419671/fca5f842-fff9-11e5-8192-4d8ee3bd89c8.png"><img src="https://cloud.githubusercontent.com/assets/6037811/14419671/fca5f842-fff9-11e5-8192-4d8ee3bd89c8.png" alt="clear_detail" style="max-width: 100%;"></a></p> <p dir="auto">It seems the <strong>height</strong> of blurred font is <strong>16px</strong>, and the "normal" font is <strong>15px</strong>.</p> <p dir="auto">Because the monitor in my company is 22" 1920*1080, the default font size of VSCode is too small. Though we can modify the "editor.fontSize" setting, but the font-size of side bar will still be very small, so I think zoom in once is the most comfortable way to make text easy to read...if without this issue.</p> <p dir="auto">And I think it's not a duplicate of <a href="https://github.com/Microsoft/vscode/issues/4622">https://github.com/Microsoft/vscode/issues/4622</a>.</p>
0
<p dir="auto">None of my onClick handlers are working in development mode after updating from 0.14.0 to 0.14.1 using IE11.</p> <p dir="auto">When reverting the code that was changed in ReactErrorUtils.js for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="111237674" data-permission-text="Title is private" data-url="https://github.com/facebook/react/issues/5157" data-hovercard-type="pull_request" data-hovercard-url="/facebook/react/pull/5157/hovercard" href="https://github.com/facebook/react/pull/5157">#5157</a> I get the onClick handler working again.</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"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto"><em>bug</em></p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">I get:</p> <blockquote> <p dir="auto">Warning: Unknown DOM property autocomplete. Did you mean autoComplete?</p> </blockquote> <p dir="auto">When I use <code class="notranslate">autoComplete</code> works fine.</p> <p dir="auto">This is misleading because the name of the DOM property is <code class="notranslate">autocomplete</code>, not <code class="notranslate">autoComplete</code>. React implies that the DOM property is named differently than it really is.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/84v837e9/" rel="nofollow">https://jsfiddle.net/84v837e9/</a>).</strong></p> <p dir="auto"><a href="https://jsfiddle.net/binki/84v837e9/133/" rel="nofollow">https://jsfiddle.net/binki/84v837e9/133/</a></p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">Accepts <code class="notranslate">autocomplete</code>, rejects <code class="notranslate">autoComplete</code>.</p> <p dir="auto"><em>OR</em></p> <p dir="auto">The error message should not claim that <code class="notranslate">autoComplete</code> is the name of a DOM property because it isn’t. I don’t see any mention of a DOM property called <code class="notranslate">autoComplete</code> in the IDL documentation for <a href="https://www.w3.org/TR/html5/forms.html#htmlinputelement" rel="nofollow"><code class="notranslate">HTMLInputElement</code></a>, but I do see mention of <code class="notranslate">autocomplete</code>. It should claim that <code class="notranslate">autoComplete</code> is a “React property name mapped onto a differently-named DOM property” or use some other wording (I’m not good at coming up with wordings).</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&gt; typeof document.createElement('input').autocomplete &quot;string&quot; &gt; typeof document.createElement('input').autoComplete &quot;undefined&quot;"><pre class="notranslate"><span class="pl-c1">&gt;</span> <span class="pl-k">typeof</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'input'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">autocomplete</span> <span class="pl-s">"string"</span> <span class="pl-c1">&gt;</span> <span class="pl-k">typeof</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">createElement</span><span class="pl-kos">(</span><span class="pl-s">'input'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">autoComplete</span> <span class="pl-s">"undefined"</span></pre></div> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">react-15.6.1</p> <p dir="auto">Same issue exists for at least <code class="notranslate">HTMLInputElement.autofocus</code>.</p>
<p dir="auto">I'm not sure what counts as a canonical source, but as near as I can tell, the <code class="notranslate">autocomplete</code> input property should be all downcased. I've been having some trouble with form input showing up in Firefox after a refresh and noticed that I had <code class="notranslate">autoComplete='off'</code>. Not sure if that will have an effect on the functionality, though.</p> <p dir="auto"><a href="https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement</a><br> <a href="https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/Security/Securing_your_site/Turning_off_form_autocompletion</a></p>
1
<p dir="auto">Heya, I've been trying to get any of the Page.mouse methods to work, but they all return the same error. I'm only using Page.mouse because neither .dragTo() nor .dragAndDrop() were working like some other users have posted about.</p> <h3 dir="auto">System info</h3> <ul dir="auto"> <li>Playwright Version: 1.8</li> <li>Operating System: macOS 13.2</li> <li>Browser: Chromium</li> </ul> <p dir="auto"><strong>Config file</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export default { browser: &quot;chromium&quot;, contextOptions: { ignoreHTTPSErrors: true, viewport: { width: 1440, height: 900, }, }, launchOptions: { headless: process.env.CI ? true : false, devtools: false, args: process.env.CI ? ciArgs : localArgs, }, };"><pre class="notranslate"><code class="notranslate">export default { browser: "chromium", contextOptions: { ignoreHTTPSErrors: true, viewport: { width: 1440, height: 900, }, }, launchOptions: { headless: process.env.CI ? true : false, devtools: false, args: process.env.CI ? ciArgs : localArgs, }, }; </code></pre></div> <p dir="auto"><strong>Code</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="public async expandBottomPane(): Promise&lt;void&gt; { await this.page.waitForSelector('.scheduleForecastRowLabels'); const verticalDivider = this.page.locator('.verticalDivider'); const dayLine = this.page.locator('.scheduleHeader .dayLine'); const toDragBox = await verticalDivider.boundingBox(); await this.page.mouse.move(toDragBox!.x, toDragBox!.y) }"><pre class="notranslate"><code class="notranslate">public async expandBottomPane(): Promise&lt;void&gt; { await this.page.waitForSelector('.scheduleForecastRowLabels'); const verticalDivider = this.page.locator('.verticalDivider'); const dayLine = this.page.locator('.scheduleHeader .dayLine'); const toDragBox = await verticalDivider.boundingBox(); await this.page.mouse.move(toDragBox!.x, toDragBox!.y) } </code></pre></div>
<p dir="auto"><strong>Context:</strong></p> <ul dir="auto"> <li>Playwright Version: 1.30.0</li> <li>Operating System: WSL2</li> <li>Node.js version: v16.18.1</li> <li>Browser: All</li> </ul> <p dir="auto"><strong>Code Snippet</strong></p> <p dir="auto">This is just one short example. It is affecting all tests.</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect } from '@playwright/test' test.beforeEach(async ({ page }) =&gt; { await page.goto('http://localhost:1234') }) test.describe('Home', () =&gt; { test('FullPage', async ({ page }) =&gt; { await expect(page).toHaveScreenshot({ fullPage: true }) }) }) "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@playwright/test'</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">beforeEach</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">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'http://localhost:1234'</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'Home'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'FullPage'</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">=&gt;</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-kos">.</span><span class="pl-en">toHaveScreenshot</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">fullPage</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto"><strong>Describe the bug</strong></p> <p dir="auto">The firefox, chromium, chrome, msedge and mobile chrome all work perfectly. But all safari based tests fail with the same message:</p> <div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" 8) [Mobile Safari] › hombut e.spec.ts:8:7 › Home › FullPage ========================================== browserContext.newPage: Protocol error (Page.overrideUserPreference): 'Page.overrideUserPreference' was not found [{&quot;code&quot;:-32601,&quot;message&quot;:&quot;'Page.overrideUserPreference' was not found&quot;}]"><pre class="notranslate"> 8) [Mobile Safari] › hombut e.spec.ts:8:7 › Home › FullPage ========================================== browserContext.newPage: Protocol error (Page.overrideUserPreference): <span class="pl-s"><span class="pl-pds">'</span>Page.overrideUserPreference<span class="pl-pds">'</span></span> was not found [{<span class="pl-s"><span class="pl-pds">"</span>code<span class="pl-pds">"</span></span>:-32601,<span class="pl-s"><span class="pl-pds">"</span>message<span class="pl-pds">"</span></span>:<span class="pl-s"><span class="pl-pds">"</span>'Page.overrideUserPreference' was not found<span class="pl-pds">"</span></span>}]</pre></div> <p dir="auto">This is my first time setting up Playwright so I have no example of it working previously. I've changed very little since <code class="notranslate">npm init playwright@latest</code> so I doubt it's my configuration. I've installed all deps for the browsers as well.</p> <p dir="auto">I've tried for several hours to interpret the debug log using the docs, but I am no closer to figuring it out.</p> <p dir="auto">I searched for a while and the only similar mention I could find was <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1390915904" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/17699" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/17699/hovercard" href="https://github.com/microsoft/playwright/issues/17699">#17699</a>. I apologise if this is not a bug, but figured it was worth raising here if it's happened recently on an alternate OS.</p>
0
<p dir="auto">It should be possible to make an <code class="notranslate">expanded</code> (but not <code class="notranslate">multiple</code>) choice widget render an additional radio button for the <code class="notranslate">empty_value</code> option (if passed). Otherwise it's not possible to remove the selection if the field is not required. It should be selected by default if no other option is selected.</p>
<p dir="auto">As far as i can see there no way to overwrite or set the default messages domain for a certain template or controller. Especially when using the keyword syntax like "email.lostpassword.greeting" i find it very inconvenient to duplicate the keyword "email" (not to mention to add the empty the second argument) as the domain name. It makes my template look a lot more difficult to read and i dont find this approach very DRY.</p> <p dir="auto">It has lead to big translation files as i put all my messages in the messages.**.yml simply because its too hard too manage the domains for every single translation. Also, as far as i can see in the documentation there is no way to use includes within the translation files which could also be a solution to split up translation files into multiple subfiles.</p> <p dir="auto">All in all i think there should be some enhancements promoting the structuring of your language files.</p>
0
<p dir="auto"><strong>Expected Behavior</strong><br> Use the session.setProxy function of a window to set a user:pass authenticated proxy. Load URL in that window. Expect that app.login event is triggered and request is made.<br> <strong>Actual behavior</strong><br> Set session proxy to a user:pass authenticated proxy, loadURL requests fail with status "failed" in dev tools. App.login event never called.<br> <strong>To Reproduce</strong><br> Create a window, use the session setProxy function to set a user:pass authenticated proxy. Then try to load ANY url in that window.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="win.webContents.session.setProxy({ proxyRules: `http://user:pass@ip:port` }, () =&gt; {}); } //Requests fail status &quot;failed&quot; win.loadURL('https://whatismyipaddress.com'); //This is NOT reached app.on('login', function (event, request, authInfo, callback) { if (authInfo.isProxy) { log.info(`HI ${JSON.stringify(authInfo)}`) // callback('username', 'password'); } })"><pre class="notranslate"><code class="notranslate">win.webContents.session.setProxy({ proxyRules: `http://user:pass@ip:port` }, () =&gt; {}); } //Requests fail status "failed" win.loadURL('https://whatismyipaddress.com'); //This is NOT reached app.on('login', function (event, request, authInfo, callback) { if (authInfo.isProxy) { log.info(`HI ${JSON.stringify(authInfo)}`) // callback('username', 'password'); } }) </code></pre></div> <p dir="auto">Working code with IP authenticated proxies</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="win.webContents.session.setProxy({ proxyRules: `http://ip:port` }, () =&gt; {}); } //Requests succeed win.loadURL('https://whatismyipaddress.com'); //This is reached app.on('login', function (event, request, authInfo, callback) { if (authInfo.isProxy) { log.info(`HI ${JSON.stringify(authInfo)}`) // callback('username', 'password'); } })"><pre class="notranslate"><code class="notranslate">win.webContents.session.setProxy({ proxyRules: `http://ip:port` }, () =&gt; {}); } //Requests succeed win.loadURL('https://whatismyipaddress.com'); //This is reached app.on('login', function (event, request, authInfo, callback) { if (authInfo.isProxy) { log.info(`HI ${JSON.stringify(authInfo)}`) // callback('username', 'password'); } }) </code></pre></div> <p dir="auto">This code is working for me with IP authenticated proxies. App.login is triggered and the request completes as expected. Just user:pass proxies that are the issue.</p> <p dir="auto">When opening chrome dev tools I can see the requests being attempted and returning status "failed".</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="**Screenshots** If applicable, add screenshots to help explain your problem. **Additional Information** Add any other context about the problem here."><pre class="notranslate"><code class="notranslate">**Screenshots** If applicable, add screenshots to help explain your problem. **Additional Information** Add any other context about the problem here. </code></pre></div>
<p dir="auto">Hello,</p> <p dir="auto">I'm hoping for some general guidance... it seems when using electron notifications (either with the html5 api in from within renderer process or the notification module inside the main process) each notification fires off three times, resulting in three identical notifications and an annoyed user. My best guess is this is due to electron's multi-process architecture (I can see three instances of my app running).</p> <p dir="auto">Luckily on macOS (if using the html 5 api) the OS is smart enough to recognize the 3 notifications are identical and collapses them into one, not so lucky if the notifications are coming from the main process using the notification module, and likewise on windows from both main and render processes.</p> <p dir="auto">I could get into the details of how I'm setting up notifications, but this doesn't seem directly related to notifications rather more to the electron architecture. Anyone have any thoughts or wisdom on how I can work around this?</p> <ul dir="auto"> <li>Electron version: 1.8.4</li> <li>Operating system: macOS/Windows (Build only)</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Call notification... e.g.:</p> <p dir="auto"><strong>Render Process</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let notify = new Notification('Notification Title', { body: 'notification body' });"><pre class="notranslate"><code class="notranslate">let notify = new Notification('Notification Title', { body: 'notification body' }); </code></pre></div> <p dir="auto"><em>or</em></p> <p dir="auto"><strong>Main Process</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let notify = new Notification({ title: 'Notification Title', body: 'notification body' });"><pre class="notranslate"><code class="notranslate">let notify = new Notification({ title: 'Notification Title', body: 'notification body' }); </code></pre></div> <p dir="auto">... see one desktop notification.</p> <h3 dir="auto">Actual behavior</h3> <p dir="auto">Three desktop notifications are fired.</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-8182?redirect=false" rel="nofollow">SPR-8182</a></strong> and commented</p> <p dir="auto">Based on decisions made in other subtasks of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111402" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12830" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12830/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12830">#12830</a>.</p> <hr> <p dir="auto">This issue is a sub-task of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398111402" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12830" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12830/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12830">#12830</a></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="398110788" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12711" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12711/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12711">#12711</a> Decide what to do with 'local' attribute in beans: namespace (<em><strong>"is duplicated by"</strong></em>)</li> </ul> <p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/50dfa037d005639a871b804da2488b74b466db25/hovercard" href="https://github.com/spring-projects/spring-framework/commit/50dfa037d005639a871b804da2488b74b466db25"><tt>50dfa03</tt></a></p> <p dir="auto">1 votes, 4 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=skajotde" rel="nofollow">Kamil</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9092?redirect=false" rel="nofollow">SPR-9092</a></strong> and commented</p> <p dir="auto">I implement contributions for my application and I found inconsistent behaviour for Provider/ObjectFactory. There are defined classes for different contributions:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Contribute(&quot;rest&quot;) @Named(&quot;bean-contrib2a&quot;) public class Contrib2A implements ContribRest { ... } @Contribute(&quot;rest&quot;) @Named(&quot;bean-contrib2b&quot;) public class Contrib2B { ... } @Contribute(&quot;non-rest&quot;) @Named(&quot;bean-contrib3a&quot;) public class Contrib3A implements ContribRest { ... } @Contribute(&quot;non-rest&quot;) @Named(&quot;bean-contrib3b&quot;) public class Contrib3B { ... }"><pre class="notranslate"><code class="notranslate">@Contribute("rest") @Named("bean-contrib2a") public class Contrib2A implements ContribRest { ... } @Contribute("rest") @Named("bean-contrib2b") public class Contrib2B { ... } @Contribute("non-rest") @Named("bean-contrib3a") public class Contrib3A implements ContribRest { ... } @Contribute("non-rest") @Named("bean-contrib3b") public class Contrib3B { ... } </code></pre></div> <p dir="auto">Code to show injecting scenario looks like that:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Named(&quot;applicationRest&quot;) public class ApplicationRest extends Application { private List&lt;ContribRest&gt; contrib2; private List&lt;ContribRest&gt; contrib4; private ObjectFactory&lt;List&lt;ContribRest&gt;&gt; ofContrib2; private ObjectFactory&lt;List&lt;ContribRest&gt;&gt; ofContrib4; private Provider&lt;List&lt;ContribRest&gt;&gt; pvdContrib2; private Provider&lt;List&lt;ContribRest&gt;&gt; pvdContrib4; @Inject public void setContrib2(@Contribute(&quot;rest&quot;) List&lt;ContribRest&gt; contrib2) { this.contrib2 = contrib2; } @Autowired(required = false) public void setContrib4(@Contribute(&quot;other&quot;) List&lt;ContribRest&gt; contrib4) { this.contrib4 = contrib4; } @Inject public void setOfContrib2(@Contribute(&quot;rest&quot;) ObjectFactory&lt;List&lt;ContribRest&gt;&gt; ofContrib2) { this.ofContrib2 = ofContrib2; } @Autowired(required = false) public void setOfContrib4(@Contribute(&quot;other&quot;) ObjectFactory&lt;List&lt;ContribRest&gt;&gt; ofContrib4) { this.ofContrib4 = ofContrib4; } @Inject public void setPvdContrib2(@Contribute(&quot;rest&quot;) Provider&lt;List&lt;ContribRest&gt;&gt; pvdContrib2) { this.pvdContrib2 = pvdContrib2; } @Autowired(required = false) public void setPvdContrib4(@Contribute(&quot;other&quot;) Provider&lt;List&lt;ContribRest&gt;&gt; pvdContrib4) { this.pvdContrib4 = pvdContrib4; }"><pre class="notranslate"><code class="notranslate">@Named("applicationRest") public class ApplicationRest extends Application { private List&lt;ContribRest&gt; contrib2; private List&lt;ContribRest&gt; contrib4; private ObjectFactory&lt;List&lt;ContribRest&gt;&gt; ofContrib2; private ObjectFactory&lt;List&lt;ContribRest&gt;&gt; ofContrib4; private Provider&lt;List&lt;ContribRest&gt;&gt; pvdContrib2; private Provider&lt;List&lt;ContribRest&gt;&gt; pvdContrib4; @Inject public void setContrib2(@Contribute("rest") List&lt;ContribRest&gt; contrib2) { this.contrib2 = contrib2; } @Autowired(required = false) public void setContrib4(@Contribute("other") List&lt;ContribRest&gt; contrib4) { this.contrib4 = contrib4; } @Inject public void setOfContrib2(@Contribute("rest") ObjectFactory&lt;List&lt;ContribRest&gt;&gt; ofContrib2) { this.ofContrib2 = ofContrib2; } @Autowired(required = false) public void setOfContrib4(@Contribute("other") ObjectFactory&lt;List&lt;ContribRest&gt;&gt; ofContrib4) { this.ofContrib4 = ofContrib4; } @Inject public void setPvdContrib2(@Contribute("rest") Provider&lt;List&lt;ContribRest&gt;&gt; pvdContrib2) { this.pvdContrib2 = pvdContrib2; } @Autowired(required = false) public void setPvdContrib4(@Contribute("other") Provider&lt;List&lt;ContribRest&gt;&gt; pvdContrib4) { this.pvdContrib4 = pvdContrib4; } </code></pre></div> <p dir="auto">Injection finish with that result:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO contrib2=[Contrib2A@51a19458] - INFO contrib4=null ERROR ofContrib2=No unique bean of type [java.lang.Object] is defined: expected single matching bean but found 2: [bean-contrib2b, bean-contrib2a] INFO ofContrib4=null ERROR pvdContrib2=No unique bean of type [java.lang.Object] is defined: expected single matching bean but found 2: [bean-contrib2b, bean-contrib2a] - INFO pvdContrib4=null "><pre class="notranslate"><code class="notranslate">INFO contrib2=[Contrib2A@51a19458] - INFO contrib4=null ERROR ofContrib2=No unique bean of type [java.lang.Object] is defined: expected single matching bean but found 2: [bean-contrib2b, bean-contrib2a] INFO ofContrib4=null ERROR pvdContrib2=No unique bean of type [java.lang.Object] is defined: expected single matching bean but found 2: [bean-contrib2b, bean-contrib2a] - INFO pvdContrib4=null </code></pre></div> <p dir="auto">Injecting list looks correct - classes with other contribution and type are filtered and only Contrib2A is injected.</p> <p dir="auto">Unfortunately injecting Provider or ObjectFactory tries to inject List a not all beans for this list and it looks as a bug.</p> <p dir="auto">Maybe you can provide alternative way to how can I provide this list with all instances contributed (scanned) without manually defining list in XML.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.1 GA</p> <p dir="auto"><strong>Reference URL:</strong> <a href="http://forum.springsource.org/showthread.php?122488-Injecting-autowiring-collection-provider-to-implement-contribution" rel="nofollow">http://forum.springsource.org/showthread.php?122488-Injecting-autowiring-collection-provider-to-implement-contribution</a></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="398116707" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13669" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13669/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13669">#13669</a> javax.Provider Spring support doesn't work for collections (<em><strong>"duplicates"</strong></em>)</li> </ul>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <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="2.4.2.0 - v2.4.3.0-0.5.rc2"><pre class="notranslate"><code class="notranslate">2.4.2.0 - v2.4.3.0-0.5.rc2 </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">wrong error generated if import_tasks found in include_tasks file</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- include_tasks: &quot;os/{{ ansible_distribution }}/main.yml&quot; ... inside ... - import_tasks: &quot;firewall.yml&quot; "><pre class="notranslate">- <span class="pl-ent">include_tasks</span>: <span class="pl-s"><span class="pl-pds">"</span>os/{{ ansible_distribution }}/main.yml<span class="pl-pds">"</span></span> ... <span class="pl-s">inside</span> ... - <span class="pl-ent">import_tasks</span>: <span class="pl-s"><span class="pl-pds">"</span>firewall.yml<span class="pl-pds">"</span></span> </pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">import error/lint error/any error</p> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [node1]: FAILED! =&gt; { &quot;reason&quot;: &quot;'ansible_distribution' is undefined&quot; }"><pre class="notranslate"><code class="notranslate">fatal: [node1]: FAILED! =&gt; { "reason": "'ansible_distribution' is undefined" } </code></pre></div>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">include_tasks</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609]"><pre class="notranslate"><code class="notranslate">ansible 2.4.2.0 config file = /etc/ansible/ansible.cfg configured module search path = [u'/usr/share/ansible/plugins/modules'] ansible python module location = /usr/lib/python2.7/dist-packages/ansible executable location = /usr/bin/ansible python version = 2.7.12 (default, Nov 20 2017, 18:23:56) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ANSIBLE_PIPELINING(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = True ANSIBLE_SSH_ARGS(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=300s -o UserKnownHostsFile=./ssh_known_hosts DEFAULT_BECOME(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = True DEFAULT_LOG_PATH(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = /mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.log DEFAULT_REMOTE_USER(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = automation DEFAULT_ROLES_PATH(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = [u'/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/roles']"><pre class="notranslate"><code class="notranslate">ANSIBLE_PIPELINING(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = True ANSIBLE_SSH_ARGS(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = -o ControlMaster=auto -o ControlPersist=300s -o UserKnownHostsFile=./ssh_known_hosts DEFAULT_BECOME(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = True DEFAULT_LOG_PATH(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = /mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.log DEFAULT_REMOTE_USER(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = automation DEFAULT_ROLES_PATH(/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/ansible.cfg) = [u'/mnt/speedyg/johnn/Documents/EclipseWS/cloud-network/roles'] </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Management node: Ubuntu 16.04<br> Remote node: Debian 9</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Untrue/incorrect error message shown when a dynamically-determined dynamic include contains an embedded reference to an unknown file.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">test.yml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- hosts: all tasks: - debug: var=ansible_system - include_tasks: '{{ ansible_system }}.yml'"><pre class="notranslate">- <span class="pl-ent">hosts</span>: <span class="pl-s">all</span> <span class="pl-ent">tasks</span>: - <span class="pl-ent">debug</span>: <span class="pl-s">var=ansible_system</span> - <span class="pl-ent">include_tasks</span>: <span class="pl-s"><span class="pl-pds">'</span>{{ ansible_system }}.yml<span class="pl-pds">'</span></span></pre></div> <p dir="auto">Linux.yml:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="- import_tasks: a_file_that_does_not_exist.yml"><pre class="notranslate">- <span class="pl-ent">import_tasks</span>: <span class="pl-s">a_file_that_does_not_exist.yml</span></pre></div> <p dir="auto">Execute command:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible-playbook -l &quot;pick_an_inventory_host&quot; test.yml"><pre class="notranslate"><code class="notranslate">ansible-playbook -l "pick_an_inventory_host" test.yml </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">The debug task should execute as expected, showing the remote system's platform (expected in this case to be "Linux").</p> <p dir="auto">For the "include_tasks" task, it should result in an error along the lines of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FAILED! =&gt; {&quot;reason&quot;: &quot;Unable to retrieve file contents\nCould not find or access '...'&quot;}"><pre class="notranslate"><code class="notranslate">FAILED! =&gt; {"reason": "Unable to retrieve file contents\nCould not find or access '...'"} </code></pre></div> <p dir="auto">(which is what you get with a straight-up static include of a missing file)</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Debug task executes as expected (which also proves that <code class="notranslate">ansible_system</code> is defined).</p> <p dir="auto">The "import_tasks" task fails, as expected, but does so with an entirely incorrect error message:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FAILED! =&gt; {&quot;reason&quot;: &quot;'ansible_system' is undefined&quot;}"><pre class="notranslate"><code class="notranslate">FAILED! =&gt; {"reason": "'ansible_system' is undefined"} </code></pre></div> <p dir="auto">Ansible thus <strong>hides</strong> the actual fault in this case behind a completely false error.</p>
1
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://github.com/celery/celery/discussions">discussions forum</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="software -&gt; celery:5.2.5 (dawn-chorus) kombu:5.2.4 py:3.10.2 billiard:3.6.4.0 py-amqp:5.1.0 platform -&gt; system:Darwin arch:64bit kernel version:21.4.0 imp:CPython loader -&gt; celery.loaders.default.Loader settings -&gt; transport:amqp results:disabled deprecated_settings: None"><pre class="notranslate"><code class="notranslate">software -&gt; celery:5.2.5 (dawn-chorus) kombu:5.2.4 py:3.10.2 billiard:3.6.4.0 py-amqp:5.1.0 platform -&gt; system:Darwin arch:64bit kernel version:21.4.0 imp:CPython loader -&gt; celery.loaders.default.Loader settings -&gt; transport:amqp results:disabled deprecated_settings: None </code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <ul dir="auto"> <li><strong>Minimal Python Version</strong>: N/A or Unknown</li> <li><strong>Minimal Celery Version</strong>: N/A or Unknown</li> <li><strong>Minimal Kombu Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Version</strong>: N/A or Unknown</li> <li><strong>Minimal OS and/or Kernel Version</strong>: N/A or Unknown</li> <li><strong>Minimal Broker Client Version</strong>: N/A or Unknown</li> <li><strong>Minimal Result Backend Client Version</strong>: N/A or Unknown</li> </ul> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ poetry export --without-hashes amqp==5.1.0; python_version &gt;= &quot;3.7&quot; asgiref==3.5.0; python_version &gt;= &quot;3.7&quot; and python_version &lt; &quot;4.0&quot; and python_full_version &gt;= &quot;3.7.0&quot; async-timeout==4.0.2; python_version &gt;= &quot;3.7&quot; beautifulsoup4==4.10.0; python_full_version &gt; &quot;3.0.0&quot; billiard==3.6.4.0; python_version &gt;= &quot;3.7&quot; boto3==1.21.32; python_version &gt;= &quot;3.6&quot; botocore==1.24.32; python_version &gt;= &quot;3.6&quot; celery==5.2.5; python_version &gt;= &quot;3.7&quot; certifi==2021.10.8; python_version &gt;= &quot;2.7&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_full_version &gt;= &quot;3.6.0&quot; charset-normalizer==2.0.12; python_full_version &gt;= &quot;3.6.0&quot; and python_version &gt;= &quot;3&quot; click-didyoumean==0.3.0; python_full_version &gt;= &quot;3.6.2&quot; and python_full_version &lt; &quot;4.0.0&quot; and python_version &gt;= &quot;3.7&quot; click-plugins==1.1.1; python_version &gt;= &quot;3.7&quot; click-repl==0.2.0; python_version &gt;= &quot;3.7&quot; click==8.1.2; python_full_version &gt;= &quot;3.6.2&quot; and python_full_version &lt; &quot;4.0.0&quot; and python_version &gt;= &quot;3.7&quot; colorama==0.4.4; python_version &gt;= &quot;3.7&quot; and python_full_version &lt; &quot;3.0.0&quot; and platform_system == &quot;Windows&quot; or platform_system == &quot;Windows&quot; and python_version &gt;= &quot;3.7&quot; and python_full_version &gt;= &quot;3.5.0&quot; css-class-names==0.0.1 cssutils==2.4.0; python_version &gt;= &quot;3.7&quot; deprecated==1.2.13; python_version &gt;= &quot;3.7&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_version &gt;= &quot;3.7&quot; and python_full_version &gt;= &quot;3.4.0&quot; dj-database-url==0.5.0 django-allianceutils==2.2.0; python_version &gt;= &quot;3.6&quot; django-celery-results==2.3.0 django-cors-headers==3.11.0; python_version &gt;= &quot;3.7&quot; django-csvpermissions==0.2.0; python_version &gt;= &quot;3.6&quot; and python_version &lt; &quot;4.0&quot; django-extensions==3.1.5; python_version &gt;= &quot;3.6&quot; django-extra-fields==3.0.2; python_version &gt;= &quot;3.5&quot; django-filter==21.1; python_version &gt;= &quot;3.6&quot; django-hijack==3.2.0 django-inlinecss==0.3.0 django-pgconnection==1.0.2; python_full_version &gt;= &quot;3.7.0&quot; and python_version &lt; &quot;4&quot; django-pghistory==1.4.0; python_full_version &gt;= &quot;3.7.0&quot; and python_version &lt; &quot;4&quot; django-pgtrigger==2.4.1; python_full_version &gt;= &quot;3.7.0&quot; and python_version &lt; &quot;4&quot; django-phonenumber-field==6.1.0; python_version &gt;= &quot;3.7&quot; django-safedelete==1.1.2 django-storages==1.12.3; python_version &gt;= &quot;3.5&quot; django-stronghold==0.4.0 django==3.2.12; python_version &gt;= &quot;3.6&quot; djangorestframework-api-key==2.2.0; python_version &gt;= &quot;3.6&quot; djangorestframework==3.13.1; python_version &gt;= &quot;3.6&quot; escapejson==1.0 freezegun==1.2.1; python_version &gt;= &quot;3.6&quot; future==0.18.2; python_version &gt;= &quot;2.6&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_full_version &gt;= &quot;3.3.0&quot; gunicorn==20.1.0; python_version &gt;= &quot;3.5&quot; idna==3.3; python_version &gt;= &quot;3.5&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_full_version &gt;= &quot;3.6.0&quot; and python_version &gt;= &quot;3.5&quot; isort==5.10.1; python_full_version &gt;= &quot;3.6.1&quot; and python_version &lt; &quot;4.0&quot; isoweek==1.3.3 jmespath==1.0.0; python_version &gt;= &quot;3.7&quot; kombu==5.2.4; python_version &gt;= &quot;3.7&quot; oauthlib==3.2.0; python_version &gt;= &quot;3.6&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_full_version &gt;= &quot;3.4.0&quot; and python_version &gt;= &quot;3.6&quot; packaging==21.3; python_version &gt;= &quot;3.6&quot; phonenumbers==8.12.46; python_version &gt;= &quot;3.7&quot; pillow==9.1.0; python_version &gt;= &quot;3.7&quot; prompt-toolkit==3.0.28; python_full_version &gt;= &quot;3.6.2&quot; and python_version &gt;= &quot;3.7&quot; psycopg2==2.9.3; python_version &gt;= &quot;3.6&quot; pynliner==0.8.0 pyparsing==3.0.7; python_version &gt;= &quot;3.7&quot; python-dateutil==2.8.2; python_version &gt;= &quot;3.6&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_full_version &gt;= &quot;3.3.0&quot; and python_version &gt;= &quot;3.6&quot; python-dotenv==0.20.0; python_version &gt;= &quot;3.5&quot; pytz==2022.1 qrcode==7.3.1; python_version &gt;= &quot;3.6&quot; redis==4.2.1; python_version &gt;= &quot;3.7&quot; requests-oauthlib==1.3.1; (python_version &gt;= &quot;2.7&quot; and python_full_version &lt; &quot;3.0.0&quot;) or (python_full_version &gt;= &quot;3.4.0&quot;) requests==2.27.1; (python_version &gt;= &quot;2.7&quot; and python_full_version &lt; &quot;3.0.0&quot;) or (python_full_version &gt;= &quot;3.6.0&quot;) rules==3.3 s3transfer==0.5.2; python_version &gt;= &quot;3.6&quot; sentry-sdk==1.5.8 six==1.16.0; python_version &gt;= &quot;3.7&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_full_version &gt;= &quot;3.3.0&quot; and python_version &gt;= &quot;3.7&quot; soupsieve==2.3.1; python_version &gt;= &quot;3.6&quot; and python_full_version &gt; &quot;3.0.0&quot; sqlparse==0.4.2; python_version &gt;= &quot;3.7&quot; and python_version &lt; &quot;4.0&quot; and python_full_version &gt;= &quot;3.7.0&quot; urllib3==1.26.9; python_version &gt;= &quot;3.6&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_full_version &gt;= &quot;3.6.0&quot; and python_version &lt; &quot;4&quot; and python_version &gt;= &quot;3.6&quot; vine==5.0.0; python_version &gt;= &quot;3.7&quot; wcwidth==0.2.5; python_full_version &gt;= &quot;3.6.2&quot; and python_version &gt;= &quot;3.7&quot; werkzeug==2.0.3; python_version &gt;= &quot;3.6&quot; wrapt==1.14.0; python_version &gt;= &quot;3.7&quot; and python_full_version &lt; &quot;3.0.0&quot; or python_version &gt;= &quot;3.7&quot; and python_full_version &gt;= &quot;3.5.0&quot;"><pre class="notranslate"><code class="notranslate">$ poetry export --without-hashes amqp==5.1.0; python_version &gt;= "3.7" asgiref==3.5.0; python_version &gt;= "3.7" and python_version &lt; "4.0" and python_full_version &gt;= "3.7.0" async-timeout==4.0.2; python_version &gt;= "3.7" beautifulsoup4==4.10.0; python_full_version &gt; "3.0.0" billiard==3.6.4.0; python_version &gt;= "3.7" boto3==1.21.32; python_version &gt;= "3.6" botocore==1.24.32; python_version &gt;= "3.6" celery==5.2.5; python_version &gt;= "3.7" certifi==2021.10.8; python_version &gt;= "2.7" and python_full_version &lt; "3.0.0" or python_full_version &gt;= "3.6.0" charset-normalizer==2.0.12; python_full_version &gt;= "3.6.0" and python_version &gt;= "3" click-didyoumean==0.3.0; python_full_version &gt;= "3.6.2" and python_full_version &lt; "4.0.0" and python_version &gt;= "3.7" click-plugins==1.1.1; python_version &gt;= "3.7" click-repl==0.2.0; python_version &gt;= "3.7" click==8.1.2; python_full_version &gt;= "3.6.2" and python_full_version &lt; "4.0.0" and python_version &gt;= "3.7" colorama==0.4.4; python_version &gt;= "3.7" and python_full_version &lt; "3.0.0" and platform_system == "Windows" or platform_system == "Windows" and python_version &gt;= "3.7" and python_full_version &gt;= "3.5.0" css-class-names==0.0.1 cssutils==2.4.0; python_version &gt;= "3.7" deprecated==1.2.13; python_version &gt;= "3.7" and python_full_version &lt; "3.0.0" or python_version &gt;= "3.7" and python_full_version &gt;= "3.4.0" dj-database-url==0.5.0 django-allianceutils==2.2.0; python_version &gt;= "3.6" django-celery-results==2.3.0 django-cors-headers==3.11.0; python_version &gt;= "3.7" django-csvpermissions==0.2.0; python_version &gt;= "3.6" and python_version &lt; "4.0" django-extensions==3.1.5; python_version &gt;= "3.6" django-extra-fields==3.0.2; python_version &gt;= "3.5" django-filter==21.1; python_version &gt;= "3.6" django-hijack==3.2.0 django-inlinecss==0.3.0 django-pgconnection==1.0.2; python_full_version &gt;= "3.7.0" and python_version &lt; "4" django-pghistory==1.4.0; python_full_version &gt;= "3.7.0" and python_version &lt; "4" django-pgtrigger==2.4.1; python_full_version &gt;= "3.7.0" and python_version &lt; "4" django-phonenumber-field==6.1.0; python_version &gt;= "3.7" django-safedelete==1.1.2 django-storages==1.12.3; python_version &gt;= "3.5" django-stronghold==0.4.0 django==3.2.12; python_version &gt;= "3.6" djangorestframework-api-key==2.2.0; python_version &gt;= "3.6" djangorestframework==3.13.1; python_version &gt;= "3.6" escapejson==1.0 freezegun==1.2.1; python_version &gt;= "3.6" future==0.18.2; python_version &gt;= "2.6" and python_full_version &lt; "3.0.0" or python_full_version &gt;= "3.3.0" gunicorn==20.1.0; python_version &gt;= "3.5" idna==3.3; python_version &gt;= "3.5" and python_full_version &lt; "3.0.0" or python_full_version &gt;= "3.6.0" and python_version &gt;= "3.5" isort==5.10.1; python_full_version &gt;= "3.6.1" and python_version &lt; "4.0" isoweek==1.3.3 jmespath==1.0.0; python_version &gt;= "3.7" kombu==5.2.4; python_version &gt;= "3.7" oauthlib==3.2.0; python_version &gt;= "3.6" and python_full_version &lt; "3.0.0" or python_full_version &gt;= "3.4.0" and python_version &gt;= "3.6" packaging==21.3; python_version &gt;= "3.6" phonenumbers==8.12.46; python_version &gt;= "3.7" pillow==9.1.0; python_version &gt;= "3.7" prompt-toolkit==3.0.28; python_full_version &gt;= "3.6.2" and python_version &gt;= "3.7" psycopg2==2.9.3; python_version &gt;= "3.6" pynliner==0.8.0 pyparsing==3.0.7; python_version &gt;= "3.7" python-dateutil==2.8.2; python_version &gt;= "3.6" and python_full_version &lt; "3.0.0" or python_full_version &gt;= "3.3.0" and python_version &gt;= "3.6" python-dotenv==0.20.0; python_version &gt;= "3.5" pytz==2022.1 qrcode==7.3.1; python_version &gt;= "3.6" redis==4.2.1; python_version &gt;= "3.7" requests-oauthlib==1.3.1; (python_version &gt;= "2.7" and python_full_version &lt; "3.0.0") or (python_full_version &gt;= "3.4.0") requests==2.27.1; (python_version &gt;= "2.7" and python_full_version &lt; "3.0.0") or (python_full_version &gt;= "3.6.0") rules==3.3 s3transfer==0.5.2; python_version &gt;= "3.6" sentry-sdk==1.5.8 six==1.16.0; python_version &gt;= "3.7" and python_full_version &lt; "3.0.0" or python_full_version &gt;= "3.3.0" and python_version &gt;= "3.7" soupsieve==2.3.1; python_version &gt;= "3.6" and python_full_version &gt; "3.0.0" sqlparse==0.4.2; python_version &gt;= "3.7" and python_version &lt; "4.0" and python_full_version &gt;= "3.7.0" urllib3==1.26.9; python_version &gt;= "3.6" and python_full_version &lt; "3.0.0" or python_full_version &gt;= "3.6.0" and python_version &lt; "4" and python_version &gt;= "3.6" vine==5.0.0; python_version &gt;= "3.7" wcwidth==0.2.5; python_full_version &gt;= "3.6.2" and python_version &gt;= "3.7" werkzeug==2.0.3; python_version &gt;= "3.6" wrapt==1.14.0; python_version &gt;= "3.7" and python_full_version &lt; "3.0.0" or python_version &gt;= "3.7" and python_full_version &gt;= "3.5.0" </code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Hey folks,</p> <p dir="auto">I have a codebase that uses Celery 3.2.5 with Redis in combination with <code class="notranslate">django-celery-results</code> 2.3.0.</p> <p dir="auto">When I run some code with <code class="notranslate">apply_async()</code> I get the following exception:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/base.py&quot;, line 1250, in backend return self._local.backend AttributeError: '_thread._local' object has no attribute 'backend' During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/path/to/project/django-root/./manage.py&quot;, line 20, in &lt;module&gt; execute_from_command_line(sys.argv) File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/django/core/management/__init__.py&quot;, line 419, in execute_from_command_line utility.execute() File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/django/core/management/__init__.py&quot;, line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/django/core/management/base.py&quot;, line 354, in run_from_argv self.execute(*args, **cmd_options) File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/django/core/management/base.py&quot;, line 398, in execute output = self.handle(*args, **options) File &quot;/path/to/project/django-root/master_portal_app/management/commands/fetch_and_store_zoho_layout.py&quot;, line 15, in handle fetch_and_save_dependency_mapping().delay(layout_id=layout.id) File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/task.py&quot;, line 425, in delay return self.apply_async(args, kwargs) File &quot;/path/to/project/django-root/master_portal_app/celery.py&quot;, line 71, in apply_async return super().apply_async(*args, **kwargs) File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/task.py&quot;, line 575, in apply_async return app.send_task( File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/base.py&quot;, line 787, in send_task self.backend.on_task_call(P, task_id) File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/base.py&quot;, line 1252, in backend self._local.backend = new_backend = self._get_backend() File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/base.py&quot;, line 955, in _get_backend backend, url = backends.by_url( File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/backends.py&quot;, line 69, in by_url return by_name(backend, loader), url File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/backends.py&quot;, line 47, in by_name aliases.update(load_extension_class_names(extension_namespace)) File &quot;/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/utils/imports.py&quot;, line 146, in load_extension_class_names yield ep.name, ':'.join([ep.module_name, ep.attrs[0]]) AttributeError: 'EntryPoint' object has no attribute 'module_name'"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/base.py", line 1250, in backend return self._local.backend AttributeError: '_thread._local' object has no attribute 'backend' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/path/to/project/django-root/./manage.py", line 20, in &lt;module&gt; execute_from_command_line(sys.argv) File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line utility.execute() File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/django/core/management/__init__.py", line 413, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/django/core/management/base.py", line 354, in run_from_argv self.execute(*args, **cmd_options) File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/django/core/management/base.py", line 398, in execute output = self.handle(*args, **options) File "/path/to/project/django-root/master_portal_app/management/commands/fetch_and_store_zoho_layout.py", line 15, in handle fetch_and_save_dependency_mapping().delay(layout_id=layout.id) File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/task.py", line 425, in delay return self.apply_async(args, kwargs) File "/path/to/project/django-root/master_portal_app/celery.py", line 71, in apply_async return super().apply_async(*args, **kwargs) File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/task.py", line 575, in apply_async return app.send_task( File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/base.py", line 787, in send_task self.backend.on_task_call(P, task_id) File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/base.py", line 1252, in backend self._local.backend = new_backend = self._get_backend() File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/base.py", line 955, in _get_backend backend, url = backends.by_url( File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/backends.py", line 69, in by_url return by_name(backend, loader), url File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/app/backends.py", line 47, in by_name aliases.update(load_extension_class_names(extension_namespace)) File "/path/to/project/.direnv/python-3.10.2/lib/python3.10/site-packages/celery/utils/imports.py", line 146, in load_extension_class_names yield ep.name, ':'.join([ep.module_name, ep.attrs[0]]) AttributeError: 'EntryPoint' object has no attribute 'module_name' </code></pre></div> <p dir="auto">Looking at the <code class="notranslate">importlib</code> docs, there doesn't appear to be attributes <code class="notranslate">module_name</code> or <code class="notranslate">attrs</code> on <code class="notranslate">EntryPoint</code>: <a href="https://docs.python.org/3.8/library/importlib.metadata.html#entry-points" rel="nofollow">https://docs.python.org/3.8/library/importlib.metadata.html#entry-points</a> (also confirmed with <code class="notranslate">dir(ep)</code>) ? The correct attribute seems to be <code class="notranslate">module</code> but unsure what the correct attribute would be for <code class="notranslate">attrs</code> as <code class="notranslate">attr</code> returned a string. <g-emoji class="g-emoji" alias="shrug" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f937.png">🤷</g-emoji></p> <p dir="auto">What is/would this generator have been referring to? <g-emoji class="g-emoji" alias="thinking" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f914.png">🤔</g-emoji></p> <h1 dir="auto">Actual Behavior</h1>
<h1 dir="auto">Checklist</h1> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> This has already been asked to the <a href="https://groups.google.com/forum/#!forum/celery-users" rel="nofollow">discussion group</a> first.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have read the relevant section in the<br> <a href="http://docs.celeryproject.org/en/latest/contributing.html#other-bugs" rel="nofollow">contribution guide</a><br> on reporting bugs.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/issues?q=is%3Aissue+label%3A%22Issue+Type%3A+Bug+Report%22+-label%3A%22Category%3A+Documentation%22">issues list</a><br> for similar or identical bug reports.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/pulls?q=is%3Apr+label%3A%22PR+Type%3A+Bugfix%22+-label%3A%22Category%3A+Documentation%22">pull requests list</a><br> for existing proposed fixes.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have checked the <a href="https://github.com/celery/celery/commits/master">commit log</a><br> to find out if the bug was already fixed in the master branch.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all related issues and possible duplicate issues<br> in this issue (If there are none, check this box anyway).</li> </ul> <h2 dir="auto">Mandatory Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the output of <code class="notranslate">celery -A proj report</code> in the issue.<br> (if you are not able to do this, then at least specify the Celery<br> version affected).</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have verified that the issue exists against the <code class="notranslate">master</code> branch of Celery.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included the contents of <code class="notranslate">pip freeze</code> in the issue.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have included all the versions of all the external dependencies required<br> to reproduce this bug.</li> </ul> <h2 dir="auto">Optional Debugging Information</h2> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one Python version<br> and/or implementation.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one message broker and/or<br> result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one version of the message<br> broker and/or result backend.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one operating system.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue on more than one workers pool.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue with autoscaling, retries,<br> ETA/Countdown &amp; rate limits disabled.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I have tried reproducing the issue after downgrading<br> and/or upgrading Celery and its dependencies.</li> </ul> <h2 dir="auto">Related Issues and Possible Duplicates</h2> <h4 dir="auto">Related Issues</h4> <ul dir="auto"> <li>None</li> </ul> <h4 dir="auto">Possible Duplicates</h4> <ul dir="auto"> <li>None</li> </ul> <h2 dir="auto">Environment &amp; Settings</h2> <p dir="auto"><strong>Celery version</strong>:</p> <details> <summary><b><code class="notranslate">celery report</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Steps to Reproduce</h1> <h2 dir="auto">Required Dependencies</h2> <p dir="auto">Minimal Python Version: python 3.5<br> Minimal Celery Version: celery 4.3<br> Minimal Kombu Version: N/A or Unknown<br> Minimal Broker Version: redis 6.0.5<br> Minimal Result Backend Version: redis 6.0.5<br> Minimal OS and/or Kernel Version: osx 10.15.5, ubuntu 20.04<br> Minimal Broker Client Version: redis==3.5.3<br> Minimal Result Backend Client Version: redis==3.5.3</p> <h3 dir="auto">Python Packages</h3> <details> <summary><b><code class="notranslate">pip freeze</code> Output:</b></summary> <p dir="auto"> </p><div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"><code class="notranslate"></code></pre></div> <p dir="auto"></p> </details> <h3 dir="auto">Other Dependencies</h3> <details> <p dir="auto"> N/A </p> </details> <h2 dir="auto">Minimally Reproducible Test Case</h2> <details> <p dir="auto"> </p><div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=""><pre class="notranslate"></pre></div> <p dir="auto"></p> </details> <h1 dir="auto">Expected Behavior</h1> <p dir="auto">Results should be stored when <code class="notranslate">CELERY_RESULT_BACKEND</code> config setting is specified.</p> <h1 dir="auto">Actual Behavior</h1> <p dir="auto"><code class="notranslate">CELERY_RESULT_BACKEND</code> is ignored. <code class="notranslate">result_backend</code> works as expected.</p>
0
<p dir="auto">When using <code class="notranslate">multiple</code> attribute only the first file is uploaded. The rest is simply ignored. Is this on purpose by design?</p>
<p dir="auto">The locale refactoring lead to a regression in the Security/Router integration. It's now again possible to detect the routes for secured parts of the website.</p>
0
<p dir="auto">I want to test the performance of AlexNet, ZF Net, GoogLeNet, VGGNet on my own dataset. But I cannot find the code for these models in Keras, then are there any codes for AlexNet, ZF Net, GoogLeNet, VGGNet in Keras? How can I find them? Thank you so much!</p>
<p dir="auto">Please go to TF Forum for help and support:</p> <p dir="auto"><a href="https://discuss.tensorflow.org/tag/keras" rel="nofollow">https://discuss.tensorflow.org/tag/keras</a></p> <p dir="auto">If you open a GitHub issue, here is our policy:</p> <p dir="auto">It must be a bug, a feature request, or a significant problem with the documentation (for small docs fixes please send a PR instead).<br> The form below must be filled out.</p> <p dir="auto"><strong>Here's why we have that policy:</strong>.</p> <p dir="auto">Keras developers respond to issues. We want to focus on work that benefits the whole community, e.g., fixing bugs and adding features. Support only helps individuals. GitHub also notifies thousands of people when issues are filed. We want them to see you communicating an interesting problem, rather than being redirected to Stack Overflow.</p> <p dir="auto"><strong>System information</strong>.</p> <ul dir="auto"> <li>Have I written custom code (as opposed to using a stock example script provided in Keras): Yes</li> <li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Google Colab</li> <li>TensorFlow installed from (source or binary):</li> <li>TensorFlow version (use command below): 2.7.0</li> <li>Python version: 3.7.12</li> <li>Bazel version (if compiling from source): N/A</li> <li>GPU model and memory: N/A</li> <li>Exact command to reproduce: N/A</li> </ul> <p dir="auto">You can collect some of this information using our environment capture script:</p> <p dir="auto"><a href="https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh">https://github.com/tensorflow/tensorflow/tree/master/tools/tf_env_collect.sh</a></p> <p dir="auto">You can obtain the TensorFlow version with:<br> python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"</p> <p dir="auto"><strong>Describe the problem</strong>.</p> <p dir="auto">Describe the problem clearly here. Be sure to convey here why it's a bug in Keras or why the requested feature is needed.</p> <p dir="auto"><strong>Describe the current behavior</strong>.</p> <p dir="auto">Two instantiations of tf.keras.initializers.RandomNormal(..) objects with the same seed does not produce the same sequence.</p> <p dir="auto"><strong>Describe the expected behavior</strong>.</p> <p dir="auto">From the documentation <a href="https://www.tensorflow.org/api_docs/python/tf/keras/initializers/RandomNormal" rel="nofollow">here</a>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tf.keras.initializers.RandomNormal( mean=0.0, stddev=0.05, seed=None )"><pre class="notranslate"><code class="notranslate"> tf.keras.initializers.RandomNormal( mean=0.0, stddev=0.05, seed=None ) </code></pre></div> <p dir="auto">Regarding the seed parameter, the documentation states:</p> <blockquote> <p dir="auto">... Note that seeded initializer will not produce same random values across multiple calls, but multiple initializers will produce same sequence when constructed with same seed value.</p> </blockquote> <p dir="auto">I would expect that if I pass the same seed as a parameter into the two instantiations of initializers.RandomNormal, temp and temp2, both should give the same weights on the first call, which is what I'm observing in Tensorflow 2.3.0, 2.5.0, and 2.6.0 (<a href="https://colab.research.google.com/drive/10KrXpJtxiaAmnI2vKa61hDNheqjiJyu9?usp=sharing" rel="nofollow">example</a>), but not 2.7.0.</p> <p dir="auto"><strong><a href="https://github.com/keras-team/keras/blob/master/CONTRIBUTING.md">Contributing</a></strong>.</p> <ul dir="auto"> <li>Do you want to contribute a PR? (yes/no): No</li> <li>If yes, please read <a href="https://github.com/keras-team/keras/blob/master/CONTRIBUTING.md">this page</a> for instructions</li> <li>Briefly describe your candidate solution(if contributing):</li> </ul> <p dir="auto"><strong>Standalone code to reproduce the issue</strong>.</p> <p dir="auto">Provide a reproducible test case that is the bare minimum necessary to generate<br> the problem. If possible, please share a link to Colab/Jupyter/any notebook.</p> <p dir="auto">Using tensorflow version 2.7.0:<br> <a href="https://colab.research.google.com/drive/1paNe8kBRzwkrZHBi7QF0yhEX8pXO0f1w?usp=sharing" rel="nofollow">https://colab.research.google.com/drive/1paNe8kBRzwkrZHBi7QF0yhEX8pXO0f1w?usp=sharing</a></p> <p dir="auto">However, using tensorflow 2.6.0, this issue does not occur (note one has to restart the notebook after the pip install in the first cell before running the second cell):<br> <a href="https://colab.research.google.com/drive/10KrXpJtxiaAmnI2vKa61hDNheqjiJyu9?usp=sharing" rel="nofollow">https://colab.research.google.com/drive/10KrXpJtxiaAmnI2vKa61hDNheqjiJyu9?usp=sharing</a></p> <p dir="auto"><strong>Source code / logs</strong>.</p> <p dir="auto">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. Try to provide a reproducible test case that is the bare minimum necessary to generate the problem.</p>
0
<p dir="auto">style element created but not able to finish task</p>
<p dir="auto">This will be the central issue for tracking this problem. So far it appears to be effecting tests that look for the <code class="notranslate">style</code> element or that test for specific style elements on <code class="notranslate">body</code>. Please let us know if you see cases that break from this pattern.</p>
1
<h3 dir="auto">System Info</h3> <h3 dir="auto">System Info</h3> <p dir="auto">I'm running into an issue where I'm not able to load a 4-bit or 8-bit quantized version of Falcon or LLaMa models. This was working a couple of weeks ago. This is running on Colab. I'm wondering if anyone knows of a fix, or why this is no longer working when it was 2-3 weeks ago around June 8th.</p> <ul dir="auto"> <li><code class="notranslate">transformers</code> version: 4.31.0.dev0</li> <li>Platform: Linux-5.15.107+-x86_64-with-glibc2.31</li> <li>Python version: 3.10.12</li> <li>Huggingface_hub version: 0.15.1</li> <li>Safetensors version: 0.3.1</li> <li>PyTorch version (GPU?): 2.0.1+cu118 (True)</li> <li>Tensorflow version (GPU?): 2.12.0 (True)</li> <li>Flax version (CPU?/GPU?/TPU?): 0.6.11 (gpu)</li> <li>Jax version: 0.4.10</li> <li>JaxLib version: 0.4.10</li> </ul> <h3 dir="auto">Who can help?</h3> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/ArthurZucker/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/ArthurZucker">@ArthurZucker</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/younesbelkada/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/younesbelkada">@younesbelkada</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/sgugger/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/sgugger">@sgugger</a></p> <h3 dir="auto">Information</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> The official example scripts</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own modified scripts</li> </ul> <h3 dir="auto">Tasks</h3> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> An officially supported task in the <code class="notranslate">examples</code> folder (such as GLUE/SQuAD, ...)</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> My own task or dataset (give details below)</li> </ul> <h3 dir="auto">Reproduction</h3> <p dir="auto">Running in Colab on an A100 in Colab PRro</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" !pip install git+https://www.github.com/huggingface/transformers !pip install git+https://github.com/huggingface/accelerate !pip install bitsandbytes !pip install einops from transformers import AutoModelForCausalLM, AutoConfig, AutoTokenizer import torch model_path=&quot;tiiuae/falcon-40b-instruct&quot; config = AutoConfig.from_pretrained(model_path, trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, load_in_4bit=True, device_map=&quot;auto&quot;) tokenizer = AutoTokenizer.from_pretrained(&quot;tiiuae/falcon-40b-instruct&quot;) input_text = &quot;Describe the solar system.&quot; input_ids = tokenizer(input_text, return_tensors=&quot;pt&quot;).input_ids.to(&quot;cuda&quot;) outputs = model.generate(input_ids, max_length=100) print(tokenizer.decode(outputs[0])) "><pre class="notranslate"><code class="notranslate"> !pip install git+https://www.github.com/huggingface/transformers !pip install git+https://github.com/huggingface/accelerate !pip install bitsandbytes !pip install einops from transformers import AutoModelForCausalLM, AutoConfig, AutoTokenizer import torch model_path="tiiuae/falcon-40b-instruct" config = AutoConfig.from_pretrained(model_path, trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, load_in_4bit=True, device_map="auto") tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-40b-instruct") input_text = "Describe the solar system." input_ids = tokenizer(input_text, return_tensors="pt").input_ids.to("cuda") outputs = model.generate(input_ids, max_length=100) print(tokenizer.decode(outputs[0])) </code></pre></div> <p dir="auto">Cell output:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Collecting git+https://www.github.com/huggingface/transformers Cloning https://www.github.com/huggingface/transformers to /tmp/pip-req-build-6pyatvel Running command git clone --filter=blob:none --quiet https://www.github.com/huggingface/transformers /tmp/pip-req-build-6pyatvel warning: redirecting to https://github.com/huggingface/transformers.git/ Resolved https://www.github.com/huggingface/transformers to commit e84bf1f734f87aa2bedc41b9b9933d00fc6add98 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (3.12.2) Collecting huggingface-hub&lt;1.0,&gt;=0.14.1 (from transformers==4.31.0.dev0) Downloading huggingface_hub-0.15.1-py3-none-any.whl (236 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 236.8/236.8 kB 11.6 MB/s eta 0:00:00 Requirement already satisfied: numpy&gt;=1.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (1.22.4) Requirement already satisfied: packaging&gt;=20.0 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (23.1) Requirement already satisfied: pyyaml&gt;=5.1 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (6.0) Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (2022.10.31) Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (2.27.1) Collecting tokenizers!=0.11.3,&lt;0.14,&gt;=0.11.1 (from transformers==4.31.0.dev0) Downloading tokenizers-0.13.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.8/7.8 MB 114.2 MB/s eta 0:00:00 Collecting safetensors&gt;=0.3.1 (from transformers==4.31.0.dev0) Downloading safetensors-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 79.9 MB/s eta 0:00:00 Requirement already satisfied: tqdm&gt;=4.27 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (4.65.0) Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from huggingface-hub&lt;1.0,&gt;=0.14.1-&gt;transformers==4.31.0.dev0) (2023.6.0) Requirement already satisfied: typing-extensions&gt;=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub&lt;1.0,&gt;=0.14.1-&gt;transformers==4.31.0.dev0) (4.6.3) Requirement already satisfied: urllib3&lt;1.27,&gt;=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests-&gt;transformers==4.31.0.dev0) (1.26.16) Requirement already satisfied: certifi&gt;=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests-&gt;transformers==4.31.0.dev0) (2023.5.7) Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests-&gt;transformers==4.31.0.dev0) (2.0.12) Requirement already satisfied: idna&lt;4,&gt;=2.5 in /usr/local/lib/python3.10/dist-packages (from requests-&gt;transformers==4.31.0.dev0) (3.4) Building wheels for collected packages: transformers Building wheel for transformers (pyproject.toml) ... done Created wheel for transformers: filename=transformers-4.31.0.dev0-py3-none-any.whl size=7228417 sha256=5867afa880111a40f7b630e51d9f1709ec1131236a31c2c7fb5f97179e3d1405 Stored in directory: /tmp/pip-ephem-wheel-cache-t06u3u6x/wheels/c1/ac/11/e69d454307e735e14f4f95e575c8be27fd99835ec36f504c13 Successfully built transformers Installing collected packages: tokenizers, safetensors, huggingface-hub, transformers Successfully installed huggingface-hub-0.15.1 safetensors-0.3.1 tokenizers-0.13.3 transformers-4.31.0.dev0 Collecting git+https://github.com/huggingface/accelerate Cloning https://github.com/huggingface/accelerate to /tmp/pip-req-build-76ziff6x Running command git clone --filter=blob:none --quiet https://github.com/huggingface/accelerate /tmp/pip-req-build-76ziff6x Resolved https://github.com/huggingface/accelerate to commit d141b4ce794227450a105b7281611c7980e5b3d6 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy&gt;=1.17 in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (1.22.4) Requirement already satisfied: packaging&gt;=20.0 in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (23.1) Requirement already satisfied: psutil in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (5.9.5) Requirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (6.0) Requirement already satisfied: torch&gt;=1.6.0 in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (2.0.1+cu118) Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (3.12.2) Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (4.6.3) Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (1.11.1) Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (3.1) Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (3.1.2) Requirement already satisfied: triton==2.0.0 in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (2.0.0) Requirement already satisfied: cmake in /usr/local/lib/python3.10/dist-packages (from triton==2.0.0-&gt;torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (3.25.2) Requirement already satisfied: lit in /usr/local/lib/python3.10/dist-packages (from triton==2.0.0-&gt;torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (16.0.6) Requirement already satisfied: MarkupSafe&gt;=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2-&gt;torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (2.1.3) Requirement already satisfied: mpmath&gt;=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy-&gt;torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (1.3.0) Building wheels for collected packages: accelerate Building wheel for accelerate (pyproject.toml) ... done Created wheel for accelerate: filename=accelerate-0.21.0.dev0-py3-none-any.whl size=234648 sha256=71b98a6d4b1111cc9ca22265f6699cd552325e5f71c83daebe696afd957497ee Stored in directory: /tmp/pip-ephem-wheel-cache-atmtszgr/wheels/f6/c7/9d/1b8a5ca8353d9307733bc719107acb67acdc95063bba749f26 Successfully built accelerate Installing collected packages: accelerate Successfully installed accelerate-0.21.0.dev0 Collecting bitsandbytes Downloading bitsandbytes-0.39.1-py3-none-any.whl (97.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.1/97.1 MB 18.8 MB/s eta 0:00:00 Installing collected packages: bitsandbytes Successfully installed bitsandbytes-0.39.1 Collecting einops Downloading einops-0.6.1-py3-none-any.whl (42 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.2/42.2 kB 3.8 MB/s eta 0:00:00 Installing collected packages: einops Successfully installed einops-0.6.1 Downloading (…)lve/main/config.json: 100% 658/658 [00:00&lt;00:00, 51.8kB/s] Downloading (…)/configuration_RW.py: 100% 2.51k/2.51k [00:00&lt;00:00, 227kB/s] A new version of the following files was downloaded from https://huggingface.co/tiiuae/falcon-40b-instruct: - configuration_RW.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. Downloading (…)main/modelling_RW.py: 100% 47.1k/47.1k [00:00&lt;00:00, 3.76MB/s] A new version of the following files was downloaded from https://huggingface.co/tiiuae/falcon-40b-instruct: - modelling_RW.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. Downloading (…)model.bin.index.json: 100% 39.3k/39.3k [00:00&lt;00:00, 3.46MB/s] Downloading shards: 100% 9/9 [04:40&lt;00:00, 29.33s/it] Downloading (…)l-00001-of-00009.bin: 100% 9.50G/9.50G [00:37&lt;00:00, 274MB/s] Downloading (…)l-00002-of-00009.bin: 100% 9.51G/9.51G [00:33&lt;00:00, 340MB/s] Downloading (…)l-00003-of-00009.bin: 100% 9.51G/9.51G [00:28&lt;00:00, 320MB/s] Downloading (…)l-00004-of-00009.bin: 100% 9.51G/9.51G [00:33&lt;00:00, 317MB/s] Downloading (…)l-00005-of-00009.bin: 100% 9.51G/9.51G [00:27&lt;00:00, 210MB/s] Downloading (…)l-00006-of-00009.bin: 100% 9.51G/9.51G [00:34&lt;00:00, 180MB/s] Downloading (…)l-00007-of-00009.bin: 100% 9.51G/9.51G [00:27&lt;00:00, 307MB/s] Downloading (…)l-00008-of-00009.bin: 100% 9.51G/9.51G [00:27&lt;00:00, 504MB/s] Downloading (…)l-00009-of-00009.bin: 100% 7.58G/7.58G [00:27&lt;00:00, 315MB/s] ===================================BUG REPORT=================================== Welcome to bitsandbytes. For bug reports, please run python -m bitsandbytes and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues ================================================================================ bin /usr/local/lib/python3.10/dist-packages/bitsandbytes/libbitsandbytes_cuda118.so CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so CUDA SETUP: Highest compute capability among GPUs detected: 8.0 CUDA SETUP: Detected CUDA version 118 CUDA SETUP: Loading binary /usr/local/lib/python3.10/dist-packages/bitsandbytes/libbitsandbytes_cuda118.so... /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: /usr/lib64-nvidia did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths... warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('/sys/fs/cgroup/memory.events /var/colab/cgroup/jupyter-children/memory.events')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('//172.28.0.1'), PosixPath('8013'), PosixPath('http')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('//colab.research.google.com/tun/m/cc48301118ce562b961b3c22d803539adc1e0c19/gpu-a100-s-b20acq94qsrp --tunnel_background_save_delay=10s --tunnel_periodic_background_save_frequency=30m0s --enable_output_coalescing=true --output_coalescing_required=true'), PosixPath('--logtostderr --listen_host=172.28.0.12 --target_host=172.28.0.12 --tunnel_background_save_url=https')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('/env/python')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('//ipykernel.pylab.backend_inline'), PosixPath('module')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: Found duplicate ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] files: {PosixPath('/usr/local/cuda/lib64/libcudart.so'), PosixPath('/usr/local/cuda/lib64/libcudart.so.11.0')}.. We'll flip a coin and try one of these, in order to fail forward. Either way, this might cause trouble in the future: If you get `CUDA error: invalid device function` errors, the above might be the cause and the solution is to make sure only one ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] in the paths that we search based on your env. warn(msg) Loading checkpoint shards: 100% 9/9 [05:45&lt;00:00, 35.83s/it] Downloading (…)neration_config.json: 100% 111/111 [00:00&lt;00:00, 10.3kB/s] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) [&lt;ipython-input-1-c89997e10ae9&gt;](https://localhost:8080/#) in &lt;cell line: 15&gt;() 13 14 config = AutoConfig.from_pretrained(model_path, trust_remote_code=True) ---&gt; 15 model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, load_in_4bit=True, device_map=&quot;auto&quot;) 16 17 tokenizer = AutoTokenizer.from_pretrained(&quot;tiiuae/falcon-40b-instruct&quot;) 3 frames [/usr/local/lib/python3.10/dist-packages/transformers/modeling_utils.py](https://localhost:8080/#) in to(self, *args, **kwargs) 1894 # Checks if the model has been loaded in 8-bit 1895 if getattr(self, &quot;is_quantized&quot;, False): -&gt; 1896 raise ValueError( 1897 &quot;`.to` is not supported for `4-bit` or `8-bit` models. Please use the model as it is, since the&quot; 1898 &quot; model has already been set to the correct devices and casted to the correct `dtype`.&quot; ValueError: `.to` is not supported for `4-bit` or `8-bit` models. Please use the model as it is, since the model has already been set to the correct devices and casted to the correct `dtype`."><pre class="notranslate"><code class="notranslate">Collecting git+https://www.github.com/huggingface/transformers Cloning https://www.github.com/huggingface/transformers to /tmp/pip-req-build-6pyatvel Running command git clone --filter=blob:none --quiet https://www.github.com/huggingface/transformers /tmp/pip-req-build-6pyatvel warning: redirecting to https://github.com/huggingface/transformers.git/ Resolved https://www.github.com/huggingface/transformers to commit e84bf1f734f87aa2bedc41b9b9933d00fc6add98 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (3.12.2) Collecting huggingface-hub&lt;1.0,&gt;=0.14.1 (from transformers==4.31.0.dev0) Downloading huggingface_hub-0.15.1-py3-none-any.whl (236 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 236.8/236.8 kB 11.6 MB/s eta 0:00:00 Requirement already satisfied: numpy&gt;=1.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (1.22.4) Requirement already satisfied: packaging&gt;=20.0 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (23.1) Requirement already satisfied: pyyaml&gt;=5.1 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (6.0) Requirement already satisfied: regex!=2019.12.17 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (2022.10.31) Requirement already satisfied: requests in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (2.27.1) Collecting tokenizers!=0.11.3,&lt;0.14,&gt;=0.11.1 (from transformers==4.31.0.dev0) Downloading tokenizers-0.13.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.8 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.8/7.8 MB 114.2 MB/s eta 0:00:00 Collecting safetensors&gt;=0.3.1 (from transformers==4.31.0.dev0) Downloading safetensors-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.3/1.3 MB 79.9 MB/s eta 0:00:00 Requirement already satisfied: tqdm&gt;=4.27 in /usr/local/lib/python3.10/dist-packages (from transformers==4.31.0.dev0) (4.65.0) Requirement already satisfied: fsspec in /usr/local/lib/python3.10/dist-packages (from huggingface-hub&lt;1.0,&gt;=0.14.1-&gt;transformers==4.31.0.dev0) (2023.6.0) Requirement already satisfied: typing-extensions&gt;=3.7.4.3 in /usr/local/lib/python3.10/dist-packages (from huggingface-hub&lt;1.0,&gt;=0.14.1-&gt;transformers==4.31.0.dev0) (4.6.3) Requirement already satisfied: urllib3&lt;1.27,&gt;=1.21.1 in /usr/local/lib/python3.10/dist-packages (from requests-&gt;transformers==4.31.0.dev0) (1.26.16) Requirement already satisfied: certifi&gt;=2017.4.17 in /usr/local/lib/python3.10/dist-packages (from requests-&gt;transformers==4.31.0.dev0) (2023.5.7) Requirement already satisfied: charset-normalizer~=2.0.0 in /usr/local/lib/python3.10/dist-packages (from requests-&gt;transformers==4.31.0.dev0) (2.0.12) Requirement already satisfied: idna&lt;4,&gt;=2.5 in /usr/local/lib/python3.10/dist-packages (from requests-&gt;transformers==4.31.0.dev0) (3.4) Building wheels for collected packages: transformers Building wheel for transformers (pyproject.toml) ... done Created wheel for transformers: filename=transformers-4.31.0.dev0-py3-none-any.whl size=7228417 sha256=5867afa880111a40f7b630e51d9f1709ec1131236a31c2c7fb5f97179e3d1405 Stored in directory: /tmp/pip-ephem-wheel-cache-t06u3u6x/wheels/c1/ac/11/e69d454307e735e14f4f95e575c8be27fd99835ec36f504c13 Successfully built transformers Installing collected packages: tokenizers, safetensors, huggingface-hub, transformers Successfully installed huggingface-hub-0.15.1 safetensors-0.3.1 tokenizers-0.13.3 transformers-4.31.0.dev0 Collecting git+https://github.com/huggingface/accelerate Cloning https://github.com/huggingface/accelerate to /tmp/pip-req-build-76ziff6x Running command git clone --filter=blob:none --quiet https://github.com/huggingface/accelerate /tmp/pip-req-build-76ziff6x Resolved https://github.com/huggingface/accelerate to commit d141b4ce794227450a105b7281611c7980e5b3d6 Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... done Requirement already satisfied: numpy&gt;=1.17 in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (1.22.4) Requirement already satisfied: packaging&gt;=20.0 in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (23.1) Requirement already satisfied: psutil in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (5.9.5) Requirement already satisfied: pyyaml in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (6.0) Requirement already satisfied: torch&gt;=1.6.0 in /usr/local/lib/python3.10/dist-packages (from accelerate==0.21.0.dev0) (2.0.1+cu118) Requirement already satisfied: filelock in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (3.12.2) Requirement already satisfied: typing-extensions in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (4.6.3) Requirement already satisfied: sympy in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (1.11.1) Requirement already satisfied: networkx in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (3.1) Requirement already satisfied: jinja2 in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (3.1.2) Requirement already satisfied: triton==2.0.0 in /usr/local/lib/python3.10/dist-packages (from torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (2.0.0) Requirement already satisfied: cmake in /usr/local/lib/python3.10/dist-packages (from triton==2.0.0-&gt;torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (3.25.2) Requirement already satisfied: lit in /usr/local/lib/python3.10/dist-packages (from triton==2.0.0-&gt;torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (16.0.6) Requirement already satisfied: MarkupSafe&gt;=2.0 in /usr/local/lib/python3.10/dist-packages (from jinja2-&gt;torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (2.1.3) Requirement already satisfied: mpmath&gt;=0.19 in /usr/local/lib/python3.10/dist-packages (from sympy-&gt;torch&gt;=1.6.0-&gt;accelerate==0.21.0.dev0) (1.3.0) Building wheels for collected packages: accelerate Building wheel for accelerate (pyproject.toml) ... done Created wheel for accelerate: filename=accelerate-0.21.0.dev0-py3-none-any.whl size=234648 sha256=71b98a6d4b1111cc9ca22265f6699cd552325e5f71c83daebe696afd957497ee Stored in directory: /tmp/pip-ephem-wheel-cache-atmtszgr/wheels/f6/c7/9d/1b8a5ca8353d9307733bc719107acb67acdc95063bba749f26 Successfully built accelerate Installing collected packages: accelerate Successfully installed accelerate-0.21.0.dev0 Collecting bitsandbytes Downloading bitsandbytes-0.39.1-py3-none-any.whl (97.1 MB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 97.1/97.1 MB 18.8 MB/s eta 0:00:00 Installing collected packages: bitsandbytes Successfully installed bitsandbytes-0.39.1 Collecting einops Downloading einops-0.6.1-py3-none-any.whl (42 kB) ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 42.2/42.2 kB 3.8 MB/s eta 0:00:00 Installing collected packages: einops Successfully installed einops-0.6.1 Downloading (…)lve/main/config.json: 100% 658/658 [00:00&lt;00:00, 51.8kB/s] Downloading (…)/configuration_RW.py: 100% 2.51k/2.51k [00:00&lt;00:00, 227kB/s] A new version of the following files was downloaded from https://huggingface.co/tiiuae/falcon-40b-instruct: - configuration_RW.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. Downloading (…)main/modelling_RW.py: 100% 47.1k/47.1k [00:00&lt;00:00, 3.76MB/s] A new version of the following files was downloaded from https://huggingface.co/tiiuae/falcon-40b-instruct: - modelling_RW.py . Make sure to double-check they do not contain any added malicious code. To avoid downloading new versions of the code file, you can pin a revision. Downloading (…)model.bin.index.json: 100% 39.3k/39.3k [00:00&lt;00:00, 3.46MB/s] Downloading shards: 100% 9/9 [04:40&lt;00:00, 29.33s/it] Downloading (…)l-00001-of-00009.bin: 100% 9.50G/9.50G [00:37&lt;00:00, 274MB/s] Downloading (…)l-00002-of-00009.bin: 100% 9.51G/9.51G [00:33&lt;00:00, 340MB/s] Downloading (…)l-00003-of-00009.bin: 100% 9.51G/9.51G [00:28&lt;00:00, 320MB/s] Downloading (…)l-00004-of-00009.bin: 100% 9.51G/9.51G [00:33&lt;00:00, 317MB/s] Downloading (…)l-00005-of-00009.bin: 100% 9.51G/9.51G [00:27&lt;00:00, 210MB/s] Downloading (…)l-00006-of-00009.bin: 100% 9.51G/9.51G [00:34&lt;00:00, 180MB/s] Downloading (…)l-00007-of-00009.bin: 100% 9.51G/9.51G [00:27&lt;00:00, 307MB/s] Downloading (…)l-00008-of-00009.bin: 100% 9.51G/9.51G [00:27&lt;00:00, 504MB/s] Downloading (…)l-00009-of-00009.bin: 100% 7.58G/7.58G [00:27&lt;00:00, 315MB/s] ===================================BUG REPORT=================================== Welcome to bitsandbytes. For bug reports, please run python -m bitsandbytes and submit this information together with your error trace to: https://github.com/TimDettmers/bitsandbytes/issues ================================================================================ bin /usr/local/lib/python3.10/dist-packages/bitsandbytes/libbitsandbytes_cuda118.so CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching in backup paths... CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so CUDA SETUP: Highest compute capability among GPUs detected: 8.0 CUDA SETUP: Detected CUDA version 118 CUDA SETUP: Loading binary /usr/local/lib/python3.10/dist-packages/bitsandbytes/libbitsandbytes_cuda118.so... /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: /usr/lib64-nvidia did not contain ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] as expected! Searching further paths... warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('/sys/fs/cgroup/memory.events /var/colab/cgroup/jupyter-children/memory.events')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('//172.28.0.1'), PosixPath('8013'), PosixPath('http')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('//colab.research.google.com/tun/m/cc48301118ce562b961b3c22d803539adc1e0c19/gpu-a100-s-b20acq94qsrp --tunnel_background_save_delay=10s --tunnel_periodic_background_save_frequency=30m0s --enable_output_coalescing=true --output_coalescing_required=true'), PosixPath('--logtostderr --listen_host=172.28.0.12 --target_host=172.28.0.12 --tunnel_background_save_url=https')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('/env/python')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: WARNING: The following directories listed in your path were found to be non-existent: {PosixPath('//ipykernel.pylab.backend_inline'), PosixPath('module')} warn(msg) /usr/local/lib/python3.10/dist-packages/bitsandbytes/cuda_setup/main.py:149: UserWarning: Found duplicate ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] files: {PosixPath('/usr/local/cuda/lib64/libcudart.so'), PosixPath('/usr/local/cuda/lib64/libcudart.so.11.0')}.. We'll flip a coin and try one of these, in order to fail forward. Either way, this might cause trouble in the future: If you get `CUDA error: invalid device function` errors, the above might be the cause and the solution is to make sure only one ['libcudart.so', 'libcudart.so.11.0', 'libcudart.so.12.0'] in the paths that we search based on your env. warn(msg) Loading checkpoint shards: 100% 9/9 [05:45&lt;00:00, 35.83s/it] Downloading (…)neration_config.json: 100% 111/111 [00:00&lt;00:00, 10.3kB/s] --------------------------------------------------------------------------- ValueError Traceback (most recent call last) [&lt;ipython-input-1-c89997e10ae9&gt;](https://localhost:8080/#) in &lt;cell line: 15&gt;() 13 14 config = AutoConfig.from_pretrained(model_path, trust_remote_code=True) ---&gt; 15 model = AutoModelForCausalLM.from_pretrained(model_path, trust_remote_code=True, load_in_4bit=True, device_map="auto") 16 17 tokenizer = AutoTokenizer.from_pretrained("tiiuae/falcon-40b-instruct") 3 frames [/usr/local/lib/python3.10/dist-packages/transformers/modeling_utils.py](https://localhost:8080/#) in to(self, *args, **kwargs) 1894 # Checks if the model has been loaded in 8-bit 1895 if getattr(self, "is_quantized", False): -&gt; 1896 raise ValueError( 1897 "`.to` is not supported for `4-bit` or `8-bit` models. Please use the model as it is, since the" 1898 " model has already been set to the correct devices and casted to the correct `dtype`." ValueError: `.to` is not supported for `4-bit` or `8-bit` models. Please use the model as it is, since the model has already been set to the correct devices and casted to the correct `dtype`. </code></pre></div> <h3 dir="auto">Expected behavior</h3> <p dir="auto">Model should be loaded and able to run inference.</p>
<p dir="auto">ALBERT: <a href="https://arxiv.org/abs/1909.11942v1" rel="nofollow">https://arxiv.org/abs/1909.11942v1</a> was just released. Are there plans to implement this in Transformers?</p>
0
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=kaborka20" rel="nofollow">Moshe Moshe</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-7980?redirect=false" rel="nofollow">SPR-7980</a></strong> and commented</p> <p dir="auto">Hi,</p> <p dir="auto">It seems that the <code class="notranslate">AdvisedSupport.MethodCacheKey.equals()</code> compares methods by reference and not using <code class="notranslate">Method.equals()</code>.<br> This means if 2 Methods instances are <code class="notranslate">equals()</code> the <code class="notranslate">AdvisedSupport</code> will add both of them to the <code class="notranslate">methodCache</code> Map.</p> <p dir="auto">This can be easily recreated if you get the Method instance using reflection <code class="notranslate">Class.getMethod()</code> because it duplicates the method before returning it, meaning each call to <code class="notranslate">Class.getMethod()</code> returns a new instance of <code class="notranslate">Method</code>.</p> <p dir="auto">please see sample code:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="static public Object invokeMethod(Object obj, String methodName, Object[] args) { if (AopUtils.isJdkDynamicProxy(obj)) { if (args == null) { args = new Object[0]; } int arguments = args.length; Class parameterTypes[] = new Class[arguments]; for (int i = 0; i &lt; arguments; i++) { parameterTypes[i] = args[i].getClass(); } Class _targetClass = AopUtils.getTargetClass(obj); Class[] _targetInterfaces = _targetClass.getInterfaces(); Method method = null; for (Class _targetInterface : _targetInterfaces) { method = org.apache.commons.beanutils.MethodUtils.getMatchingAccessibleMethod(_targetInterface, methodName, parameterTypes); if (method != null) { break; } } try { return java.lang.reflect.Proxy.getInvocationHandler(obj) .invoke(obj, method, args); } catch (Throwable e) { throw new RuntimeException(e); } } return null; }"><pre class="notranslate"><span class="pl-k">static</span> <span class="pl-k">public</span> <span class="pl-smi">Object</span> <span class="pl-s1">invokeMethod</span>(<span class="pl-smi">Object</span> <span class="pl-s1">obj</span>, <span class="pl-smi">String</span> <span class="pl-s1">methodName</span>, <span class="pl-smi">Object</span>[] <span class="pl-s1">args</span>) { <span class="pl-k">if</span> (<span class="pl-smi">AopUtils</span>.<span class="pl-en">isJdkDynamicProxy</span>(<span class="pl-s1">obj</span>)) { <span class="pl-k">if</span> (<span class="pl-s1">args</span> == <span class="pl-c1">null</span>) { <span class="pl-s1">args</span> = <span class="pl-k">new</span> <span class="pl-smi">Object</span>[<span class="pl-c1">0</span>]; } <span class="pl-smi">int</span> <span class="pl-s1">arguments</span> = <span class="pl-s1">args</span>.<span class="pl-s1">length</span>; <span class="pl-smi">Class</span> <span class="pl-s1">parameterTypes</span>[] = <span class="pl-k">new</span> <span class="pl-smi">Class</span>[<span class="pl-s1">arguments</span>]; <span class="pl-k">for</span> (<span class="pl-smi">int</span> <span class="pl-s1">i</span> = <span class="pl-c1">0</span>; <span class="pl-s1">i</span> &lt; <span class="pl-s1">arguments</span>; <span class="pl-s1">i</span>++) { <span class="pl-s1">parameterTypes</span>[<span class="pl-s1">i</span>] = <span class="pl-s1">args</span>[<span class="pl-s1">i</span>].<span class="pl-en">getClass</span>(); } <span class="pl-smi">Class</span> <span class="pl-s1">_targetClass</span> = <span class="pl-smi">AopUtils</span>.<span class="pl-en">getTargetClass</span>(<span class="pl-s1">obj</span>); <span class="pl-smi">Class</span>[] <span class="pl-s1">_targetInterfaces</span> = <span class="pl-s1">_targetClass</span>.<span class="pl-en">getInterfaces</span>(); <span class="pl-smi">Method</span> <span class="pl-s1">method</span> = <span class="pl-c1">null</span>; <span class="pl-k">for</span> (<span class="pl-smi">Class</span> <span class="pl-s1">_targetInterface</span> : <span class="pl-s1">_targetInterfaces</span>) { <span class="pl-s1">method</span> = <span class="pl-s1">org</span>.<span class="pl-s1">apache</span>.<span class="pl-s1">commons</span>.<span class="pl-s1">beanutils</span>.<span class="pl-s1">MethodUtils</span>.<span class="pl-en">getMatchingAccessibleMethod</span>(<span class="pl-s1">_targetInterface</span>, <span class="pl-s1">methodName</span>, <span class="pl-s1">parameterTypes</span>); <span class="pl-k">if</span> (<span class="pl-s1">method</span> != <span class="pl-c1">null</span>) { <span class="pl-k">break</span>; } } <span class="pl-k">try</span> { <span class="pl-k">return</span> <span class="pl-s1">java</span>.<span class="pl-s1">lang</span>.<span class="pl-s1">reflect</span>.<span class="pl-s1">Proxy</span>.<span class="pl-en">getInvocationHandler</span>(<span class="pl-s1">obj</span>) .<span class="pl-en">invoke</span>(<span class="pl-s1">obj</span>, <span class="pl-s1">method</span>, <span class="pl-s1">args</span>); } <span class="pl-k">catch</span> (<span class="pl-smi">Throwable</span> <span class="pl-s1">e</span>) { <span class="pl-k">throw</span> <span class="pl-k">new</span> <span class="pl-smi">RuntimeException</span>(<span class="pl-s1">e</span>); } } <span class="pl-k">return</span> <span class="pl-c1">null</span>; }</pre></div> <p dir="auto">If you call this in a loop you can see the <code class="notranslate">methodCache</code> map size growing and growing up to OutOfMemory.</p> <p dir="auto">I believe that the correct code should be:</p> <div class="highlight highlight-source-java notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="private static class MethodCacheKey { private final Method method; private final int hashCode; public MethodCacheKey(Method method) { this.method = method; this.hashCode = method.hashCode(); } public boolean equals(Object other) { if (other == this) { return true; } MethodCacheKey otherKey = (MethodCacheKey) other; return this.method == otherKey.method || this.method.equals(otherKey.method); } public int hashCode() { return this.hashCode; } }"><pre class="notranslate"><span class="pl-k">private</span> <span class="pl-k">static</span> <span class="pl-k">class</span> <span class="pl-smi">MethodCacheKey</span> { <span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">Method</span> <span class="pl-s1">method</span>; <span class="pl-k">private</span> <span class="pl-k">final</span> <span class="pl-smi">int</span> <span class="pl-s1">hashCode</span>; <span class="pl-k">public</span> <span class="pl-smi">MethodCacheKey</span>(<span class="pl-smi">Method</span> <span class="pl-s1">method</span>) { <span class="pl-smi">this</span>.<span class="pl-s1">method</span> = <span class="pl-s1">method</span>; <span class="pl-smi">this</span>.<span class="pl-s1">hashCode</span> = <span class="pl-s1">method</span>.<span class="pl-en">hashCode</span>(); } <span class="pl-k">public</span> <span class="pl-smi">boolean</span> <span class="pl-en">equals</span>(<span class="pl-smi">Object</span> <span class="pl-s1">other</span>) { <span class="pl-k">if</span> (<span class="pl-s1">other</span> == <span class="pl-smi">this</span>) { <span class="pl-k">return</span> <span class="pl-c1">true</span>; } <span class="pl-smi">MethodCacheKey</span> <span class="pl-s1">otherKey</span> = (<span class="pl-smi">MethodCacheKey</span>) <span class="pl-s1">other</span>; <span class="pl-k">return</span> <span class="pl-smi">this</span>.<span class="pl-s1">method</span> == <span class="pl-s1">otherKey</span>.<span class="pl-s1">method</span> || <span class="pl-smi">this</span>.<span class="pl-s1">method</span>.<span class="pl-en">equals</span>(<span class="pl-s1">otherKey</span>.<span class="pl-s1">method</span>); } <span class="pl-k">public</span> <span class="pl-smi">int</span> <span class="pl-en">hashCode</span>() { <span class="pl-k">return</span> <span class="pl-smi">this</span>.<span class="pl-s1">hashCode</span>; } }</pre></div> <p dir="auto">Thank you.</p> <hr> <p dir="auto"><strong>Affects:</strong> 3.0.5</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=gaplo" rel="nofollow">Gary Ip</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-2598?redirect=false" rel="nofollow">SPR-2598</a></strong> and commented</p> <p dir="auto">Features request for dealing with Dealing with Single PersistenceUnit in Multiple persistence.xml files as stated in Spring forum.<br> <a href="http://forum.springframework.org/showthread.php?t=29230" rel="nofollow">http://forum.springframework.org/showthread.php?t=29230</a></p> <p dir="auto">suggestion:</p> <ol dir="auto"> <li>allow the method preparePersistenceUnitInfos () in org.springframework.orm.jpa.persistenceunit.DefaultPersistenceUnitManager to handle duplicated by adding ManagedClasses to the original one.</li> <li>or make this method to be easily overrided by opening the "readPersistenceUnitInfos()", etc.</li> </ol> <hr> <p dir="auto"><strong>Affects:</strong> 2.0 RC4</p> <p dir="auto">2 votes, 4 watchers</p>
0
<p dir="auto">It seems that the string from DOM is encoded in UTF-16, then use with node's <code class="notranslate">fs</code> module, it can not handle properly.</p> <p dir="auto">For example:</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;div id=&quot;demo&quot;&gt;abc&lt;/div&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">div</span> <span class="pl-c1">id</span>="<span class="pl-s">demo</span>"<span class="pl-kos">&gt;</span>abc<span class="pl-kos">&lt;/</span><span class="pl-ent">div</span><span class="pl-kos">&gt;</span></pre></div> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="fs.writeFile(path,document.querySelector('#demo').innerText,function(){ //xxx })"><pre class="notranslate"><span class="pl-s1">fs</span><span class="pl-kos">.</span><span class="pl-en">writeFile</span><span class="pl-kos">(</span><span class="pl-s1">path</span><span class="pl-kos">,</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelector</span><span class="pl-kos">(</span><span class="pl-s">'#demo'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">innerText</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">//xxx</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Then the file written by node is not complete string <code class="notranslate">abc</code>. By using the <code class="notranslate">Buffer</code> module, it showed the the <code class="notranslate">innerText</code> content is something like this:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="console.log(new Buffer(document.querySelector('#demo').innerText)); //Buffer {0: 97, 1: 0, 2: 98, 3:0, 3: 99, 4: 0}"><pre class="notranslate"><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-k">new</span> <span class="pl-v">Buffer</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelector</span><span class="pl-kos">(</span><span class="pl-s">'#demo'</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">innerText</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">//Buffer {0: 97, 1: 0, 2: 98, 3:0, 3: 99, 4: 0}</span></pre></div> <p dir="auto">Node-webkit has similar problem. Is this correct or a bug?</p> <p dir="auto">Workaround: <code class="notranslate">JSON.parse(JSON.stringify(xxx.innerText))</code> or if the string is <strong>changed</strong> by string method like <code class="notranslate">substr</code> etc.</p>
<p dir="auto">Hey.</p> <p dir="auto">When retrieving a hexadecimal string from the user's clipboard and converting it to a Buffer via <code class="notranslate">new Buffer string, 'hex'</code>, it seems that the second half of the string isn't parsed correctly and defaults to a random byte string.</p> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="document.addEventListener 'paste', (evt) -&gt; str1 = evt.clipboardData.getData 'Text' str2 = 'F1F2F3F4' buf1 = new Buffer str1, 'hex' buf2 = new Buffer str2, 'hex' str1 === str2 # =&gt; true buf1.toString 'hex' # =&gt; 'f1f20000' buf2.toString 'hex' # =&gt; 'f1f2f3f4'"><pre class="notranslate"><span class="pl-c1">document</span>.<span class="pl-c1">addEventListener</span> <span class="pl-s"><span class="pl-pds">'</span>paste<span class="pl-pds">'</span></span>, (<span class="pl-smi">evt</span>) <span class="pl-k">-&gt;</span> <span class="pl-v">str1</span> <span class="pl-k">=</span> <span class="pl-smi">evt</span>.<span class="pl-smi">clipboardData</span>.<span class="pl-en">getData</span> <span class="pl-s"><span class="pl-pds">'</span>Text<span class="pl-pds">'</span></span> <span class="pl-v">str2</span> <span class="pl-k">=</span> <span class="pl-s"><span class="pl-pds">'</span>F1F2F3F4<span class="pl-pds">'</span></span> <span class="pl-v">buf1</span> <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-en">Buffer</span> str1, <span class="pl-s"><span class="pl-pds">'</span>hex<span class="pl-pds">'</span></span> <span class="pl-v">buf2</span> <span class="pl-k">=</span> <span class="pl-k">new</span> <span class="pl-en">Buffer</span> str2, <span class="pl-s"><span class="pl-pds">'</span>hex<span class="pl-pds">'</span></span> str1 <span class="pl-k">==</span><span class="pl-k">=</span> str2 <span class="pl-c"><span class="pl-c">#</span> =&gt; true</span> <span class="pl-smi">buf1</span>.<span class="pl-c1">toString</span> <span class="pl-s"><span class="pl-pds">'</span>hex<span class="pl-pds">'</span></span> <span class="pl-c"><span class="pl-c">#</span> =&gt; 'f1f20000'</span> <span class="pl-smi">buf2</span>.<span class="pl-c1">toString</span> <span class="pl-s"><span class="pl-pds">'</span>hex<span class="pl-pds">'</span></span> <span class="pl-c"><span class="pl-c">#</span> =&gt; 'f1f2f3f4'</span></pre></div>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Setting <code class="notranslate">maker</code> in a scatter plot is causing <code class="notranslate">ValueError</code></p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt f = plt.figure() s = plt.scatter([1, 2, 3], [4, 5, 6], marker=&quot;&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">f</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">figure</span>() <span class="pl-s1">s</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">scatter</span>([<span class="pl-c1">1</span>, <span class="pl-c1">2</span>, <span class="pl-c1">3</span>], [<span class="pl-c1">4</span>, <span class="pl-c1">5</span>, <span class="pl-c1">6</span>], <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">""</span>)</pre></div> <p dir="auto">removing the marker option plots the scatter graph. I refered to the <a href="https://matplotlib.org/3.1.1/api/markers_api.html" rel="nofollow">docs</a> for valid marker options <code class="notranslate">text</code> shorthand and it seems none of them work.</p> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;matplotlib.collections.PathCollection at 0x7f9d2bd8cee0&gt; ... ValueError: zero-size array to reduction operation minimum which has no identity &lt;Figure size 432x288 with 1 Axes&gt;"><pre class="notranslate"><code class="notranslate">&lt;matplotlib.collections.PathCollection at 0x7f9d2bd8cee0&gt; ... ValueError: zero-size array to reduction operation minimum which has no identity &lt;Figure size 432x288 with 1 Axes&gt; </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: OS X</li> <li>Matplotlib version: 3.3.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): module://ipykernel.pylab.backend_inline</li> <li>Python version: 3.8</li> <li>Jupyter version (if applicable):</li> <li>Other libraries: 1.19.1</li> </ul> <p dir="auto">used conda with the following <code class="notranslate">environment.yml</code> file</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="name: qe-lectures channels: - default - conda-forge dependencies: - pip - python - jupyter - jupyterlab - nbconvert - pandoc - pandas - numba - numpy - matplotlib - networkx - sphinx=2.4.4 - scikit-learn - statsmodels - seaborn - scipy - sympy - pip: - interpolation - sphinxcontrib-jupyter - sphinxcontrib-bibtex - joblib"><pre class="notranslate"><span class="pl-ent">name</span>: <span class="pl-s">qe-lectures</span> <span class="pl-ent">channels</span>: - <span class="pl-s">default</span> - <span class="pl-s">conda-forge</span> <span class="pl-ent">dependencies</span>: - <span class="pl-s">pip</span> - <span class="pl-s">python</span> - <span class="pl-s">jupyter</span> - <span class="pl-s">jupyterlab</span> - <span class="pl-s">nbconvert</span> - <span class="pl-s">pandoc</span> - <span class="pl-s">pandas</span> - <span class="pl-s">numba</span> - <span class="pl-s">numpy</span> - <span class="pl-s">matplotlib</span> - <span class="pl-s">networkx</span> - <span class="pl-s">sphinx=2.4.4</span> - <span class="pl-s">scikit-learn</span> - <span class="pl-s">statsmodels</span> - <span class="pl-s">seaborn</span> - <span class="pl-s">scipy</span> - <span class="pl-s">sympy</span> - <span class="pl-ent">pip</span>: - <span class="pl-s">interpolation</span> - <span class="pl-s">sphinxcontrib-jupyter</span> - <span class="pl-s">sphinxcontrib-bibtex</span> - <span class="pl-s">joblib</span></pre></div>
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto"><code class="notranslate">plt.scatter()</code> raises upon drawing when called with <code class="notranslate">marker=''</code> (no errors with 3.3.0).<br> This change of behavior broke seaborn.</p> <p dir="auto"><strong>Code for reproduction</strong></p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import matplotlib.pyplot as plt plt.scatter([], [], marker='') # fails also with plt.scatter([1,2,3], [1,2,3], marker='') plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">plt</span>.<span class="pl-en">scatter</span>([], [], <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s">''</span>) <span class="pl-c"># fails also with plt.scatter([1,2,3], [1,2,3], marker='')</span> <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome</strong></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Traceback (most recent call last): File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/backends/backend_macosx.py&quot;, line 61, in _draw self.figure.draw(renderer) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py&quot;, line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/figure.py&quot;, line 1863, in draw mimage._draw_list_compositing_images( File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py&quot;, line 131, in _draw_list_compositing_images a.draw(renderer) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py&quot;, line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py&quot;, line 411, in wrapper return func(*inner_args, **inner_kwargs) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/axes/_base.py&quot;, line 2748, in draw mimage._draw_list_compositing_images(renderer, self, artists) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py&quot;, line 131, in _draw_list_compositing_images a.draw(renderer) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py&quot;, line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py&quot;, line 931, in draw Collection.draw(self, renderer) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py&quot;, line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py&quot;, line 385, in draw extents = paths[0].get_extents(combined_transform) File &quot;/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/path.py&quot;, line 603, in get_extents return Bbox([xys.min(axis=0), xys.max(axis=0)]) File &quot;/Users/maoz/miniconda/envs/seaborn_devenv/lib/python3.8/site-packages/numpy/core/_methods.py&quot;, line 43, in _amin return umr_minimum(a, axis, None, out, keepdims, initial, where) ValueError: zero-size array to reduction operation minimum which has no identity"><pre class="notranslate"><code class="notranslate">Traceback (most recent call last): File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/backends/backend_macosx.py", line 61, in _draw self.figure.draw(renderer) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/figure.py", line 1863, in draw mimage._draw_list_compositing_images( File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py", line 411, in wrapper return func(*inner_args, **inner_kwargs) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2748, in draw mimage._draw_list_compositing_images(renderer, self, artists) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py", line 931, in draw Collection.draw(self, renderer) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/collections.py", line 385, in draw extents = paths[0].get_extents(combined_transform) File "/Users/maoz/.local/lib/python3.8/site-packages/matplotlib/path.py", line 603, in get_extents return Bbox([xys.min(axis=0), xys.max(axis=0)]) File "/Users/maoz/miniconda/envs/seaborn_devenv/lib/python3.8/site-packages/numpy/core/_methods.py", line 43, in _amin return umr_minimum(a, axis, None, out, keepdims, initial, where) ValueError: zero-size array to reduction operation minimum which has no identity </code></pre></div> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">Not to fail.</p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: MacOS</li> <li>Matplotlib version: 3.3.1</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): MacOSX (also reproduces with %inline)</li> <li>Python version: 3.8.3</li> <li>Jupyter version (if applicable):</li> <li>Other libraries: numpy 1.19.1</li> </ul> <p dir="auto">matplotlib installed through pip</p>
1
<p dir="auto">In one of our screens with Material Scaffold no AppBar is set and the body is a ListView containing normal Flutter widgets and a WebView. The ListView is wrapped in a SafeArea.</p> <p dir="auto">When scrolling up, as expected, the normal Flutter widgets are not visible behind the statusbar. Unfortunately on iOS the WebView IS visible below the statusbar. It seems like the padding given by SafeArea is not working for WebViews/PlatformViews on iOS.</p> <p dir="auto">I created a simple version which you can see in attached gif.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1561749/49871418-80e49600-fe16-11e8-9b15-c2b39aab0f21.gif"><img src="https://user-images.githubusercontent.com/1561749/49871418-80e49600-fe16-11e8-9b15-c2b39aab0f21.gif" alt="webview-safearea" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">Here is my output of <code class="notranslate">flutter doctor -v</code>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14.1 18B75, locale de-DE) • Flutter version 1.0.0 at /Users/basti/Coding/SDKs/flutter • Framework revision 5391447fae (vor 12 Tagen), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /Users/basti/Coding/SDKs/android-sdk-macosx/ • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = /Users/basti/Coding/SDKs/android-sdk-macosx/ • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 31.1.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06)"><pre class="notranslate"><code class="notranslate">[✓] Flutter (Channel beta, v1.0.0, on Mac OS X 10.14.1 18B75, locale de-DE) • Flutter version 1.0.0 at /Users/basti/Coding/SDKs/flutter • Framework revision 5391447fae (vor 12 Tagen), 2018-11-29 19:41:26 -0800 • Engine revision 7375a0f414 • Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297) [✓] Android toolchain - develop for Android devices (Android SDK 28.0.3) • Android SDK at /Users/basti/Coding/SDKs/android-sdk-macosx/ • Android NDK location not configured (optional; useful for native profiling support) • Platform android-28, build-tools 28.0.3 • ANDROID_HOME = /Users/basti/Coding/SDKs/android-sdk-macosx/ • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) • All Android licenses accepted. [✓] iOS toolchain - develop for iOS devices (Xcode 10.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Xcode 10.1, Build version 10B61 • ios-deploy 1.9.4 • CocoaPods version 1.5.3 [✓] Android Studio (version 3.2) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin version 31.1.1 • Dart plugin version 181.5656 • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1136-b06) </code></pre></div>
<p dir="auto">Can't clip NativeView(UIKitView) on iOS,Android is ok.<br> BorderRadius not work with ClipRRect、Card and so on.</p>
1
<p dir="auto">When using keras for regression problems, loss uses mean squared error. The loss displayed by the network fit in the last epoch during training is inconsistent with the loss calculated from the input data after the model is saved.</p>
<p dir="auto">#</p><details><summary>Click to expand!</summary><p dir="auto"></p> <h3 dir="auto">Issue Type</h3> <p dir="auto">Bug</p> <h4 dir="auto">Source</h4> <p dir="auto">binary</p> <h4 dir="auto">Tensorflow Version</h4> <p dir="auto">2.8.2</p> <h4 dir="auto">Custom Code</h4> <p dir="auto">Yes</p> <h4 dir="auto">OS Platform and Distribution</h4> <p dir="auto">Linux Ubuntu 18.04.5</p> <h4 dir="auto">Python version</h4> <p dir="auto">Python 3.7.13</p> <h4 dir="auto">Current Behavior</h4> <p dir="auto">I am following the steps here for customizing what happens in <code class="notranslate">train_step</code> when you customize a model:</p> <p dir="auto"><a href="https://www.tensorflow.org/guide/keras/customizing_what_happens_in_fit" rel="nofollow">https://www.tensorflow.org/guide/keras/customizing_what_happens_in_fit</a></p> <p dir="auto">The issue is, I am getting very different results for the loss when I am using the exact same <code class="notranslate">tensorflow.keras.losses.mean_squared_error</code> function in different locations.</p> <p dir="auto">When I use <code class="notranslate">mean_squared_error</code> "manually" during <code class="notranslate">train_step</code> (I am calling this the non-compiled mse), the loss is significantly worse than if I pass it into the compile method, e.g. <code class="notranslate">model.compile(optimizer="adam", loss=mean_squared_error)</code> (I am calling this the compiled mse).</p> <p dir="auto"><code class="notranslate">tensorflow.keras.metrics.MeanSquaredError</code> yields roughly the same result as the compiled version of mse, but it is still not exactly the same.</p> <h4 dir="auto">Expected Behavior</h4> <p dir="auto">My expectation is that the loss should be the same whether it is passed into <code class="notranslate">.compile</code>, defined during <code class="notranslate">train_step</code>, or used as a metric. But it is significantly worse if I do not pass it into <code class="notranslate">.compile</code> and I don't know why. I am following the documentation, and as far as I can tell am not doing anything incorrectly.</p> <p dir="auto">Why is the loss so different when it is and is not passed into <code class="notranslate">.compile</code>?</p> <h4 dir="auto">Colab Notebook</h4> <p dir="auto">I have reproduced this behavior in this google colab notebook, link below. The plot shows that non-compiled mse is systematically worse than compiled mse.</p> <p dir="auto"><a href="https://colab.research.google.com/drive/1c1L8KJYQbAldphKvFvmw5cHi9EyBQP0X?usp=sharing" rel="nofollow">https://colab.research.google.com/drive/1c1L8KJYQbAldphKvFvmw5cHi9EyBQP0X?usp=sharing</a></p> <p dir="auto">Originally I opened a ticket at tensorflow/tensorflow <a href="https://github.com/tensorflow/tensorflow/issues/56866" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/56866/hovercard">here</a>, and they were able to reproduce the issue. This is the gist:</p> <p dir="auto"><a href="https://colab.research.google.com/gist/sushreebarsa/f1144243be9eed060c39c60611811811/56866.ipynb" rel="nofollow">https://colab.research.google.com/gist/sushreebarsa/f1144243be9eed060c39c60611811811/56866.ipynb</a></p> <h4 dir="auto">Standalone code to reproduce behavior</h4> <p dir="auto">This is the same as what is in the Colab notebooks.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import tensorflow as tf from tensorflow.keras.metrics import Mean, MeanSquaredError from tensorflow.keras.models import Model from tensorflow.keras.layers import Dense, Dropout, Input from tensorflow.keras.optimizers import Adam from tensorflow.keras.losses import mean_squared_error import matplotlib.pyplot as plt seed = 113 epochs = 30 batch_size = 10 n = 5 history_dict = {} # load dataset (x_train, y_train), (x_test, y_test) = tf.keras.datasets.boston_housing.load_data( path=&quot;boston_housing.npz&quot;, test_split=0.2, seed=seed, ) n_validate = int(0.1 * len(x_train)) train_dataset = tf.data.Dataset.from_tensor_slices( (x_train[:-n_validate], y_train[:-n_validate]) ).batch(batch_size) valid_dataset = tf.data.Dataset.from_tensor_slices( (x_train[-n_validate:], y_train[-n_validate:]) ).batch(batch_size) test_dataset = tf.data.Dataset.from_tensor_slices( (x_test, y_test) ).batch(batch_size) for i in range(n): tf.keras.backend.clear_session() mse_tracker = Mean(name=&quot;non_compiled_mse&quot;) mse_tracker_metric = MeanSquaredError(name=&quot;mse_metric&quot;) class CustomModel(Model): @tf.function def train_step(self, data): x, y_true = data with tf.GradientTape() as tape: y_pred = self(x, training=True) compiled_mse = self.compiled_loss(y_true, y_pred) non_compiled_mse = mean_squared_error(y_true, y_pred) mse_tracker.update_state(non_compiled_mse) mse_tracker_metric.update_state(y_true, y_pred) gradients = tape.gradient(compiled_mse, self.trainable_variables) self.optimizer.apply_gradients(zip(gradients, self.trainable_variables)) return {m.name: m.result() for m in self.metrics} @tf.function() def test_step(self, data): x, y_true = data y_pred = self(x, training=False) compiled_mse = self.compiled_loss(y_true, y_pred) non_compiled_mse = mean_squared_error(y_true, y_pred) mse_tracker.update_state(non_compiled_mse) mse_tracker_metric.update_state(y_true, y_pred) return {m.name: m.result() for m in self.metrics} @property def metrics(self): return super().metrics + [mse_tracker, mse_tracker_metric] input_layer = Input(shape=x_train.shape[1:]) x = Dense(8, activation='linear')(input_layer) x = Dense(8, activation='linear')(x) output_layer = Dense(units=1, activation='linear')(x) model = CustomModel(input_layer, output_layer) model.compile(optimizer=Adam(learning_rate=1e-3), loss=mean_squared_error) history = model.fit( train_dataset, validation_data=valid_dataset, epochs=epochs, verbose=0, ) history_dict[f&quot;compiled_mse_{i}&quot;] = history.history[&quot;loss&quot;] history_dict[f&quot;non_compiled_mse_{i}&quot;] = history.history[&quot;non_compiled_mse&quot;] history_dict[f&quot;mse_metric_{i}&quot;] = history.history[&quot;mse_metric&quot;] plot_start_epoch = 5 plt.figure(figsize=(12, 6)) for i in range(n): plt.plot( range(epochs)[plot_start_epoch:], history_dict[f&quot;compiled_mse_{i}&quot;][plot_start_epoch:], label=f&quot;compiled_mse&quot; if i == 0 else None, color=&quot;black&quot;, ) plt.plot( range(epochs)[plot_start_epoch:], history_dict[f&quot;non_compiled_mse_{i}&quot;][plot_start_epoch:], label=f&quot;non_compiled_mse&quot; if i == 0 else None, color=&quot;orange&quot;, ) plt.plot( range(epochs)[plot_start_epoch:], history_dict[f&quot;mse_metric_{i}&quot;][plot_start_epoch:], label=f&quot;mse_metric&quot; if i == 0 else None, color=&quot;red&quot;, linestyle=&quot;dashed&quot;, ) plt.ylabel(&quot;loss&quot;) plt.xlabel(&quot;epoch&quot;) plt.title(&quot;compiled vs non-compiled mse vs mse metric&quot;) plt.legend() plt.show()"><pre class="notranslate"><code class="notranslate">import tensorflow as tf from tensorflow.keras.metrics import Mean, MeanSquaredError from tensorflow.keras.models import Model from tensorflow.keras.layers import Dense, Dropout, Input from tensorflow.keras.optimizers import Adam from tensorflow.keras.losses import mean_squared_error import matplotlib.pyplot as plt seed = 113 epochs = 30 batch_size = 10 n = 5 history_dict = {} # load dataset (x_train, y_train), (x_test, y_test) = tf.keras.datasets.boston_housing.load_data( path="boston_housing.npz", test_split=0.2, seed=seed, ) n_validate = int(0.1 * len(x_train)) train_dataset = tf.data.Dataset.from_tensor_slices( (x_train[:-n_validate], y_train[:-n_validate]) ).batch(batch_size) valid_dataset = tf.data.Dataset.from_tensor_slices( (x_train[-n_validate:], y_train[-n_validate:]) ).batch(batch_size) test_dataset = tf.data.Dataset.from_tensor_slices( (x_test, y_test) ).batch(batch_size) for i in range(n): tf.keras.backend.clear_session() mse_tracker = Mean(name="non_compiled_mse") mse_tracker_metric = MeanSquaredError(name="mse_metric") class CustomModel(Model): @tf.function def train_step(self, data): x, y_true = data with tf.GradientTape() as tape: y_pred = self(x, training=True) compiled_mse = self.compiled_loss(y_true, y_pred) non_compiled_mse = mean_squared_error(y_true, y_pred) mse_tracker.update_state(non_compiled_mse) mse_tracker_metric.update_state(y_true, y_pred) gradients = tape.gradient(compiled_mse, self.trainable_variables) self.optimizer.apply_gradients(zip(gradients, self.trainable_variables)) return {m.name: m.result() for m in self.metrics} @tf.function() def test_step(self, data): x, y_true = data y_pred = self(x, training=False) compiled_mse = self.compiled_loss(y_true, y_pred) non_compiled_mse = mean_squared_error(y_true, y_pred) mse_tracker.update_state(non_compiled_mse) mse_tracker_metric.update_state(y_true, y_pred) return {m.name: m.result() for m in self.metrics} @property def metrics(self): return super().metrics + [mse_tracker, mse_tracker_metric] input_layer = Input(shape=x_train.shape[1:]) x = Dense(8, activation='linear')(input_layer) x = Dense(8, activation='linear')(x) output_layer = Dense(units=1, activation='linear')(x) model = CustomModel(input_layer, output_layer) model.compile(optimizer=Adam(learning_rate=1e-3), loss=mean_squared_error) history = model.fit( train_dataset, validation_data=valid_dataset, epochs=epochs, verbose=0, ) history_dict[f"compiled_mse_{i}"] = history.history["loss"] history_dict[f"non_compiled_mse_{i}"] = history.history["non_compiled_mse"] history_dict[f"mse_metric_{i}"] = history.history["mse_metric"] plot_start_epoch = 5 plt.figure(figsize=(12, 6)) for i in range(n): plt.plot( range(epochs)[plot_start_epoch:], history_dict[f"compiled_mse_{i}"][plot_start_epoch:], label=f"compiled_mse" if i == 0 else None, color="black", ) plt.plot( range(epochs)[plot_start_epoch:], history_dict[f"non_compiled_mse_{i}"][plot_start_epoch:], label=f"non_compiled_mse" if i == 0 else None, color="orange", ) plt.plot( range(epochs)[plot_start_epoch:], history_dict[f"mse_metric_{i}"][plot_start_epoch:], label=f"mse_metric" if i == 0 else None, color="red", linestyle="dashed", ) plt.ylabel("loss") plt.xlabel("epoch") plt.title("compiled vs non-compiled mse vs mse metric") plt.legend() plt.show() </code></pre></div> <h4 dir="auto">Related Issues</h4> <p dir="auto">I could not find an issue that was the same as this one, but <a href="https://github.com/keras-team/keras/issues/16834" data-hovercard-type="issue" data-hovercard-url="/keras-team/keras/issues/16834/hovercard">16834</a> might be related, as it also notes a difference between compiled mean squared error and manually calculated mean squared error:</p> <blockquote> <p dir="auto">When using keras for regression problems, loss uses mean squared error. The loss displayed by the network fit in the last epoch during training is inconsistent with the loss calculated from the input data after the model is saved.</p> </blockquote> <p dir="auto">I have not tested whether or not this behavior is reproduced when using a loss other than mean squared error.</p></details><p dir="auto"></p>
1
<ul dir="auto"> <li>Electron Version:2.0.3</li> <li>Operating System (Platform and Version): macOS 10.13.5</li> <li>Last known working Electron version:</li> </ul> <p dir="auto"><strong>Additional Information</strong><br> Add any other context about the problem here.</p> <p dir="auto">code:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ipcMain.on('remove-tray', () =&gt; { setTimeout(() =&gt; { appIcon.destroy() }, 0) })"><pre class="notranslate"><code class="notranslate">ipcMain.on('remove-tray', () =&gt; { setTimeout(() =&gt; { appIcon.destroy() }, 0) }) </code></pre></div> <details> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Process: Electron [53700] Path: /Users/USER/*/Electron.app/Contents/MacOS/Electron Identifier: com.github.electron Version: 2.0.3 (2.0.3) Code Type: X86-64 (Native) Parent Process: node [53687] Responsible: Electron [50705] User ID: 501 Date/Time: 2018-07-04 11:11:08.578 +0800 OS Version: Mac OS X 10.13.5 (17F77) Report Version: 12 Anonymous UUID: 17308E10-7530-E46E-1903-0E89CA2F3DC1 Sleep/Wake UUID: 4266664E-1B71-417A-8F17-96387BA39E76 Time Awake Since Boot: 120000 seconds Time Since Wake: 5000 seconds System Integrity Protection: disabled Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000007fe5bee3688 VM Regions Near 0x7fe5bee3688: MALLOC_LARGE 0000000119437000-0000000119479000 [ 264K] rw-/rwx SM=PRV --&gt; Memory Tag 255 00000d5900580000-00000d5900600000 [ 512K] rw-/rwx SM=PRV Application Specific Information: objc_msgSend() selector name: isMenuOpen Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x00007fff616c1e9d objc_msgSend + 29 1 com.github.electron.framework 0x00000001076e1b63 0x1075ef000 + 994147 2 com.github.electron.framework 0x00000001076e0ace 0x1075ef000 + 989902 3 com.github.electron.framework 0x00000001076e1038 0x1075ef000 + 991288 4 com.github.electron.framework 0x00000001076e1aee 0x1075ef000 + 994030 5 com.apple.AppKit 0x00007fff37a8b70c -[NSView _viewDidChangeAppearance:] + 290 6 com.apple.AppKit 0x00007fff37a8b3a2 -[NSView _recursiveSendViewDidChangeAppearance:] + 57 7 com.apple.AppKit 0x00007fff37a8b45e -[NSView _recursiveSendViewDidChangeAppearance:] + 245 8 com.apple.AppKit 0x00007fff37a53c5e -[NSView _setSuperview:] + 1307 9 com.apple.AppKit 0x00007fff37a5879d -[NSView removeFromSuperview] + 252 10 com.apple.AppKit 0x00007fff37b6c32c -[NSView removeFromSuperviewWithoutNeedingDisplay] + 38 11 com.apple.AppKit 0x00007fff3831b998 -[NSView _finalize] + 1068 12 com.apple.AppKit 0x00007fff37a6657a -[NSView dealloc] + 164 13 com.apple.AppKit 0x00007fff37ce5249 -[NSNextStepFrame dealloc] + 94 14 com.apple.AppKit 0x00007fff37cc1149 -[NSWindow dealloc] + 1480 15 com.apple.AppKit 0x00007fff381f9053 -[NSStatusBarWindow dealloc] + 133 16 libobjc.A.dylib 0x00007fff616c5087 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 817 17 com.apple.CoreFoundation 0x00007fff3a49aa56 _CFAutoreleasePoolPop + 22 18 com.apple.Foundation 0x00007fff3c5cc8ad -[NSAutoreleasePool drain] + 144 19 com.github.electron.framework 0x000000010787dba6 0x1075ef000 + 2681766 20 com.github.electron.framework 0x00000001078322fa 0x1075ef000 + 2372346 21 com.github.electron.framework 0x000000010787d46f 0x1075ef000 + 2679919 22 com.apple.CoreFoundation 0x00007fff3a4f9a61 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 23 com.apple.CoreFoundation 0x00007fff3a5b347c __CFRunLoopDoSource0 + 108 24 com.apple.CoreFoundation 0x00007fff3a4dc4c0 __CFRunLoopDoSources0 + 208 25 com.apple.CoreFoundation 0x00007fff3a4db93d __CFRunLoopRun + 1293 26 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 27 com.apple.HIToolbox 0x00007fff397c1d96 RunCurrentEventLoopInMode + 286 28 com.apple.HIToolbox 0x00007fff397c1b06 ReceiveNextEventCommon + 613 29 com.apple.HIToolbox 0x00007fff397c1884 _BlockUntilNextEventMatchingListInModeWithFilter + 64 30 com.apple.AppKit 0x00007fff37a73a73 _DPSNextEvent + 2085 31 com.apple.AppKit 0x00007fff38209e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 32 com.apple.AppKit 0x00007fff37a68885 -[NSApplication run] + 764 33 com.github.electron.framework 0x000000010787e37e 0x1075ef000 + 2683774 34 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 35 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 36 com.github.electron.framework 0x0000000107aff75f 0x1075ef000 + 5310303 37 com.github.electron.framework 0x0000000107aff580 0x1075ef000 + 5309824 38 com.github.electron.framework 0x0000000107b01c02 0x1075ef000 + 5319682 39 com.github.electron.framework 0x0000000107afb5dc 0x1075ef000 + 5293532 40 com.github.electron.framework 0x0000000107a447b0 0x1075ef000 + 4544432 41 com.github.electron.framework 0x0000000109639cd4 0x1075ef000 + 33860820 42 com.github.electron.framework 0x0000000107a435c4 0x1075ef000 + 4539844 43 com.github.electron.framework 0x00000001075f1284 AtomMain + 68 44 com.github.electron 0x0000000104549f26 main + 38 45 libdyld.dylib 0x00007fff622e9015 start + 1 Thread 1: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff62601009 _pthread_wqthread + 1035 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 2: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6260120e _pthread_wqthread + 1552 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 3: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x00000001047b90c9 0x104684000 + 1265865 4 libnode.dylib 0x00000001047b90bc 0x104684000 + 1265852 5 libnode.dylib 0x00000001047b9004 0x104684000 + 1265668 6 libnode.dylib 0x00000001047b8932 0x104684000 + 1263922 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 4: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x00000001047b90c9 0x104684000 + 1265865 4 libnode.dylib 0x00000001047b90bc 0x104684000 + 1265852 5 libnode.dylib 0x00000001047b9004 0x104684000 + 1265668 6 libnode.dylib 0x00000001047b8932 0x104684000 + 1263922 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 5: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x00000001047b90c9 0x104684000 + 1265865 4 libnode.dylib 0x00000001047b90bc 0x104684000 + 1265852 5 libnode.dylib 0x00000001047b9004 0x104684000 + 1265668 6 libnode.dylib 0x00000001047b8932 0x104684000 + 1263922 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 6: 0 libsystem_kernel.dylib 0x00007fff62430246 semaphore_wait_trap + 10 1 libnode.dylib 0x000000010483e0c0 uv_sem_wait + 16 2 libnode.dylib 0x00000001047e09fd 0x104684000 + 1427965 3 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 4 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 5 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 7: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6260120e _pthread_wqthread + 1552 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 8: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff62601009 _pthread_wqthread + 1035 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 9:: NetworkConfigWatcher 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.apple.Foundation 0x00007fff3c5d7f26 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277 6 com.github.electron.framework 0x000000010787e1ce 0x1075ef000 + 2683342 7 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 8 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 9 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 10 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 11 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 12 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 13 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 10:: DnsConfigService 0 libsystem_kernel.dylib 0x00007fff6243abf2 kevent + 10 1 com.github.electron.framework 0x00000001078e4c19 0x1075ef000 + 3103769 2 com.github.electron.framework 0x00000001078e3dad 0x1075ef000 + 3100077 3 com.github.electron.framework 0x000000010787cbdf 0x1075ef000 + 2677727 4 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 5 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 11:: CrShutdownDetector 0 libsystem_kernel.dylib 0x00007fff6243b14a read + 10 1 com.github.electron.framework 0x000000010769683f 0x1075ef000 + 686143 2 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 3 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 4 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 5 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 12:: WorkerPool/26115 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078df7f6 0x1075ef000 + 3082230 4 com.github.electron.framework 0x00000001078dfc88 0x1075ef000 + 3083400 5 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 6 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 7 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 8 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 13:: WorkerPool/26371 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078df7f6 0x1075ef000 + 3082230 4 com.github.electron.framework 0x00000001078dfc88 0x1075ef000 + 3083400 5 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 6 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 7 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 8 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 14:: TaskSchedulerServiceThread 0 libsystem_kernel.dylib 0x00007fff6243abf2 kevent + 10 1 com.github.electron.framework 0x00000001078e4c19 0x1075ef000 + 3103769 2 com.github.electron.framework 0x00000001078e3dad 0x1075ef000 + 3100077 3 com.github.electron.framework 0x000000010787cbc6 0x1075ef000 + 2677702 4 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 5 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 15:: TaskSchedulerBackgroundWorker0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896c4a 0x1075ef000 + 2784330 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 16:: TaskSchedulerBackgroundBlockingWorker0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 17:: TaskSchedulerForegroundWorker0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 18:: TaskSchedulerForegroundBlockingWorker0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 19:: TaskSchedulerSingleThreadForegroundBlocking0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896c4a 0x1075ef000 + 2784330 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 20:: TaskSchedulerSingleThreadForegroundBlocking1 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896c4a 0x1075ef000 + 2784330 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 21:: TaskSchedulerSingleThreadForegroundBlocking2 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896c4a 0x1075ef000 + 2784330 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 22:: TaskSchedulerSingleThreadForegroundBlocking3 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 23:: TaskSchedulerSingleThreadForegroundBlocking4 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 24:: Chrome_IOThread 0 libsystem_kernel.dylib 0x00007fff6243abf2 kevent + 10 1 com.github.electron.framework 0x00000001078e4c19 0x1075ef000 + 3103769 2 com.github.electron.framework 0x00000001078e3dad 0x1075ef000 + 3100077 3 com.github.electron.framework 0x000000010787cbc6 0x1075ef000 + 2677702 4 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 5 com.github.electron.framework 0x0000000107b0d304 0x1075ef000 + 5366532 6 com.github.electron.framework 0x0000000107b0d3c4 0x1075ef000 + 5366724 7 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 8 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 9 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 10 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 11 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 25:: CompositorTileWorker1/29443 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001079df558 0x1075ef000 + 4130136 3 com.github.electron.framework 0x00000001078a25ed 0x1075ef000 + 2831853 4 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 5 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 6 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 7 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 26:: AudioThread 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.github.electron.framework 0x000000010787debf 0x1075ef000 + 2682559 6 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 7 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 8 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 9 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 10 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 11 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 12 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 27: 0 libsystem_kernel.dylib 0x00007fff62439cfa __select + 10 1 com.github.electron.framework 0x000000010772b012 atom::NodeBindingsMac::PollEvents() + 210 2 com.github.electron.framework 0x000000010772a83f atom::NodeBindings::EmbedThreadRunner(void*) + 63 3 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 4 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 5 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 28:: NetworkConfigWatcher 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.apple.Foundation 0x00007fff3c5d7f26 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277 6 com.github.electron.framework 0x000000010787e1ce 0x1075ef000 + 2683342 7 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 8 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 9 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 10 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 11 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 12 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 13 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 29:: TaskSchedulerBackgroundBlockingWorker1 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 30:: NetworkConfigWatcher 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.apple.Foundation 0x00007fff3c5d7f26 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277 6 com.github.electron.framework 0x000000010787e1ce 0x1075ef000 + 2683342 7 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 8 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 9 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 10 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 11 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 12 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 13 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 31: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6260120e _pthread_wqthread + 1552 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 32:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.apple.AppKit 0x00007fff37bb0fc4 _NSEventThread + 184 6 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 7 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 8 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 33: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff62601009 _pthread_wqthread + 1035 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 34:: TaskSchedulerForegroundBlockingWorker1 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 35:: TaskSchedulerForegroundWorker1 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 36: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x0000000104831b23 0x104684000 + 1760035 4 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 5 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 6 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 37: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x0000000104831b23 0x104684000 + 1760035 4 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 5 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 6 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 38: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x0000000104831b23 0x104684000 + 1760035 4 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 5 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 6 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 39: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x0000000104831b23 0x104684000 + 1760035 4 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 5 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 6 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 40:: Proxy Resolver 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.github.electron.framework 0x000000010787debf 0x1075ef000 + 2682559 6 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 7 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 8 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 9 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 10 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 11 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 12 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00000000000000a0 rbx: 0x00007fe5c28f2170 rcx: 0x0000000000000000 rdx: 0x00007fe5c31560f0 rdi: 0x00007fe5c3161620 rsi: 0x00007fff5a5dc712 rbp: 0x00007ffeeb6b16d0 rsp: 0x00007ffeeb6b16b8 r8: 0x0000000000000000 r9: 0x00007fe5c31672b0 r10: 0x000007fe5bee3670 r11: 0x00007fff5a5dc712 r12: 0x00007fff9a17cb40 r13: 0x00007fe5c28f2170 r14: 0x00007fff616c1e01 r15: 0x00007fff616c1e80 rip: 0x00007fff616c1e9d rfl: 0x0000000000010202 cr2: 0x000007fe5bee3688 Logical CPU: 2 Error Code: 0x00000004 Trap Number: 14 Binary Images: 0x104549000 - 0x104549ff7 +com.github.electron (2.0.3 - 2.0.3) &lt;E27EA0A2-4B0F-34A2-8128-B52972924230&gt; /Users/USER/*/Electron.app/Contents/MacOS/Electron 0x10454c000 - 0x104567fff +com.github.Squirrel (1.0 - 1) &lt;E4398068-33D3-3A00-9DBE-5ACC9B022501&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel 0x104589000 - 0x1045ecff7 +org.reactivecocoa.ReactiveCocoa (1.0 - 1) &lt;701B20DE-3ADD-3643-B52A-E05744C30DB3&gt; /Users/USER/*/Electron.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa 0x10465e000 - 0x104672fff +org.mantle.Mantle (1.0 - ???) &lt;31915DD6-48E6-3706-A076-C9D4CE17F4F6&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle 0x104684000 - 0x105500fff +libnode.dylib (0) &lt;8C4985A3-A997-3C3F-A363-2ED32149FCA5&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib 0x1057a8000 - 0x105a15fe7 +libffmpeg.dylib (0) &lt;B8B8A195-ADAF-3003-8F62-B9D1C788605D&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib 0x107551000 - 0x10759b9df dyld (551.3) &lt;AFAB4EFA-7020-34B1-BBEF-0F26C6D3CA36&gt; /usr/lib/dyld 0x1075ef000 - 0x10b896ff7 +com.github.electron.framework (0) &lt;34DE84C7-D975-3378-9788-ECE246B78C52&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework 0x7fff329d0000 - 0x7fff329dfffb libSimplifiedChineseConverter.dylib (70) &lt;79F6AF91-B369-3C30-8C52-19608D2566F9&gt; /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib 0x7fff34368000 - 0x7fff343edff7 com.apple.driver.AppleIntelHD5000GraphicsMTLDriver (10.34.27 - 10.3.4) &lt;39803D49-8A24-3923-9B97-2EEC492D07A8&gt; /System/Library/Extensions/AppleIntelHD5000GraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsMTLDriver 0x7fff3662d000 - 0x7fff3680dff3 com.apple.avfoundation (2.0 - 1536.25) &lt;CD6C9798-DC03-3CAB-873B-1710D1EEF743&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation 0x7fff3680e000 - 0x7fff368c7fff com.apple.audio.AVFAudio (1.0 - ???) &lt;ECE63BA3-4344-3522-904B-71F89677AC7D&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/AVFAudio 0x7fff369cd000 - 0x7fff369cdfff com.apple.Accelerate (1.11 - Accelerate 1.11) &lt;8632A9C5-19EA-3FD7-A44D-80765CC9C540&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x7fff369ce000 - 0x7fff369e4fef libCGInterfaces.dylib (417.2) &lt;2E67702C-75F6-308A-A023-F28120BEE667&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib 0x7fff369e5000 - 0x7fff36ee3fc3 com.apple.vImage (8.1 - ???) &lt;A243A7EF-0C8E-3A9A-AA38-44AFD7507F00&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x7fff36ee4000 - 0x7fff3703efe3 libBLAS.dylib (1211.50.2) &lt;62C659EB-3E32-3B5F-83BF-79F5DF30D5CE&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x7fff3703f000 - 0x7fff3706dfef libBNNS.dylib (38.1) &lt;7BAEFDCA-3227-3E07-80D8-59B6370B89C6&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib 0x7fff3706e000 - 0x7fff3742dff7 libLAPACK.dylib (1211.50.2) &lt;40ADBA5F-8B2D-30AC-A7AD-7B17C37EE52D&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x7fff3742e000 - 0x7fff37443ff7 libLinearAlgebra.dylib (1211.50.2) &lt;E8E0B7FD-A0B7-31E5-AF01-81781F71EBBE&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib 0x7fff37444000 - 0x7fff37449ff3 libQuadrature.dylib (3) &lt;3D6BF66A-55B2-3692-BAC7-DEB0C676ED29&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib 0x7fff3744a000 - 0x7fff374cafff libSparse.dylib (79.50.2) &lt;0DC25CDD-F8C1-3D6E-B472-8B060708424F&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib 0x7fff374cb000 - 0x7fff374defff libSparseBLAS.dylib (1211.50.2) &lt;722573CC-31CC-34B2-9032-E4F652A9CCFE&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib 0x7fff374df000 - 0x7fff3768cfc3 libvDSP.dylib (622.50.5) &lt;40690941-CF89-3F90-A0AC-A4D200744A5D&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x7fff3768d000 - 0x7fff3773efff libvMisc.dylib (622.50.5) &lt;BA2532DF-2D68-3DD0-9B59-D434BF702AA4&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x7fff3773f000 - 0x7fff3773ffff com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) &lt;54FF3B43-E66C-3F36-B34B-A2B3B0A36502&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x7fff37a32000 - 0x7fff38890fff com.apple.AppKit (6.9 - 1561.40.112) &lt;2D9940B9-9C9B-3FF1-8E9F-26CD7E7E3B5A&gt; /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7fff388e2000 - 0x7fff388e2fff com.apple.ApplicationServices (48 - 50) &lt;7BD49390-6D89-3429-80CD-6C70334F9B49&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x7fff388e3000 - 0x7fff38949fff com.apple.ApplicationServices.ATS (377 - 445.4) &lt;85E779EE-0219-3181-B4C4-201E4CC82AB5&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x7fff389e2000 - 0x7fff38b04fff libFontParser.dylib (222.1.6) &lt;6CEBACDD-B848-302E-B4B2-630CB16E663E&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib 0x7fff38b05000 - 0x7fff38b4fff7 libFontRegistry.dylib (221.3) &lt;C84F7112-4764-3F4B-9FBA-4A022CF6346B&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib 0x7fff38bf4000 - 0x7fff38c27ff7 libTrueTypeScaler.dylib (222.1.6) &lt;9147F859-8BD9-31D9-AB54-8E9549B92AE9&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib 0x7fff38c91000 - 0x7fff38c95ff3 com.apple.ColorSyncLegacy (4.13.0 - 1) &lt;A5FB2694-1559-34A8-A3D3-2029F68A63CA&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy 0x7fff38d35000 - 0x7fff38d87ffb com.apple.HIServices (1.22 - 624.1) &lt;66FD9ED2-9630-313C-86AE-4C2FBCB3F351&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x7fff38d88000 - 0x7fff38d96fff com.apple.LangAnalysis (1.7.0 - 1.7.0) &lt;B65FF7E6-E9B5-34D8-8CA7-63D415A8A9A6&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x7fff38d97000 - 0x7fff38de3fff com.apple.print.framework.PrintCore (13.4 - 503.2) &lt;B90C67C1-0292-3CEC-885D-F1882CD104BE&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x7fff38de4000 - 0x7fff38e1efff com.apple.QD (3.12 - 404.2) &lt;38B20AFF-9D54-3B52-A6DC-C0D71380AA5F&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x7fff38e1f000 - 0x7fff38e2bfff com.apple.speech.synthesis.framework (7.5.1 - 7.5.1) &lt;84ADDF38-36F1-3D3B-B28D-8865FA10FCD7&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x7fff38e2c000 - 0x7fff390b9ff7 com.apple.audio.toolbox.AudioToolbox (1.14 - 1.14) &lt;4545D879-3520-36D1-A83D-F3993CC2FA6B&gt; /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x7fff390bb000 - 0x7fff390bbfff com.apple.audio.units.AudioUnit (1.14 - 1.14) &lt;2EC5D9A6-EB65-32D8-9740-91D293626705&gt; /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x7fff393de000 - 0x7fff39778ff7 com.apple.CFNetwork (901.1 - 901.1) &lt;5181E03E-F354-35D6-949B-79433346510B&gt; /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x7fff3978d000 - 0x7fff3978dfff com.apple.Carbon (158 - 158) &lt;F8B370D9-2103-3276-821D-ACC756167F86&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x7fff3978e000 - 0x7fff39791ffb com.apple.CommonPanels (1.2.6 - 98) &lt;2391761C-5CAA-3F68-86B7-50B37927B104&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x7fff39792000 - 0x7fff39a97fff com.apple.HIToolbox (2.1.1 - 911.10) &lt;EFE04E77-F288-3EC9-B7B4-C4C7C29D55EE&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7fff39a98000 - 0x7fff39a9bffb com.apple.help (1.3.8 - 66) &lt;DEBADFA8-C189-3195-B0D6-A1F2DE95882A&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x7fff39a9c000 - 0x7fff39aa1fff com.apple.ImageCapture (9.0 - 9.0) &lt;23B4916F-3B43-3DFF-B956-FC390EECA284&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x7fff39aa2000 - 0x7fff39b37ffb com.apple.ink.framework (10.9 - 221) &lt;5206C8B0-22DA-36C9-998E-846EDB626D5B&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x7fff39b38000 - 0x7fff39b52ff7 com.apple.openscripting (1.7 - 174) &lt;1B2A1F9E-5534-3D61-83CA-9199B39E8708&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x7fff39b73000 - 0x7fff39b74fff com.apple.print.framework.Print (12 - 267) &lt;3682ABFB-2561-3419-847D-02C247F4800D&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x7fff39b75000 - 0x7fff39b77ff7 com.apple.securityhi (9.0 - 55006) &lt;C1406B8D-7D05-3959-808F-9C82189CF57F&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x7fff39b78000 - 0x7fff39b7efff com.apple.speech.recognition.framework (6.0.3 - 6.0.3) &lt;2ED8643D-B0C3-3F17-82A2-BBF13E6CBABC&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x7fff39c9f000 - 0x7fff39c9ffff com.apple.Cocoa (6.11 - 22) &lt;4CF8E31C-B5C7-367B-B73D-1A8AC8E41B7F&gt; /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x7fff39cad000 - 0x7fff39d66fff com.apple.ColorSync (4.13.0 - 3325) &lt;D283C285-447D-3258-A7E4-59532123B8FF&gt; /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x7fff39ef3000 - 0x7fff39f86ff7 com.apple.audio.CoreAudio (4.3.0 - 4.3.0) &lt;222E098D-96E5-3669-B077-3C019111849A&gt; /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x7fff39fed000 - 0x7fff3a016ffb com.apple.CoreBluetooth (1.0 - 1) &lt;E1335074-9D07-370E-8440-61C4874BAC56&gt; /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth 0x7fff3a017000 - 0x7fff3a36dfef com.apple.CoreData (120 - 851) &lt;A2B59780-FB16-36A3-8EE0-E0EF072454E0&gt; /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x7fff3a36e000 - 0x7fff3a455fff com.apple.CoreDisplay (1.0 - 97.21) &lt;88E1D7C8-90F4-3F2C-A92B-5AB30B0468C8&gt; /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay 0x7fff3a456000 - 0x7fff3a8f7fef com.apple.CoreFoundation (6.9 - 1452.23) &lt;945E5C0A-86C5-336E-A64F-5BF06E78985A&gt; /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff3a8f9000 - 0x7fff3af09fef com.apple.CoreGraphics (2.0 - 1161.21) &lt;27409F13-49A9-3C56-A9C6-D526C8FEEAD8&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x7fff3af0b000 - 0x7fff3b1fafff com.apple.CoreImage (13.0.0 - 579.5) &lt;2B007515-7D90-3D64-8B5D-3B45DF648BFF&gt; /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage 0x7fff3b267000 - 0x7fff3b2acfff com.apple.audio.midi.CoreMIDI (1.10 - 88) &lt;BC3E756C-A066-325C-9383-A78A4A66C7BF&gt; /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI 0x7fff3b489000 - 0x7fff3b57fffb com.apple.CoreMedia (1.0 - 2276.50) &lt;532FC472-3D02-39B5-8F48-5F14A35E5695&gt; /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia 0x7fff3b580000 - 0x7fff3b5cefff com.apple.CoreMediaIO (812.0 - 4994) &lt;57006022-B279-3DAD-8E7C-573D215746D2&gt; /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO 0x7fff3b5cf000 - 0x7fff3b5cffff com.apple.CoreServices (822.33 - 822.33) &lt;1AC8CE39-003D-3901-909F-2DE6838AF097&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x7fff3b5d0000 - 0x7fff3b644ffb com.apple.AE (735.1 - 735.1) &lt;08EBA184-20F7-3725-AEA6-C314448161C6&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x7fff3b645000 - 0x7fff3b91cfff com.apple.CoreServices.CarbonCore (1178.4 - 1178.4) &lt;0D5E19BF-18CB-3FA4-8A5F-F6C787C5EE08&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x7fff3b91d000 - 0x7fff3b951fff com.apple.DictionaryServices (1.2 - 284.2) &lt;6505B075-41C3-3C62-A4C3-85CE3F6825CD&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices 0x7fff3b952000 - 0x7fff3b95affb com.apple.CoreServices.FSEvents (1239.50.1 - 1239.50.1) &lt;3637CEC7-DF0E-320E-9634-44A442925C65&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents 0x7fff3b95b000 - 0x7fff3bb18fff com.apple.LaunchServices (822.32 - 822.32) &lt;2C93AAC9-6B22-3436-AC33-1BD414DCD66A&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x7fff3bb19000 - 0x7fff3bbc9ff7 com.apple.Metadata (10.7.0 - 1191.4.13) &lt;B5C22E70-C265-3C9F-865F-B138994A418D&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x7fff3bbca000 - 0x7fff3bc2afff com.apple.CoreServices.OSServices (822.33 - 822.33) &lt;856D17AF-2697-3838-980B-6B3AAFEE4BF9&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x7fff3bc2b000 - 0x7fff3bc99fff com.apple.SearchKit (1.4.0 - 1.4.0) &lt;3662545A-B1CF-3079-BDCD-C83855CEFEEE&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x7fff3bc9a000 - 0x7fff3bcbeffb com.apple.coreservices.SharedFileList (71.21 - 71.21) &lt;1B5228EF-D869-3A50-A373-7F4B0289FADD&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList 0x7fff3bf5f000 - 0x7fff3c0affff com.apple.CoreText (352.0 - 578.18) &lt;B8454115-2A4B-3585-A7A1-B47A638F2EEB&gt; /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText 0x7fff3c0b0000 - 0x7fff3c0eafff com.apple.CoreVideo (1.8 - 0.0) &lt;86CCC036-51BB-3DD1-9601-D93798BCCD0F&gt; /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo 0x7fff3c0eb000 - 0x7fff3c176ff3 com.apple.framework.CoreWLAN (13.0 - 1350.1) &lt;E862CC02-69D2-3503-887B-B6E8223081E7&gt; /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN 0x7fff3c3f1000 - 0x7fff3c3f6fff com.apple.DiskArbitration (2.7 - 2.7) &lt;B059E12C-94EA-3A39-A03F-8AAB5F4EE1F2&gt; /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x7fff3c5b7000 - 0x7fff3c97dfff com.apple.Foundation (6.9 - 1452.23) &lt;E64540AD-1755-3C16-8537-552A00E92541&gt; /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7fff3c9ed000 - 0x7fff3ca1dfff com.apple.GSS (4.0 - 2.0) &lt;41087278-74AE-3FA5-8C0E-9C78EB696299&gt; /System/Library/Frameworks/GSS.framework/Versions/A/GSS 0x7fff3ca1e000 - 0x7fff3ca36ff3 com.apple.GameController (1.0 - 1) &lt;CE96F310-B3E5-3EAE-B1BC-334F8C224FA7&gt; /System/Library/Frameworks/GameController.framework/Versions/A/GameController 0x7fff3cb2f000 - 0x7fff3cc33ffb com.apple.Bluetooth (6.0.6 - 6.0.6f2) &lt;6EFCF45B-E80B-3D6C-8729-0C5F9E19DB85&gt; /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth 0x7fff3cc93000 - 0x7fff3cd2eff7 com.apple.framework.IOKit (2.0.2 - 1445.60.1) &lt;7C16F358-1F63-349F-AD58-F7B287C7B7B7&gt; /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x7fff3cd30000 - 0x7fff3cd37ffb com.apple.IOSurface (211.12 - 211.12) &lt;392CA7DE-B365-364E-AF4A-33EC2CC48E6F&gt; /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface 0x7fff3cd38000 - 0x7fff3cd8dff3 com.apple.ImageCaptureCore (7.0 - 7.0) &lt;0DAB3D7E-8C3F-35DE-96DF-C370AD35EB65&gt; /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/ImageCaptureCore 0x7fff3cd8e000 - 0x7fff3cf08ff7 com.apple.ImageIO.framework (3.3.0 - 1739.3) &lt;7C579D3F-AE0B-31C9-8F80-67F2290B8DE0&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x7fff3cf09000 - 0x7fff3cf0dffb libGIF.dylib (1739.3) &lt;7AA44C9D-48E8-3090-B044-61FE6F0AEF38&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x7fff3cf0e000 - 0x7fff3cff5fef libJP2.dylib (1739.3) &lt;AEBF7260-0C10-30C0-8F0F-8B347DEE78B3&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x7fff3cff6000 - 0x7fff3d019ff7 libJPEG.dylib (1739.3) &lt;D8C966AD-A00C-3E8B-A7ED-D7CC7ECB3224&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x7fff3d2f5000 - 0x7fff3d31bfeb libPng.dylib (1739.3) &lt;1737F680-99D1-3F03-BFA5-5CDA30EB880A&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x7fff3d31c000 - 0x7fff3d31effb libRadiance.dylib (1739.3) &lt;21746434-FCC7-36DE-9331-11277DF66AA8&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x7fff3d31f000 - 0x7fff3d36dfef libTIFF.dylib (1739.3) &lt;C4CB5C1D-20F2-3BD4-B0E6-629FDB3EF8E8&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x7fff3d529000 - 0x7fff3e20ffff com.apple.JavaScriptCore (13605 - 13605.2.8) &lt;B1955CFF-9343-301B-A297-AC58F3CE47E2&gt; /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore 0x7fff3e227000 - 0x7fff3e240ff7 com.apple.Kerberos (3.0 - 1) &lt;F86DCCDF-93C1-38B3-82C2-477C12E8EE6D&gt; /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos 0x7fff3e4ff000 - 0x7fff3e506fff com.apple.MediaAccessibility (1.0 - 114) &lt;9F72AACD-BAEB-3646-BD0F-12C47591C20D&gt; /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility 0x7fff3e5b6000 - 0x7fff3ec1ffff com.apple.MediaToolbox (1.0 - 2276.50) &lt;805401B7-E013-32DB-AA73-E835328FA601&gt; /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox 0x7fff3ec21000 - 0x7fff3eca2ff7 com.apple.Metal (125.25 - 125.25) &lt;E804AB5C-43A9-3216-9930-652595E0BFE5&gt; /System/Library/Frameworks/Metal.framework/Versions/A/Metal 0x7fff3ecbf000 - 0x7fff3ecdafff com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) &lt;0B4455FE-5C97-345C-B416-325EC6D88A2A&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore 0x7fff3ecdb000 - 0x7fff3ed4afef com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) &lt;87F14199-C445-34C2-90F8-57C29212483E&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage 0x7fff3ed4b000 - 0x7fff3ed6ffff com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) &lt;BD50FD9C-CE92-34AF-8663-968BF89202A0&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix 0x7fff3ed70000 - 0x7fff3ee57ff7 com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) &lt;FBDDCAE6-EC6E-361F-B924-B3EBDEAC2D2F&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork 0x7fff3ee58000 - 0x7fff3ee58ff7 com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) &lt;20ECB52B-B5C2-39EA-88E3-DFEC0C3CC9FF&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders 0x7fff3fe57000 - 0x7fff3fe63ffb com.apple.NetFS (6.0 - 4.0) &lt;471DD96F-FA2E-3FE9-9746-2519A6780D1A&gt; /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS 0x7fff42c55000 - 0x7fff42ca3fff com.apple.opencl (2.8.15 - 2.8.15) &lt;23D7B57E-F538-3B2F-ABE0-91A2AC7C3FE6&gt; /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL 0x7fff42ca4000 - 0x7fff42cc0ffb com.apple.CFOpenDirectory (10.13 - 207.50.1) &lt;3A8DECB8-52E6-3426-997B-1EF60DF47B28&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory 0x7fff42cc1000 - 0x7fff42cccfff com.apple.OpenDirectory (10.13 - 207.50.1) &lt;13668964-818C-347A-9EBA-7C86CBFB33EA&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory 0x7fff43e4b000 - 0x7fff43e4dfff libCVMSPluginSupport.dylib (16.5.10) &lt;BF5D065A-A38B-3446-9418-799F598072EF&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib 0x7fff43e4e000 - 0x7fff43e53ffb libCoreFSCache.dylib (162.6.1) &lt;879B2738-2E8A-3596-AFF8-9C3FB1B6828B&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib 0x7fff43e54000 - 0x7fff43e58fff libCoreVMClient.dylib (162.6.1) &lt;64ED0A84-225F-39BC-BE0D-C896ACF5B50A&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib 0x7fff43e59000 - 0x7fff43e62ff7 libGFXShared.dylib (16.5.10) &lt;6024B1FE-ACD7-3314-B390-85972CB9B778&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib 0x7fff43e63000 - 0x7fff43e6efff libGL.dylib (16.5.10) &lt;AB8B6C73-8496-3784-83F6-27737ED03B09&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x7fff43e6f000 - 0x7fff43eaafe7 libGLImage.dylib (16.5.10) &lt;5B41D074-3132-3587-91B6-E441BA8C9F13&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x7fff44018000 - 0x7fff44056ffb libGLU.dylib (16.5.10) &lt;F6844912-1B86-34DF-9FB5-A428CC7B5B18&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x7fff449ce000 - 0x7fff449ddfff com.apple.opengl (16.5.10 - 16.5.10) &lt;D51C7DE3-ABE0-3CED-BB9C-7D71C3205FB6&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x7fff44d57000 - 0x7fff44ea3ff7 com.apple.QTKit (7.7.3 - 3014.8) &lt;FEDEF531-50A3-32AB-A546-E6BA994C58E1&gt; /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit 0x7fff44ea4000 - 0x7fff45109ff7 com.apple.imageKit (3.0 - 1043) &lt;269244BB-A86E-3248-91D3-7B412D1899C6&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/ImageKit 0x7fff4510a000 - 0x7fff451f9ffb com.apple.PDFKit (1.0 - 677.67) &lt;6BD11C23-1AEA-3078-8D0C-A7152BCF9031&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framework/Versions/A/PDFKit 0x7fff451fa000 - 0x7fff4570cff7 com.apple.QuartzComposer (5.1 - 364) &lt;1369D6DA-8842-3878-B546-1D09828331F5&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework/Versions/A/QuartzComposer 0x7fff4570d000 - 0x7fff45730fff com.apple.quartzfilters (1.10.0 - 1.10.0) &lt;C95CB89D-148D-341B-BC50-82D8C32BF767&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters.framework/Versions/A/QuartzFilters 0x7fff45731000 - 0x7fff4582aff7 com.apple.QuickLookUIFramework (5.0 - 743.13) &lt;09B296B3-4242-3224-9F44-5DFB4AB894CC&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.framework/Versions/A/QuickLookUI 0x7fff4582b000 - 0x7fff4582bfff com.apple.quartzframework (1.5 - 21) &lt;DCEB0FCC-2C32-3D02-8752-7B6FA009AB85&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz 0x7fff4582c000 - 0x7fff45a78ff7 com.apple.QuartzCore (1.11 - 584.52.1) &lt;1E11741B-1AEF-34EC-944B-845DD62718F4&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7fff45a79000 - 0x7fff45ad0ff7 com.apple.QuickLookFramework (5.0 - 743.13) &lt;8254FFF2-EE0D-323D-A6F3-BEB59615EE47&gt; /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook 0x7fff45c95000 - 0x7fff45cacff7 com.apple.SafariServices.framework (13605 - 13605.2.8) &lt;AD7B1A9A-E162-3431-83FD-B961973E10C7&gt; /System/Library/Frameworks/SafariServices.framework/Versions/A/SafariServices 0x7fff462ac000 - 0x7fff465d5fff com.apple.security (7.0 - 58286.60.28) &lt;12632D59-7FC2-3C37-AEAE-E9EB2A4253C3&gt; /System/Library/Frameworks/Security.framework/Versions/A/Security 0x7fff465d6000 - 0x7fff46662ff7 com.apple.securityfoundation (6.0 - 55185.50.5) &lt;0AF578A7-F076-3CC5-A5B7-FCA065D8CB74&gt; /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation 0x7fff46663000 - 0x7fff46693fff com.apple.securityinterface (10.0 - 55109.50.6) &lt;8F50BA5A-128D-3341-A49C-AAED201FDFC8&gt; /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInterface 0x7fff46694000 - 0x7fff46698ffb com.apple.xpc.ServiceManagement (1.0 - 1) &lt;2DE3DCFE-B463-35B4-8823-D8B6D799B654&gt; /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement 0x7fff468f9000 - 0x7fff46905ffb com.apple.StoreKit (1.0 - 657) &lt;2420CEF6-DB15-3FC6-B27D-3AB6E77680C4&gt; /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit 0x7fff46a3d000 - 0x7fff46aadff3 com.apple.SystemConfiguration (1.17 - 1.17) &lt;8532B8E9-7E30-35A3-BC4A-DDE8E0614FDA&gt; /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x7fff46c62000 - 0x7fff46fddfff com.apple.VideoToolbox (1.0 - 2276.50) &lt;882F0FAF-30C6-3052-BB93-F1875F41E419&gt; /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox 0x7fff499a8000 - 0x7fff49a3bfef com.apple.APFS (1.0 - 1) &lt;1C3D9229-E64A-3D11-ACDE-76E8171F7B7C&gt; /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS 0x7fff4a614000 - 0x7fff4a62fff3 com.apple.AppContainer (4.0 - 360.50.7) &lt;59F95A1A-15DF-33CE-9E52-DDEEFDC4D138&gt; /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer 0x7fff4a661000 - 0x7fff4a689fff com.apple.framework.Apple80211 (13.0 - 1361.7) &lt;16627876-8CF5-3502-A1D6-35FCBDD5E79A&gt; /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 0x7fff4a68b000 - 0x7fff4a69afef com.apple.AppleFSCompression (96.60.1 - 1.0) &lt;A7C875C4-F5EE-3272-AFB6-57C9FD5352B3&gt; /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression 0x7fff4a7dc000 - 0x7fff4a824ff3 com.apple.AppleJPEG (1.0 - 1) &lt;8DD410CB-76A1-3F22-9A9F-0491FA0CEB4A&gt; /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG 0x7fff4a85f000 - 0x7fff4a887fff com.apple.applesauce (1.0 - ???) &lt;CCA8B094-1BCE-3AE3-A0A7-D544C818DE36&gt; /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce 0x7fff4a950000 - 0x7fff4a953ff3 com.apple.AppleSystemInfo (3.1.5 - 3.1.5) &lt;0E33401D-7B9C-378A-8EE8-0E3D40B63C8D&gt; /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo 0x7fff4a954000 - 0x7fff4a9a4ff7 com.apple.AppleVAFramework (5.0.41 - 5.0.41) &lt;8169ABC4-56F0-301E-B913-A762F7E40DBF&gt; /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA 0x7fff4b0a9000 - 0x7fff4b0b0ff7 com.apple.coreservices.BackgroundTaskManagement (1.0 - 57.1) &lt;51A41CA3-DB1D-3380-993E-99C54AEE518E&gt; /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement 0x7fff4b0b1000 - 0x7fff4b138ff7 com.apple.backup.framework (1.9.5 - 1.9.5) &lt;8BCFB4DB-BAF0-328B-A019-FE13837AD154&gt; /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup 0x7fff4b141000 - 0x7fff4b147ff3 com.apple.BezelServicesFW (305 - 305) &lt;FEED193D-3363-3C8A-9815-4A6128E640E3&gt; /System/Library/PrivateFrameworks/BezelServices.framework/Versions/A/BezelServices 0x7fff4bf16000 - 0x7fff4bf65ff3 com.apple.ChunkingLibrary (189 - 189) &lt;C021A0EB-82E7-3A1E-A772-96B0E7E038D9&gt; /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary 0x7fff4cae1000 - 0x7fff4caedffb com.apple.CommerceCore (1.0 - 657) &lt;B2BD5F36-DF30-36CC-8370-292E7D07A84B&gt; /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore 0x7fff4caee000 - 0x7fff4caf7ff3 com.apple.CommonAuth (4.0 - 2.0) &lt;4D237B25-27E5-3577-948B-073659F6D3C0&gt; /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth 0x7fff4ce33000 - 0x7fff4d23bfff com.apple.CoreAUC (259.0.0 - 259.0.0) &lt;1E0FB2C7-109E-3924-8E7F-8C6ACD78AF26&gt; /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC 0x7fff4d23c000 - 0x7fff4d26cff7 com.apple.CoreAVCHD (5.9.0 - 5900.4.1) &lt;E9FF9574-122A-3966-AA2B-546E512ACD06&gt; /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD 0x7fff4d302000 - 0x7fff4d344ff3 com.apple.corebrightness (1.0 - 1) &lt;8CD236FB-CFC9-352A-B5A6-2DB4226CD806&gt; /System/Library/PrivateFrameworks/CoreBrightness.framework/Versions/A/CoreBrightness 0x7fff4d5fa000 - 0x7fff4d60aff7 com.apple.CoreEmoji (1.0 - 69.3) &lt;A4357F5C-0C38-3A61-B456-D7321EB2CEE5&gt; /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji 0x7fff4d90e000 - 0x7fff4d924ff7 com.apple.CoreMediaAuthoring (2.2 - 956) &lt;FBA28A76-97E2-3023-A3F6-D03280AE2889&gt; /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring 0x7fff4dc59000 - 0x7fff4dcfefff com.apple.CorePDF (4.0 - 414) &lt;D64D17C3-9AD0-3A29-89DE-36BEF0156381&gt; /System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/CorePDF 0x7fff4df31000 - 0x7fff4df62ff3 com.apple.CoreServicesInternal (309.1 - 309.1) &lt;4ECD14EA-A493-3B84-A32F-CF928474A405&gt; /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal 0x7fff4e29f000 - 0x7fff4e330fff com.apple.CoreSymbolication (9.3 - 64026) &lt;BAF3CE6E-8140-3159-BF1B-B953816459A0&gt; /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication 0x7fff4e3b3000 - 0x7fff4e4e8fff com.apple.coreui (2.1 - 494.1) &lt;B2C515C3-FCE8-3B28-A225-05AD917F509B&gt; /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI 0x7fff4e4e9000 - 0x7fff4e61afff com.apple.CoreUtils (5.6 - 560.11) &lt;1A02D6F0-8C65-3FAE-AD63-56477EDE4773&gt; /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils 0x7fff4e66f000 - 0x7fff4e6d3fff com.apple.framework.CoreWiFi (13.0 - 1350.1) &lt;6EC5DEB3-6E2F-3DC2-BE59-1FD05175FB0C&gt; /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi 0x7fff4e6d4000 - 0x7fff4e6e4ff7 com.apple.CrashReporterSupport (10.13 - 1) &lt;A909F468-0648-3F51-A77E-3F9ADBC9A941&gt; /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport 0x7fff4e762000 - 0x7fff4e771ff7 com.apple.framework.DFRFoundation (1.0 - 191.7) &lt;3B8ED6F7-5DFF-34C3-BA90-DDB85679684C&gt; /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation 0x7fff4e774000 - 0x7fff4e778ffb com.apple.DSExternalDisplay (3.1 - 380) &lt;901B7F6D-376A-3848-99D0-170C4D00F776&gt; /System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay 0x7fff4e7fa000 - 0x7fff4e870fff com.apple.datadetectorscore (7.0 - 590.3) &lt;26835841-E532-3930-A3F8-CE8DA0B244E3&gt; /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore 0x7fff4e8be000 - 0x7fff4e8feff7 com.apple.DebugSymbols (181.0 - 181.0) &lt;299A0238-ED78-3676-B131-274D972824AA&gt; /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols 0x7fff4e8ff000 - 0x7fff4ea2efff com.apple.desktopservices (1.12.5 - 1.12.5) &lt;8AC3EBBD-3B50-3B6F-AF95-0196F97EA713&gt; /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x7fff4ecf9000 - 0x7fff4ecfdff7 com.apple.DisplayServicesFW (3.1 - 380) &lt;6F0B8AC6-7E62-3DFC-B373-BF04833724C0&gt; /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayServices 0x7fff4f846000 - 0x7fff4fc74fff com.apple.vision.FaceCore (3.3.2 - 3.3.2) &lt;B574FE33-4A41-3611-9738-388EBAF03E37&gt; /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore 0x7fff518d0000 - 0x7fff518d0fff libmetal_timestamp.dylib (802.4.5) &lt;013C2314-3F0B-311E-BA35-66FB4B0C56A9&gt; /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/3802/Libraries/libmetal_timestamp.dylib 0x7fff52f3c000 - 0x7fff52f41ff7 com.apple.GPUWrangler (3.18.52 - 3.18.52) &lt;FCDE73DB-4663-3E3E-BFDA-B51648967AB5&gt; /System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler 0x7fff532f5000 - 0x7fff5331aff3 com.apple.GenerationalStorage (2.0 - 285.3) &lt;13B96400-FF70-376B-B20E-FB7D61064800&gt; /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage 0x7fff53cb7000 - 0x7fff53cc6fff com.apple.GraphVisualizer (1.0 - 5) &lt;B993B8A2-5700-3DFC-9EB7-4CCEE8F959F1&gt; /System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer 0x7fff53d49000 - 0x7fff53dbdfff com.apple.Heimdal (4.0 - 2.0) &lt;18607D75-DB78-3CC7-947E-AC769195164C&gt; /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal 0x7fff53dbe000 - 0x7fff53decfff com.apple.HelpData (2.3 - 167.1) &lt;CA17A45C-EDB0-3569-B6EB-62549261055E&gt; /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData 0x7fff546cc000 - 0x7fff546d3ff7 com.apple.IOAccelerator (378.18.1 - 378.18.1) &lt;F37B8021-DA55-3FA2-921F-59D49CAA2DFC&gt; /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator 0x7fff546d7000 - 0x7fff546eefff com.apple.IOPresentment (1.0 - 35.1) &lt;534F12C3-3585-3637-BE16-48891FCAEB7A&gt; /System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment 0x7fff54ab9000 - 0x7fff54adfffb com.apple.IconServices (97.6 - 97.6) &lt;A56D826D-20D2-34BE-AACC-A80CFCB4E915&gt; /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices 0x7fff54bec000 - 0x7fff54befff3 com.apple.InternationalSupport (1.0 - 1) &lt;5AB382FD-BF81-36A1-9565-61F1FD398ECA&gt; /System/Library/PrivateFrameworks/InternationalSupport.framework/Versions/A/InternationalSupport 0x7fff54c5d000 - 0x7fff54c6dffb com.apple.IntlPreferences (2.0 - 227.5.2) &lt;DA6BC4CA-14F5-3A83-82B6-812344A050D2&gt; /System/Library/PrivateFrameworks/IntlPreferences.framework/Versions/A/IntlPreferences 0x7fff54d78000 - 0x7fff54e6dff7 com.apple.LanguageModeling (1.0 - 159.5.3) &lt;7F0AC200-E3DD-39FB-8A95-00DD70B66A9F&gt; /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling 0x7fff54e6e000 - 0x7fff54eb0fff com.apple.Lexicon-framework (1.0 - 33.5) &lt;DC94CF9E-1EB4-3C0E-B298-CA1190885276&gt; /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon 0x7fff54eb4000 - 0x7fff54ebbff7 com.apple.LinguisticData (1.0 - 238.3) &lt;49A54649-1021-3DBD-99B8-1B2EDFFA5378&gt; /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData 0x7fff556ba000 - 0x7fff556bdfff com.apple.Mangrove (1.0 - 1) &lt;27D6DF76-B5F8-3443-8826-D25B284331BF&gt; /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove 0x7fff55bcc000 - 0x7fff55c35ff7 com.apple.gpusw.MetalTools (1.0 - 1) &lt;B5F66CF4-BE75-3A0B-A6A0-2F22C7C259D9&gt; /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools 0x7fff55db1000 - 0x7fff55dcafff com.apple.MobileKeyBag (2.0 - 1.0) &lt;828D360F-B6C6-34C3-8DE2-840664685081&gt; /System/Library/PrivateFrameworks/MobileKeyBag.framework/Versions/A/MobileKeyBag 0x7fff55e56000 - 0x7fff55e80ffb com.apple.MultitouchSupport.framework (1404.4 - 1404.4) &lt;45374A2A-C0BC-3A70-8183-37295205CDFA&gt; /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport 0x7fff560e7000 - 0x7fff560f2fff com.apple.NetAuth (6.2 - 6.2) &lt;B3795F63-C14A-33E1-9EE6-02A2E7661321&gt; /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth 0x7fff57986000 - 0x7fff57996ffb com.apple.PerformanceAnalysis (1.194 - 194) &lt;2844933E-B71C-3BE9-9A84-27B29E111F13&gt; /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis 0x7fff59754000 - 0x7fff59772fff com.apple.ProtocolBuffer (1 - 260) &lt;40704740-4A53-3010-A49B-08D1D69D1D5E&gt; /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer 0x7fff598df000 - 0x7fff598f5ff7 com.apple.QuickLookThumbnailing (1.0 - 1) &lt;8F0092E4-6494-349D-B4C9-494DF293D716&gt; /System/Library/PrivateFrameworks/QuickLookThumbnailing.framework/Versions/A/QuickLookThumbnailing 0x7fff59940000 - 0x7fff5994cfff com.apple.xpc.RemoteServiceDiscovery (1.0 - 1205.60.9) &lt;12E89ED2-E3E8-37CB-B4D8-C44E40285A3E&gt; /System/Library/PrivateFrameworks/RemoteServiceDiscovery.framework/Versions/A/RemoteServiceDiscovery 0x7fff5994d000 - 0x7fff59970ffb com.apple.RemoteViewServices (2.0 - 125) &lt;592323D1-CB44-35F1-9921-4C2AB8D920A0&gt; /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices 0x7fff59971000 - 0x7fff59985ff7 com.apple.xpc.RemoteXPC (1.0 - 1205.60.9) &lt;91DBCE29-743E-3D48-8D16-A8B497750D13&gt; /System/Library/PrivateFrameworks/RemoteXPC.framework/Versions/A/RemoteXPC 0x7fff5b144000 - 0x7fff5b147ff3 com.apple.SecCodeWrapper (4.0 - 360.50.7) &lt;D7136CA5-CC5E-3B3C-AF1A-A8E5FF2023DF&gt; /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper 0x7fff5b28c000 - 0x7fff5b39ffff com.apple.Sharing (1050.21 - 1050.21) &lt;D0C80C0B-8B70-3780-9231-31725AFAEA65&gt; /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing 0x7fff5b3a0000 - 0x7fff5b3bfff7 com.apple.shortcut (2.16 - 99) &lt;201F92AE-F8E6-3A24-B9DE-26B88CD2EF18&gt; /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut 0x7fff5b3ca000 - 0x7fff5b3cbff7 com.apple.performance.SignpostNotification (1.2.5 - 2.5) &lt;64CBA369-15D5-3A08-AFE8-B5D093974C68&gt; /System/Library/PrivateFrameworks/SignpostNotification.framework/Versions/A/SignpostNotification 0x7fff5c114000 - 0x7fff5c3b0fff com.apple.SkyLight (1.600.0 - 312.62) &lt;66F27586-E5CF-3147-9AC6-793B264DE29D&gt; /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight 0x7fff5cb79000 - 0x7fff5cb86fff com.apple.SpeechRecognitionCore (4.6.1 - 4.6.1) &lt;87EE7AB5-6925-3D21-BE00-F155CB457699&gt; /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore 0x7fff5d72b000 - 0x7fff5d7b4fc7 com.apple.Symbolication (9.3 - 64033) &lt;FAA17252-6378-34A4-BBBB-22DF54EC1626&gt; /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication 0x7fff5dd25000 - 0x7fff5dd2dff7 com.apple.TCC (1.0 - 1) &lt;E1EB7272-FE6F-39AB-83CA-B2B5F2A88D9B&gt; /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC 0x7fff5df3a000 - 0x7fff5dff7ff7 com.apple.TextureIO (3.7 - 3.7) &lt;F8BAC954-405D-3CC3-AB7B-048C866EF980&gt; /System/Library/PrivateFrameworks/TextureIO.framework/Versions/A/TextureIO 0x7fff5e0a8000 - 0x7fff5e257fff com.apple.UIFoundation (1.0 - 547.5) &lt;E8FD9325-F415-3DF9-8C64-425EE2C58822&gt; /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation 0x7fff5ef2c000 - 0x7fff5effbff7 com.apple.ViewBridge (343.2 - 343.2) &lt;5519FCED-1F88-3BE6-9BE1-69992086B01B&gt; /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/ViewBridge 0x7fff5f960000 - 0x7fff5f962ffb com.apple.loginsupport (1.0 - 1) &lt;D1232C1B-80EA-3DF8-9466-013695D0846E&gt; /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport 0x7fff5fac9000 - 0x7fff5fafcff7 libclosured.dylib (551.3) &lt;DC3DA678-9C40-339C-A9C6-32AB74FCC682&gt; /usr/lib/closure/libclosured.dylib 0x7fff5fbb6000 - 0x7fff5fbefff7 libCRFSuite.dylib (41) &lt;FE5EDB68-2593-3C2E-BBAF-1C52D206F296&gt; /usr/lib/libCRFSuite.dylib 0x7fff5fbf0000 - 0x7fff5fbfbfff libChineseTokenizer.dylib (28) &lt;53633C9B-A3A8-36F7-A53C-432D802F4BB8&gt; /usr/lib/libChineseTokenizer.dylib 0x7fff5fc8d000 - 0x7fff5fc8eff3 libDiagnosticMessagesClient.dylib (104) &lt;9712E980-76EE-3A89-AEA6-DF4BAF5C0574&gt; /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff5fcc5000 - 0x7fff5fe8fff3 libFosl_dynamic.dylib (17.8) &lt;C58ED77A-4986-31C2-994C-34DDFB8106F0&gt; /usr/lib/libFosl_dynamic.dylib 0x7fff5feaf000 - 0x7fff5feb6fff libMatch.1.dylib (31) &lt;74AB4815-11D1-3930-A559-BD6550CE5865&gt; /usr/lib/libMatch.1.dylib 0x7fff5fec7000 - 0x7fff5fec7fff libOpenScriptingUtil.dylib (174) &lt;610F0242-7CE5-3C86-951B-B646562694AF&gt; /usr/lib/libOpenScriptingUtil.dylib 0x7fff5fffe000 - 0x7fff60002ffb libScreenReader.dylib (562.18.4) &lt;E239923D-54C9-3BBF-852F-87C09DEF4091&gt; /usr/lib/libScreenReader.dylib 0x7fff60003000 - 0x7fff60004ffb libSystem.B.dylib (1252.50.4) &lt;CDA73F3E-2A7D-3354-818A-580317A03255&gt; /usr/lib/libSystem.B.dylib 0x7fff60097000 - 0x7fff60097fff libapple_crypto.dylib (109.50.14) &lt;48BA2E76-BF2F-3522-A54E-D7FB7EAF7A57&gt; /usr/lib/libapple_crypto.dylib 0x7fff60098000 - 0x7fff600aeff7 libapple_nghttp2.dylib (1.24) &lt;01402BC4-4822-3676-9C80-50D83F816424&gt; /usr/lib/libapple_nghttp2.dylib 0x7fff600af000 - 0x7fff600d9ff3 libarchive.2.dylib (54) &lt;8FC28DD8-E315-3C3E-95FE-D1D2CBE49888&gt; /usr/lib/libarchive.2.dylib 0x7fff600da000 - 0x7fff6015bfdf libate.dylib (1.13.1) &lt;178ACDAD-DE7E-346C-A613-1CBF7929AC07&gt; /usr/lib/libate.dylib 0x7fff6015f000 - 0x7fff6015fff3 libauto.dylib (187) &lt;A05C7900-F8C7-3E75-8D3F-909B40C19717&gt; /usr/lib/libauto.dylib 0x7fff60160000 - 0x7fff60218ff3 libboringssl.dylib (109.50.14) &lt;E6813F87-B5E4-3F7F-A725-E6A7F2BD02EC&gt; /usr/lib/libboringssl.dylib 0x7fff60219000 - 0x7fff60229ff3 libbsm.0.dylib (39) &lt;6BC96A72-AFBE-34FD-91B1-748A530D8AE6&gt; /usr/lib/libbsm.0.dylib 0x7fff6022a000 - 0x7fff60237ffb libbz2.1.0.dylib (38) &lt;0A5086BB-4724-3C14-979D-5AD4F26B5B45&gt; /usr/lib/libbz2.1.0.dylib 0x7fff60238000 - 0x7fff6028efff libc++.1.dylib (400.9) &lt;7D3DACCC-3804-393C-ABC1-1A580FD00CB6&gt; /usr/lib/libc++.1.dylib 0x7fff6028f000 - 0x7fff602b3ff7 libc++abi.dylib (400.8.2) &lt;EF5E37D7-11D9-3530-BE45-B986612D13E2&gt; /usr/lib/libc++abi.dylib 0x7fff602b5000 - 0x7fff602c5fff libcmph.dylib (6) &lt;A5509EE8-7E00-3224-8814-015B077A3CF5&gt; /usr/lib/libcmph.dylib 0x7fff602c6000 - 0x7fff602ddfcf libcompression.dylib (47.60.2) &lt;543F07BF-2F2F-37D5-9866-E84BF659885B&gt; /usr/lib/libcompression.dylib 0x7fff60588000 - 0x7fff605a0ff7 libcoretls.dylib (155.50.1) &lt;D350052E-DC4D-3185-ADBA-BA48EDCEE955&gt; /usr/lib/libcoretls.dylib 0x7fff605a1000 - 0x7fff605a2ff3 libcoretls_cfhelpers.dylib (155.50.1) &lt;B297F5D8-F2FE-3566-A752-E9D998B9C039&gt; /usr/lib/libcoretls_cfhelpers.dylib 0x7fff60a73000 - 0x7fff60ac9ff3 libcups.2.dylib (462.2.1) &lt;5FD94468-FC3C-32DC-8EF5-EFDC2815FE85&gt; /usr/lib/libcups.2.dylib 0x7fff60c09000 - 0x7fff60c09fff libenergytrace.dylib (16) &lt;A92AB8B8-B986-3CE6-980D-D55090FEF387&gt; /usr/lib/libenergytrace.dylib 0x7fff60c0a000 - 0x7fff60c23ffb libexpat.1.dylib (16.1.1) &lt;5E1796FA-4041-3187-B5C2-8E6B03D1D72A&gt; /usr/lib/libexpat.1.dylib 0x7fff60c40000 - 0x7fff60c45ff3 libheimdal-asn1.dylib (520.50.6) &lt;E358445A-B84E-31B5-BCCD-7E1397519D96&gt; /usr/lib/libheimdal-asn1.dylib 0x7fff60c71000 - 0x7fff60d62ff7 libiconv.2.dylib (51.50.1) &lt;2FEC9707-3FAF-3828-A50D-8605086D060F&gt; /usr/lib/libiconv.2.dylib 0x7fff60d63000 - 0x7fff60f8affb libicucore.A.dylib (59180.0.1) &lt;49C253CB-1BEF-3FF6-ABAB-7BACEEDE8C94&gt; /usr/lib/libicucore.A.dylib 0x7fff60fd7000 - 0x7fff60fd8fff liblangid.dylib (128) &lt;39C39393-0D05-301D-93B2-F224FC4949AA&gt; /usr/lib/liblangid.dylib 0x7fff60fd9000 - 0x7fff60ff2ffb liblzma.5.dylib (10) &lt;3D419A50-961F-37D2-8A01-3DC7AB7B8D18&gt; /usr/lib/liblzma.5.dylib 0x7fff60ff3000 - 0x7fff61009ff7 libmarisa.dylib (9) &lt;D6D2D55D-1D2E-3442-B152-B18803C0ABB4&gt; /usr/lib/libmarisa.dylib 0x7fff610ba000 - 0x7fff612e2ff7 libmecabra.dylib (779.7.6) &lt;F462F170-E872-3D09-B219-973D5E99C09F&gt; /usr/lib/libmecabra.dylib 0x7fff614ba000 - 0x7fff61634fff libnetwork.dylib (1229.60.3) &lt;6E469F8A-963B-399D-9053-4883D2EECF4E&gt; /usr/lib/libnetwork.dylib 0x7fff616bb000 - 0x7fff61aa97e7 libobjc.A.dylib (723) &lt;DD9E5EC5-B507-3249-B700-93433E2D5EDF&gt; /usr/lib/libobjc.A.dylib 0x7fff61abc000 - 0x7fff61ac0fff libpam.2.dylib (22) &lt;7B4D2CE2-1438-387A-9802-5CEEFBF26F86&gt; /usr/lib/libpam.2.dylib 0x7fff61ac3000 - 0x7fff61af7fff libpcap.A.dylib (79.20.1) &lt;FA13918B-A247-3181-B256-9B852C7BA316&gt; /usr/lib/libpcap.A.dylib 0x7fff61b76000 - 0x7fff61b92ffb libresolv.9.dylib (65) &lt;E8F3415B-4472-3202-8901-41FD87981DB2&gt; /usr/lib/libresolv.9.dylib 0x7fff61b94000 - 0x7fff61bcdff3 libsandbox.1.dylib (765.60.1) &lt;E882AB2E-E433-3E61-94AA-5E57361EC68B&gt; /usr/lib/libsandbox.1.dylib 0x7fff61be1000 - 0x7fff61be2ff3 libspindump.dylib (252) &lt;D8E27057-E3CC-3D7F-A010-4A87830F6A83&gt; /usr/lib/libspindump.dylib 0x7fff61be3000 - 0x7fff61d76ff7 libsqlite3.dylib (274.8.1) &lt;FCAD6A57-829E-3701-B16E-1833D620E0E8&gt; /usr/lib/libsqlite3.dylib 0x7fff61f4a000 - 0x7fff61faaff3 libusrtcp.dylib (1229.60.3) &lt;584152F4-EDC1-388A-9134-95147E8ABC49&gt; /usr/lib/libusrtcp.dylib 0x7fff61fab000 - 0x7fff61faeffb libutil.dylib (51.20.1) &lt;216D18E5-0BAF-3EAF-A38E-F6AC37CBABD9&gt; /usr/lib/libutil.dylib 0x7fff61faf000 - 0x7fff61fbcfff libxar.1.dylib (400) &lt;0316128D-3B47-3052-995D-97B4FE5491DC&gt; /usr/lib/libxar.1.dylib 0x7fff61fc0000 - 0x7fff620a7fff libxml2.2.dylib (31.10) &lt;503721DB-0D8D-379E-B743-18CE59304155&gt; /usr/lib/libxml2.2.dylib 0x7fff620a8000 - 0x7fff620d0fff libxslt.1.dylib (15.12) &lt;4A5E011D-8B29-3135-A52B-9A9070ABD752&gt; /usr/lib/libxslt.1.dylib 0x7fff620d1000 - 0x7fff620e3ffb libz.1.dylib (70) &lt;48C67CFC-940D-3857-8DAD-857774605352&gt; /usr/lib/libz.1.dylib 0x7fff6217f000 - 0x7fff62183ff7 libcache.dylib (80) &lt;092479CB-1008-3A83-BECF-E115F24D13C1&gt; /usr/lib/system/libcache.dylib 0x7fff62184000 - 0x7fff6218eff3 libcommonCrypto.dylib (60118.50.1) &lt;029F5985-9B6E-3DCB-9B96-FD007678C6A7&gt; /usr/lib/system/libcommonCrypto.dylib 0x7fff6218f000 - 0x7fff62196fff libcompiler_rt.dylib (62) &lt;968B8E3F-3681-3230-9D78-BB8732024F6E&gt; /usr/lib/system/libcompiler_rt.dylib 0x7fff62197000 - 0x7fff621a0ffb libcopyfile.dylib (146.50.5) &lt;3885083D-50D8-3EEC-B481-B2E605180D7F&gt; /usr/lib/system/libcopyfile.dylib 0x7fff621a1000 - 0x7fff62226fff libcorecrypto.dylib (562.50.17) &lt;67007279-24E1-3F30-802D-A55CD5C27946&gt; /usr/lib/system/libcorecrypto.dylib 0x7fff622ae000 - 0x7fff622e7ff7 libdispatch.dylib (913.60.2) &lt;414353F7-3A9F-3091-AFCE-E66F74687D5D&gt; /usr/lib/system/libdispatch.dylib 0x7fff622e8000 - 0x7fff62305ff7 libdyld.dylib (551.3) &lt;CF59A5A5-288B-30E6-BD42-9056B4E4139A&gt; /usr/lib/system/libdyld.dylib 0x7fff62306000 - 0x7fff62306ffb libkeymgr.dylib (28) &lt;E34E283E-90FA-3C59-B48E-1277CDB9CDCE&gt; /usr/lib/system/libkeymgr.dylib 0x7fff62307000 - 0x7fff62313ff3 libkxld.dylib (4570.61.1) &lt;E394563E-F5D5-338D-B733-445A553E6327&gt; /usr/lib/system/libkxld.dylib 0x7fff62314000 - 0x7fff62314ff7 liblaunch.dylib (1205.60.9) &lt;4B2943A9-0994-3E8B-94B8-98DA9CED0021&gt; /usr/lib/system/liblaunch.dylib 0x7fff62315000 - 0x7fff62319ffb libmacho.dylib (906) &lt;1902A611-081A-3452-B11E-EBD1B166E831&gt; /usr/lib/system/libmacho.dylib 0x7fff6231a000 - 0x7fff6231cff3 libquarantine.dylib (86) &lt;26C0BA22-8F93-3A07-9A4E-C8D53D2CE42E&gt; /usr/lib/system/libquarantine.dylib 0x7fff6231d000 - 0x7fff6231eff3 libremovefile.dylib (45) &lt;711E18B2-5BBE-3211-A916-56740C27D17A&gt; /usr/lib/system/libremovefile.dylib 0x7fff6231f000 - 0x7fff62336fff libsystem_asl.dylib (356.50.1) &lt;3B24F2D1-B578-359D-ADB2-0ED19A364C38&gt; /usr/lib/system/libsystem_asl.dylib 0x7fff62337000 - 0x7fff62337fff libsystem_blocks.dylib (67) &lt;17303FDF-0D2D-3963-B05E-B4DF63052D47&gt; /usr/lib/system/libsystem_blocks.dylib 0x7fff62338000 - 0x7fff623c1ff7 libsystem_c.dylib (1244.50.9) &lt;1187BFE8-4576-3247-8177-481554E1F9E7&gt; /usr/lib/system/libsystem_c.dylib 0x7fff623c2000 - 0x7fff623c5ffb libsystem_configuration.dylib (963.50.8) &lt;DF6B5287-203E-30CB-9947-78DF446C72B8&gt; /usr/lib/system/libsystem_configuration.dylib 0x7fff623c6000 - 0x7fff623c9ffb libsystem_coreservices.dylib (51) &lt;486000D3-D8CB-3BE7-8EE5-8BF380DE6DF7&gt; /usr/lib/system/libsystem_coreservices.dylib 0x7fff623ca000 - 0x7fff623cbfff libsystem_darwin.dylib (1244.50.9) &lt;09C21A4A-9EE0-388B-A9D9-DFF8F6758791&gt; /usr/lib/system/libsystem_darwin.dylib 0x7fff623cc000 - 0x7fff623d2ff7 libsystem_dnssd.dylib (878.50.17) &lt;C12E2075-3E4B-3187-8B3B-F6150FCB82E0&gt; /usr/lib/system/libsystem_dnssd.dylib 0x7fff623d3000 - 0x7fff6241cff7 libsystem_info.dylib (517.30.1) &lt;AB634A98-B8AA-3804-8436-38261FC8EC4D&gt; /usr/lib/system/libsystem_info.dylib 0x7fff6241d000 - 0x7fff62443ff7 libsystem_kernel.dylib (4570.61.1) &lt;D7F2010A-EA32-3F62-90DE-85E3C5CC3065&gt; /usr/lib/system/libsystem_kernel.dylib 0x7fff62444000 - 0x7fff6248ffcb libsystem_m.dylib (3147.50.1) &lt;8CFB51C9-B422-3379-8552-064C63943A23&gt; /usr/lib/system/libsystem_m.dylib 0x7fff62490000 - 0x7fff624affff libsystem_malloc.dylib (140.50.6) &lt;7FD43735-9DDD-300E-8C4A-F909A74BDF49&gt; /usr/lib/system/libsystem_malloc.dylib 0x7fff624b0000 - 0x7fff625e0ff7 libsystem_network.dylib (1229.60.3) &lt;D17B38B7-BE5D-3A9C-9257-F045E7647E8A&gt; /usr/lib/system/libsystem_network.dylib 0x7fff625e1000 - 0x7fff625ebffb libsystem_networkextension.dylib (767.60.1) &lt;1745C91F-9AF0-357D-BD40-34451A2D6A5E&gt; /usr/lib/system/libsystem_networkextension.dylib 0x7fff625ec000 - 0x7fff625f5ff3 libsystem_notify.dylib (172) &lt;08012EC0-2CD2-34BE-BF93-E7F56491299A&gt; /usr/lib/system/libsystem_notify.dylib 0x7fff625f6000 - 0x7fff625fdff7 libsystem_platform.dylib (161.50.1) &lt;6355EE2D-5456-3CA8-A227-B96E8F1E2AF8&gt; /usr/lib/system/libsystem_platform.dylib 0x7fff625fe000 - 0x7fff62609fff libsystem_pthread.dylib (301.50.1) &lt;0E51CCBA-91F2-34E1-BF2A-FEEFD3D321E4&gt; /usr/lib/system/libsystem_pthread.dylib 0x7fff6260a000 - 0x7fff6260dfff libsystem_sandbox.dylib (765.60.1) &lt;E5DE4B2F-202D-3474-9F08-7CAB1501D411&gt; /usr/lib/system/libsystem_sandbox.dylib 0x7fff6260e000 - 0x7fff6260fff3 libsystem_secinit.dylib (30) &lt;DE8D14E8-A276-3FF8-AE13-77F7040F33C1&gt; /usr/lib/system/libsystem_secinit.dylib 0x7fff62610000 - 0x7fff62617ff7 libsystem_symptoms.dylib (820.60.2) &lt;9C9E82AB-D1EE-3EC7-B20E-44338CE092AC&gt; /usr/lib/system/libsystem_symptoms.dylib 0x7fff62618000 - 0x7fff6262bfff libsystem_trace.dylib (829.50.17) &lt;6568D68B-1D4C-38EE-90A9-54821D6403C0&gt; /usr/lib/system/libsystem_trace.dylib 0x7fff6262d000 - 0x7fff62632ff7 libunwind.dylib (35.3) &lt;BEF3FB49-5604-3B5F-82B5-332B80023AC3&gt; /usr/lib/system/libunwind.dylib 0x7fff62633000 - 0x7fff62660fff libxpc.dylib (1205.60.9) &lt;16132357-B57A-35F5-B165-487D3F759F45&gt; /usr/lib/system/libxpc.dylib External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 1247717 thread_create: 0 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=462.7M resident=0K(0%) swapped_out_or_unallocated=462.7M(100%) Writable regions: Total=421.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=421.6M(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate framework 768K 5 Activity Tracing 256K 2 CG backing stores 15.1M 8 CG image 108K 8 CoreAnimation 172K 11 CoreGraphics 8K 2 CoreImage 40K 7 CoreUI image data 2272K 18 CoreUI image file 180K 4 Dispatch continuations 8192K 2 Foundation 4K 2 IOKit 8760K 11 Kernel Alloc Once 8K 2 MALLOC 102.0M 46 MALLOC guard page 48K 13 Memory Tag 242 12K 2 Memory Tag 255 1.0G 103 Memory Tag 255 (reserved) 12K 4 reserved VM address space (unallocated) STACK GUARD 56.2M 42 Stack 245.8M 83 VM_ALLOCATE 52K 6 __DATA 33.7M 278 __FONT_DATA 4K 2 __LINKEDIT 197.5M 10 __TEXT 265.2M 282 __UNICODE 560K 2 mapped file 147.9M 39 shared memory 23.3M 35 =========== ======= ======= TOTAL 2.1G 1001 TOTAL, minus reserved VM space 2.1G 1001 Model: MacBookPro11,1, BootROM MBP111.0146.B00, 2 processors, Intel Core i5, 2.6 GHz, 8 GB, SMC 2.16f68 Graphics: Intel Iris, Intel Iris, Built-In Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463531323634485A2D314736453120 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463531323634485A2D314736453120 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.77.37.31.1a9) Bluetooth: Version 6.0.6f2, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SD0128F, 121.33 GB USB Device: USB 3.0 Bus USB Device: Internal Memory Card Reader USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM20702 Hub USB Device: Bluetooth USB Host Controller Thunderbolt Bus: MacBook Pro, Apple Inc., 17.2"><pre class="notranslate"><code class="notranslate">Process: Electron [53700] Path: /Users/USER/*/Electron.app/Contents/MacOS/Electron Identifier: com.github.electron Version: 2.0.3 (2.0.3) Code Type: X86-64 (Native) Parent Process: node [53687] Responsible: Electron [50705] User ID: 501 Date/Time: 2018-07-04 11:11:08.578 +0800 OS Version: Mac OS X 10.13.5 (17F77) Report Version: 12 Anonymous UUID: 17308E10-7530-E46E-1903-0E89CA2F3DC1 Sleep/Wake UUID: 4266664E-1B71-417A-8F17-96387BA39E76 Time Awake Since Boot: 120000 seconds Time Since Wake: 5000 seconds System Integrity Protection: disabled Crashed Thread: 0 CrBrowserMain Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000007fe5bee3688 VM Regions Near 0x7fe5bee3688: MALLOC_LARGE 0000000119437000-0000000119479000 [ 264K] rw-/rwx SM=PRV --&gt; Memory Tag 255 00000d5900580000-00000d5900600000 [ 512K] rw-/rwx SM=PRV Application Specific Information: objc_msgSend() selector name: isMenuOpen Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x00007fff616c1e9d objc_msgSend + 29 1 com.github.electron.framework 0x00000001076e1b63 0x1075ef000 + 994147 2 com.github.electron.framework 0x00000001076e0ace 0x1075ef000 + 989902 3 com.github.electron.framework 0x00000001076e1038 0x1075ef000 + 991288 4 com.github.electron.framework 0x00000001076e1aee 0x1075ef000 + 994030 5 com.apple.AppKit 0x00007fff37a8b70c -[NSView _viewDidChangeAppearance:] + 290 6 com.apple.AppKit 0x00007fff37a8b3a2 -[NSView _recursiveSendViewDidChangeAppearance:] + 57 7 com.apple.AppKit 0x00007fff37a8b45e -[NSView _recursiveSendViewDidChangeAppearance:] + 245 8 com.apple.AppKit 0x00007fff37a53c5e -[NSView _setSuperview:] + 1307 9 com.apple.AppKit 0x00007fff37a5879d -[NSView removeFromSuperview] + 252 10 com.apple.AppKit 0x00007fff37b6c32c -[NSView removeFromSuperviewWithoutNeedingDisplay] + 38 11 com.apple.AppKit 0x00007fff3831b998 -[NSView _finalize] + 1068 12 com.apple.AppKit 0x00007fff37a6657a -[NSView dealloc] + 164 13 com.apple.AppKit 0x00007fff37ce5249 -[NSNextStepFrame dealloc] + 94 14 com.apple.AppKit 0x00007fff37cc1149 -[NSWindow dealloc] + 1480 15 com.apple.AppKit 0x00007fff381f9053 -[NSStatusBarWindow dealloc] + 133 16 libobjc.A.dylib 0x00007fff616c5087 (anonymous namespace)::AutoreleasePoolPage::pop(void*) + 817 17 com.apple.CoreFoundation 0x00007fff3a49aa56 _CFAutoreleasePoolPop + 22 18 com.apple.Foundation 0x00007fff3c5cc8ad -[NSAutoreleasePool drain] + 144 19 com.github.electron.framework 0x000000010787dba6 0x1075ef000 + 2681766 20 com.github.electron.framework 0x00000001078322fa 0x1075ef000 + 2372346 21 com.github.electron.framework 0x000000010787d46f 0x1075ef000 + 2679919 22 com.apple.CoreFoundation 0x00007fff3a4f9a61 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17 23 com.apple.CoreFoundation 0x00007fff3a5b347c __CFRunLoopDoSource0 + 108 24 com.apple.CoreFoundation 0x00007fff3a4dc4c0 __CFRunLoopDoSources0 + 208 25 com.apple.CoreFoundation 0x00007fff3a4db93d __CFRunLoopRun + 1293 26 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 27 com.apple.HIToolbox 0x00007fff397c1d96 RunCurrentEventLoopInMode + 286 28 com.apple.HIToolbox 0x00007fff397c1b06 ReceiveNextEventCommon + 613 29 com.apple.HIToolbox 0x00007fff397c1884 _BlockUntilNextEventMatchingListInModeWithFilter + 64 30 com.apple.AppKit 0x00007fff37a73a73 _DPSNextEvent + 2085 31 com.apple.AppKit 0x00007fff38209e34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044 32 com.apple.AppKit 0x00007fff37a68885 -[NSApplication run] + 764 33 com.github.electron.framework 0x000000010787e37e 0x1075ef000 + 2683774 34 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 35 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 36 com.github.electron.framework 0x0000000107aff75f 0x1075ef000 + 5310303 37 com.github.electron.framework 0x0000000107aff580 0x1075ef000 + 5309824 38 com.github.electron.framework 0x0000000107b01c02 0x1075ef000 + 5319682 39 com.github.electron.framework 0x0000000107afb5dc 0x1075ef000 + 5293532 40 com.github.electron.framework 0x0000000107a447b0 0x1075ef000 + 4544432 41 com.github.electron.framework 0x0000000109639cd4 0x1075ef000 + 33860820 42 com.github.electron.framework 0x0000000107a435c4 0x1075ef000 + 4539844 43 com.github.electron.framework 0x00000001075f1284 AtomMain + 68 44 com.github.electron 0x0000000104549f26 main + 38 45 libdyld.dylib 0x00007fff622e9015 start + 1 Thread 1: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff62601009 _pthread_wqthread + 1035 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 2: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6260120e _pthread_wqthread + 1552 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 3: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x00000001047b90c9 0x104684000 + 1265865 4 libnode.dylib 0x00000001047b90bc 0x104684000 + 1265852 5 libnode.dylib 0x00000001047b9004 0x104684000 + 1265668 6 libnode.dylib 0x00000001047b8932 0x104684000 + 1263922 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 4: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x00000001047b90c9 0x104684000 + 1265865 4 libnode.dylib 0x00000001047b90bc 0x104684000 + 1265852 5 libnode.dylib 0x00000001047b9004 0x104684000 + 1265668 6 libnode.dylib 0x00000001047b8932 0x104684000 + 1263922 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 5: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x00000001047b90c9 0x104684000 + 1265865 4 libnode.dylib 0x00000001047b90bc 0x104684000 + 1265852 5 libnode.dylib 0x00000001047b9004 0x104684000 + 1265668 6 libnode.dylib 0x00000001047b8932 0x104684000 + 1263922 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 6: 0 libsystem_kernel.dylib 0x00007fff62430246 semaphore_wait_trap + 10 1 libnode.dylib 0x000000010483e0c0 uv_sem_wait + 16 2 libnode.dylib 0x00000001047e09fd 0x104684000 + 1427965 3 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 4 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 5 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 7: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6260120e _pthread_wqthread + 1552 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 8: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff62601009 _pthread_wqthread + 1035 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 9:: NetworkConfigWatcher 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.apple.Foundation 0x00007fff3c5d7f26 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277 6 com.github.electron.framework 0x000000010787e1ce 0x1075ef000 + 2683342 7 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 8 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 9 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 10 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 11 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 12 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 13 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 10:: DnsConfigService 0 libsystem_kernel.dylib 0x00007fff6243abf2 kevent + 10 1 com.github.electron.framework 0x00000001078e4c19 0x1075ef000 + 3103769 2 com.github.electron.framework 0x00000001078e3dad 0x1075ef000 + 3100077 3 com.github.electron.framework 0x000000010787cbdf 0x1075ef000 + 2677727 4 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 5 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 11:: CrShutdownDetector 0 libsystem_kernel.dylib 0x00007fff6243b14a read + 10 1 com.github.electron.framework 0x000000010769683f 0x1075ef000 + 686143 2 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 3 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 4 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 5 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 12:: WorkerPool/26115 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078df7f6 0x1075ef000 + 3082230 4 com.github.electron.framework 0x00000001078dfc88 0x1075ef000 + 3083400 5 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 6 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 7 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 8 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 13:: WorkerPool/26371 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078df7f6 0x1075ef000 + 3082230 4 com.github.electron.framework 0x00000001078dfc88 0x1075ef000 + 3083400 5 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 6 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 7 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 8 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 14:: TaskSchedulerServiceThread 0 libsystem_kernel.dylib 0x00007fff6243abf2 kevent + 10 1 com.github.electron.framework 0x00000001078e4c19 0x1075ef000 + 3103769 2 com.github.electron.framework 0x00000001078e3dad 0x1075ef000 + 3100077 3 com.github.electron.framework 0x000000010787cbc6 0x1075ef000 + 2677702 4 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 5 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 15:: TaskSchedulerBackgroundWorker0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896c4a 0x1075ef000 + 2784330 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 16:: TaskSchedulerBackgroundBlockingWorker0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 17:: TaskSchedulerForegroundWorker0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 18:: TaskSchedulerForegroundBlockingWorker0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 19:: TaskSchedulerSingleThreadForegroundBlocking0 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896c4a 0x1075ef000 + 2784330 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 20:: TaskSchedulerSingleThreadForegroundBlocking1 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896c4a 0x1075ef000 + 2784330 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 21:: TaskSchedulerSingleThreadForegroundBlocking2 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896c4a 0x1075ef000 + 2784330 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 22:: TaskSchedulerSingleThreadForegroundBlocking3 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 23:: TaskSchedulerSingleThreadForegroundBlocking4 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001078dcbbe 0x1075ef000 + 3070910 3 com.github.electron.framework 0x00000001078dca6f 0x1075ef000 + 3070575 4 com.github.electron.framework 0x00000001078967fa 0x1075ef000 + 2783226 5 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 6 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 7 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 8 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 9 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 24:: Chrome_IOThread 0 libsystem_kernel.dylib 0x00007fff6243abf2 kevent + 10 1 com.github.electron.framework 0x00000001078e4c19 0x1075ef000 + 3103769 2 com.github.electron.framework 0x00000001078e3dad 0x1075ef000 + 3100077 3 com.github.electron.framework 0x000000010787cbc6 0x1075ef000 + 2677702 4 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 5 com.github.electron.framework 0x0000000107b0d304 0x1075ef000 + 5366532 6 com.github.electron.framework 0x0000000107b0d3c4 0x1075ef000 + 5366724 7 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 8 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 9 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 10 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 11 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 25:: CompositorTileWorker1/29443 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 com.github.electron.framework 0x00000001079df558 0x1075ef000 + 4130136 3 com.github.electron.framework 0x00000001078a25ed 0x1075ef000 + 2831853 4 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 5 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 6 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 7 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 26:: AudioThread 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.github.electron.framework 0x000000010787debf 0x1075ef000 + 2682559 6 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 7 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 8 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 9 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 10 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 11 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 12 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 27: 0 libsystem_kernel.dylib 0x00007fff62439cfa __select + 10 1 com.github.electron.framework 0x000000010772b012 atom::NodeBindingsMac::PollEvents() + 210 2 com.github.electron.framework 0x000000010772a83f atom::NodeBindings::EmbedThreadRunner(void*) + 63 3 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 4 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 5 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 28:: NetworkConfigWatcher 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.apple.Foundation 0x00007fff3c5d7f26 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277 6 com.github.electron.framework 0x000000010787e1ce 0x1075ef000 + 2683342 7 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 8 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 9 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 10 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 11 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 12 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 13 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 29:: TaskSchedulerBackgroundBlockingWorker1 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 30:: NetworkConfigWatcher 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.apple.Foundation 0x00007fff3c5d7f26 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 277 6 com.github.electron.framework 0x000000010787e1ce 0x1075ef000 + 2683342 7 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 8 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 9 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 10 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 11 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 12 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 13 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 31: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff6260120e _pthread_wqthread + 1552 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 32:: com.apple.NSEventThread 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.apple.AppKit 0x00007fff37bb0fc4 _NSEventThread + 184 6 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 7 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 8 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 33: 0 libsystem_kernel.dylib 0x00007fff6243a292 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x00007fff62601009 _pthread_wqthread + 1035 2 libsystem_pthread.dylib 0x00007fff62600be9 start_wqthread + 13 Thread 34:: TaskSchedulerForegroundBlockingWorker1 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 35:: TaskSchedulerForegroundWorker1 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff626025c2 _pthread_cond_wait + 789 2 com.github.electron.framework 0x000000010783725b 0x1075ef000 + 2392667 3 com.github.electron.framework 0x00000001078dcbe0 0x1075ef000 + 3070944 4 com.github.electron.framework 0x00000001078dcd11 0x1075ef000 + 3071249 5 com.github.electron.framework 0x0000000107896808 0x1075ef000 + 2783240 6 com.github.electron.framework 0x0000000107896e74 0x1075ef000 + 2784884 7 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 8 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 9 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 10 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 36: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x0000000104831b23 0x104684000 + 1760035 4 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 5 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 6 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 37: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x0000000104831b23 0x104684000 + 1760035 4 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 5 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 6 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 38: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x0000000104831b23 0x104684000 + 1760035 4 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 5 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 6 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 39: 0 libsystem_kernel.dylib 0x00007fff62439a1e __psynch_cvwait + 10 1 libsystem_pthread.dylib 0x00007fff62602589 _pthread_cond_wait + 732 2 libnode.dylib 0x000000010483e219 uv_cond_wait + 9 3 libnode.dylib 0x0000000104831b23 0x104684000 + 1760035 4 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 5 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 6 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 40:: Proxy Resolver 0 libsystem_kernel.dylib 0x00007fff6243020a mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff6242f724 mach_msg + 60 2 com.apple.CoreFoundation 0x00007fff3a4dc7d5 __CFRunLoopServiceMachPort + 341 3 com.apple.CoreFoundation 0x00007fff3a4dbb27 __CFRunLoopRun + 1783 4 com.apple.CoreFoundation 0x00007fff3a4db1a3 CFRunLoopRunSpecific + 483 5 com.github.electron.framework 0x000000010787debf 0x1075ef000 + 2682559 6 com.github.electron.framework 0x000000010787cd7c 0x1075ef000 + 2678140 7 com.github.electron.framework 0x00000001078932d3 0x1075ef000 + 2769619 8 com.github.electron.framework 0x00000001078b74a9 0x1075ef000 + 2917545 9 com.github.electron.framework 0x0000000107887e67 0x1075ef000 + 2723431 10 libsystem_pthread.dylib 0x00007fff62601661 _pthread_body + 340 11 libsystem_pthread.dylib 0x00007fff6260150d _pthread_start + 377 12 libsystem_pthread.dylib 0x00007fff62600bf9 thread_start + 13 Thread 0 crashed with X86 Thread State (64-bit): rax: 0x00000000000000a0 rbx: 0x00007fe5c28f2170 rcx: 0x0000000000000000 rdx: 0x00007fe5c31560f0 rdi: 0x00007fe5c3161620 rsi: 0x00007fff5a5dc712 rbp: 0x00007ffeeb6b16d0 rsp: 0x00007ffeeb6b16b8 r8: 0x0000000000000000 r9: 0x00007fe5c31672b0 r10: 0x000007fe5bee3670 r11: 0x00007fff5a5dc712 r12: 0x00007fff9a17cb40 r13: 0x00007fe5c28f2170 r14: 0x00007fff616c1e01 r15: 0x00007fff616c1e80 rip: 0x00007fff616c1e9d rfl: 0x0000000000010202 cr2: 0x000007fe5bee3688 Logical CPU: 2 Error Code: 0x00000004 Trap Number: 14 Binary Images: 0x104549000 - 0x104549ff7 +com.github.electron (2.0.3 - 2.0.3) &lt;E27EA0A2-4B0F-34A2-8128-B52972924230&gt; /Users/USER/*/Electron.app/Contents/MacOS/Electron 0x10454c000 - 0x104567fff +com.github.Squirrel (1.0 - 1) &lt;E4398068-33D3-3A00-9DBE-5ACC9B022501&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Squirrel.framework/Versions/A/Squirrel 0x104589000 - 0x1045ecff7 +org.reactivecocoa.ReactiveCocoa (1.0 - 1) &lt;701B20DE-3ADD-3643-B52A-E05744C30DB3&gt; /Users/USER/*/Electron.app/Contents/Frameworks/ReactiveCocoa.framework/Versions/A/ReactiveCocoa 0x10465e000 - 0x104672fff +org.mantle.Mantle (1.0 - ???) &lt;31915DD6-48E6-3706-A076-C9D4CE17F4F6&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Mantle.framework/Versions/A/Mantle 0x104684000 - 0x105500fff +libnode.dylib (0) &lt;8C4985A3-A997-3C3F-A363-2ED32149FCA5&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libnode.dylib 0x1057a8000 - 0x105a15fe7 +libffmpeg.dylib (0) &lt;B8B8A195-ADAF-3003-8F62-B9D1C788605D&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libffmpeg.dylib 0x107551000 - 0x10759b9df dyld (551.3) &lt;AFAB4EFA-7020-34B1-BBEF-0F26C6D3CA36&gt; /usr/lib/dyld 0x1075ef000 - 0x10b896ff7 +com.github.electron.framework (0) &lt;34DE84C7-D975-3378-9788-ECE246B78C52&gt; /Users/USER/*/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Electron Framework 0x7fff329d0000 - 0x7fff329dfffb libSimplifiedChineseConverter.dylib (70) &lt;79F6AF91-B369-3C30-8C52-19608D2566F9&gt; /System/Library/CoreServices/Encodings/libSimplifiedChineseConverter.dylib 0x7fff34368000 - 0x7fff343edff7 com.apple.driver.AppleIntelHD5000GraphicsMTLDriver (10.34.27 - 10.3.4) &lt;39803D49-8A24-3923-9B97-2EEC492D07A8&gt; /System/Library/Extensions/AppleIntelHD5000GraphicsMTLDriver.bundle/Contents/MacOS/AppleIntelHD5000GraphicsMTLDriver 0x7fff3662d000 - 0x7fff3680dff3 com.apple.avfoundation (2.0 - 1536.25) &lt;CD6C9798-DC03-3CAB-873B-1710D1EEF743&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/AVFoundation 0x7fff3680e000 - 0x7fff368c7fff com.apple.audio.AVFAudio (1.0 - ???) &lt;ECE63BA3-4344-3522-904B-71F89677AC7D&gt; /System/Library/Frameworks/AVFoundation.framework/Versions/A/Frameworks/AVFAudio.framework/Versions/A/AVFAudio 0x7fff369cd000 - 0x7fff369cdfff com.apple.Accelerate (1.11 - Accelerate 1.11) &lt;8632A9C5-19EA-3FD7-A44D-80765CC9C540&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x7fff369ce000 - 0x7fff369e4fef libCGInterfaces.dylib (417.2) &lt;2E67702C-75F6-308A-A023-F28120BEE667&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Libraries/libCGInterfaces.dylib 0x7fff369e5000 - 0x7fff36ee3fc3 com.apple.vImage (8.1 - ???) &lt;A243A7EF-0C8E-3A9A-AA38-44AFD7507F00&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x7fff36ee4000 - 0x7fff3703efe3 libBLAS.dylib (1211.50.2) &lt;62C659EB-3E32-3B5F-83BF-79F5DF30D5CE&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x7fff3703f000 - 0x7fff3706dfef libBNNS.dylib (38.1) &lt;7BAEFDCA-3227-3E07-80D8-59B6370B89C6&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBNNS.dylib 0x7fff3706e000 - 0x7fff3742dff7 libLAPACK.dylib (1211.50.2) &lt;40ADBA5F-8B2D-30AC-A7AD-7B17C37EE52D&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x7fff3742e000 - 0x7fff37443ff7 libLinearAlgebra.dylib (1211.50.2) &lt;E8E0B7FD-A0B7-31E5-AF01-81781F71EBBE&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLinearAlgebra.dylib 0x7fff37444000 - 0x7fff37449ff3 libQuadrature.dylib (3) &lt;3D6BF66A-55B2-3692-BAC7-DEB0C676ED29&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libQuadrature.dylib 0x7fff3744a000 - 0x7fff374cafff libSparse.dylib (79.50.2) &lt;0DC25CDD-F8C1-3D6E-B472-8B060708424F&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparse.dylib 0x7fff374cb000 - 0x7fff374defff libSparseBLAS.dylib (1211.50.2) &lt;722573CC-31CC-34B2-9032-E4F652A9CCFE&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libSparseBLAS.dylib 0x7fff374df000 - 0x7fff3768cfc3 libvDSP.dylib (622.50.5) &lt;40690941-CF89-3F90-A0AC-A4D200744A5D&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x7fff3768d000 - 0x7fff3773efff libvMisc.dylib (622.50.5) &lt;BA2532DF-2D68-3DD0-9B59-D434BF702AA4&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x7fff3773f000 - 0x7fff3773ffff com.apple.Accelerate.vecLib (3.11 - vecLib 3.11) &lt;54FF3B43-E66C-3F36-B34B-A2B3B0A36502&gt; /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x7fff37a32000 - 0x7fff38890fff com.apple.AppKit (6.9 - 1561.40.112) &lt;2D9940B9-9C9B-3FF1-8E9F-26CD7E7E3B5A&gt; /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit 0x7fff388e2000 - 0x7fff388e2fff com.apple.ApplicationServices (48 - 50) &lt;7BD49390-6D89-3429-80CD-6C70334F9B49&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x7fff388e3000 - 0x7fff38949fff com.apple.ApplicationServices.ATS (377 - 445.4) &lt;85E779EE-0219-3181-B4C4-201E4CC82AB5&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x7fff389e2000 - 0x7fff38b04fff libFontParser.dylib (222.1.6) &lt;6CEBACDD-B848-302E-B4B2-630CB16E663E&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontParser.dylib 0x7fff38b05000 - 0x7fff38b4fff7 libFontRegistry.dylib (221.3) &lt;C84F7112-4764-3F4B-9FBA-4A022CF6346B&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libFontRegistry.dylib 0x7fff38bf4000 - 0x7fff38c27ff7 libTrueTypeScaler.dylib (222.1.6) &lt;9147F859-8BD9-31D9-AB54-8E9549B92AE9&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Resources/libTrueTypeScaler.dylib 0x7fff38c91000 - 0x7fff38c95ff3 com.apple.ColorSyncLegacy (4.13.0 - 1) &lt;A5FB2694-1559-34A8-A3D3-2029F68A63CA&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSyncLegacy.framework/Versions/A/ColorSyncLegacy 0x7fff38d35000 - 0x7fff38d87ffb com.apple.HIServices (1.22 - 624.1) &lt;66FD9ED2-9630-313C-86AE-4C2FBCB3F351&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x7fff38d88000 - 0x7fff38d96fff com.apple.LangAnalysis (1.7.0 - 1.7.0) &lt;B65FF7E6-E9B5-34D8-8CA7-63D415A8A9A6&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x7fff38d97000 - 0x7fff38de3fff com.apple.print.framework.PrintCore (13.4 - 503.2) &lt;B90C67C1-0292-3CEC-885D-F1882CD104BE&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x7fff38de4000 - 0x7fff38e1efff com.apple.QD (3.12 - 404.2) &lt;38B20AFF-9D54-3B52-A6DC-C0D71380AA5F&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x7fff38e1f000 - 0x7fff38e2bfff com.apple.speech.synthesis.framework (7.5.1 - 7.5.1) &lt;84ADDF38-36F1-3D3B-B28D-8865FA10FCD7&gt; /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x7fff38e2c000 - 0x7fff390b9ff7 com.apple.audio.toolbox.AudioToolbox (1.14 - 1.14) &lt;4545D879-3520-36D1-A83D-F3993CC2FA6B&gt; /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x7fff390bb000 - 0x7fff390bbfff com.apple.audio.units.AudioUnit (1.14 - 1.14) &lt;2EC5D9A6-EB65-32D8-9740-91D293626705&gt; /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x7fff393de000 - 0x7fff39778ff7 com.apple.CFNetwork (901.1 - 901.1) &lt;5181E03E-F354-35D6-949B-79433346510B&gt; /System/Library/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x7fff3978d000 - 0x7fff3978dfff com.apple.Carbon (158 - 158) &lt;F8B370D9-2103-3276-821D-ACC756167F86&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x7fff3978e000 - 0x7fff39791ffb com.apple.CommonPanels (1.2.6 - 98) &lt;2391761C-5CAA-3F68-86B7-50B37927B104&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x7fff39792000 - 0x7fff39a97fff com.apple.HIToolbox (2.1.1 - 911.10) &lt;EFE04E77-F288-3EC9-B7B4-C4C7C29D55EE&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x7fff39a98000 - 0x7fff39a9bffb com.apple.help (1.3.8 - 66) &lt;DEBADFA8-C189-3195-B0D6-A1F2DE95882A&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x7fff39a9c000 - 0x7fff39aa1fff com.apple.ImageCapture (9.0 - 9.0) &lt;23B4916F-3B43-3DFF-B956-FC390EECA284&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x7fff39aa2000 - 0x7fff39b37ffb com.apple.ink.framework (10.9 - 221) &lt;5206C8B0-22DA-36C9-998E-846EDB626D5B&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x7fff39b38000 - 0x7fff39b52ff7 com.apple.openscripting (1.7 - 174) &lt;1B2A1F9E-5534-3D61-83CA-9199B39E8708&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x7fff39b73000 - 0x7fff39b74fff com.apple.print.framework.Print (12 - 267) &lt;3682ABFB-2561-3419-847D-02C247F4800D&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x7fff39b75000 - 0x7fff39b77ff7 com.apple.securityhi (9.0 - 55006) &lt;C1406B8D-7D05-3959-808F-9C82189CF57F&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x7fff39b78000 - 0x7fff39b7efff com.apple.speech.recognition.framework (6.0.3 - 6.0.3) &lt;2ED8643D-B0C3-3F17-82A2-BBF13E6CBABC&gt; /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x7fff39c9f000 - 0x7fff39c9ffff com.apple.Cocoa (6.11 - 22) &lt;4CF8E31C-B5C7-367B-B73D-1A8AC8E41B7F&gt; /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x7fff39cad000 - 0x7fff39d66fff com.apple.ColorSync (4.13.0 - 3325) &lt;D283C285-447D-3258-A7E4-59532123B8FF&gt; /System/Library/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x7fff39ef3000 - 0x7fff39f86ff7 com.apple.audio.CoreAudio (4.3.0 - 4.3.0) &lt;222E098D-96E5-3669-B077-3C019111849A&gt; /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x7fff39fed000 - 0x7fff3a016ffb com.apple.CoreBluetooth (1.0 - 1) &lt;E1335074-9D07-370E-8440-61C4874BAC56&gt; /System/Library/Frameworks/CoreBluetooth.framework/Versions/A/CoreBluetooth 0x7fff3a017000 - 0x7fff3a36dfef com.apple.CoreData (120 - 851) &lt;A2B59780-FB16-36A3-8EE0-E0EF072454E0&gt; /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x7fff3a36e000 - 0x7fff3a455fff com.apple.CoreDisplay (1.0 - 97.21) &lt;88E1D7C8-90F4-3F2C-A92B-5AB30B0468C8&gt; /System/Library/Frameworks/CoreDisplay.framework/Versions/A/CoreDisplay 0x7fff3a456000 - 0x7fff3a8f7fef com.apple.CoreFoundation (6.9 - 1452.23) &lt;945E5C0A-86C5-336E-A64F-5BF06E78985A&gt; /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x7fff3a8f9000 - 0x7fff3af09fef com.apple.CoreGraphics (2.0 - 1161.21) &lt;27409F13-49A9-3C56-A9C6-D526C8FEEAD8&gt; /System/Library/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x7fff3af0b000 - 0x7fff3b1fafff com.apple.CoreImage (13.0.0 - 579.5) &lt;2B007515-7D90-3D64-8B5D-3B45DF648BFF&gt; /System/Library/Frameworks/CoreImage.framework/Versions/A/CoreImage 0x7fff3b267000 - 0x7fff3b2acfff com.apple.audio.midi.CoreMIDI (1.10 - 88) &lt;BC3E756C-A066-325C-9383-A78A4A66C7BF&gt; /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI 0x7fff3b489000 - 0x7fff3b57fffb com.apple.CoreMedia (1.0 - 2276.50) &lt;532FC472-3D02-39B5-8F48-5F14A35E5695&gt; /System/Library/Frameworks/CoreMedia.framework/Versions/A/CoreMedia 0x7fff3b580000 - 0x7fff3b5cefff com.apple.CoreMediaIO (812.0 - 4994) &lt;57006022-B279-3DAD-8E7C-573D215746D2&gt; /System/Library/Frameworks/CoreMediaIO.framework/Versions/A/CoreMediaIO 0x7fff3b5cf000 - 0x7fff3b5cffff com.apple.CoreServices (822.33 - 822.33) &lt;1AC8CE39-003D-3901-909F-2DE6838AF097&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x7fff3b5d0000 - 0x7fff3b644ffb com.apple.AE (735.1 - 735.1) &lt;08EBA184-20F7-3725-AEA6-C314448161C6&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x7fff3b645000 - 0x7fff3b91cfff com.apple.CoreServices.CarbonCore (1178.4 - 1178.4) &lt;0D5E19BF-18CB-3FA4-8A5F-F6C787C5EE08&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x7fff3b91d000 - 0x7fff3b951fff com.apple.DictionaryServices (1.2 - 284.2) &lt;6505B075-41C3-3C62-A4C3-85CE3F6825CD&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/DictionaryServices 0x7fff3b952000 - 0x7fff3b95affb com.apple.CoreServices.FSEvents (1239.50.1 - 1239.50.1) &lt;3637CEC7-DF0E-320E-9634-44A442925C65&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/FSEvents 0x7fff3b95b000 - 0x7fff3bb18fff com.apple.LaunchServices (822.32 - 822.32) &lt;2C93AAC9-6B22-3436-AC33-1BD414DCD66A&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x7fff3bb19000 - 0x7fff3bbc9ff7 com.apple.Metadata (10.7.0 - 1191.4.13) &lt;B5C22E70-C265-3C9F-865F-B138994A418D&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x7fff3bbca000 - 0x7fff3bc2afff com.apple.CoreServices.OSServices (822.33 - 822.33) &lt;856D17AF-2697-3838-980B-6B3AAFEE4BF9&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x7fff3bc2b000 - 0x7fff3bc99fff com.apple.SearchKit (1.4.0 - 1.4.0) &lt;3662545A-B1CF-3079-BDCD-C83855CEFEEE&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x7fff3bc9a000 - 0x7fff3bcbeffb com.apple.coreservices.SharedFileList (71.21 - 71.21) &lt;1B5228EF-D869-3A50-A373-7F4B0289FADD&gt; /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/SharedFileList 0x7fff3bf5f000 - 0x7fff3c0affff com.apple.CoreText (352.0 - 578.18) &lt;B8454115-2A4B-3585-A7A1-B47A638F2EEB&gt; /System/Library/Frameworks/CoreText.framework/Versions/A/CoreText 0x7fff3c0b0000 - 0x7fff3c0eafff com.apple.CoreVideo (1.8 - 0.0) &lt;86CCC036-51BB-3DD1-9601-D93798BCCD0F&gt; /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo 0x7fff3c0eb000 - 0x7fff3c176ff3 com.apple.framework.CoreWLAN (13.0 - 1350.1) &lt;E862CC02-69D2-3503-887B-B6E8223081E7&gt; /System/Library/Frameworks/CoreWLAN.framework/Versions/A/CoreWLAN 0x7fff3c3f1000 - 0x7fff3c3f6fff com.apple.DiskArbitration (2.7 - 2.7) &lt;B059E12C-94EA-3A39-A03F-8AAB5F4EE1F2&gt; /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x7fff3c5b7000 - 0x7fff3c97dfff com.apple.Foundation (6.9 - 1452.23) &lt;E64540AD-1755-3C16-8537-552A00E92541&gt; /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x7fff3c9ed000 - 0x7fff3ca1dfff com.apple.GSS (4.0 - 2.0) &lt;41087278-74AE-3FA5-8C0E-9C78EB696299&gt; /System/Library/Frameworks/GSS.framework/Versions/A/GSS 0x7fff3ca1e000 - 0x7fff3ca36ff3 com.apple.GameController (1.0 - 1) &lt;CE96F310-B3E5-3EAE-B1BC-334F8C224FA7&gt; /System/Library/Frameworks/GameController.framework/Versions/A/GameController 0x7fff3cb2f000 - 0x7fff3cc33ffb com.apple.Bluetooth (6.0.6 - 6.0.6f2) &lt;6EFCF45B-E80B-3D6C-8729-0C5F9E19DB85&gt; /System/Library/Frameworks/IOBluetooth.framework/Versions/A/IOBluetooth 0x7fff3cc93000 - 0x7fff3cd2eff7 com.apple.framework.IOKit (2.0.2 - 1445.60.1) &lt;7C16F358-1F63-349F-AD58-F7B287C7B7B7&gt; /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x7fff3cd30000 - 0x7fff3cd37ffb com.apple.IOSurface (211.12 - 211.12) &lt;392CA7DE-B365-364E-AF4A-33EC2CC48E6F&gt; /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface 0x7fff3cd38000 - 0x7fff3cd8dff3 com.apple.ImageCaptureCore (7.0 - 7.0) &lt;0DAB3D7E-8C3F-35DE-96DF-C370AD35EB65&gt; /System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/ImageCaptureCore 0x7fff3cd8e000 - 0x7fff3cf08ff7 com.apple.ImageIO.framework (3.3.0 - 1739.3) &lt;7C579D3F-AE0B-31C9-8F80-67F2290B8DE0&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x7fff3cf09000 - 0x7fff3cf0dffb libGIF.dylib (1739.3) &lt;7AA44C9D-48E8-3090-B044-61FE6F0AEF38&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x7fff3cf0e000 - 0x7fff3cff5fef libJP2.dylib (1739.3) &lt;AEBF7260-0C10-30C0-8F0F-8B347DEE78B3&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x7fff3cff6000 - 0x7fff3d019ff7 libJPEG.dylib (1739.3) &lt;D8C966AD-A00C-3E8B-A7ED-D7CC7ECB3224&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x7fff3d2f5000 - 0x7fff3d31bfeb libPng.dylib (1739.3) &lt;1737F680-99D1-3F03-BFA5-5CDA30EB880A&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x7fff3d31c000 - 0x7fff3d31effb libRadiance.dylib (1739.3) &lt;21746434-FCC7-36DE-9331-11277DF66AA8&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x7fff3d31f000 - 0x7fff3d36dfef libTIFF.dylib (1739.3) &lt;C4CB5C1D-20F2-3BD4-B0E6-629FDB3EF8E8&gt; /System/Library/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x7fff3d529000 - 0x7fff3e20ffff com.apple.JavaScriptCore (13605 - 13605.2.8) &lt;B1955CFF-9343-301B-A297-AC58F3CE47E2&gt; /System/Library/Frameworks/JavaScriptCore.framework/Versions/A/JavaScriptCore 0x7fff3e227000 - 0x7fff3e240ff7 com.apple.Kerberos (3.0 - 1) &lt;F86DCCDF-93C1-38B3-82C2-477C12E8EE6D&gt; /System/Library/Frameworks/Kerberos.framework/Versions/A/Kerberos 0x7fff3e4ff000 - 0x7fff3e506fff com.apple.MediaAccessibility (1.0 - 114) &lt;9F72AACD-BAEB-3646-BD0F-12C47591C20D&gt; /System/Library/Frameworks/MediaAccessibility.framework/Versions/A/MediaAccessibility 0x7fff3e5b6000 - 0x7fff3ec1ffff com.apple.MediaToolbox (1.0 - 2276.50) &lt;805401B7-E013-32DB-AA73-E835328FA601&gt; /System/Library/Frameworks/MediaToolbox.framework/Versions/A/MediaToolbox 0x7fff3ec21000 - 0x7fff3eca2ff7 com.apple.Metal (125.25 - 125.25) &lt;E804AB5C-43A9-3216-9930-652595E0BFE5&gt; /System/Library/Frameworks/Metal.framework/Versions/A/Metal 0x7fff3ecbf000 - 0x7fff3ecdafff com.apple.MetalPerformanceShaders.MPSCore (1.0 - 1) &lt;0B4455FE-5C97-345C-B416-325EC6D88A2A&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSCore.framework/Versions/A/MPSCore 0x7fff3ecdb000 - 0x7fff3ed4afef com.apple.MetalPerformanceShaders.MPSImage (1.0 - 1) &lt;87F14199-C445-34C2-90F8-57C29212483E&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSImage.framework/Versions/A/MPSImage 0x7fff3ed4b000 - 0x7fff3ed6ffff com.apple.MetalPerformanceShaders.MPSMatrix (1.0 - 1) &lt;BD50FD9C-CE92-34AF-8663-968BF89202A0&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSMatrix.framework/Versions/A/MPSMatrix 0x7fff3ed70000 - 0x7fff3ee57ff7 com.apple.MetalPerformanceShaders.MPSNeuralNetwork (1.0 - 1) &lt;FBDDCAE6-EC6E-361F-B924-B3EBDEAC2D2F&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Frameworks/MPSNeuralNetwork.framework/Versions/A/MPSNeuralNetwork 0x7fff3ee58000 - 0x7fff3ee58ff7 com.apple.MetalPerformanceShaders.MetalPerformanceShaders (1.0 - 1) &lt;20ECB52B-B5C2-39EA-88E3-DFEC0C3CC9FF&gt; /System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/MetalPerformanceShaders 0x7fff3fe57000 - 0x7fff3fe63ffb com.apple.NetFS (6.0 - 4.0) &lt;471DD96F-FA2E-3FE9-9746-2519A6780D1A&gt; /System/Library/Frameworks/NetFS.framework/Versions/A/NetFS 0x7fff42c55000 - 0x7fff42ca3fff com.apple.opencl (2.8.15 - 2.8.15) &lt;23D7B57E-F538-3B2F-ABE0-91A2AC7C3FE6&gt; /System/Library/Frameworks/OpenCL.framework/Versions/A/OpenCL 0x7fff42ca4000 - 0x7fff42cc0ffb com.apple.CFOpenDirectory (10.13 - 207.50.1) &lt;3A8DECB8-52E6-3426-997B-1EF60DF47B28&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/CFOpenDirectory 0x7fff42cc1000 - 0x7fff42cccfff com.apple.OpenDirectory (10.13 - 207.50.1) &lt;13668964-818C-347A-9EBA-7C86CBFB33EA&gt; /System/Library/Frameworks/OpenDirectory.framework/Versions/A/OpenDirectory 0x7fff43e4b000 - 0x7fff43e4dfff libCVMSPluginSupport.dylib (16.5.10) &lt;BF5D065A-A38B-3446-9418-799F598072EF&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCVMSPluginSupport.dylib 0x7fff43e4e000 - 0x7fff43e53ffb libCoreFSCache.dylib (162.6.1) &lt;879B2738-2E8A-3596-AFF8-9C3FB1B6828B&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreFSCache.dylib 0x7fff43e54000 - 0x7fff43e58fff libCoreVMClient.dylib (162.6.1) &lt;64ED0A84-225F-39BC-BE0D-C896ACF5B50A&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libCoreVMClient.dylib 0x7fff43e59000 - 0x7fff43e62ff7 libGFXShared.dylib (16.5.10) &lt;6024B1FE-ACD7-3314-B390-85972CB9B778&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGFXShared.dylib 0x7fff43e63000 - 0x7fff43e6efff libGL.dylib (16.5.10) &lt;AB8B6C73-8496-3784-83F6-27737ED03B09&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x7fff43e6f000 - 0x7fff43eaafe7 libGLImage.dylib (16.5.10) &lt;5B41D074-3132-3587-91B6-E441BA8C9F13&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x7fff44018000 - 0x7fff44056ffb libGLU.dylib (16.5.10) &lt;F6844912-1B86-34DF-9FB5-A428CC7B5B18&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x7fff449ce000 - 0x7fff449ddfff com.apple.opengl (16.5.10 - 16.5.10) &lt;D51C7DE3-ABE0-3CED-BB9C-7D71C3205FB6&gt; /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x7fff44d57000 - 0x7fff44ea3ff7 com.apple.QTKit (7.7.3 - 3014.8) &lt;FEDEF531-50A3-32AB-A546-E6BA994C58E1&gt; /System/Library/Frameworks/QTKit.framework/Versions/A/QTKit 0x7fff44ea4000 - 0x7fff45109ff7 com.apple.imageKit (3.0 - 1043) &lt;269244BB-A86E-3248-91D3-7B412D1899C6&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/ImageKit 0x7fff4510a000 - 0x7fff451f9ffb com.apple.PDFKit (1.0 - 677.67) &lt;6BD11C23-1AEA-3078-8D0C-A7152BCF9031&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/PDFKit.framework/Versions/A/PDFKit 0x7fff451fa000 - 0x7fff4570cff7 com.apple.QuartzComposer (5.1 - 364) &lt;1369D6DA-8842-3878-B546-1D09828331F5&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework/Versions/A/QuartzComposer 0x7fff4570d000 - 0x7fff45730fff com.apple.quartzfilters (1.10.0 - 1.10.0) &lt;C95CB89D-148D-341B-BC50-82D8C32BF767&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters.framework/Versions/A/QuartzFilters 0x7fff45731000 - 0x7fff4582aff7 com.apple.QuickLookUIFramework (5.0 - 743.13) &lt;09B296B3-4242-3224-9F44-5DFB4AB894CC&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuickLookUI.framework/Versions/A/QuickLookUI 0x7fff4582b000 - 0x7fff4582bfff com.apple.quartzframework (1.5 - 21) &lt;DCEB0FCC-2C32-3D02-8752-7B6FA009AB85&gt; /System/Library/Frameworks/Quartz.framework/Versions/A/Quartz 0x7fff4582c000 - 0x7fff45a78ff7 com.apple.QuartzCore (1.11 - 584.52.1) &lt;1E11741B-1AEF-34EC-944B-845DD62718F4&gt; /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x7fff45a79000 - 0x7fff45ad0ff7 com.apple.QuickLookFramework (5.0 - 743.13) &lt;8254FFF2-EE0D-323D-A6F3-BEB59615EE47&gt; /System/Library/Frameworks/QuickLook.framework/Versions/A/QuickLook 0x7fff45c95000 - 0x7fff45cacff7 com.apple.SafariServices.framework (13605 - 13605.2.8) &lt;AD7B1A9A-E162-3431-83FD-B961973E10C7&gt; /System/Library/Frameworks/SafariServices.framework/Versions/A/SafariServices 0x7fff462ac000 - 0x7fff465d5fff com.apple.security (7.0 - 58286.60.28) &lt;12632D59-7FC2-3C37-AEAE-E9EB2A4253C3&gt; /System/Library/Frameworks/Security.framework/Versions/A/Security 0x7fff465d6000 - 0x7fff46662ff7 com.apple.securityfoundation (6.0 - 55185.50.5) &lt;0AF578A7-F076-3CC5-A5B7-FCA065D8CB74&gt; /System/Library/Frameworks/SecurityFoundation.framework/Versions/A/SecurityFoundation 0x7fff46663000 - 0x7fff46693fff com.apple.securityinterface (10.0 - 55109.50.6) &lt;8F50BA5A-128D-3341-A49C-AAED201FDFC8&gt; /System/Library/Frameworks/SecurityInterface.framework/Versions/A/SecurityInterface 0x7fff46694000 - 0x7fff46698ffb com.apple.xpc.ServiceManagement (1.0 - 1) &lt;2DE3DCFE-B463-35B4-8823-D8B6D799B654&gt; /System/Library/Frameworks/ServiceManagement.framework/Versions/A/ServiceManagement 0x7fff468f9000 - 0x7fff46905ffb com.apple.StoreKit (1.0 - 657) &lt;2420CEF6-DB15-3FC6-B27D-3AB6E77680C4&gt; /System/Library/Frameworks/StoreKit.framework/Versions/A/StoreKit 0x7fff46a3d000 - 0x7fff46aadff3 com.apple.SystemConfiguration (1.17 - 1.17) &lt;8532B8E9-7E30-35A3-BC4A-DDE8E0614FDA&gt; /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x7fff46c62000 - 0x7fff46fddfff com.apple.VideoToolbox (1.0 - 2276.50) &lt;882F0FAF-30C6-3052-BB93-F1875F41E419&gt; /System/Library/Frameworks/VideoToolbox.framework/Versions/A/VideoToolbox 0x7fff499a8000 - 0x7fff49a3bfef com.apple.APFS (1.0 - 1) &lt;1C3D9229-E64A-3D11-ACDE-76E8171F7B7C&gt; /System/Library/PrivateFrameworks/APFS.framework/Versions/A/APFS 0x7fff4a614000 - 0x7fff4a62fff3 com.apple.AppContainer (4.0 - 360.50.7) &lt;59F95A1A-15DF-33CE-9E52-DDEEFDC4D138&gt; /System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer 0x7fff4a661000 - 0x7fff4a689fff com.apple.framework.Apple80211 (13.0 - 1361.7) &lt;16627876-8CF5-3502-A1D6-35FCBDD5E79A&gt; /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211 0x7fff4a68b000 - 0x7fff4a69afef com.apple.AppleFSCompression (96.60.1 - 1.0) &lt;A7C875C4-F5EE-3272-AFB6-57C9FD5352B3&gt; /System/Library/PrivateFrameworks/AppleFSCompression.framework/Versions/A/AppleFSCompression 0x7fff4a7dc000 - 0x7fff4a824ff3 com.apple.AppleJPEG (1.0 - 1) &lt;8DD410CB-76A1-3F22-9A9F-0491FA0CEB4A&gt; /System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG 0x7fff4a85f000 - 0x7fff4a887fff com.apple.applesauce (1.0 - ???) &lt;CCA8B094-1BCE-3AE3-A0A7-D544C818DE36&gt; /System/Library/PrivateFrameworks/AppleSauce.framework/Versions/A/AppleSauce 0x7fff4a950000 - 0x7fff4a953ff3 com.apple.AppleSystemInfo (3.1.5 - 3.1.5) &lt;0E33401D-7B9C-378A-8EE8-0E3D40B63C8D&gt; /System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo 0x7fff4a954000 - 0x7fff4a9a4ff7 com.apple.AppleVAFramework (5.0.41 - 5.0.41) &lt;8169ABC4-56F0-301E-B913-A762F7E40DBF&gt; /System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA 0x7fff4b0a9000 - 0x7fff4b0b0ff7 com.apple.coreservices.BackgroundTaskManagement (1.0 - 57.1) &lt;51A41CA3-DB1D-3380-993E-99C54AEE518E&gt; /System/Library/PrivateFrameworks/BackgroundTaskManagement.framework/Versions/A/BackgroundTaskManagement 0x7fff4b0b1000 - 0x7fff4b138ff7 com.apple.backup.framework (1.9.5 - 1.9.5) &lt;8BCFB4DB-BAF0-328B-A019-FE13837AD154&gt; /System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup 0x7fff4b141000 - 0x7fff4b147ff3 com.apple.BezelServicesFW (305 - 305) &lt;FEED193D-3363-3C8A-9815-4A6128E640E3&gt; /System/Library/PrivateFrameworks/BezelServices.framework/Versions/A/BezelServices 0x7fff4bf16000 - 0x7fff4bf65ff3 com.apple.ChunkingLibrary (189 - 189) &lt;C021A0EB-82E7-3A1E-A772-96B0E7E038D9&gt; /System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary 0x7fff4cae1000 - 0x7fff4caedffb com.apple.CommerceCore (1.0 - 657) &lt;B2BD5F36-DF30-36CC-8370-292E7D07A84B&gt; /System/Library/PrivateFrameworks/CommerceKit.framework/Versions/A/Frameworks/CommerceCore.framework/Versions/A/CommerceCore 0x7fff4caee000 - 0x7fff4caf7ff3 com.apple.CommonAuth (4.0 - 2.0) &lt;4D237B25-27E5-3577-948B-073659F6D3C0&gt; /System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth 0x7fff4ce33000 - 0x7fff4d23bfff com.apple.CoreAUC (259.0.0 - 259.0.0) &lt;1E0FB2C7-109E-3924-8E7F-8C6ACD78AF26&gt; /System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC 0x7fff4d23c000 - 0x7fff4d26cff7 com.apple.CoreAVCHD (5.9.0 - 5900.4.1) &lt;E9FF9574-122A-3966-AA2B-546E512ACD06&gt; /System/Library/PrivateFrameworks/CoreAVCHD.framework/Versions/A/CoreAVCHD 0x7fff4d302000 - 0x7fff4d344ff3 com.apple.corebrightness (1.0 - 1) &lt;8CD236FB-CFC9-352A-B5A6-2DB4226CD806&gt; /System/Library/PrivateFrameworks/CoreBrightness.framework/Versions/A/CoreBrightness 0x7fff4d5fa000 - 0x7fff4d60aff7 com.apple.CoreEmoji (1.0 - 69.3) &lt;A4357F5C-0C38-3A61-B456-D7321EB2CEE5&gt; /System/Library/PrivateFrameworks/CoreEmoji.framework/Versions/A/CoreEmoji 0x7fff4d90e000 - 0x7fff4d924ff7 com.apple.CoreMediaAuthoring (2.2 - 956) &lt;FBA28A76-97E2-3023-A3F6-D03280AE2889&gt; /System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring 0x7fff4dc59000 - 0x7fff4dcfefff com.apple.CorePDF (4.0 - 414) &lt;D64D17C3-9AD0-3A29-89DE-36BEF0156381&gt; /System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/CorePDF 0x7fff4df31000 - 0x7fff4df62ff3 com.apple.CoreServicesInternal (309.1 - 309.1) &lt;4ECD14EA-A493-3B84-A32F-CF928474A405&gt; /System/Library/PrivateFrameworks/CoreServicesInternal.framework/Versions/A/CoreServicesInternal 0x7fff4e29f000 - 0x7fff4e330fff com.apple.CoreSymbolication (9.3 - 64026) &lt;BAF3CE6E-8140-3159-BF1B-B953816459A0&gt; /System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication 0x7fff4e3b3000 - 0x7fff4e4e8fff com.apple.coreui (2.1 - 494.1) &lt;B2C515C3-FCE8-3B28-A225-05AD917F509B&gt; /System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI 0x7fff4e4e9000 - 0x7fff4e61afff com.apple.CoreUtils (5.6 - 560.11) &lt;1A02D6F0-8C65-3FAE-AD63-56477EDE4773&gt; /System/Library/PrivateFrameworks/CoreUtils.framework/Versions/A/CoreUtils 0x7fff4e66f000 - 0x7fff4e6d3fff com.apple.framework.CoreWiFi (13.0 - 1350.1) &lt;6EC5DEB3-6E2F-3DC2-BE59-1FD05175FB0C&gt; /System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi 0x7fff4e6d4000 - 0x7fff4e6e4ff7 com.apple.CrashReporterSupport (10.13 - 1) &lt;A909F468-0648-3F51-A77E-3F9ADBC9A941&gt; /System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport 0x7fff4e762000 - 0x7fff4e771ff7 com.apple.framework.DFRFoundation (1.0 - 191.7) &lt;3B8ED6F7-5DFF-34C3-BA90-DDB85679684C&gt; /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation 0x7fff4e774000 - 0x7fff4e778ffb com.apple.DSExternalDisplay (3.1 - 380) &lt;901B7F6D-376A-3848-99D0-170C4D00F776&gt; /System/Library/PrivateFrameworks/DSExternalDisplay.framework/Versions/A/DSExternalDisplay 0x7fff4e7fa000 - 0x7fff4e870fff com.apple.datadetectorscore (7.0 - 590.3) &lt;26835841-E532-3930-A3F8-CE8DA0B244E3&gt; /System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore 0x7fff4e8be000 - 0x7fff4e8feff7 com.apple.DebugSymbols (181.0 - 181.0) &lt;299A0238-ED78-3676-B131-274D972824AA&gt; /System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols 0x7fff4e8ff000 - 0x7fff4ea2efff com.apple.desktopservices (1.12.5 - 1.12.5) &lt;8AC3EBBD-3B50-3B6F-AF95-0196F97EA713&gt; /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x7fff4ecf9000 - 0x7fff4ecfdff7 com.apple.DisplayServicesFW (3.1 - 380) &lt;6F0B8AC6-7E62-3DFC-B373-BF04833724C0&gt; /System/Library/PrivateFrameworks/DisplayServices.framework/Versions/A/DisplayServices 0x7fff4f846000 - 0x7fff4fc74fff com.apple.vision.FaceCore (3.3.2 - 3.3.2) &lt;B574FE33-4A41-3611-9738-388EBAF03E37&gt; /System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore 0x7fff518d0000 - 0x7fff518d0fff libmetal_timestamp.dylib (802.4.5) &lt;013C2314-3F0B-311E-BA35-66FB4B0C56A9&gt; /System/Library/PrivateFrameworks/GPUCompiler.framework/Versions/3802/Libraries/libmetal_timestamp.dylib 0x7fff52f3c000 - 0x7fff52f41ff7 com.apple.GPUWrangler (3.18.52 - 3.18.52) &lt;FCDE73DB-4663-3E3E-BFDA-B51648967AB5&gt; /System/Library/PrivateFrameworks/GPUWrangler.framework/Versions/A/GPUWrangler 0x7fff532f5000 - 0x7fff5331aff3 com.apple.GenerationalStorage (2.0 - 285.3) &lt;13B96400-FF70-376B-B20E-FB7D61064800&gt; /System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage 0x7fff53cb7000 - 0x7fff53cc6fff com.apple.GraphVisualizer (1.0 - 5) &lt;B993B8A2-5700-3DFC-9EB7-4CCEE8F959F1&gt; /System/Library/PrivateFrameworks/GraphVisualizer.framework/Versions/A/GraphVisualizer 0x7fff53d49000 - 0x7fff53dbdfff com.apple.Heimdal (4.0 - 2.0) &lt;18607D75-DB78-3CC7-947E-AC769195164C&gt; /System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal 0x7fff53dbe000 - 0x7fff53decfff com.apple.HelpData (2.3 - 167.1) &lt;CA17A45C-EDB0-3569-B6EB-62549261055E&gt; /System/Library/PrivateFrameworks/HelpData.framework/Versions/A/HelpData 0x7fff546cc000 - 0x7fff546d3ff7 com.apple.IOAccelerator (378.18.1 - 378.18.1) &lt;F37B8021-DA55-3FA2-921F-59D49CAA2DFC&gt; /System/Library/PrivateFrameworks/IOAccelerator.framework/Versions/A/IOAccelerator 0x7fff546d7000 - 0x7fff546eefff com.apple.IOPresentment (1.0 - 35.1) &lt;534F12C3-3585-3637-BE16-48891FCAEB7A&gt; /System/Library/PrivateFrameworks/IOPresentment.framework/Versions/A/IOPresentment 0x7fff54ab9000 - 0x7fff54adfffb com.apple.IconServices (97.6 - 97.6) &lt;A56D826D-20D2-34BE-AACC-A80CFCB4E915&gt; /System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices 0x7fff54bec000 - 0x7fff54befff3 com.apple.InternationalSupport (1.0 - 1) &lt;5AB382FD-BF81-36A1-9565-61F1FD398ECA&gt; /System/Library/PrivateFrameworks/InternationalSupport.framework/Versions/A/InternationalSupport 0x7fff54c5d000 - 0x7fff54c6dffb com.apple.IntlPreferences (2.0 - 227.5.2) &lt;DA6BC4CA-14F5-3A83-82B6-812344A050D2&gt; /System/Library/PrivateFrameworks/IntlPreferences.framework/Versions/A/IntlPreferences 0x7fff54d78000 - 0x7fff54e6dff7 com.apple.LanguageModeling (1.0 - 159.5.3) &lt;7F0AC200-E3DD-39FB-8A95-00DD70B66A9F&gt; /System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling 0x7fff54e6e000 - 0x7fff54eb0fff com.apple.Lexicon-framework (1.0 - 33.5) &lt;DC94CF9E-1EB4-3C0E-B298-CA1190885276&gt; /System/Library/PrivateFrameworks/Lexicon.framework/Versions/A/Lexicon 0x7fff54eb4000 - 0x7fff54ebbff7 com.apple.LinguisticData (1.0 - 238.3) &lt;49A54649-1021-3DBD-99B8-1B2EDFFA5378&gt; /System/Library/PrivateFrameworks/LinguisticData.framework/Versions/A/LinguisticData 0x7fff556ba000 - 0x7fff556bdfff com.apple.Mangrove (1.0 - 1) &lt;27D6DF76-B5F8-3443-8826-D25B284331BF&gt; /System/Library/PrivateFrameworks/Mangrove.framework/Versions/A/Mangrove 0x7fff55bcc000 - 0x7fff55c35ff7 com.apple.gpusw.MetalTools (1.0 - 1) &lt;B5F66CF4-BE75-3A0B-A6A0-2F22C7C259D9&gt; /System/Library/PrivateFrameworks/MetalTools.framework/Versions/A/MetalTools 0x7fff55db1000 - 0x7fff55dcafff com.apple.MobileKeyBag (2.0 - 1.0) &lt;828D360F-B6C6-34C3-8DE2-840664685081&gt; /System/Library/PrivateFrameworks/MobileKeyBag.framework/Versions/A/MobileKeyBag 0x7fff55e56000 - 0x7fff55e80ffb com.apple.MultitouchSupport.framework (1404.4 - 1404.4) &lt;45374A2A-C0BC-3A70-8183-37295205CDFA&gt; /System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport 0x7fff560e7000 - 0x7fff560f2fff com.apple.NetAuth (6.2 - 6.2) &lt;B3795F63-C14A-33E1-9EE6-02A2E7661321&gt; /System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth 0x7fff57986000 - 0x7fff57996ffb com.apple.PerformanceAnalysis (1.194 - 194) &lt;2844933E-B71C-3BE9-9A84-27B29E111F13&gt; /System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis 0x7fff59754000 - 0x7fff59772fff com.apple.ProtocolBuffer (1 - 260) &lt;40704740-4A53-3010-A49B-08D1D69D1D5E&gt; /System/Library/PrivateFrameworks/ProtocolBuffer.framework/Versions/A/ProtocolBuffer 0x7fff598df000 - 0x7fff598f5ff7 com.apple.QuickLookThumbnailing (1.0 - 1) &lt;8F0092E4-6494-349D-B4C9-494DF293D716&gt; /System/Library/PrivateFrameworks/QuickLookThumbnailing.framework/Versions/A/QuickLookThumbnailing 0x7fff59940000 - 0x7fff5994cfff com.apple.xpc.RemoteServiceDiscovery (1.0 - 1205.60.9) &lt;12E89ED2-E3E8-37CB-B4D8-C44E40285A3E&gt; /System/Library/PrivateFrameworks/RemoteServiceDiscovery.framework/Versions/A/RemoteServiceDiscovery 0x7fff5994d000 - 0x7fff59970ffb com.apple.RemoteViewServices (2.0 - 125) &lt;592323D1-CB44-35F1-9921-4C2AB8D920A0&gt; /System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices 0x7fff59971000 - 0x7fff59985ff7 com.apple.xpc.RemoteXPC (1.0 - 1205.60.9) &lt;91DBCE29-743E-3D48-8D16-A8B497750D13&gt; /System/Library/PrivateFrameworks/RemoteXPC.framework/Versions/A/RemoteXPC 0x7fff5b144000 - 0x7fff5b147ff3 com.apple.SecCodeWrapper (4.0 - 360.50.7) &lt;D7136CA5-CC5E-3B3C-AF1A-A8E5FF2023DF&gt; /System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper 0x7fff5b28c000 - 0x7fff5b39ffff com.apple.Sharing (1050.21 - 1050.21) &lt;D0C80C0B-8B70-3780-9231-31725AFAEA65&gt; /System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing 0x7fff5b3a0000 - 0x7fff5b3bfff7 com.apple.shortcut (2.16 - 99) &lt;201F92AE-F8E6-3A24-B9DE-26B88CD2EF18&gt; /System/Library/PrivateFrameworks/Shortcut.framework/Versions/A/Shortcut 0x7fff5b3ca000 - 0x7fff5b3cbff7 com.apple.performance.SignpostNotification (1.2.5 - 2.5) &lt;64CBA369-15D5-3A08-AFE8-B5D093974C68&gt; /System/Library/PrivateFrameworks/SignpostNotification.framework/Versions/A/SignpostNotification 0x7fff5c114000 - 0x7fff5c3b0fff com.apple.SkyLight (1.600.0 - 312.62) &lt;66F27586-E5CF-3147-9AC6-793B264DE29D&gt; /System/Library/PrivateFrameworks/SkyLight.framework/Versions/A/SkyLight 0x7fff5cb79000 - 0x7fff5cb86fff com.apple.SpeechRecognitionCore (4.6.1 - 4.6.1) &lt;87EE7AB5-6925-3D21-BE00-F155CB457699&gt; /System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore 0x7fff5d72b000 - 0x7fff5d7b4fc7 com.apple.Symbolication (9.3 - 64033) &lt;FAA17252-6378-34A4-BBBB-22DF54EC1626&gt; /System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication 0x7fff5dd25000 - 0x7fff5dd2dff7 com.apple.TCC (1.0 - 1) &lt;E1EB7272-FE6F-39AB-83CA-B2B5F2A88D9B&gt; /System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC 0x7fff5df3a000 - 0x7fff5dff7ff7 com.apple.TextureIO (3.7 - 3.7) &lt;F8BAC954-405D-3CC3-AB7B-048C866EF980&gt; /System/Library/PrivateFrameworks/TextureIO.framework/Versions/A/TextureIO 0x7fff5e0a8000 - 0x7fff5e257fff com.apple.UIFoundation (1.0 - 547.5) &lt;E8FD9325-F415-3DF9-8C64-425EE2C58822&gt; /System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation 0x7fff5ef2c000 - 0x7fff5effbff7 com.apple.ViewBridge (343.2 - 343.2) &lt;5519FCED-1F88-3BE6-9BE1-69992086B01B&gt; /System/Library/PrivateFrameworks/ViewBridge.framework/Versions/A/ViewBridge 0x7fff5f960000 - 0x7fff5f962ffb com.apple.loginsupport (1.0 - 1) &lt;D1232C1B-80EA-3DF8-9466-013695D0846E&gt; /System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport 0x7fff5fac9000 - 0x7fff5fafcff7 libclosured.dylib (551.3) &lt;DC3DA678-9C40-339C-A9C6-32AB74FCC682&gt; /usr/lib/closure/libclosured.dylib 0x7fff5fbb6000 - 0x7fff5fbefff7 libCRFSuite.dylib (41) &lt;FE5EDB68-2593-3C2E-BBAF-1C52D206F296&gt; /usr/lib/libCRFSuite.dylib 0x7fff5fbf0000 - 0x7fff5fbfbfff libChineseTokenizer.dylib (28) &lt;53633C9B-A3A8-36F7-A53C-432D802F4BB8&gt; /usr/lib/libChineseTokenizer.dylib 0x7fff5fc8d000 - 0x7fff5fc8eff3 libDiagnosticMessagesClient.dylib (104) &lt;9712E980-76EE-3A89-AEA6-DF4BAF5C0574&gt; /usr/lib/libDiagnosticMessagesClient.dylib 0x7fff5fcc5000 - 0x7fff5fe8fff3 libFosl_dynamic.dylib (17.8) &lt;C58ED77A-4986-31C2-994C-34DDFB8106F0&gt; /usr/lib/libFosl_dynamic.dylib 0x7fff5feaf000 - 0x7fff5feb6fff libMatch.1.dylib (31) &lt;74AB4815-11D1-3930-A559-BD6550CE5865&gt; /usr/lib/libMatch.1.dylib 0x7fff5fec7000 - 0x7fff5fec7fff libOpenScriptingUtil.dylib (174) &lt;610F0242-7CE5-3C86-951B-B646562694AF&gt; /usr/lib/libOpenScriptingUtil.dylib 0x7fff5fffe000 - 0x7fff60002ffb libScreenReader.dylib (562.18.4) &lt;E239923D-54C9-3BBF-852F-87C09DEF4091&gt; /usr/lib/libScreenReader.dylib 0x7fff60003000 - 0x7fff60004ffb libSystem.B.dylib (1252.50.4) &lt;CDA73F3E-2A7D-3354-818A-580317A03255&gt; /usr/lib/libSystem.B.dylib 0x7fff60097000 - 0x7fff60097fff libapple_crypto.dylib (109.50.14) &lt;48BA2E76-BF2F-3522-A54E-D7FB7EAF7A57&gt; /usr/lib/libapple_crypto.dylib 0x7fff60098000 - 0x7fff600aeff7 libapple_nghttp2.dylib (1.24) &lt;01402BC4-4822-3676-9C80-50D83F816424&gt; /usr/lib/libapple_nghttp2.dylib 0x7fff600af000 - 0x7fff600d9ff3 libarchive.2.dylib (54) &lt;8FC28DD8-E315-3C3E-95FE-D1D2CBE49888&gt; /usr/lib/libarchive.2.dylib 0x7fff600da000 - 0x7fff6015bfdf libate.dylib (1.13.1) &lt;178ACDAD-DE7E-346C-A613-1CBF7929AC07&gt; /usr/lib/libate.dylib 0x7fff6015f000 - 0x7fff6015fff3 libauto.dylib (187) &lt;A05C7900-F8C7-3E75-8D3F-909B40C19717&gt; /usr/lib/libauto.dylib 0x7fff60160000 - 0x7fff60218ff3 libboringssl.dylib (109.50.14) &lt;E6813F87-B5E4-3F7F-A725-E6A7F2BD02EC&gt; /usr/lib/libboringssl.dylib 0x7fff60219000 - 0x7fff60229ff3 libbsm.0.dylib (39) &lt;6BC96A72-AFBE-34FD-91B1-748A530D8AE6&gt; /usr/lib/libbsm.0.dylib 0x7fff6022a000 - 0x7fff60237ffb libbz2.1.0.dylib (38) &lt;0A5086BB-4724-3C14-979D-5AD4F26B5B45&gt; /usr/lib/libbz2.1.0.dylib 0x7fff60238000 - 0x7fff6028efff libc++.1.dylib (400.9) &lt;7D3DACCC-3804-393C-ABC1-1A580FD00CB6&gt; /usr/lib/libc++.1.dylib 0x7fff6028f000 - 0x7fff602b3ff7 libc++abi.dylib (400.8.2) &lt;EF5E37D7-11D9-3530-BE45-B986612D13E2&gt; /usr/lib/libc++abi.dylib 0x7fff602b5000 - 0x7fff602c5fff libcmph.dylib (6) &lt;A5509EE8-7E00-3224-8814-015B077A3CF5&gt; /usr/lib/libcmph.dylib 0x7fff602c6000 - 0x7fff602ddfcf libcompression.dylib (47.60.2) &lt;543F07BF-2F2F-37D5-9866-E84BF659885B&gt; /usr/lib/libcompression.dylib 0x7fff60588000 - 0x7fff605a0ff7 libcoretls.dylib (155.50.1) &lt;D350052E-DC4D-3185-ADBA-BA48EDCEE955&gt; /usr/lib/libcoretls.dylib 0x7fff605a1000 - 0x7fff605a2ff3 libcoretls_cfhelpers.dylib (155.50.1) &lt;B297F5D8-F2FE-3566-A752-E9D998B9C039&gt; /usr/lib/libcoretls_cfhelpers.dylib 0x7fff60a73000 - 0x7fff60ac9ff3 libcups.2.dylib (462.2.1) &lt;5FD94468-FC3C-32DC-8EF5-EFDC2815FE85&gt; /usr/lib/libcups.2.dylib 0x7fff60c09000 - 0x7fff60c09fff libenergytrace.dylib (16) &lt;A92AB8B8-B986-3CE6-980D-D55090FEF387&gt; /usr/lib/libenergytrace.dylib 0x7fff60c0a000 - 0x7fff60c23ffb libexpat.1.dylib (16.1.1) &lt;5E1796FA-4041-3187-B5C2-8E6B03D1D72A&gt; /usr/lib/libexpat.1.dylib 0x7fff60c40000 - 0x7fff60c45ff3 libheimdal-asn1.dylib (520.50.6) &lt;E358445A-B84E-31B5-BCCD-7E1397519D96&gt; /usr/lib/libheimdal-asn1.dylib 0x7fff60c71000 - 0x7fff60d62ff7 libiconv.2.dylib (51.50.1) &lt;2FEC9707-3FAF-3828-A50D-8605086D060F&gt; /usr/lib/libiconv.2.dylib 0x7fff60d63000 - 0x7fff60f8affb libicucore.A.dylib (59180.0.1) &lt;49C253CB-1BEF-3FF6-ABAB-7BACEEDE8C94&gt; /usr/lib/libicucore.A.dylib 0x7fff60fd7000 - 0x7fff60fd8fff liblangid.dylib (128) &lt;39C39393-0D05-301D-93B2-F224FC4949AA&gt; /usr/lib/liblangid.dylib 0x7fff60fd9000 - 0x7fff60ff2ffb liblzma.5.dylib (10) &lt;3D419A50-961F-37D2-8A01-3DC7AB7B8D18&gt; /usr/lib/liblzma.5.dylib 0x7fff60ff3000 - 0x7fff61009ff7 libmarisa.dylib (9) &lt;D6D2D55D-1D2E-3442-B152-B18803C0ABB4&gt; /usr/lib/libmarisa.dylib 0x7fff610ba000 - 0x7fff612e2ff7 libmecabra.dylib (779.7.6) &lt;F462F170-E872-3D09-B219-973D5E99C09F&gt; /usr/lib/libmecabra.dylib 0x7fff614ba000 - 0x7fff61634fff libnetwork.dylib (1229.60.3) &lt;6E469F8A-963B-399D-9053-4883D2EECF4E&gt; /usr/lib/libnetwork.dylib 0x7fff616bb000 - 0x7fff61aa97e7 libobjc.A.dylib (723) &lt;DD9E5EC5-B507-3249-B700-93433E2D5EDF&gt; /usr/lib/libobjc.A.dylib 0x7fff61abc000 - 0x7fff61ac0fff libpam.2.dylib (22) &lt;7B4D2CE2-1438-387A-9802-5CEEFBF26F86&gt; /usr/lib/libpam.2.dylib 0x7fff61ac3000 - 0x7fff61af7fff libpcap.A.dylib (79.20.1) &lt;FA13918B-A247-3181-B256-9B852C7BA316&gt; /usr/lib/libpcap.A.dylib 0x7fff61b76000 - 0x7fff61b92ffb libresolv.9.dylib (65) &lt;E8F3415B-4472-3202-8901-41FD87981DB2&gt; /usr/lib/libresolv.9.dylib 0x7fff61b94000 - 0x7fff61bcdff3 libsandbox.1.dylib (765.60.1) &lt;E882AB2E-E433-3E61-94AA-5E57361EC68B&gt; /usr/lib/libsandbox.1.dylib 0x7fff61be1000 - 0x7fff61be2ff3 libspindump.dylib (252) &lt;D8E27057-E3CC-3D7F-A010-4A87830F6A83&gt; /usr/lib/libspindump.dylib 0x7fff61be3000 - 0x7fff61d76ff7 libsqlite3.dylib (274.8.1) &lt;FCAD6A57-829E-3701-B16E-1833D620E0E8&gt; /usr/lib/libsqlite3.dylib 0x7fff61f4a000 - 0x7fff61faaff3 libusrtcp.dylib (1229.60.3) &lt;584152F4-EDC1-388A-9134-95147E8ABC49&gt; /usr/lib/libusrtcp.dylib 0x7fff61fab000 - 0x7fff61faeffb libutil.dylib (51.20.1) &lt;216D18E5-0BAF-3EAF-A38E-F6AC37CBABD9&gt; /usr/lib/libutil.dylib 0x7fff61faf000 - 0x7fff61fbcfff libxar.1.dylib (400) &lt;0316128D-3B47-3052-995D-97B4FE5491DC&gt; /usr/lib/libxar.1.dylib 0x7fff61fc0000 - 0x7fff620a7fff libxml2.2.dylib (31.10) &lt;503721DB-0D8D-379E-B743-18CE59304155&gt; /usr/lib/libxml2.2.dylib 0x7fff620a8000 - 0x7fff620d0fff libxslt.1.dylib (15.12) &lt;4A5E011D-8B29-3135-A52B-9A9070ABD752&gt; /usr/lib/libxslt.1.dylib 0x7fff620d1000 - 0x7fff620e3ffb libz.1.dylib (70) &lt;48C67CFC-940D-3857-8DAD-857774605352&gt; /usr/lib/libz.1.dylib 0x7fff6217f000 - 0x7fff62183ff7 libcache.dylib (80) &lt;092479CB-1008-3A83-BECF-E115F24D13C1&gt; /usr/lib/system/libcache.dylib 0x7fff62184000 - 0x7fff6218eff3 libcommonCrypto.dylib (60118.50.1) &lt;029F5985-9B6E-3DCB-9B96-FD007678C6A7&gt; /usr/lib/system/libcommonCrypto.dylib 0x7fff6218f000 - 0x7fff62196fff libcompiler_rt.dylib (62) &lt;968B8E3F-3681-3230-9D78-BB8732024F6E&gt; /usr/lib/system/libcompiler_rt.dylib 0x7fff62197000 - 0x7fff621a0ffb libcopyfile.dylib (146.50.5) &lt;3885083D-50D8-3EEC-B481-B2E605180D7F&gt; /usr/lib/system/libcopyfile.dylib 0x7fff621a1000 - 0x7fff62226fff libcorecrypto.dylib (562.50.17) &lt;67007279-24E1-3F30-802D-A55CD5C27946&gt; /usr/lib/system/libcorecrypto.dylib 0x7fff622ae000 - 0x7fff622e7ff7 libdispatch.dylib (913.60.2) &lt;414353F7-3A9F-3091-AFCE-E66F74687D5D&gt; /usr/lib/system/libdispatch.dylib 0x7fff622e8000 - 0x7fff62305ff7 libdyld.dylib (551.3) &lt;CF59A5A5-288B-30E6-BD42-9056B4E4139A&gt; /usr/lib/system/libdyld.dylib 0x7fff62306000 - 0x7fff62306ffb libkeymgr.dylib (28) &lt;E34E283E-90FA-3C59-B48E-1277CDB9CDCE&gt; /usr/lib/system/libkeymgr.dylib 0x7fff62307000 - 0x7fff62313ff3 libkxld.dylib (4570.61.1) &lt;E394563E-F5D5-338D-B733-445A553E6327&gt; /usr/lib/system/libkxld.dylib 0x7fff62314000 - 0x7fff62314ff7 liblaunch.dylib (1205.60.9) &lt;4B2943A9-0994-3E8B-94B8-98DA9CED0021&gt; /usr/lib/system/liblaunch.dylib 0x7fff62315000 - 0x7fff62319ffb libmacho.dylib (906) &lt;1902A611-081A-3452-B11E-EBD1B166E831&gt; /usr/lib/system/libmacho.dylib 0x7fff6231a000 - 0x7fff6231cff3 libquarantine.dylib (86) &lt;26C0BA22-8F93-3A07-9A4E-C8D53D2CE42E&gt; /usr/lib/system/libquarantine.dylib 0x7fff6231d000 - 0x7fff6231eff3 libremovefile.dylib (45) &lt;711E18B2-5BBE-3211-A916-56740C27D17A&gt; /usr/lib/system/libremovefile.dylib 0x7fff6231f000 - 0x7fff62336fff libsystem_asl.dylib (356.50.1) &lt;3B24F2D1-B578-359D-ADB2-0ED19A364C38&gt; /usr/lib/system/libsystem_asl.dylib 0x7fff62337000 - 0x7fff62337fff libsystem_blocks.dylib (67) &lt;17303FDF-0D2D-3963-B05E-B4DF63052D47&gt; /usr/lib/system/libsystem_blocks.dylib 0x7fff62338000 - 0x7fff623c1ff7 libsystem_c.dylib (1244.50.9) &lt;1187BFE8-4576-3247-8177-481554E1F9E7&gt; /usr/lib/system/libsystem_c.dylib 0x7fff623c2000 - 0x7fff623c5ffb libsystem_configuration.dylib (963.50.8) &lt;DF6B5287-203E-30CB-9947-78DF446C72B8&gt; /usr/lib/system/libsystem_configuration.dylib 0x7fff623c6000 - 0x7fff623c9ffb libsystem_coreservices.dylib (51) &lt;486000D3-D8CB-3BE7-8EE5-8BF380DE6DF7&gt; /usr/lib/system/libsystem_coreservices.dylib 0x7fff623ca000 - 0x7fff623cbfff libsystem_darwin.dylib (1244.50.9) &lt;09C21A4A-9EE0-388B-A9D9-DFF8F6758791&gt; /usr/lib/system/libsystem_darwin.dylib 0x7fff623cc000 - 0x7fff623d2ff7 libsystem_dnssd.dylib (878.50.17) &lt;C12E2075-3E4B-3187-8B3B-F6150FCB82E0&gt; /usr/lib/system/libsystem_dnssd.dylib 0x7fff623d3000 - 0x7fff6241cff7 libsystem_info.dylib (517.30.1) &lt;AB634A98-B8AA-3804-8436-38261FC8EC4D&gt; /usr/lib/system/libsystem_info.dylib 0x7fff6241d000 - 0x7fff62443ff7 libsystem_kernel.dylib (4570.61.1) &lt;D7F2010A-EA32-3F62-90DE-85E3C5CC3065&gt; /usr/lib/system/libsystem_kernel.dylib 0x7fff62444000 - 0x7fff6248ffcb libsystem_m.dylib (3147.50.1) &lt;8CFB51C9-B422-3379-8552-064C63943A23&gt; /usr/lib/system/libsystem_m.dylib 0x7fff62490000 - 0x7fff624affff libsystem_malloc.dylib (140.50.6) &lt;7FD43735-9DDD-300E-8C4A-F909A74BDF49&gt; /usr/lib/system/libsystem_malloc.dylib 0x7fff624b0000 - 0x7fff625e0ff7 libsystem_network.dylib (1229.60.3) &lt;D17B38B7-BE5D-3A9C-9257-F045E7647E8A&gt; /usr/lib/system/libsystem_network.dylib 0x7fff625e1000 - 0x7fff625ebffb libsystem_networkextension.dylib (767.60.1) &lt;1745C91F-9AF0-357D-BD40-34451A2D6A5E&gt; /usr/lib/system/libsystem_networkextension.dylib 0x7fff625ec000 - 0x7fff625f5ff3 libsystem_notify.dylib (172) &lt;08012EC0-2CD2-34BE-BF93-E7F56491299A&gt; /usr/lib/system/libsystem_notify.dylib 0x7fff625f6000 - 0x7fff625fdff7 libsystem_platform.dylib (161.50.1) &lt;6355EE2D-5456-3CA8-A227-B96E8F1E2AF8&gt; /usr/lib/system/libsystem_platform.dylib 0x7fff625fe000 - 0x7fff62609fff libsystem_pthread.dylib (301.50.1) &lt;0E51CCBA-91F2-34E1-BF2A-FEEFD3D321E4&gt; /usr/lib/system/libsystem_pthread.dylib 0x7fff6260a000 - 0x7fff6260dfff libsystem_sandbox.dylib (765.60.1) &lt;E5DE4B2F-202D-3474-9F08-7CAB1501D411&gt; /usr/lib/system/libsystem_sandbox.dylib 0x7fff6260e000 - 0x7fff6260fff3 libsystem_secinit.dylib (30) &lt;DE8D14E8-A276-3FF8-AE13-77F7040F33C1&gt; /usr/lib/system/libsystem_secinit.dylib 0x7fff62610000 - 0x7fff62617ff7 libsystem_symptoms.dylib (820.60.2) &lt;9C9E82AB-D1EE-3EC7-B20E-44338CE092AC&gt; /usr/lib/system/libsystem_symptoms.dylib 0x7fff62618000 - 0x7fff6262bfff libsystem_trace.dylib (829.50.17) &lt;6568D68B-1D4C-38EE-90A9-54821D6403C0&gt; /usr/lib/system/libsystem_trace.dylib 0x7fff6262d000 - 0x7fff62632ff7 libunwind.dylib (35.3) &lt;BEF3FB49-5604-3B5F-82B5-332B80023AC3&gt; /usr/lib/system/libunwind.dylib 0x7fff62633000 - 0x7fff62660fff libxpc.dylib (1205.60.9) &lt;16132357-B57A-35F5-B165-487D3F759F45&gt; /usr/lib/system/libxpc.dylib External Modification Summary: Calls made by other processes targeting this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by this process: task_for_pid: 0 thread_create: 0 thread_set_state: 0 Calls made by all processes on this machine: task_for_pid: 1247717 thread_create: 0 thread_set_state: 0 VM Region Summary: ReadOnly portion of Libraries: Total=462.7M resident=0K(0%) swapped_out_or_unallocated=462.7M(100%) Writable regions: Total=421.6M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=421.6M(100%) VIRTUAL REGION REGION TYPE SIZE COUNT (non-coalesced) =========== ======= ======= Accelerate framework 768K 5 Activity Tracing 256K 2 CG backing stores 15.1M 8 CG image 108K 8 CoreAnimation 172K 11 CoreGraphics 8K 2 CoreImage 40K 7 CoreUI image data 2272K 18 CoreUI image file 180K 4 Dispatch continuations 8192K 2 Foundation 4K 2 IOKit 8760K 11 Kernel Alloc Once 8K 2 MALLOC 102.0M 46 MALLOC guard page 48K 13 Memory Tag 242 12K 2 Memory Tag 255 1.0G 103 Memory Tag 255 (reserved) 12K 4 reserved VM address space (unallocated) STACK GUARD 56.2M 42 Stack 245.8M 83 VM_ALLOCATE 52K 6 __DATA 33.7M 278 __FONT_DATA 4K 2 __LINKEDIT 197.5M 10 __TEXT 265.2M 282 __UNICODE 560K 2 mapped file 147.9M 39 shared memory 23.3M 35 =========== ======= ======= TOTAL 2.1G 1001 TOTAL, minus reserved VM space 2.1G 1001 Model: MacBookPro11,1, BootROM MBP111.0146.B00, 2 processors, Intel Core i5, 2.6 GHz, 8 GB, SMC 2.16f68 Graphics: Intel Iris, Intel Iris, Built-In Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463531323634485A2D314736453120 Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463531323634485A2D314736453120 AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x112), Broadcom BCM43xx 1.0 (7.77.37.31.1a9) Bluetooth: Version 6.0.6f2, 3 services, 27 devices, 1 incoming serial ports Network Service: Wi-Fi, AirPort, en0 Serial ATA Device: APPLE SSD SD0128F, 121.33 GB USB Device: USB 3.0 Bus USB Device: Internal Memory Card Reader USB Device: Apple Internal Keyboard / Trackpad USB Device: BRCM20702 Hub USB Device: Bluetooth USB Host Controller Thunderbolt Bus: MacBook Pro, Apple Inc., 17.2 </code></pre></div> </details>
<ul dir="auto"> <li>Electron Version: latest (non beta)</li> <li>Operating System (Platform and Version): mac high sierrra</li> <li>Last known working Electron version: n/a</li> </ul> <p dir="auto"><strong>Expected Behavior</strong><br> I have 2 independent tray icons. When I destroy one icon sometimes application crashes with this error:<br> <code class="notranslate">Electron[6667:281388] -[__NSCFString isMenuOpen]: unrecognized selector sent to instance 0x7fc7f35c28d0</code></p> <p dir="auto"><strong>Actual behavior</strong><br> It should not crash</p>
1
<h1 dir="auto">I want the ability to add a single full screen zone across multiple displays in a multi-monitor configuration</h1> <p dir="auto">I use Visual Studio across 2 x 4K 32" monitors. I want to maximize the application across both displays, and treat both displays as a single screen/zone. Currently, I need to open the app, and manually align TopLeft/BottomRight.</p> <p dir="auto">The application would act as if it had been maximized (currently maximizing an app in a dual display configuration means it maximizes to a single screen). I can, of course, configure the NVidia display driver to appear as a single display device - but this gets a bit jenky when you introduce DisplayPort sleep/power/disconnection issues, and I don't want a single display for all applications - only this one (and maybe Davinci Resolve, when I'm doing a bit of video edition)</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>
0
<p dir="auto">Documents of different types tend to have different fields, which can lead to problems of sparsity when documents are stored in the order that they were indexed. If we sort documents by type, then missing values (eg in doc values or norms) can be represented very efficiently.</p> <p dir="auto">On merge, documents should be sorted by type (assuming there is more than one type). Additionally, for certain use cases, it can make sense to apply a secondary sort (eg on timestamp). This secondary level should be customizable per index, and should probably be dynamically updatable (although it would only have effect on later merges).</p> <p dir="auto">Relates to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="51553271" data-permission-text="Title is private" data-url="https://github.com/elastic/elasticsearch/issues/8870" data-hovercard-type="issue" data-hovercard-url="/elastic/elasticsearch/issues/8870/hovercard" href="https://github.com/elastic/elasticsearch/issues/8870">#8870</a></p>
<p dir="auto">Lucene has index-time sorting and early query termination capabilities. It would be nice to integrate it into Elasticsearch in order to speed up queries whose sort order matches the index order. This <a href="https://speakerdeck.com/elasticsearch/index-sorting-with-lucene" rel="nofollow">presentation</a> contains some information about these features and their implementation in Lucene.</p>
1
<p dir="auto">React version: <code class="notranslate">0.0.0-experimental-94c0244ba</code></p> <h2 dir="auto">Steps To Reproduce</h2> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React from &quot;react&quot;; import Rating from &quot;@material-ui/lab/Rating&quot;; import &quot;./styles.css&quot;; export default function App() { const [rating, setRating] = React.useState(null); return ( &lt;div&gt; Example &lt;Rating name=&quot;rating&quot; size=&quot;large&quot; value={rating} onChange={(event, newValue) =&gt; { console.log(`change rating: ${newValue}`); setRating(newValue); }} /&gt; &lt;/div&gt; ); } ReactDOM .unstable_createBlockingRoot(document.querySelector('#app'), { hydrate: false, }) .render( &lt;App /&gt; ) ;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-v">Rating</span> <span class="pl-k">from</span> <span class="pl-s">"@material-ui/lab/Rating"</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-s">"./styles.css"</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-k">function</span> <span class="pl-v">App</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-kos">[</span><span class="pl-s1">rating</span><span class="pl-kos">,</span> <span class="pl-s1">setRating</span><span class="pl-kos">]</span> <span class="pl-c1">=</span> <span class="pl-v">React</span><span class="pl-kos">.</span><span class="pl-en">useState</span><span class="pl-kos">(</span><span class="pl-c1">null</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> Example <span class="pl-c1">&lt;</span><span class="pl-ent">Rating</span> <span class="pl-c1">name</span><span class="pl-c1">=</span><span class="pl-s">"rating"</span> <span class="pl-c1">size</span><span class="pl-c1">=</span><span class="pl-s">"large"</span> <span class="pl-c1">value</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-s1">rating</span><span class="pl-kos">}</span> <span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">(</span><span class="pl-s1">event</span><span class="pl-kos">,</span> <span class="pl-s1">newValue</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</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">`change rating: <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">newValue</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">setRating</span><span class="pl-kos">(</span><span class="pl-s1">newValue</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">div</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-v">ReactDOM</span> <span class="pl-kos">.</span><span class="pl-en">unstable_createBlockingRoot</span><span class="pl-kos">(</span><span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelector</span><span class="pl-kos">(</span><span class="pl-s">'#app'</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">hydrate</span>: <span class="pl-c1">false</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span> <span class="pl-kos">;</span></pre></div> <h1 dir="auto">Live Example</h1> <p dir="auto"><a href="https://codesandbox.io/s/immutable-cloud-h3k2m?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/immutable-cloud-h3k2m?file=/src/App.js</a></p> <h1 dir="auto">Video (describe where is a bug)</h1> <p dir="auto"><a href="https://www.youtube.com/watch?v=-jWTXdaIA6Y&amp;t=1s" rel="nofollow">https://www.youtube.com/watch?v=-jWTXdaIA6Y&amp;t=1s</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">It's needed to click 2 times before <code class="notranslate">onChange</code> will be fired</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">Should works as expected as it's working in legacy mode</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="ReactDOM.hydrate( &lt;App /&gt;, document.querySelector('#app') as HTMLDivElement );"><pre class="notranslate"><span class="pl-v">ReactDOM</span><span class="pl-kos">.</span><span class="pl-en">hydrate</span><span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-ent">App</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span><span class="pl-kos">,</span> <span class="pl-smi">document</span><span class="pl-kos">.</span><span class="pl-en">querySelector</span><span class="pl-kos">(</span><span class="pl-s">'#app'</span><span class="pl-kos">)</span> <span class="pl-s1">as</span> <span class="pl-v">HTMLDivElement</span> <span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto">Thanks</p>
<p dir="auto">React version: I think any experimental version.<br> Tested using:</p> <ul dir="auto"> <li><code class="notranslate">0.0.0-experimental-5faf377df</code> and</li> <li><code class="notranslate">0.0.0-experimental-e5d06e34b</code> at least.</li> </ul> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Open CodeSandbox: <a href="https://codesandbox.io/s/createroot-broken-focus-onchange-ysrut?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/createroot-broken-focus-onchange-ysrut?file=/src/App.js</a></li> <li>Attempt to click on the label text for the checkbox in the createRoot section</li> <li>Notice that the checkbox <strong>won't</strong> check - <code class="notranslate">onChange</code> isn't called</li> <li>Attempt to click on the label text for the checkbox in the render section</li> <li>Notice that the checkbox <strong>will</strong> check - <code class="notranslate">onChange</code> is called</li> </ol> <p dir="auto">Link to code example: <a href="https://codesandbox.io/s/createroot-broken-focus-onchange-ysrut?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/createroot-broken-focus-onchange-ysrut?file=/src/App.js</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">When rendering using <code class="notranslate">createRoot</code>:</p> <ul dir="auto"> <li><code class="notranslate">onFocus</code> is called</li> <li><code class="notranslate">onChange</code> <strong>is not</strong> called</li> </ul> <p dir="auto">When rendering using <code class="notranslate">render</code>:</p> <ul dir="auto"> <li><code class="notranslate">onFocus</code> is called</li> <li><code class="notranslate">onChange</code> <strong>is</strong> called</li> </ul> <p dir="auto">My coworker and I spent a bit of time debugging this, if we at all schedule the <code class="notranslate">onFocus</code> setState handler (using <code class="notranslate">setTimeout</code>, or <code class="notranslate">requestAnimationFrame</code> for example), then <code class="notranslate">onChange</code> is always called from the input.</p> <p dir="auto">e.g.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="handleFocus = () =&gt; { setTimeout(() =&gt; this.setState({ isHovered: true }), 0) // or requestAnimationFrame(() =&gt; this.setState({ isHovered: true })) }"><pre class="notranslate"><span class="pl-en">handleFocus</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">setTimeout</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">isHovered</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">,</span> <span class="pl-c1">0</span><span class="pl-kos">)</span> <span class="pl-c">// or</span> <span class="pl-en">requestAnimationFrame</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">setState</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">isHovered</span>: <span class="pl-c1">true</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">Additionally, if the label is a sibling to the input:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="return ( &lt;&gt; &lt;input id=&quot;id&quot; onChange={} type=&quot;checkbox&quot; checked={} /&gt; &lt;label htmlFor=&quot;id&quot; onFocus={}&gt; label text &lt;/label&gt; &lt;/&gt; )"><pre class="notranslate"><span class="pl-k">return</span> <span class="pl-kos">(</span> <span class="pl-c1">&lt;</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">input</span> <span class="pl-c1">id</span><span class="pl-c1">=</span><span class="pl-s">"id"</span> <span class="pl-c1">onChange</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c1">type</span><span class="pl-c1">=</span><span class="pl-s">"checkbox"</span> <span class="pl-c1">checked</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-ent">label</span> <span class="pl-c1">htmlFor</span><span class="pl-c1">=</span><span class="pl-s">"id"</span> <span class="pl-c1">onFocus</span><span class="pl-c1">=</span><span class="pl-kos">{</span><span class="pl-kos">}</span><span class="pl-c1">&gt;</span> label text <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-ent">label</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-kos">)</span></pre></div> <p dir="auto">then the <code class="notranslate">onChange</code> handler <strong>will</strong> be called as well (Note: <code class="notranslate">onFocus</code> <strong>won't</strong> be called in this case because there isn't a focusable element within it).</p> <p dir="auto">Also worth noting, re-implementing the checkbox component using hooks will still run into the same bug - no differences between using classes vs hooks.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">Calling <code class="notranslate">setState</code> in <code class="notranslate">onFocus</code> <strong>shouldn't</strong> prevent <code class="notranslate">onChange</code> on a nested input element to be called. Both <code class="notranslate">onFocus</code> and <code class="notranslate">onChange</code> should be called.</p>
1
<p dir="auto">environment:<br> OpenCV(4.3.0)<br> language:python 3.6</p> <p dir="auto">1.load the data from txt files,and then convert type from float to int32.<br> a.txt<br> 4.020161 0.372046<br> 4.086024 0.548271<br> 4.112598 0.539363<br> 4.162546 0.522878<br> 4.252789 0.684608<br> 4.265030 0.681673<br> 4.572025 0.757398<br> 4.752093 0.743017<br> 4.958206 0.821787<br> 5.138208 0.807434<br> 5.298540 0.906368<br> 5.542401 0.878399<br> 5.798231 1.013368<br> 6.018507 1.075400<br> 6.113993 1.135273<br> 6.425354 1.265514<br> 6.545009 1.264395<br> 6.731231 1.205198<br> 6.901707 1.293404<br> 7.236600 1.293581<br> 7.264717 1.276446<br> 7.542284 1.294016<br> 7.849143 1.123871<br> 7.888957 0.818015</p> <p dir="auto">b.txt<br> 0.558444 0.486612<br> 0.590397 0.479795<br> 0.637800 0.728716<br> 0.688097 0.927678<br> 0.911380 1.735989<br> 0.946417 1.752804<br> 1.247624 2.280543<br> 1.341965 2.214138<br> 1.552272 2.264075<br> 1.891904 2.235193<br> 1.943452 2.234293<br> 2.129528 2.216326<br> 2.370298 2.131144<br> 2.654617 2.204402<br> 2.769804 2.168312<br> 2.967309 2.118495<br> 3.258043 2.180414<br> 3.386168 2.172515<br> 3.582158 2.205668<br> 3.909915 2.182819<br> 3.998347 2.194714<br> 4.266880 2.160797<br> 4.344415 2.154483<br> 4.714916 2.141987<br> 4.798001 2.135526<br> 4.965595 1.871750<br> 5.199670 1.789360<br> 5.334784 1.386364<br> 5.574860 1.413061<br> 5.858532 1.056488<br> exmaple:<br> v0=(np.loadtxt("vehicleOutline/vehicleOutline0.txt",dtype=float,delimiter=' ') * 1000).astype(np.int32)<br> 2.then reshape to (length,1,2),excute the function computeDistance</p> <p dir="auto">example:<br> sd=cv2.createShapeContextDistanceExtractor()<br> a0 = arr[i].reshape(arr[i].shape[0],1,2)<br> a1 = arr[j].reshape(arr[j].shape[0],1,2)<br> print(i,"match",j,"=",sd.computeDistance(a0,a1))</p> <p dir="auto">3.result:<br> some of txt files went success,but others went wrong.top the data went wrong,i dont know how to slove it.</p>
<p dir="auto">Transferred from <a href="http://code.opencv.org/issues/4490" rel="nofollow">http://code.opencv.org/issues/4490</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="|| Do Bi on 2015-07-21 13:15 || Priority: Normal || Affected: branch 'master' (3.0-dev) || Category: None || Tracker: Bug || Difficulty: || PR: || Platform: x86 / Windows"><pre class="notranslate"><code class="notranslate">|| Do Bi on 2015-07-21 13:15 || Priority: Normal || Affected: branch 'master' (3.0-dev) || Category: None || Tracker: Bug || Difficulty: || PR: || Platform: x86 / Windows </code></pre></div> <h2 dir="auto">createShapeContextDistanceExtractor()-&gt;computeDistance throws exception for certain shaped</h2> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using these two images 1) http://i.imgur.com/WKaFDl4.png 2) http://i.imgur.com/5ayU6qb.png I get the following error @OpenCV Error: Assertion failed (dims &lt;= 2 &amp;&amp; data &amp;&amp; (unsigned)i0 &lt; (unsigned)size.p[0] &amp;&amp; (unsigned)(i1 * DataType&lt;_Tp&gt;::channels) &lt; (unsigned)(size.p[1] * channels()) &amp;&amp; ((((sizeof(size_t)&lt;&lt;28)|0x8442211) &gt;&gt; ((DataType&lt;_Tp&gt;::depth) &amp; ((1&lt;&lt; 3) - 1))*4) &amp; 15) == elemSize1()) in cv::Mat::at, file C:\builds\master_PackSlave-win32-vc12-static\opencv\modules\core\include\opencv2/core/mat.inl.hpp, line 894@ when running this code: @#include &quot;opencv2/imgproc/imgproc.hpp&quot; #include &quot;opencv2/highgui/highgui.hpp&quot; #include &quot;opencv2/shape/shape.hpp&quot; #include &lt;math.h&gt; #include &lt;iostream&gt; using namespace cv; using namespace std; vector&lt;Point&gt; GetContour(const Mat&amp; img) { cv::threshold(img, img, 128, 255, cv::THRESH_BINARY); vector&lt;vector&lt;Point&gt;&gt; conts; cv::findContours(img, conts, cv::RETR_LIST, cv::CHAIN_APPROX_SIMPLE); if (conts.empty()) return vector&lt;Point&gt;(); return conts.front(); } int main() { auto shape1 = GetContour(cv::imread(&quot;D:/shape1.png&quot;, cv::IMREAD_GRAYSCALE)); auto shape2 = GetContour(cv::imread(&quot;D:/shape2.png&quot;, cv::IMREAD_GRAYSCALE)); cout &lt;&lt; createShapeContextDistanceExtractor()-&gt;computeDistance(shape1, shape2) &lt;&lt; endl; }@ in VC2013. With other shapes or with createHausdorffDistanceExtractor instead of createShapeContextDistanceExtractor it does not crash."><pre class="notranslate"><code class="notranslate">Using these two images 1) http://i.imgur.com/WKaFDl4.png 2) http://i.imgur.com/5ayU6qb.png I get the following error @OpenCV Error: Assertion failed (dims &lt;= 2 &amp;&amp; data &amp;&amp; (unsigned)i0 &lt; (unsigned)size.p[0] &amp;&amp; (unsigned)(i1 * DataType&lt;_Tp&gt;::channels) &lt; (unsigned)(size.p[1] * channels()) &amp;&amp; ((((sizeof(size_t)&lt;&lt;28)|0x8442211) &gt;&gt; ((DataType&lt;_Tp&gt;::depth) &amp; ((1&lt;&lt; 3) - 1))*4) &amp; 15) == elemSize1()) in cv::Mat::at, file C:\builds\master_PackSlave-win32-vc12-static\opencv\modules\core\include\opencv2/core/mat.inl.hpp, line 894@ when running this code: @#include "opencv2/imgproc/imgproc.hpp" #include "opencv2/highgui/highgui.hpp" #include "opencv2/shape/shape.hpp" #include &lt;math.h&gt; #include &lt;iostream&gt; using namespace cv; using namespace std; vector&lt;Point&gt; GetContour(const Mat&amp; img) { cv::threshold(img, img, 128, 255, cv::THRESH_BINARY); vector&lt;vector&lt;Point&gt;&gt; conts; cv::findContours(img, conts, cv::RETR_LIST, cv::CHAIN_APPROX_SIMPLE); if (conts.empty()) return vector&lt;Point&gt;(); return conts.front(); } int main() { auto shape1 = GetContour(cv::imread("D:/shape1.png", cv::IMREAD_GRAYSCALE)); auto shape2 = GetContour(cv::imread("D:/shape2.png", cv::IMREAD_GRAYSCALE)); cout &lt;&lt; createShapeContextDistanceExtractor()-&gt;computeDistance(shape1, shape2) &lt;&lt; endl; }@ in VC2013. With other shapes or with createHausdorffDistanceExtractor instead of createShapeContextDistanceExtractor it does not crash. </code></pre></div> <h2 dir="auto">History</h2>
1
<p dir="auto">I have soft wrap enabled and there's a block which is wrapped to the next line. When I fold it soft wrap stops working.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/180154/8167645/4aaa7750-13a8-11e5-9776-0539649309fd.gif"><img src="https://cloud.githubusercontent.com/assets/180154/8167645/4aaa7750-13a8-11e5-9776-0539649309fd.gif" alt="fold_wrap_bug" data-animated-image="" style="max-width: 100%;"></a></p>
<p dir="auto">Taken from <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="57728244" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/5567" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/5567/hovercard?comment_id=75758499&amp;comment_type=issue_comment" href="https://github.com/atom/atom/pull/5567#issuecomment-75758499">#5567 (comment)</a>.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/38924/6350291/c9cb4974-bc32-11e4-9f93-b02e6cc0abfd.gif"><img src="https://cloud.githubusercontent.com/assets/38924/6350291/c9cb4974-bc32-11e4-9f93-b02e6cc0abfd.gif" alt="3" data-animated-image="" style="max-width: 100%;"></a></p> <p dir="auto">Notice that the paragraphs are soft-wrapped, but after the fold -- the first paragraph is un-soft-wrapped.</p>
1
<p dir="auto">Please see an example below. Should it generate same fingerprint? Thanks.</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from scrapy.http import Request from scrapy.utils.request import request_fingerprint r1 = Request(&quot;http://www.example.com/123&quot;) r2 = Request(&quot;http://example.com/123&quot;) print request_fingerprint(r1) print request_fingerprint(r2)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">http</span> <span class="pl-k">import</span> <span class="pl-v">Request</span> <span class="pl-k">from</span> <span class="pl-s1">scrapy</span>.<span class="pl-s1">utils</span>.<span class="pl-s1">request</span> <span class="pl-k">import</span> <span class="pl-s1">request_fingerprint</span> <span class="pl-s1">r1</span> <span class="pl-c1">=</span> <span class="pl-v">Request</span>(<span class="pl-s">"http://www.example.com/123"</span>) <span class="pl-s1">r2</span> <span class="pl-c1">=</span> <span class="pl-v">Request</span>(<span class="pl-s">"http://example.com/123"</span>) <span class="pl-k">print</span> <span class="pl-en">request_fingerprint</span>(<span class="pl-s1">r1</span>) <span class="pl-k">print</span> <span class="pl-en">request_fingerprint</span>(<span class="pl-s1">r2</span>)</pre></div> <p dir="auto">1577e4ad857665390d44cd04a638104d0575d903<br> a907c28bf08125b8a87535a117c2d8a4a629415c</p>
<p dir="auto">Currently when image download encounters redirect download fails. This is probably <a href="https://github.com/scrapy/scrapy/blob/master/scrapy/pipelines/media.py#L106">because of this line that sets handle_httpstatus_all</a>. As a result image download handler gets to process response with status 3** and usually empty body, it is not able to download image, it fails. Is this expected behavior? Why not follow redirect in case like this?</p>
0
<p dir="auto"><strong>I'm submitting a feature request</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ x ] feature request"><pre class="notranslate"><code class="notranslate">[ x ] feature request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> Currently when testing a component we need to manually create a new component for testing inputs set on the template which is pretty verbose and difficult to test templates with optional bindings and various input parameters.</p> <p dir="auto">For example:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// Component used to setup our test. @Component({ selector: 'my-comp', template: '&lt;my-component [someInput]=&quot;foo&quot; [otherInput]=&quot;bar&quot;&gt;&lt;/my-component&gt;', directives: [MyComponent], }) class MyTestComponent { foo = 'abc'; bar = 123; }"><pre class="notranslate"><span class="pl-c">// Component used to setup our test.</span> @<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'my-comp'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">'&lt;my-component [someInput]="foo" [otherInput]="bar"&gt;&lt;/my-component&gt;'</span><span class="pl-kos">,</span> <span class="pl-c1">directives</span>: <span class="pl-kos">[</span><span class="pl-smi">MyComponent</span><span class="pl-kos">]</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">MyTestComponent</span> <span class="pl-kos">{</span> <span class="pl-c1">foo</span> <span class="pl-c1">=</span> <span class="pl-s">'abc'</span><span class="pl-kos">;</span> <span class="pl-c1">bar</span> <span class="pl-c1">=</span> <span class="pl-c1">123</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto"><strong>Expected/desired behavior</strong><br> Instead, it would be nice to have TestBed create an on-the-fly test wrapper for our component so that we can pass in the component, the template using the component, and a set of bindings for the template.</p> <p dir="auto">Consider something along the lines of:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const foo = 'abc'; const bar = 123; const fixture = TestBed.compile(MyComponent, '&lt;my-component [someData]=&quot;foo&quot; [otherData]=&quot;bar&quot;&gt;&lt;/my-component&gt;', {foo, bar});"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">foo</span> <span class="pl-c1">=</span> <span class="pl-s">'abc'</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">bar</span> <span class="pl-c1">=</span> <span class="pl-c1">123</span><span class="pl-kos">;</span> <span class="pl-k">const</span> <span class="pl-s1">fixture</span> <span class="pl-c1">=</span> <span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">compile</span><span class="pl-kos">(</span><span class="pl-smi">MyComponent</span><span class="pl-kos">,</span> <span class="pl-s">'&lt;my-component [someData]="foo" [otherData]="bar"&gt;&lt;/my-component&gt;'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span>foo<span class="pl-kos">,</span> bar<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></p> <ul dir="auto"> <li>More concise testing</li> <li>Easier to test different template bindings</li> </ul> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.0.0-rc.5</li> <li><strong>Browser:</strong> [ all ]</li> <li><strong>Language:</strong> [ all ]</li> </ul>
<p dir="auto"><strong>I'm submitting a ...</strong> (check one with "x")</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; 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 =&gt; search github for a similar issue or PR before submitting [ ] feature request [ ] support request =&gt; 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">TBH I'm not sure if this is a bug, a feature request, or just a product of my ignorance/incomplete docs.</p> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">When I have a component using <code class="notranslate">ChangeDetectionStrategy.OnPush</code>, I can create a test fixture via <code class="notranslate">const fixture = TestBed.createComponent(TestComponent)</code> but can't figure out how to force a change detection after altering one of the input properties. Just calling <code class="notranslate">fixture.detectChanges()</code> like I would for a <code class="notranslate">ChangeDetectionStrategy.Default</code> component doesn't seem to do it. I've also tried in conjunction with <code class="notranslate">fixture.changeDetectorRef.markForCheck()</code> but still no luck. However, if I wrap my OnPush component in another component for testing purposes, it works as expected.</p> <p dir="auto"><strong>Expected behavior</strong></p> <p dir="auto">Should be some way to force a change detection on a OnPush component when changing its inputs directly via the component fixture (rather than via a wrapper component).</p> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong></p> <p dir="auto">test.component:</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Component, Input, ChangeDetectionStrategy } from '@angular/core'; @Component({ selector: 'my-test', template: '&lt;p&gt;{{ content }}&lt;/p&gt;', changeDetection: ChangeDetectionStrategy.OnPush }) export class TestComponent { @Input() content: string; }"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Component</span><span class="pl-kos">,</span> <span class="pl-smi">Input</span><span class="pl-kos">,</span> <span class="pl-smi">ChangeDetectionStrategy</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span> @<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'my-test'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">'&lt;p&gt;{{ content }}&lt;/p&gt;'</span><span class="pl-kos">,</span> <span class="pl-c1">changeDetection</span>: <span class="pl-smi">ChangeDetectionStrategy</span><span class="pl-kos">.</span><span class="pl-c1">OnPush</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">export</span> <span class="pl-k">class</span> <span class="pl-smi">TestComponent</span> <span class="pl-kos">{</span> @<span class="pl-smi">Input</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">content</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span></pre></div> <p dir="auto">test.component.spec.ts (this test fails w/ OnPush but passes with Default):</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { TestComponent } from './test.component'; describe('Test Component', () =&gt; { beforeEach(() =&gt; { TestBed.configureTestingModule({declarations: [TestComponent]}); }); it('should render the bound content within a p element', () =&gt; { const fixture = TestBed.createComponent(TestComponent); fixture.detectChanges(); const p = fixture.debugElement.query(By.css('p')); expect((p.nativeElement as HTMLParagraphElement).innerText).toBeFalsy(); fixture.componentInstance.content = 'Test!'; fixture.detectChanges(); expect((p.nativeElement as HTMLParagraphElement).innerText).toEqual('Test!'); }); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">TestBed</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core/testing'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">By</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/platform-browser'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">TestComponent</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./test.component'</span><span class="pl-kos">;</span> <span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'Test Component'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">beforeEach</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">configureTestingModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">declarations</span>: <span class="pl-kos">[</span><span class="pl-smi">TestComponent</span><span class="pl-kos">]</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should render the bound content within a p element'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">fixture</span> <span class="pl-c1">=</span> <span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">createComponent</span><span class="pl-kos">(</span><span class="pl-smi">TestComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-en">detectChanges</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">p</span> <span class="pl-c1">=</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-c1">debugElement</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-smi">By</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'p'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">.</span><span class="pl-c1">nativeElement</span> <span class="pl-k">as</span> <span class="pl-smi">HTMLParagraphElement</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">innerText</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeFalsy</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-c1">componentInstance</span><span class="pl-kos">.</span><span class="pl-c1">content</span> <span class="pl-c1">=</span> <span class="pl-s">'Test!'</span><span class="pl-kos">;</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-en">detectChanges</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">.</span><span class="pl-c1">nativeElement</span> <span class="pl-k">as</span> <span class="pl-smi">HTMLParagraphElement</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">innerText</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toEqual</span><span class="pl-kos">(</span><span class="pl-s">'Test!'</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">test.component.wrapped.spec.ts (this passes with OnPush or Default):</p> <div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Component } from '@angular/core'; import { TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { TestComponent } from './test.component'; @Component({ selector: 'my-wrapper', template: '&lt;my-test [content]=&quot;content&quot;&gt;&lt;/my-test&gt;' }) class WrapperComponent { content: string; } describe('Test Component (Wrapped)', () =&gt; { beforeEach(() =&gt; { TestBed.configureTestingModule({declarations: [TestComponent, WrapperComponent]}); }); it('should render the bound content within a p element', () =&gt; { const fixture = TestBed.createComponent(WrapperComponent); fixture.detectChanges(); const p = fixture.debugElement.query(By.css('p')); expect((p.nativeElement as HTMLParagraphElement).innerText).toBeFalsy(); fixture.componentInstance.content = 'Test!'; fixture.detectChanges(); expect((p.nativeElement as HTMLParagraphElement).innerText).toEqual('Test!'); }); });"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Component</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">TestBed</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/core/testing'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">By</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@angular/platform-browser'</span><span class="pl-kos">;</span> <span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">TestComponent</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'./test.component'</span><span class="pl-kos">;</span> @<span class="pl-smi">Component</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">selector</span>: <span class="pl-s">'my-wrapper'</span><span class="pl-kos">,</span> <span class="pl-c1">template</span>: <span class="pl-s">'&lt;my-test [content]="content"&gt;&lt;/my-test&gt;'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">class</span> <span class="pl-smi">WrapperComponent</span> <span class="pl-kos">{</span> <span class="pl-c1">content</span>: <span class="pl-smi">string</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-en">describe</span><span class="pl-kos">(</span><span class="pl-s">'Test Component (Wrapped)'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-en">beforeEach</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">configureTestingModule</span><span class="pl-kos">(</span><span class="pl-kos">{</span><span class="pl-c1">declarations</span>: <span class="pl-kos">[</span><span class="pl-smi">TestComponent</span><span class="pl-kos">,</span> <span class="pl-smi">WrapperComponent</span><span class="pl-kos">]</span><span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">it</span><span class="pl-kos">(</span><span class="pl-s">'should render the bound content within a p element'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">fixture</span> <span class="pl-c1">=</span> <span class="pl-smi">TestBed</span><span class="pl-kos">.</span><span class="pl-en">createComponent</span><span class="pl-kos">(</span><span class="pl-smi">WrapperComponent</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-en">detectChanges</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">p</span> <span class="pl-c1">=</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-c1">debugElement</span><span class="pl-kos">.</span><span class="pl-en">query</span><span class="pl-kos">(</span><span class="pl-smi">By</span><span class="pl-kos">.</span><span class="pl-en">css</span><span class="pl-kos">(</span><span class="pl-s">'p'</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">.</span><span class="pl-c1">nativeElement</span> <span class="pl-k">as</span> <span class="pl-smi">HTMLParagraphElement</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">innerText</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBeFalsy</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-c1">componentInstance</span><span class="pl-kos">.</span><span class="pl-c1">content</span> <span class="pl-c1">=</span> <span class="pl-s">'Test!'</span><span class="pl-kos">;</span> <span class="pl-s1">fixture</span><span class="pl-kos">.</span><span class="pl-en">detectChanges</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-s1">p</span><span class="pl-kos">.</span><span class="pl-c1">nativeElement</span> <span class="pl-k">as</span> <span class="pl-smi">HTMLParagraphElement</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-c1">innerText</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toEqual</span><span class="pl-kos">(</span><span class="pl-s">'Test!'</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>What is the motivation / use case for changing the behavior?</strong></p> <p dir="auto">Would prefer to use roughly the same testing patterns regardless of which change detection strategy I'm using.</p> <p dir="auto"><strong>Please tell us about your environment:</strong></p> <ul dir="auto"> <li><strong>Angular version:</strong> 2.1.0</li> <li><strong>Browser:</strong> all</li> <li><strong>Language:</strong> TS 2.0.3</li> </ul>
1
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt;Newest</li> <li>Operating System / Platform =&gt; WIN10X64</li> <li>Compiler =&gt;VS2017X64</li> </ul> <h5 dir="auto">Detailed description</h5> <p dir="auto">opencv_imgproc_AVX512_SKX:<br> D:\Eigen\src\Eigen\src/Core/GenericPacketMath.h(524): error C2665: 'log': none of the 3 overloads could convert all the argument types<br> D:\Eigen\src\Eigen\src/Core/GenericPacketMath.h(537): error C2665: “exp”: none of the 3 overloads could convert all the argument types</p> <h5 dir="auto">Steps to reproduce</h5>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; ❔</li> <li>Operating System / Platform =&gt; <g-emoji class="g-emoji" alias="grey_question" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/2754.png">❔</g-emoji></li> <li>Compiler =&gt; ❔</li> </ul> <h5 dir="auto">Detailed description</h5> <h5 dir="auto">Steps to reproduce</h5>
0
<p dir="auto">Hi, just reporting a problem,</p> <p dir="auto">I tried to run julia on Ubuntu 13.04 on a free EC2 instance (t1.micro) and got an Illegal instruction just after typing julia.</p> <p dir="auto">I tried both 32 and 64 bit Ubuntu.<br> Haven't tried this on a non-free instance.</p> <p dir="auto">Steps to reproduce:</p> <ul dir="auto"> <li>create a t1.micro instance running the OS : Ubuntu server 13.04 (32 or 64 bits) ;</li> <li>sudo apt-get install julia</li> <li>execute 'julia'</li> <li>"Illegal instruction (core dumped)"</li> </ul>
<p dir="auto">julia.bat crashes and test-julia.bat give the message :<br> Your OS does not support AVX instructions. OpenBLAS is using Nehalem<br> kernels as a fallback, which may give you poorer performance.<br> Please submit a bug report with steps to reproduce this fault, and any error mes<br> sages that follow . Thanks.</p> <p dir="auto">When I hit enter it just closes.</p> <p dir="auto">Windows XP Pro SP3 machine with Intel i5-2500 @ 3.30Ghz<br> C:\julia-2b22323495\julia.bat</p> <p dir="auto">Is there anything else that I can supply you with to help debug this problem?<br> I have also tried to install Juliastudio. It opens the interface, but doesn't fully load Julia.<br> Sorry, I am new to this. But I would love to be able to use it.</p> <p dir="auto">Thanks</p>
1
<p dir="auto">I think line 567 in tools/rplot.py "ax.contour(Z, extent=[x_min, x_max, y_min, y_max])" should be changed to "ax.contour(Z.T, extent=[x_min, x_max, y_min, y_max])"</p> <p dir="auto">When I plot a density map, the graph is rotated by 90 degrees.</p>
<p dir="auto">The axes drawn by rplot.GeomDensity2D are flipped.<br> line 565 reads:<br> <code class="notranslate">ax.contour(Z, extent=[x_min, x_max, y_min, y_max])</code><br> but should read:<br> <code class="notranslate">ax.contour(Z.T, extent=[x_min, x_max, y_min, y_max])</code><br> The following test code gives the results shown below:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import pandas as pd import matplotlib.pyplot as plt import pandas.tools.rplot as rplot x = np.arange(1,30) y = x*x x = x + np.random.normal(size=x.shape) y = y + np.random.normal(size=y.shape) data = data = pd.DataFrame({'x': x, 'y': y}) plot = rplot.RPlot(data, x='x', y='y') plot.add(rplot.GeomScatter()) plot.add(rplot.GeomDensity2D()) plot.add(rplot.GeomPolyFit(degree=2)) plot.render(plt.gcf()) plt.show()"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">pandas</span>.<span class="pl-s1">tools</span>.<span class="pl-s1">rplot</span> <span class="pl-k">as</span> <span class="pl-s1">rplot</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">arange</span>(<span class="pl-c1">1</span>,<span class="pl-c1">30</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span><span class="pl-c1">*</span><span class="pl-s1">x</span> <span class="pl-s1">x</span> <span class="pl-c1">=</span> <span class="pl-s1">x</span> <span class="pl-c1">+</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s1">x</span>.<span class="pl-s1">shape</span>) <span class="pl-s1">y</span> <span class="pl-c1">=</span> <span class="pl-s1">y</span> <span class="pl-c1">+</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">normal</span>(<span class="pl-s1">size</span><span class="pl-c1">=</span><span class="pl-s1">y</span>.<span class="pl-s1">shape</span>) <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">data</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">DataFrame</span>({<span class="pl-s">'x'</span>: <span class="pl-s1">x</span>, <span class="pl-s">'y'</span>: <span class="pl-s1">y</span>}) <span class="pl-s1">plot</span> <span class="pl-c1">=</span> <span class="pl-s1">rplot</span>.<span class="pl-v">RPlot</span>(<span class="pl-s1">data</span>, <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">'x'</span>, <span class="pl-s1">y</span><span class="pl-c1">=</span><span class="pl-s">'y'</span>) <span class="pl-s1">plot</span>.<span class="pl-en">add</span>(<span class="pl-s1">rplot</span>.<span class="pl-v">GeomScatter</span>()) <span class="pl-s1">plot</span>.<span class="pl-en">add</span>(<span class="pl-s1">rplot</span>.<span class="pl-v">GeomDensity2D</span>()) <span class="pl-s1">plot</span>.<span class="pl-en">add</span>(<span class="pl-s1">rplot</span>.<span class="pl-v">GeomPolyFit</span>(<span class="pl-s1">degree</span><span class="pl-c1">=</span><span class="pl-c1">2</span>)) <span class="pl-s1">plot</span>.<span class="pl-en">render</span>(<span class="pl-s1">plt</span>.<span class="pl-en">gcf</span>()) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/bb85c83926a7847811e636d20448088edfc9c0d8d080680b48045d6e5c8d230b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343631323237372f3630363334382f63653665356237342d636432382d313165322d396332642d3537356565663461383138362e706e67"><img src="https://camo.githubusercontent.com/bb85c83926a7847811e636d20448088edfc9c0d8d080680b48045d6e5c8d230b/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343631323237372f3630363334382f63653665356237342d636432382d313165322d396332642d3537356565663461383138362e706e67" alt="density_as_is" data-canonical-src="https://f.cloud.github.com/assets/4612277/606348/ce6e5b74-cd28-11e2-9c2d-575eef4a8186.png" style="max-width: 100%;"></a></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e703f93b965bf7c486f4607e6b6be195fb9d1d234b7f896c36fd4dd6c46cbe96/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343631323237372f3630363334392f63653730366265342d636432382d313165322d386163392d6561356137333063303333632e706e67"><img src="https://camo.githubusercontent.com/e703f93b965bf7c486f4607e6b6be195fb9d1d234b7f896c36fd4dd6c46cbe96/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f343631323237372f3630363334392f63653730366265342d636432382d313165322d386163392d6561356137333063303333632e706e67" alt="density_fixed" data-canonical-src="https://f.cloud.github.com/assets/4612277/606349/ce706be4-cd28-11e2-8ac9-ea5a730c033c.png" style="max-width: 100%;"></a></p>
1
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting [x] feature request </code></pre></div> <p dir="auto"><strong>Current behavior</strong><br> I want basic inheritance concept:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export abstract class AbstractForm{ abstract data; constructor(protected dialog: DialogService){} } //then use it in component @Component({ selector: 'abc', template: '...' }) export class AbcComponent extends AbstractForm{ data = {} // here I don't want create same constructor one more time and call super(dialog) }"><pre class="notranslate"><code class="notranslate">export abstract class AbstractForm{ abstract data; constructor(protected dialog: DialogService){} } //then use it in component @Component({ selector: 'abc', template: '...' }) export class AbcComponent extends AbstractForm{ data = {} // here I don't want create same constructor one more time and call super(dialog) } </code></pre></div> <p dir="auto">But here I get error:</p> <blockquote> <p dir="auto">Uncaught (in promise): Error: Can't resolve all parameters for AbcComponent : (?).<br> Error: Can't resolve all parameters for AbcComponent : (?).</p> </blockquote> <p dir="auto">I don't have error with language-service and in my webstorm all seems correct, I only get this response directly when launch app in browser, even ng serve and ng build --prod works well, <strong>BUT</strong> even when I decorate my AbstractClass with <code class="notranslate">@Component({})</code> it doesn't works on build and angular language service tell me</p> <blockquote> <p dir="auto">Error:(9, 2) Angular: Component 'AbstractForm' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration</p> </blockquote> <p dir="auto">I don't want add this abstract class into ngModule because it's only an abstraction and I will never use it inside a template, while on dev mod it works (even if angular-language-service awar from this)</p> <p dir="auto"><strong>Expected behavior</strong><br> I juste want avoid set consctructor again while I don't need specify other DI it's annoying to always add duplicate code in each component extending this AbstractForm:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="constructor(protected dialog : DialogService) { super(dialog); }"><pre class="notranslate"><code class="notranslate">constructor(protected dialog : DialogService) { super(dialog); } </code></pre></div> <p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br> see above ( can't reproduce on plunkr)</p> <p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br> avoid annoying duplication of code : i don't want call abstract constructor using super()... when on child I don't have one; simply use existant constructor wirted in abstract class</p> <p dir="auto"><strong>Please tell us about your environment:</strong><br> win10, webstorm 2017.1.3</p> <ul dir="auto"> <li><strong>Angular version:</strong></li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@angular/cli: 1.0.2 node: 7.7.2 os: win32 x64 @angular/common: 4.1.1 @angular/compiler: 4.1.1 @angular/core: 4.1.1 @angular/forms: 4.1.1 @angular/http: 4.1.1 @angular/platform-browser: 4.1.1 @angular/platform-browser-dynamic: 4.1.1 @angular/router: 4.1.1 @angular/cli: 1.0.2 @angular/compiler-cli: 4.1.1 @angular/language-service: 4.1.1"><pre class="notranslate"><code class="notranslate">@angular/cli: 1.0.2 node: 7.7.2 os: win32 x64 @angular/common: 4.1.1 @angular/compiler: 4.1.1 @angular/core: 4.1.1 @angular/forms: 4.1.1 @angular/http: 4.1.1 @angular/platform-browser: 4.1.1 @angular/platform-browser-dynamic: 4.1.1 @angular/router: 4.1.1 @angular/cli: 1.0.2 @angular/compiler-cli: 4.1.1 @angular/language-service: 4.1.1 </code></pre></div> <ul dir="auto"> <li><strong>Browser:</strong> [all]</li> <li><strong>Language:</strong> [ts 2.3]</li> </ul>
<p dir="auto"><code class="notranslate">dashCaseToCamelCase</code> and <code class="notranslate">camelCaseToDashCase</code> are duplicated:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/angular/angular/blob/58dd75a1c8abfa8396ead9b2b1c95dc6c6558668/modules/angular2/src/core/compiler/property_setter_factory.js#L9">angular/modules/angular2/src/core/compiler/property_setter_factory.js</a> </p> <p class="mb-0 color-fg-muted"> Line 9 in <a data-pjax="true" class="commit-tease-sha" href="/angular/angular/commit/58dd75a1c8abfa8396ead9b2b1c95dc6c6558668">58dd75a</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L9" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="9"></td> <td id="LC9" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">export</span> <span class="pl-k">function</span> <span class="pl-en">dashCaseToCamelCase</span><span class="pl-kos">(</span><span class="pl-s1">input</span>:<span class="pl-s1">string</span><span class="pl-kos">)</span>: <span class="pl-s1">string</span> <span class="pl-kos">{</span> </td> </tr> </tbody></table> </div> </div> &amp; <a href="https://github.com/angular/angular/blob/58dd75a1c8abfa8396ead9b2b1c95dc6c6558668/modules/angular2/src/core/compiler/pipeline/util.js">https://github.com/angular/angular/blob/58dd75a1c8abfa8396ead9b2b1c95dc6c6558668/modules/angular2/src/core/compiler/pipeline/util.js</a><p></p> <p dir="auto">Where should be move them and short support fns in general ?</p> <p dir="auto">/cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/pkozlowski-opensource/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/pkozlowski-opensource">@pkozlowski-opensource</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/Mlaval/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/Mlaval">@Mlaval</a></p>
0
<p dir="auto">Hello!</p> <p dir="auto">I thought I'd open an issue, as I am currently working on this and hope to have a commit ready by the end of the day.</p> <p dir="auto">"kube-up" with AWS ought to build out a highly available and multi-AZ kubernetes cluster following AWS EC2 best practices. There are two large steps to this:</p> <ol dir="auto"> <li>Multi-AZ minions</li> <li>Highly available / Multi-AZ master</li> </ol> <p dir="auto">I am only focusing on goal <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="35192559" data-permission-text="Title is private" data-url="https://github.com/kubernetes/kubernetes/issues/1" data-hovercard-type="issue" data-hovercard-url="/kubernetes/kubernetes/issues/1/hovercard" href="https://github.com/kubernetes/kubernetes/issues/1">#1</a> here. These changes center entirely in cluster/aws/util.sh. However, I will need to modify the actual provider code in Go because, while AWS ELBs are brought up with the proper subnets, it appears they do not have multi-availability zone routing enabled.</p> <p dir="auto">I am leaving the security groups in place and creating a secondary subnet and secondary autoscaling group. NUM_MINIONS is now split into NUM_MINIONS_PRIMARY_ZONE and NUM_MINIONS_SECONDARY_ZONE. The default AWS_REGION of "us-east-1" is supplemented by AWS_ZONE_PRIMARY of "a" and AWS_ZONE_SECONDARY of "c" (us-east-1 has no "b"...)</p> <p dir="auto">I wanted to pop this issue to collect thoughts from AWS users. If anyone is already doing multi-AZ kubernetes cluster, please let me know if you have run into any edge cases! I will issue a PR for this very shortly.</p> <p dir="auto">Thanks!</p>
<p dir="auto">With the introduction of the experimental api prefix, we introduce large amounts of duplicate code for our autogenerated conversions and deep-copy functions. This increases the size of our binaries, and is not elegant. For simplicity, I will only talk about deep-copies, but everything that follows should also apply to conversions. I propose that we eliminate the duplicates as follows:</p> <ul dir="auto"> <li>We remove all autogenerated deep-copy functions from the source tree whenever we generate new deep-copy functions (or use a <a href="https://golang.org/pkg/go/build/" rel="nofollow">build tag</a> to hide them from the go compiler)</li> <li>We check whether the Scheme has a deep-copy function for the target type already registered, if not, we generate a deep-copy function</li> <li>Whenever we a see that a deep-copy function has already been generated, we do the copy by calling into the conversion.Cloner</li> </ul> <p dir="auto">(In the case of handwritten conversions, we will need to make them switch to using the conversion.Scope instead of calling autogenerated functions directly).</p> <p dir="auto">Assuming that we create the deep-copy functions in the order following the import dependency tree, we should not have any duplicate deep-copy functions. However, this approach brings with it some overhead.</p> <p dir="auto">For both cleaning up our deep-copy functions and increasing performance in the face of this overhead, I propose we take the following steps:</p> <ul dir="auto"> <li>Profile the apiserver to measure what time is spent doing deep-copies</li> <li>Create some microbenchmarks to use as a baseline (initial work can be found <a href="https://github.com/kubernetes/kubernetes/compare/master...uluyol:dedup">here</a>)</li> <li>Create a new method DeepCopyTo and pass pointers to avoid needless copies</li> <li>Switch to exception handling within the deep-copies (elaborated below)</li> <li>Change autogenerated functions to use generic signatures instead of per-type ones i.e. instead of <code class="notranslate">f(a, b *T) error</code>, we have <code class="notranslate">f(a, b interface{})</code> and use type assertions. This lets us reduce the amount of reflection that we use in exchange for boxing</li> </ul> <p dir="auto">In Go, exception handling is typically discouraged, but it is completely reasonable to use it so long as it doesn't cross an API boundary. For example, <a href="https://golang.org/src/encoding/json/encode.go#L258" rel="nofollow">here</a> it is used within the standard library. When we see an error during a copy, the copy operation cannot recover. This is the prime use-case for exception handling. We can similarly catch errors within Scheme.DeepCopy, and instead of doing explicit error checking all over the place, simply panic and convert it into an error in DeepCopy. We can also create a new function, MustDeepCopy, which does not catch the error for use within the deep-copy functions.</p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/wojtek-t/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/wojtek-t">@wojtek-t</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/nikhiljindal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/nikhiljindal">@nikhiljindal</a></p>
0
<h1 dir="auto">Examples bug report</h1> <h2 dir="auto">Example name</h2> <p dir="auto"><code class="notranslate">analyze-bundles</code></p> <h2 dir="auto">Describe the bug</h2> <p dir="auto">After following the <a href="https://github.com/zeit/next.js/tree/canary/examples/analyze-bundles#download-manually">"Download manually" instructions</a>, there is an error in the terminal and the page at <a href="http://localhost:3000/" rel="nofollow">http://localhost:3000/</a> displays "Internal Server Error"</p> <h2 dir="auto">To Reproduce</h2> <ol dir="auto"> <li><code class="notranslate">curl https://codeload.github.com/zeit/next.js/tar.gz/canary | tar -xz --strip=2 next.js-canary/examples/analyze-bundles</code></li> <li><code class="notranslate">cd analyze-bundles</code></li> <li><code class="notranslate">npm install</code></li> <li><code class="notranslate">npm run dev</code></li> <li>See the following error:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" ERROR Failed to compile with 1 errors 6:03:15 PM error in ./node_modules/next/dist/client/next-dev.js Module parse failed: Unexpected token (34:6) You may need an appropriate loader to handle this file type. | | &gt; import('./noop'); | var _window = window, | assetPrefix = _window.__NEXT_DATA__.assetPrefix; @ multi ./node_modules/next/dist/client/next-dev"><pre class="notranslate"><code class="notranslate"> ERROR Failed to compile with 1 errors 6:03:15 PM error in ./node_modules/next/dist/client/next-dev.js Module parse failed: Unexpected token (34:6) You may need an appropriate loader to handle this file type. | | &gt; import('./noop'); | var _window = window, | assetPrefix = _window.__NEXT_DATA__.assetPrefix; @ multi ./node_modules/next/dist/client/next-dev </code></pre></div> <h2 dir="auto">Expected behavior</h2> <p dir="auto">Expect to see no errors.</p> <h2 dir="auto">System information</h2> <ul dir="auto"> <li>OS: macOS 10.14.2</li> <li>Browser: Chrome 72</li> <li>Version of Next.js: 8.0.1</li> <li>Node: v10.15.0</li> <li>npm: v6.8.0</li> </ul> <h2 dir="auto">Additional context</h2> <p dir="auto">Looks to be caused by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="409089306" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/6259" data-hovercard-type="issue" data-hovercard-url="/vercel/next.js/issues/6259/hovercard" href="https://github.com/vercel/next.js/issues/6259">#6259</a></p>
<p dir="auto">We need a sidebar which is a category tree of an e-commerce site, fetched from DB(pls check this example - <a href="https://www.ffshop.no/abonnement-c-84.html" rel="nofollow">ffshop : left menu</a> - building the next version of it).</p> <p dir="auto">This should only load once - at very first time (server rendered) like <a href="https://reacttraining.com/react-router/web/example/sidebar" rel="nofollow">react router example</a></p> <p dir="auto">How can I fetch this initially - using HOC? I use <a href="https://github.com/zeit/next.js/tree/canary/examples/layout-component">layout component</a> and also checked <a href="https://github.com/zeit/next.js/tree/canary/examples/with-higher-order-component">HOC</a></p> <p dir="auto">I think this may be related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="282603726" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/3461" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/3461/hovercard" href="https://github.com/vercel/next.js/pull/3461">#3461</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="287252294" data-permission-text="Title is private" data-url="https://github.com/vercel/next.js/issues/3552" data-hovercard-type="pull_request" data-hovercard-url="/vercel/next.js/pull/3552/hovercard" href="https://github.com/vercel/next.js/pull/3552">#3552</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/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <p dir="auto">next.js match in every aspect of our need but looks like it falls a bit short in this use case. Building another site which also requires rendering dynamic menu from DB. I would like to contribute.</p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">vmware_guest</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 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] "><pre class="notranslate"><code class="notranslate"> ansible --version ansible 2.3.0.0 config file = /etc/ansible/ansible.cfg configured module search path = Default w/o overrides python version = 2.7.12 (default, Nov 19 2016, 06:48:10) [GCC 5.4.0 20160609] </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Standard ansible config, no changes</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">cat /etc/lsb-release<br> DISTRIB_ID=Ubuntu<br> DISTRIB_RELEASE=16.04<br> DISTRIB_CODENAME=xenial<br> DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Following the example given in <a href="https://docs.ansible.com/ansible/vmware_guest_module.html" rel="nofollow">https://docs.ansible.com/ansible/vmware_guest_module.html</a>, <code class="notranslate">Create a VM from a template</code>, I tried to add an extra disk while creating a VM from template. It throws an error.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">I tried to use a template to create a VM . The template is a RHEL 7, 64bit one, with 40GB HDD attached and partitioned via LVM. The code used is given below .</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" - name: deploy virtual machine from template vmware_guest: hostname: &quot;{{ vcenter_hostname }}&quot; username: &quot;{{ vcenter_username }}&quot; password: &quot;{{ vcenter_password }}&quot; name: &quot;{{ vm_name }}&quot; validate_certs: &quot;false&quot; cluster: &quot;{{ vcenter_cluster }}&quot; datacenter: &quot;{{ vcenter_datacenter }}&quot; folder: &quot;/dev/VMs&quot; state: poweredon #guest_id: rhel7Guest disk: - size_gb: 40 type: thin datastore: &quot;{{ datastore }}&quot; # autoselect_datastore: True - size_gb: 150 type: thin datastore: &quot;{{ datastore }}&quot; #autoselect_datastore: True hardware: memory_mb: &quot;4096&quot; num_cpus: &quot;2&quot; scsi: paravirtual networks: - name: &quot;{{ vm-vlan }}&quot; ip: 192.168.051 netmask: 255.255.255.0 template: &quot;{{ vm_template }}&quot; delegate_to: &quot;localhost&quot; register: &quot;deploy&quot; "><pre class="notranslate"><code class="notranslate"> - name: deploy virtual machine from template vmware_guest: hostname: "{{ vcenter_hostname }}" username: "{{ vcenter_username }}" password: "{{ vcenter_password }}" name: "{{ vm_name }}" validate_certs: "false" cluster: "{{ vcenter_cluster }}" datacenter: "{{ vcenter_datacenter }}" folder: "/dev/VMs" state: poweredon #guest_id: rhel7Guest disk: - size_gb: 40 type: thin datastore: "{{ datastore }}" # autoselect_datastore: True - size_gb: 150 type: thin datastore: "{{ datastore }}" #autoselect_datastore: True hardware: memory_mb: "4096" num_cpus: "2" scsi: paravirtual networks: - name: "{{ vm-vlan }}" ip: 192.168.051 netmask: 255.255.255.0 template: "{{ vm_template }}" delegate_to: "localhost" register: "deploy" </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">Expected to create a VM with 2 HDDs, 40GB and 150GB HDDs</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">Fails. with error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="fatal: [localhost -&gt; localhost]: FAILED! =&gt; {&quot;changed&quot;: true, &quot;failed&quot;: true, &quot;msg&quot;: &quot;A specified parameter was not correct: spec.location.host&quot;}"><pre class="notranslate"><code class="notranslate">fatal: [localhost -&gt; localhost]: FAILED! =&gt; {"changed": true, "failed": true, "msg": "A specified parameter was not correct: spec.location.host"} </code></pre></div> <p dir="auto">If I omit the disk option and its variables, the VM is created with the default 40GB HDD and in the same datastore where the template is stored.</p>
<p dir="auto">From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/X-Cli/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/X-Cli">@X-Cli</a> on 2015-08-15T16:56:46Z</p> <h5 dir="auto">ISSUE TYPE</h5> <p dir="auto">Bug Report</p> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">lxc_container module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <p dir="auto"><code class="notranslate">container_config</code> is parsed as a python dict by the ansible <strong>lxc_container module</strong>, at least in current stable version 1.9.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto"><code class="notranslate">container_config</code> is parsed as a Python dict by the ansible <strong>lxc_container module</strong>, at least in current stable version 1.9.</p> <p dir="auto"><a href="https://github.com/ansible/ansible-modules-extras/blob/stable-1.9/cloud/lxc/lxc_container.py">https://github.com/ansible/ansible-modules-extras/blob/stable-1.9/cloud/lxc/lxc_container.py</a><br> Lines 1442 to 1444 :</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="container_config=dict( type='str' ), "><pre class="notranslate"><span class="pl-s1">container_config</span><span class="pl-c1">=</span><span class="pl-en">dict</span>( <span class="pl-s1">type</span><span class="pl-c1">=</span><span class="pl-s">'str'</span> ), </pre></div> <p dir="auto">Python dict are <em>unordered</em>, which may lead to <strong>corrupted config files</strong>. For instance, config directives for LXC network follow <em>a specific order</em>, which is overlooked by the module when the config file is written on disk.</p> <p dir="auto">As such, the following playbook excerpt</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" tasks: - include_vars: ../vars/lxc_config.yml - include_vars: ../globals.yml - name: &quot;Create LXC&quot; become: yes become_method: sudo lxc_container: name: &quot;{{ lxc_name }}&quot; state: stopped lxc_path: /var/lib/lxc template: ubuntu container_config: - &quot;lxc.network.type = veth&quot; - &quot;lxc.network.name = internet&quot; - &quot;lxc.network.ipv4 = {{ internet_ip }}&quot; - &quot;lxc.network.link = internet_br&quot; - &quot;lxc.network.flags = up&quot; - &quot;lxc.network.type = veth&quot; - &quot;lxc.network.name = local&quot; - &quot;lxc.network.ipv4 = {{ local_ip }}&quot; - &quot;lxc.network.link = local_br&quot; - &quot;lxc.network.flags = up&quot; - &quot;lxc.network.type = veth&quot; - &quot;lxc.network.name = admin&quot; - &quot;lxc.network.ipv4 = {{ admin_ip }}&quot; - &quot;lxc.network.ipv4.gateway = {{ admin_gateway }}&quot; - &quot;lxc.network.link = admin_br&quot; - &quot;lxc.network.flags = up&quot;"><pre class="notranslate"><code class="notranslate"> tasks: - include_vars: ../vars/lxc_config.yml - include_vars: ../globals.yml - name: "Create LXC" become: yes become_method: sudo lxc_container: name: "{{ lxc_name }}" state: stopped lxc_path: /var/lib/lxc template: ubuntu container_config: - "lxc.network.type = veth" - "lxc.network.name = internet" - "lxc.network.ipv4 = {{ internet_ip }}" - "lxc.network.link = internet_br" - "lxc.network.flags = up" - "lxc.network.type = veth" - "lxc.network.name = local" - "lxc.network.ipv4 = {{ local_ip }}" - "lxc.network.link = local_br" - "lxc.network.flags = up" - "lxc.network.type = veth" - "lxc.network.name = admin" - "lxc.network.ipv4 = {{ admin_ip }}" - "lxc.network.ipv4.gateway = {{ admin_gateway }}" - "lxc.network.link = admin_br" - "lxc.network.flags = up" </code></pre></div> <p dir="auto">results in the following broken LXC config file</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="# Network configuration lxc.network.type = veth lxc.network.type = veth lxc.network.flags = up lxc.network.flags = up lxc.network.link = lxcbr0 lxc.network.link = admin_br lxc.network.link = local_br lxc.network.link = internet_br lxc.network.hwaddr = 00:16:3e:f1:f5:8e lxc.network.name = internet lxc.network.name = admin lxc.network.name = local lxc.network.ipv4 = 172.31.0.1 lxc.network.ipv4 = 192.168.0.1 lxc.network.ipv4 = 10.0.0.1 lxc.network.ipv4.gateway = 192.168.0.254"><pre class="notranslate"><code class="notranslate"># Network configuration lxc.network.type = veth lxc.network.type = veth lxc.network.flags = up lxc.network.flags = up lxc.network.link = lxcbr0 lxc.network.link = admin_br lxc.network.link = local_br lxc.network.link = internet_br lxc.network.hwaddr = 00:16:3e:f1:f5:8e lxc.network.name = internet lxc.network.name = admin lxc.network.name = local lxc.network.ipv4 = 172.31.0.1 lxc.network.ipv4 = 192.168.0.1 lxc.network.ipv4 = 10.0.0.1 lxc.network.ipv4.gateway = 192.168.0.254 </code></pre></div> <p dir="auto">As you can see, parsing in a dict also deduplicates some crucial config lines, which have to be duplicated in a valid LXC config file.</p> <p dir="auto">Being completely new to Ansible (this was my very first playbook <em>sigh</em>), I am not sure if there is a workaround (except maybe using a templated config file and avoiding <code class="notranslate">container_config</code> altogether). Still, if the <code class="notranslate">container_config</code> could be handled as an ordered YAML sequence, I believe this could solve the problem.</p> <p dir="auto">Thank you.</p> <p dir="auto">Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="101189793" data-permission-text="Title is private" data-url="https://github.com/ansible/ansible-modules-extras/issues/836" data-hovercard-type="issue" data-hovercard-url="/ansible/ansible-modules-extras/issues/836/hovercard" href="https://github.com/ansible/ansible-modules-extras/issues/836">ansible/ansible-modules-extras#836</a></p>
0
<p dir="auto">[Enter steps to reproduce below:]</p> <ol dir="auto"> <li>...</li> <li>...</li> </ol> <p dir="auto"><strong>Atom Version</strong>: 1.0.0<br> <strong>System</strong>: Microsoft Windows 10 Pro Insider Preview<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\browser\atom-window.js:149:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:150:33) at HTMLDocument.handler (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\Slem-Destop\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -1:32.4.0 editor:newline (atom-text-editor.editor.is-focused) 2x -1:28.3.0 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active) -1:27.4.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused.autocomplete-active) -1:27.4.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active) -1:23.8.0 core:move-right (atom-text-editor.editor.is-focused) 4x -1:20.2.0 core:move-down (atom-text-editor.editor.is-focused.autocomplete-active) -1:19.5.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused.autocomplete-active) -1:19.5.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active) -1:17.8.0 core:move-right (atom-text-editor.editor.is-focused) -1:05.9.0 core:copy (atom-text-editor.editor.is-focused) -1:02.1.0 core:paste (atom-text-editor.editor.is-focused) -1:01.1.0 core:save (atom-text-editor.editor.is-focused) -0:49.2.0 core:backspace (atom-text-editor.editor.is-focused) -0:48.8.0 core:save (atom-text-editor.editor.is-focused) -0:32.7.0 core:delete (atom-text-editor.editor.is-focused) -0:28.6.0 core:save (atom-text-editor.editor.is-focused)"><pre class="notranslate"><code class="notranslate"> -1:32.4.0 editor:newline (atom-text-editor.editor.is-focused) 2x -1:28.3.0 core:backspace (atom-text-editor.editor.is-focused.autocomplete-active) -1:27.4.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused.autocomplete-active) -1:27.4.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active) -1:23.8.0 core:move-right (atom-text-editor.editor.is-focused) 4x -1:20.2.0 core:move-down (atom-text-editor.editor.is-focused.autocomplete-active) -1:19.5.0 emmet:insert-formatted-line-break-only (atom-text-editor.editor.is-focused.autocomplete-active) -1:19.5.0 autocomplete-plus:confirm (atom-text-editor.editor.is-focused.autocomplete-active) -1:17.8.0 core:move-right (atom-text-editor.editor.is-focused) -1:05.9.0 core:copy (atom-text-editor.editor.is-focused) -1:02.1.0 core:paste (atom-text-editor.editor.is-focused) -1:01.1.0 core:save (atom-text-editor.editor.is-focused) -0:49.2.0 core:backspace (atom-text-editor.editor.is-focused) -0:48.8.0 core:save (atom-text-editor.editor.is-focused) -0:32.7.0 core:delete (atom-text-editor.editor.is-focused) -0:28.6.0 core:save (atom-text-editor.editor.is-focused) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;disabledPackages&quot;: [ &quot;tree-view&quot; ] }, &quot;editor&quot;: { &quot;invisibles&quot;: {} } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>tree-view<span class="pl-pds">"</span></span> ] }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {} } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User atom-beautify, v0.28.7 color-picker, v2.0.7 emmet, v2.3.12 file-icons, v1.5.8 jshint, v1.3.8 minimap, v4.10.1 nuclide-click-to-symbol, v0.0.22 nuclide-code-format, v0.0.22 nuclide-diff-view, v0.0.22 nuclide-file-tree, v0.0.22 nuclide-file-watcher, v0.0.22 nuclide-flow, v0.0.22 nuclide-hack, v0.0.22 nuclide-hg-repository, v0.0.22 nuclide-installer, v0.0.22 nuclide-language-hack, v0.0.22 nuclide-remote-projects, v0.0.22 nuclide-type-hint, v0.0.22 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> atom<span class="pl-k">-</span>beautify, v0.<span class="pl-ii">28</span>.<span class="pl-ii">7</span> color<span class="pl-k">-</span>picker, v2.<span class="pl-ii">0</span>.<span class="pl-ii">7</span> emmet, v2.<span class="pl-ii">3</span>.<span class="pl-ii">12</span> file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">5</span>.<span class="pl-ii">8</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">8</span> minimap, v4.<span class="pl-ii">10</span>.<span class="pl-ii">1</span> nuclide<span class="pl-k">-</span>click<span class="pl-k">-</span>to<span class="pl-k">-</span>symbol, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>code<span class="pl-k">-</span>format, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>diff<span class="pl-k">-</span>view, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>file<span class="pl-k">-</span>tree, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>file<span class="pl-k">-</span>watcher, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>flow, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>hack, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>hg<span class="pl-k">-</span>repository, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>installer, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>language<span class="pl-k">-</span>hack, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>remote<span class="pl-k">-</span>projects, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> nuclide<span class="pl-k">-</span>type<span class="pl-k">-</span>hint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">22</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">I right-clicked on a folder in the tree view</p> <p dir="auto"><strong>Atom Version</strong>: 0.194.0<br> <strong>System</strong>: Windows 7 Entreprise<br> <strong>Thrown From</strong>: Atom Core</p> <h3 dir="auto">Stack Trace</h3> <p dir="auto">Uncaught Error: Cannot find module './context-menu'<br> Error: Cannot find module './context-menu'<br> at Function.Module._resolveFilename (module.js:328:15)<br> at Function.Module._load (module.js:270:25)<br> at Module.require (module.js:357:17)<br> at require (module.js:376:17)<br> at BrowserWindow. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27)<br> at emitOne (events.js:77:13)<br> at BrowserWindow.emit (events.js:166:7)<br> at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18)<br> at EventEmitter. (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14)<br> at emitMany (events.js:108:13)</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) "><pre class="notranslate"><code class="notranslate">At C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77 Error: Cannot find module './context-menu' Error: Cannot find module './context-menu' at Function.Module._resolveFilename (module.js:328:15) at Function.Module._load (module.js:270:25) at Module.require (module.js:357:17) at require (module.js:376:17) at BrowserWindow.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\browser\atom-window.js:152:27) at emitOne (events.js:77:13) at BrowserWindow.emit (events.js:166:7) at callFunction (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:116:18) at EventEmitter.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\browser\lib\rpc-server.js:208:14) at emitMany (events.js:108:13) at metaToValue (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:77:15) at BrowserWindow.RemoteMemberFunction [as emit] (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\atom.asar\renderer\api\lib\remote.js:111:26) at ContextMenuManager.module.exports.ContextMenuManager.showForEvent (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\context-menu-manager.js:170:31) at HTMLDocument.&lt;anonymous&gt; (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\window-event-handler.js:149:33) at HTMLDocument.handler (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\src\space-pen-extensions.js:112:34) at HTMLDocument.jQuery.event.dispatch (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4681:9) at HTMLDocument.elemData.handle (C:\Users\jbrichardet\AppData\Local\atom\app-0.194.0\resources\app.asar\node_modules\space-pen\vendor\jquery.js:4359:46) </code></pre></div> <h3 dir="auto">Commands</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor)"><pre class="notranslate"><code class="notranslate"> -4:55.5.0 editor:checkout-head-revision (atom-text-editor.editor.is-focused) 2x -3:41.6.0 window:focus-pane-on-right (atom-text-editor.editor) -3:17.5.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel) -2:47.4.0 editor:newline (atom-text-editor.editor.is-focused) -2:38.2.0 core:cut (atom-text-editor.editor) -2:36.5.0 core:paste (atom-text-editor.editor.is-focused) -2:26.6.0 core:save (atom-text-editor.editor.is-focused) -2:20.6.0 core:move-down (atom-text-editor.editor) -2:20.4.0 autocomplete-plus:confirm (atom-text-editor.editor) -2:15.8.0 core:save (atom-text-editor.editor) -2:08.7.0 core:copy (atom-text-editor.editor.is-focused) -2:01.2.0 core:paste (atom-text-editor.editor.is-focused) -1:59.7.0 core:save (atom-text-editor.editor.is-focused) -1:52.2.0 core:paste (atom-text-editor.editor.is-focused) -1:51.6.0 core:save (atom-text-editor.editor.is-focused) -1:30.6.0 core:backspace (atom-text-editor.editor) </code></pre></div> <h3 dir="auto">Config</h3> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;core&quot;: { &quot;ignoredNames&quot;: [ &quot;node_modules&quot; ], &quot;themes&quot;: [ &quot;atom-dark-ui&quot;, &quot;seti-syntax&quot; ], &quot;disabledPackages&quot;: [ &quot;Tern&quot; ], &quot;projectHome&quot;: &quot;Y:\\app-tfoumax&quot; }, &quot;editor&quot;: { &quot;invisibles&quot;: {}, &quot;softWrap&quot;: true, &quot;showIndentGuide&quot;: true } }"><pre class="notranslate">{ <span class="pl-ent">"core"</span>: { <span class="pl-ent">"ignoredNames"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>node_modules<span class="pl-pds">"</span></span> ], <span class="pl-ent">"themes"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>atom-dark-ui<span class="pl-pds">"</span></span>, <span class="pl-s"><span class="pl-pds">"</span>seti-syntax<span class="pl-pds">"</span></span> ], <span class="pl-ent">"disabledPackages"</span>: [ <span class="pl-s"><span class="pl-pds">"</span>Tern<span class="pl-pds">"</span></span> ], <span class="pl-ent">"projectHome"</span>: <span class="pl-s"><span class="pl-pds">"</span>Y:<span class="pl-cce">\\</span>app-tfoumax<span class="pl-pds">"</span></span> }, <span class="pl-ent">"editor"</span>: { <span class="pl-ent">"invisibles"</span>: {}, <span class="pl-ent">"softWrap"</span>: <span class="pl-c1">true</span>, <span class="pl-ent">"showIndentGuide"</span>: <span class="pl-c1">true</span> } }</pre></div> <h3 dir="auto">Installed Packages</h3> <div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User autocomplete-plus, v2.12.0 autocomplete-snippets, v1.2.0 javascript-snippets, v1.0.0 jshint, v1.3.5 language-ejs, v0.1.0 linter, v0.12.1 pretty-json, v0.3.3 save-session, v0.14.0 Search, v0.4.0 seti-syntax, v0.4.0 # Dev No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span> autocomplete<span class="pl-k">-</span>plus, v2.<span class="pl-ii">12</span>.<span class="pl-ii">0</span> autocomplete<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">2</span>.<span class="pl-ii">0</span> javascript<span class="pl-k">-</span>snippets, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span> jshint, v1.<span class="pl-ii">3</span>.<span class="pl-ii">5</span> language<span class="pl-k">-</span>ejs, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span> linter, v0.<span class="pl-ii">12</span>.<span class="pl-ii">1</span> pretty<span class="pl-k">-</span>json, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span> save<span class="pl-k">-</span>session, v0.<span class="pl-ii">14</span>.<span class="pl-ii">0</span> Search, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> seti<span class="pl-k">-</span>syntax, v0.<span class="pl-ii">4</span>.<span class="pl-ii">0</span> <span class="pl-c"><span class="pl-c">#</span> Dev</span> <span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
1
<p dir="auto">Running numpy.dot normally produces the expected answer:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -c &quot;import numpy ; f=numpy.ones(2,dtype=numpy.float32);print f.dot(f)&quot; 2.0"><pre class="notranslate"><code class="notranslate">$ python -c "import numpy ; f=numpy.ones(2,dtype=numpy.float32);print f.dot(f)" 2.0 </code></pre></div> <p dir="auto">If I import a PyQt5 module first, I get a different answer:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$ python -c &quot;import PyQt5.QtWidgets ; import numpy ; f=numpy.ones(2,dtype=numpy.float32);print f.dot(f)&quot; 0.0"><pre class="notranslate"><code class="notranslate">$ python -c "import PyQt5.QtWidgets ; import numpy ; f=numpy.ones(2,dtype=numpy.float32);print f.dot(f)" 0.0 </code></pre></div> <p dir="auto">Other folks appear to have found the issue <a href="https://support.enthought.com/hc/en-us/articles/204469560--RESOLVED-OSX-Numpy-float32-linear-algebra-bug" rel="nofollow">here</a>, with an implied implication of the Accelerate library being loaded first. I could not discover the resolution they used, and I would prefer one that did not require fixing python import order.</p>
<p dir="auto">I've found a very strange bug. Under certain circumstances, a small number of the entries in the dot product of two 2D arrays will be wrong:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import numpy as np nrow, ncol = 2, 69900 rows = np.random.normal(size=(nrow, 1)).astype(np.float32) columns = np.random.normal(size=(1, ncol)).astype(np.float32) np_outer = rows.dot(columns) ind0, ind1 = 0, 69818 print(np_outer[ind0, ind1], rows[ind0, 0]*columns[0, ind1])"><pre class="notranslate"><code class="notranslate">import numpy as np nrow, ncol = 2, 69900 rows = np.random.normal(size=(nrow, 1)).astype(np.float32) columns = np.random.normal(size=(1, ncol)).astype(np.float32) np_outer = rows.dot(columns) ind0, ind1 = 0, 69818 print(np_outer[ind0, ind1], rows[ind0, 0]*columns[0, ind1]) </code></pre></div> <p dir="auto">Most entries are fine. In this example, only columns 69818-69899 in the product are wrong.</p> <p dir="auto">This issue remains the same using <code class="notranslate">np.matmul(rows,columns)</code> and for different values of <code class="notranslate">nrow</code>. However it doesn't appear for an arbitrary values of <code class="notranslate">ncol</code>. There's a band of values around 69900 where errors appear, but there are none at 60000 or 70000. It's also not always the case that the last columns are the ones affected. For some values of <code class="notranslate">ncol</code>, there will be multiple bands of columns affected.</p> <p dir="auto">I have not seen this behavior with float64 arrays. It also disappears if you do the dot product in transposed order:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" np_outer_t = columns.T.dot(rows.T).T print(np_outer_t[ind0, ind1], rows[ind0, 0]*columns[0, ind1])"><pre class="notranslate"><code class="notranslate"> np_outer_t = columns.T.dot(rows.T).T print(np_outer_t[ind0, ind1], rows[ind0, 0]*columns[0, ind1]) </code></pre></div> <p dir="auto">System info: numpy 1.12.1, python 3.6.1, Macbook Pro, OS 10.6.1</p>
1
<p dir="auto">I've got an account on your site and I've successfully added GitHub, Twitter and G+ to my profile, but when I try to add LinkedIn, nothing happens once I've logged in and authorized Free Code Camp. The problem seems to be on your side as the dialog closes after attempting to authorize and when the button is clicked in the future no dialog box pops up as it's already been authorised.</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/4723535/9331088/be7f8226-4600-11e5-8e1e-db6f7b1245f3.png"><img src="https://cloud.githubusercontent.com/assets/4723535/9331088/be7f8226-4600-11e5-8e1e-db6f7b1245f3.png" alt="screenshot from 2015-08-18 23 26 07" style="max-width: 100%;"></a><br> 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. Please describe how to reproduce it, and include links to screenshots if possible.<br> $(".well:nth-child(2)").addClass("animated bounce"); makes the whole 'well' bounce not the second child.</p>
0
<p dir="auto">Howdy!</p> <p dir="auto">Due to some unfortunate circumstances I'm currently stuck working on a project that's a subdirectory in part of a larger git repo. To open the entire repo directory would be a bit of a pain as well. I can work on the project just fine otherwise but none of the git features are currently available which is a disappointment.</p> <p dir="auto">What's preventing Code from being able to use Git regardless of the opened project folder location (relative to the git root)?</p> <p dir="auto">The contrived example layout:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="/projects/engine/ &lt;--- root of the repo /projects/engine/tools/my_application/ &lt;--- here sits a package.json, gulpfile.js, etc etc"><pre class="notranslate"><code class="notranslate">/projects/engine/ &lt;--- root of the repo /projects/engine/tools/my_application/ &lt;--- here sits a package.json, gulpfile.js, etc etc </code></pre></div>
<p dir="auto">Ubuntu 12.04, vscode 0.10.1</p> <p dir="auto">The main reason I want this is to get around slow go to file indexing <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117624487" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/55" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/55/hovercard" href="https://github.com/microsoft/vscode/issues/55">#55</a> by opening a sub-directory in Chromium so that indexing it doesn't take very long. Traversing the file path upwards to the root directory should be a fairly quick to perform action.</p> <p dir="auto"><strong>Repro:</strong></p> <ol dir="auto"> <li><code class="notranslate">mkdir -p foo/bar</code></li> <li><code class="notranslate">cd foo</code></li> <li><code class="notranslate">git init</code></li> <li><code class="notranslate">Code bar</code></li> <li>Open git integration tab</li> </ol> <p dir="auto"><strong>Expected:</strong><br> Git integration realises that <code class="notranslate">bar</code> is part of the repo</p> <p dir="auto"><strong>Actual:</strong><br> Git integration disabled</p>
1
<p dir="auto">react-scripts version: 3.4.1</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Created project with CRA typescript</li> <li>Added <code class="notranslate">.eslintrc.js</code>:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { tsconfigRootDir: __dirname, project: ['./tsconfig.json'], ecmaFeatures: { jsx: true, }, }, plugins: ['@typescript-eslint', 'jest', 'react', 'react-hooks', 'sonarjs'], extends: [ 'standard-with-typescript', 'plugin:jest/recommended', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'plugin:sonarjs/recommended', ], settings: { react: { version: 'detect', }, }, }"><pre class="notranslate"><code class="notranslate">module.exports = { root: true, parser: '@typescript-eslint/parser', parserOptions: { tsconfigRootDir: __dirname, project: ['./tsconfig.json'], ecmaFeatures: { jsx: true, }, }, plugins: ['@typescript-eslint', 'jest', 'react', 'react-hooks', 'sonarjs'], extends: [ 'standard-with-typescript', 'plugin:jest/recommended', 'plugin:react/recommended', 'plugin:react-hooks/recommended', 'plugin:@typescript-eslint/recommended-requiring-type-checking', 'plugin:sonarjs/recommended', ], settings: { react: { version: 'detect', }, }, } </code></pre></div> <ol start="3" dir="auto"> <li>Added lints not included with <code class="notranslate">react-scripts</code> to <code class="notranslate">devDependencies</code>:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;eslint-config-standard-with-typescript&quot;: &quot;^15.0.1&quot;, &quot;eslint-plugin-jest&quot;: &quot;^23.8.2&quot;, &quot;eslint-plugin-node&quot;: &quot;11&quot;, &quot;eslint-plugin-promise&quot;: &quot;4&quot;, &quot;eslint-plugin-sonarjs&quot;: &quot;^0.5.0&quot;, &quot;eslint-plugin-standard&quot;: &quot;4&quot;"><pre class="notranslate"><code class="notranslate"> "eslint-config-standard-with-typescript": "^15.0.1", "eslint-plugin-jest": "^23.8.2", "eslint-plugin-node": "11", "eslint-plugin-promise": "4", "eslint-plugin-sonarjs": "^0.5.0", "eslint-plugin-standard": "4" </code></pre></div> <ol start="4" dir="auto"> <li>Run with <code class="notranslate">npx eslint --fix --ext .js,.jsx,.ts,.tsx .</code></li> </ol> <p dir="auto">Worked around adding rules individually:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="rules: { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', },"><pre class="notranslate"><code class="notranslate">rules: { 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', }, </code></pre></div>
<p dir="auto">When a state update causes the form's submit button to be displayed, the form's submit event fires even though the submit button has not been pressed.</p> <p dir="auto">React version: 18.2</p> <h2 dir="auto">Steps To Reproduce</h2> <ol dir="auto"> <li>Press the "Change Mode" button on the first linked sample.</li> <li>Checking the console, you can see the <code class="notranslate">submit</code> event is fired.</li> </ol> <p dir="auto">Link to code example:</p> <p dir="auto"><a href="https://codesandbox.io/embed/friendly-alex-ehlut4?fontsize=14&amp;hidenavigation=1&amp;theme=dark" rel="nofollow">https://codesandbox.io/embed/friendly-alex-ehlut4?fontsize=14&amp;hidenavigation=1&amp;theme=dark</a></p> <p dir="auto">In the above sample, if the submit button is enclosed in <code class="notranslate">&lt;div&gt;</code>, this does not happen. Therefore, this phenomenon seems to be a bug related to React's re-rendering.</p> <p dir="auto"><a href="https://codesandbox.io/embed/cocky-frost-fwd7vm?fontsize=14&amp;hidenavigation=1&amp;theme=dark" rel="nofollow">https://codesandbox.io/embed/cocky-frost-fwd7vm?fontsize=14&amp;hidenavigation=1&amp;theme=dark</a></p> <h2 dir="auto">The current behavior</h2> <p dir="auto">When the "Change Mode" button is pressed while in mode A, the <code class="notranslate">changeMode</code> handler for the <code class="notranslate">click</code> event is executed, and after being re-rendered in mode B, the <code class="notranslate">submit</code> event fires with the "Submit" button as the submitter.</p> <h2 dir="auto">The expected behavior</h2> <p dir="auto">When the Change Mode button is pressed while in mode A, only <code class="notranslate">changeMode</code>, the handler of the <code class="notranslate">click</code> event, is executed.</p>
0
<h2 dir="auto">Feature request</h2> <p dir="auto"><strong>What is the expected behavior?</strong><br> Every loader that uses <code class="notranslate">[hash]</code> needs to use <code class="notranslate">[hash:10]</code> to be consistent if webpack's options were set as <code class="notranslate">output: { hashDigestLength: 10 } }</code>. It would be better if loaders were able to use the same value by default if they choose to.</p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong><br> <code class="notranslate">hashDigestLength</code> should be able to be used by <code class="notranslate">[hash]</code> in file-loader and other loaders if they choose to, so that <code class="notranslate">[hash]</code> would by default have a length of <code class="notranslate">10</code>.</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong><br> In <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="393426759" data-permission-text="Title is private" data-url="https://github.com/webpack/loader-utils/issues/121" data-hovercard-type="issue" data-hovercard-url="/webpack/loader-utils/issues/121/hovercard?comment_id=602487372&amp;comment_type=issue_comment" href="https://github.com/webpack/loader-utils/issues/121#issuecomment-602487372">webpack/loader-utils#121 (comment)</a> it says that the issue should be solved on the webpack side. There was also an issue in <code class="notranslate">file-loader</code> project which said it can't be solved there.</p> <p dir="auto"><strong>Are you willing to work on this yourself?</strong></p>
<h2 dir="auto">Feature request</h2> <p dir="auto">We all know that webapck can set the resolve.mainFields to read the node_modules package dependency file, but if I set<code class="notranslate"> {" es2015": "./fesm2015/core.js "} </code>like <code class="notranslate">@angluer/core </code>package.json;<br> I will configure <code class="notranslate">resolve.mainFields</code> as<code class="notranslate">[' es2015 ', 'module', 'main']</code>;<br> If my build target is es5,<br> <code class="notranslate">babel-loader</code>should exclude loading <code class="notranslate">[' module', 'main ']</code>; Including mainFields as<code class="notranslate"> [' es2015 ']</code>; How can I fulfill this abnormal demand</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> I can filter module. rules freely according to <code class="notranslate">resolve.mainFields </code></p> <p dir="auto"><strong>What is motivation or use case for adding/changing the behavior?</strong><br> In order to embrace the future, convenient tree-string, reduce duplication of code</p> <p dir="auto"><strong>How should this be implemented in your opinion?</strong><br> Rule exclude or some other conditional Rule that tells the Rule function whether the incoming file reads the mainFields field in the package.json, what's the name of the field?<br> e.g :</p> <h4 dir="auto">Scenario 1</h4> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;es2015&quot;:&quot;./lib/es/index.js&quot;, &quot;main&quot;:&quot;./lib/bundles/index.js&quot; }"><pre class="notranslate">{ <span class="pl-ent">"es2015"</span>:<span class="pl-s"><span class="pl-pds">"</span>./lib/es/index.js<span class="pl-pds">"</span></span>, <span class="pl-ent">"main"</span>:<span class="pl-s"><span class="pl-pds">"</span>./lib/bundles/index.js<span class="pl-pds">"</span></span> }</pre></div> <p dir="auto">node_models/a/lib/es/index.js(es2015:'./lib/es/index.js') {mainField: 'es2015'}</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="// lib/es/index.js import b from &quot;./b.js&quot;"><pre class="notranslate"><span class="pl-c">// lib/es/index.js</span> <span class="pl-k">import</span> <span class="pl-s1">b</span> <span class="pl-k">from</span> <span class="pl-s">"./b.js"</span></pre></div> <p dir="auto">node_models/a/lib/es/b.js {mainField: [false?|undefined?]}</p> <h4 dir="auto">Scenario 2</h4> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;main&quot;:&quot;./lib/bundles/index.js&quot; }"><pre class="notranslate">{ <span class="pl-ent">"main"</span>:<span class="pl-s"><span class="pl-pds">"</span>./lib/bundles/index.js<span class="pl-pds">"</span></span> }</pre></div> <p dir="auto">node_models/b/lib/bundles/index.js("main":"./lib/bundles/index.js") {mainField: 'mian'}<br> <strong>Are you willing to work on this yourself?</strong><br> yes</p>
0
<p dir="auto">When using a touch device (such as a Surface Pro 4) in tablet mode, I expect the touch keyboard to be presented when you tap on the input area of the terminal, however it does not. it is the same behavior with PS, cmd, wsl. the cursor appears and waits for input but no keyboard.</p>
<h1 dir="auto">Environment</h1> <p dir="auto"><a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/microsoft/terminal/commit/bd5cae13281401cda50cff29b6dda29b8350cc07/hovercard" href="https://github.com/microsoft/terminal/commit/bd5cae13281401cda50cff29b6dda29b8350cc07"><tt>bd5cae1</tt></a></p> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Run program of this kind:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="int main() { cout &lt;&lt; &quot;\x1B[41m&quot;; cout &lt;&lt; &quot;X Red &quot;; cout &lt;&lt; &quot;\x1B[42m&quot;; cout &lt;&lt; &quot;Green\n&quot;; cout &lt;&lt; &quot;\x1B[43m&quot;; cout &lt;&lt; &quot;Yellow &quot;; cout &lt;&lt; &quot;\x1B[44m&quot;; cout &lt;&lt; &quot;Blue&quot;; cout &lt;&lt; &quot;\x1B[0m&quot;; return 0; }"><pre class="notranslate"><code class="notranslate">int main() { cout &lt;&lt; "\x1B[41m"; cout &lt;&lt; "X Red "; cout &lt;&lt; "\x1B[42m"; cout &lt;&lt; "Green\n"; cout &lt;&lt; "\x1B[43m"; cout &lt;&lt; "Yellow "; cout &lt;&lt; "\x1B[44m"; cout &lt;&lt; "Blue"; cout &lt;&lt; "\x1B[0m"; return 0; } </code></pre></div> <h1 dir="auto">Expected behavior</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38111589/61995695-ff333700-b08b-11e9-92b6-86a1e8f60457.png"><img src="https://user-images.githubusercontent.com/38111589/61995695-ff333700-b08b-11e9-92b6-86a1e8f60457.png" alt="image" style="max-width: 100%;"></a></p> <h1 dir="auto">Actual behavior</h1> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/38111589/61995698-09edcc00-b08c-11e9-8d15-567a2e3110a2.png"><img src="https://user-images.githubusercontent.com/38111589/61995698-09edcc00-b08c-11e9-8d15-567a2e3110a2.png" alt="bug" style="max-width: 100%;"></a></p>
0
<p dir="auto">Code compiles and runs just fine but with enough stuff in a array Atom thinks that everything is String or comments.<br> tl;dr If an array has more than 23 string inside it Atom will freak out.<br> <a href="http://gyazo.com/3e4dc7df7bbf131c1a5b76566e72d4bf" rel="nofollow">http://gyazo.com/3e4dc7df7bbf131c1a5b76566e72d4bf</a></p>
<p dir="auto">I opened a Python file with the following line (<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="20976125" data-permission-text="Title is private" data-url="https://github.com/atom/atom/issues/963" data-hovercard-type="pull_request" data-hovercard-url="/atom/atom/pull/963/hovercard" href="https://github.com/atom/atom/pull/963">#963</a>):</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" PrintAndLog(u&quot;SSID: &quot; + RememberedNetwork[&quot;SSIDString&quot;].decode(&quot;utf-8&quot;) + u&quot; - BSSID: &quot; + RememberedNetwork[&quot;CachedScanRecord&quot;][&quot;BSSID&quot;] + u&quot; - RSSI: &quot; + str(RememberedNetwork[&quot;CachedScanRecord&quot;][&quot;RSSI&quot;]) + u&quot; - Last connected: &quot; + str(RememberedNetwork[&quot;LastConnected&quot;]) + u&quot; - Security type: &quot; + RememberedNetwork[&quot;SecurityType&quot;] + u&quot; - Geolocation: &quot; + Geolocation, &quot;INFO&quot;)"><pre class="notranslate"> <span class="pl-v">PrintAndLog</span>(<span class="pl-s">u"SSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SSIDString"</span>].<span class="pl-en">decode</span>(<span class="pl-s">"utf-8"</span>) <span class="pl-c1">+</span> <span class="pl-s">u" - BSSID: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"BSSID"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - RSSI: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"CachedScanRecord"</span>][<span class="pl-s">"RSSI"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Last connected: "</span> <span class="pl-c1">+</span> <span class="pl-en">str</span>(<span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"LastConnected"</span>]) <span class="pl-c1">+</span> <span class="pl-s">u" - Security type: "</span> <span class="pl-c1">+</span> <span class="pl-v">RememberedNetwork</span>[<span class="pl-s">"SecurityType"</span>] <span class="pl-c1">+</span> <span class="pl-s">u" - Geolocation: "</span> <span class="pl-c1">+</span> <span class="pl-v">Geolocation</span>, <span class="pl-s">"INFO"</span>)</pre></div> <p dir="auto">Which led to the following bug:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67"><img src="https://camo.githubusercontent.com/e06069206d526a16adf21e84cd179f1185d3fb5e0f05fea4d4b4a08a978092f4/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f34343737342f323331333737382f37366262346262612d613330642d313165332d396136342d3831663666393163323563342e706e67" alt="screen shot 2014-03-03 at 2 52 40 pm" data-canonical-src="https://f.cloud.github.com/assets/44774/2313778/76bb4bba-a30d-11e3-9a64-81f6f91c25c4.png" style="max-width: 100%;"></a></p> <p dir="auto">You can find this as the main file in <a href="https://github.com/jipegit/OSXAuditor/blob/master/osxauditor.py"><code class="notranslate">osxauditor.py</code></a>.</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/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <h2 dir="auto">Current Behavior</h2> <p dir="auto">{ Error: No page context<br> at Function._callee$ (/Users/liumin/Desktop/next/with-redux-saga/node_modules/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a>/lib/index.js:169:25)<br> at tryCatch (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:62:40)<br> at Generator.invoke [as _invoke] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:296:22)<br> at Generator.prototype.(anonymous function) [as next] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/r<br> untime.js:114:21)<br> at step (/Users/liumin/Desktop/next/with-redux-saga/node_modules/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a>/node_modules/@babel/runtime/helpers/asyncToGener<br> ator.js:12:30)<br> at _next (/Users/liumin/Desktop/next/with-redux-saga/node_modules/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a>/node_modules/@babel/runtime/helpers/asyncToGene<br> rator.js:27:9)<br> at /Users/liumin/Desktop/next/with-redux-saga/node_modules/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a>/node_modules/@babel/runtime/helpers/asyncToGenerator.js:34:7<br> at new Promise (/Users/liumin/Desktop/next/with-redux-saga/node_modules/core-js/library/modules/es6.promise.js:177:7)<br> at Function. (/Users/liumin/Desktop/next/with-redux-saga/node_modules/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a>/node_modules/@babel/runtime/helpers/asyncToGenerator.js:7:12)<br> at Function.value [as getInitialProps] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a>/lib/index.js:211:25)<br> at _callee$ (/Users/liumin/Desktop/next/with-redux-saga/node_modules/next/dist/lib/utils.js:111:30)<br> at tryCatch (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:62:40)<br> at Generator.invoke [as _invoke] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:296:22)<br> at Generator.prototype.(anonymous function) [as next] (/Users/liumin/Desktop/next/with-redux-saga/node_modules/regenerator-runtime/runtime.js:114:21)<br> at step (/Users/liumin/Desktop/next/with-redux-saga/node_modules/@babel/runtime/helpers/asyncToGenerator.js:12:30)<br> at _next (/Users/liumin/Desktop/next/with-redux-saga/node_modules/@babel/runtime/helpers/asyncToGenerator.js:27:9) sourceMapsApplied: true }</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>curl <a href="https://codeload.github.com/zeit/next.js/tar.gz/canary">https://codeload.github.com/zeit/next.js/tar.gz/canary</a> | tar -xz --strip=2 next.js-canary/examples/with-redux-saga</li> <li>cd with-redux-saga</li> <li>yarn</li> <li>yarn add next <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-saga">next-redux-saga</a> <a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a></li> <li>yarn dev</li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>6.0.1</td> </tr> <tr> <td>node</td> <td>v10.0.0</td> </tr> <tr> <td>OS</td> <td>macOS 10.13.4</td> </tr> <tr> <td>browser</td> <td>chrome</td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table> <p dir="auto">package.json<br> {<br> "name": "with-redux-saga",<br> "version": "1.0.0",<br> "license": "MIT",<br> "scripts": {<br> "dev": "next",<br> "build": "next build",<br> "start": "next start"<br> },<br> "dependencies": {<br> "es6-promise": "4.1.1",<br> "isomorphic-unfetch": "2.0.0",<br> "next": "^6.0.1",<br> "<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-saga">next-redux-saga</a>": "^3.0.0-beta.1",<br> "<a class="issue-link js-issue-link notranslate" rel="noopener noreferrer nofollow" href="https://linear.app/vercel/issue/NEXT-redux-wrapper">next-redux-wrapper</a>": "^2.0.0-beta.6",<br> "react": "^16.0.0",<br> "react-dom": "^16.0.0",<br> "react-redux": "5.0.5",<br> "redux": "3.7.2",<br> "redux-saga": "0.15.4"<br> },<br> "devDependencies": {<br> "redux-devtools-extension": "2.13.2"<br> }<br> }</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">Expected Behavior</h2> <p dir="auto">The recent change in Next.js 5.0.0 removed the <code class="notranslate">poweredByHeader</code> options from <code class="notranslate">next.config.js</code> and <a href="https://github.com/zeit/next.js/blob/canary/errors/powered-by-header-option-removed.md">instructs the user</a> to remove it in their custom server.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">X-Powered-By header cannot be removed or overwritten in custom Express or Koa server.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">Tested using Express &amp; Koa examples.</p> <h3 dir="auto">Express</h3> <p dir="auto"><a href="https://custom-server-express-nobxbpklyw.now.sh" rel="nofollow">https://custom-server-express-nobxbpklyw.now.sh</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const port = parseInt(process.env.PORT, 10) || 3000 const dev = process.env.NODE_ENV !== 'production' const app = next({ dev }) const handle = app.getRequestHandler() app.prepare() .then(() =&gt; { const server = express() server.get('/a', (req, res) =&gt; { return app.render(req, res, '/b', req.query) }) server.get('/b', (req, res) =&gt; { return app.render(req, res, '/a', req.query) }) server.get('/posts/:id', (req, res) =&gt; { return app.render(req, res, '/posts', { id: req.params.id }) }) server.get('*', (req, res) =&gt; { res.removeHeader('x-powered-by') return handle(req, res) }) server.listen(port, (err) =&gt; { if (err) throw err console.log(`&gt; Ready on http://localhost:${port}`) }) })"><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-s1">port</span> <span class="pl-c1">=</span> <span class="pl-en">parseInt</span><span class="pl-kos">(</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">PORT</span><span class="pl-kos">,</span> <span class="pl-c1">10</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-c1">3000</span> <span class="pl-k">const</span> <span class="pl-s1">dev</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">NODE_ENV</span> <span class="pl-c1">!==</span> <span class="pl-s">'production'</span> <span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-en">next</span><span class="pl-kos">(</span><span class="pl-kos">{</span> dev <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">handle</span> <span class="pl-c1">=</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">getRequestHandler</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">prepare</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">server</span> <span class="pl-c1">=</span> <span class="pl-en">express</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/a'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">,</span> <span class="pl-s">'/b'</span><span class="pl-kos">,</span> <span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-c1">query</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/b'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">,</span> <span class="pl-s">'/a'</span><span class="pl-kos">,</span> <span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-c1">query</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/posts/:id'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">,</span> <span class="pl-s">'/posts'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">id</span>: <span class="pl-s1">req</span><span class="pl-kos">.</span><span class="pl-c1">params</span><span class="pl-kos">.</span><span class="pl-c1">id</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'*'</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">res</span><span class="pl-kos">.</span><span class="pl-en">removeHeader</span><span class="pl-kos">(</span><span class="pl-s">'x-powered-by'</span><span class="pl-kos">)</span> <span class="pl-k">return</span> <span class="pl-s1">handle</span><span class="pl-kos">(</span><span class="pl-s1">req</span><span class="pl-kos">,</span> <span class="pl-s1">res</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-s1">port</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-k">throw</span> <span class="pl-s1">err</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">`&gt; Ready on http://localhost:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">port</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <h3 dir="auto">Koa</h3> <p dir="auto"><a href="https://custom-server-koa-wxksegmzhf.now.sh" rel="nofollow">https://custom-server-koa-wxksegmzhf.now.sh</a></p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="const Koa = require('koa') const next = require('next') const Router = require('koa-router') const port = parseInt(process.env.PORT, 10) || 3000 const dev = process.env.NODE_ENV !== 'production' const app = next({ dev }) const handle = app.getRequestHandler() app.prepare() .then(() =&gt; { const server = new Koa() const router = new Router() router.get('/a', async ctx =&gt; { await app.render(ctx.req, ctx.res, '/b', ctx.query) ctx.respond = false }) router.get('/b', async ctx =&gt; { await app.render(ctx.req, ctx.res, '/a', ctx.query) ctx.respond = false }) router.get('*', async ctx =&gt; { await handle(ctx.req, ctx.res) ctx.respond = false }) server.use(async (ctx, next) =&gt; { ctx.res.statusCode = 200 ctx.response.remove('X-Powered-By') await next() }) server.use(router.routes()) server.listen(port, (err) =&gt; { if (err) throw err console.log(`&gt; Ready on http://localhost:${port}`) }) }) "><pre class="notranslate"><span class="pl-k">const</span> <span class="pl-v">Koa</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'koa'</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">next</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'next'</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-v">Router</span> <span class="pl-c1">=</span> <span class="pl-en">require</span><span class="pl-kos">(</span><span class="pl-s">'koa-router'</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">port</span> <span class="pl-c1">=</span> <span class="pl-en">parseInt</span><span class="pl-kos">(</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">PORT</span><span class="pl-kos">,</span> <span class="pl-c1">10</span><span class="pl-kos">)</span> <span class="pl-c1">||</span> <span class="pl-c1">3000</span> <span class="pl-k">const</span> <span class="pl-s1">dev</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">NODE_ENV</span> <span class="pl-c1">!==</span> <span class="pl-s">'production'</span> <span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-s1">next</span><span class="pl-kos">(</span><span class="pl-kos">{</span> dev <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">handle</span> <span class="pl-c1">=</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">getRequestHandler</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">prepare</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">.</span><span class="pl-en">then</span><span class="pl-kos">(</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">server</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Koa</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-k">const</span> <span class="pl-s1">router</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">Router</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/a'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-s1">ctx</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">req</span><span class="pl-kos">,</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">res</span><span class="pl-kos">,</span> <span class="pl-s">'/b'</span><span class="pl-kos">,</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">query</span><span class="pl-kos">)</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">respond</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">router</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'/b'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-s1">ctx</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">render</span><span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">req</span><span class="pl-kos">,</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">res</span><span class="pl-kos">,</span> <span class="pl-s">'/a'</span><span class="pl-kos">,</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">query</span><span class="pl-kos">)</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">respond</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">router</span><span class="pl-kos">.</span><span class="pl-en">get</span><span class="pl-kos">(</span><span class="pl-s">'*'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-s1">ctx</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">handle</span><span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">req</span><span class="pl-kos">,</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">res</span><span class="pl-kos">)</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">respond</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">server</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-s1">ctx</span><span class="pl-kos">,</span> <span class="pl-s1">next</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">res</span><span class="pl-kos">.</span><span class="pl-c1">statusCode</span> <span class="pl-c1">=</span> <span class="pl-c1">200</span> <span class="pl-s1">ctx</span><span class="pl-kos">.</span><span class="pl-c1">response</span><span class="pl-kos">.</span><span class="pl-en">remove</span><span class="pl-kos">(</span><span class="pl-s">'X-Powered-By'</span><span class="pl-kos">)</span> <span class="pl-k">await</span> <span class="pl-s1">next</span><span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-s1">router</span><span class="pl-kos">.</span><span class="pl-en">routes</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span> <span class="pl-s1">server</span><span class="pl-kos">.</span><span class="pl-en">listen</span><span class="pl-kos">(</span><span class="pl-s1">port</span><span class="pl-kos">,</span> <span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-s1">err</span><span class="pl-kos">)</span> <span class="pl-k">throw</span> <span class="pl-s1">err</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">`&gt; Ready on http://localhost:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">port</span><span class="pl-kos">}</span></span>`</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-kos">}</span><span class="pl-kos">)</span></pre></div> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.0.0</td> </tr> <tr> <td>node</td> <td>8.8.1</td> </tr> <tr> <td>OS</td> <td>macOS 10.13.3</td> </tr> <tr> <td>browser</td> <td>Chrome</td> </tr> </tbody> </table>
0
<p dir="auto">If a bound value can be of more than one type, then HTML Number input fields are being bound as Strings. My expectation is that they should be bound to the same type as the input field. In my case, we change the type of the input field based on value of other fields on the form. This becomes a problem downstream when REST service is expecting numbers but gets strings. Obviously, there are a lot of downstream work arounds for this involving parsing the numbers and changing the types (both the Angular app, and the REST service), but none the less, it <strong>feels</strong> like a bug. Below is a very contrived example to demonstrate the problem.</p> <p dir="auto"><strong>Current behavior</strong></p> <p dir="auto">Typescript snippet:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class Demo { value: number | String; inputType:String; constructor() { this.inputType = 'text'; } makeNumber() { this.inputType = 'number'; } log() { console.log(JSON.stringify(this.value)); } };"><pre class="notranslate"><code class="notranslate">export class Demo { value: number | String; inputType:String; constructor() { this.inputType = 'text'; } makeNumber() { this.inputType = 'number'; } log() { console.log(JSON.stringify(this.value)); } }; </code></pre></div> <p dir="auto">HTML:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;div&gt; &lt;input [(ngModel)]=.value&quot; [type]=&quot;inputType&quot;&gt; &lt;/div&gt; &lt;span class=&quot;button&quot; (click)=&quot;makeNumber()&quot;&gt;Make Number&lt;/&gt; &lt;span class=&quot;button&quot; (click)=&quot;log()&quot;&gt;Log This&lt;/&gt;"><pre class="notranslate"><code class="notranslate">&lt;div&gt; &lt;input [(ngModel)]=.value" [type]="inputType"&gt; &lt;/div&gt; &lt;span class="button" (click)="makeNumber()"&gt;Make Number&lt;/&gt; &lt;span class="button" (click)="log()"&gt;Log This&lt;/&gt; </code></pre></div> <p dir="auto"><strong>Expected/desired behavior</strong></p> <p dir="auto">User clicks the "Make Number" button, enters 42 in the what is now a number input field, and then clicks "Log This". The console should log:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="42"><pre class="notranslate"><code class="notranslate">42 </code></pre></div> <p dir="auto"><strong>Other information</strong></p> <p dir="auto">User clicks the "Make Number" button, enters 42 in the what is now a number input field, and then clicks "Log This". The console actually logs:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&quot;42&quot;"><pre class="notranslate"><code class="notranslate">"42" </code></pre></div>
<p dir="auto">When setting the field of:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="num bZip;"><pre class="notranslate"><code class="notranslate">num bZip; </code></pre></div> <p dir="auto">From:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &lt;div class=&quot;form-group&quot;&gt; &lt;label for=&quot;billing_zip&quot;&gt;Zip&lt;/label&gt; &lt;input type=&quot;number&quot; id=&quot;billing_zip&quot; [(ng-model)]=&quot;dto.bZip&quot; class=&quot;form-control&quot; [required]=&quot;true&quot;/&gt; &lt;/div&gt;"><pre class="notranslate"><code class="notranslate"> &lt;div class="form-group"&gt; &lt;label for="billing_zip"&gt;Zip&lt;/label&gt; &lt;input type="number" id="billing_zip" [(ng-model)]="dto.bZip" class="form-control" [required]="true"/&gt; &lt;/div&gt; </code></pre></div> <blockquote> <p dir="auto">EXCEPTION: Error during evaluation of "ngModel"<br> ORIGINAL EXCEPTION: type 'String' is not a subtype of type 'num' of 'value'.<br> ORIGINAL STACKTRACE:</p> </blockquote> <p dir="auto">Using Angular Dart alpha 35</p> <p dir="auto">Fix: if i set the field to String bZip on the DTO object</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="name: 'tickets' version: 0.0.1 description: A ticket commerce application author: Jack Murphy [email protected] homepage: https://www.rightisleft.com environment: sdk: '&gt;=1.0.0 &lt;2.0.0' dependencies: #Server Dependencies json_object: &quot;1.0.19&quot; mongo_dart: &quot;0.1.46&quot; connection_pool: &quot;0.1.0+2&quot; dartson: &quot;0.2.4&quot; guinness: &quot;0.1.17&quot; shelf: '&gt;=0.6.2 &lt;0.7.0' shelf_static: &quot;0.2.2&quot; shelf_route: &quot;0.14.0&quot; #Client Dependencies bootjack: &quot;0.6.5&quot; browser: &quot;&gt;=0.10.0+2 &lt;0.11.0&quot; sass: &quot;0.4.2&quot; angular2: &quot;2.0.0-alpha.35&quot; transformers: - dartson - sass - angular2: entry_points: - web/main.dart reflection_entry_points: - web/main.dart - $dart2js: minify: true commandLineOptions: - --dump-info - --show-package-warnings - --trust-type-annotations - --trust-primitives"><pre class="notranslate"><code class="notranslate">name: 'tickets' version: 0.0.1 description: A ticket commerce application author: Jack Murphy [email protected] homepage: https://www.rightisleft.com environment: sdk: '&gt;=1.0.0 &lt;2.0.0' dependencies: #Server Dependencies json_object: "1.0.19" mongo_dart: "0.1.46" connection_pool: "0.1.0+2" dartson: "0.2.4" guinness: "0.1.17" shelf: '&gt;=0.6.2 &lt;0.7.0' shelf_static: "0.2.2" shelf_route: "0.14.0" #Client Dependencies bootjack: "0.6.5" browser: "&gt;=0.10.0+2 &lt;0.11.0" sass: "0.4.2" angular2: "2.0.0-alpha.35" transformers: - dartson - sass - angular2: entry_points: - web/main.dart reflection_entry_points: - web/main.dart - $dart2js: minify: true commandLineOptions: - --dump-info - --show-package-warnings - --trust-type-annotations - --trust-primitives </code></pre></div>
1
<p dir="auto">Atom v0.121.0</p> <p dir="auto">OS X Yosemite 10.10</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/2707765/3910352/4b62e308-2317-11e4-80cb-a2df13ade126.png"><img src="https://cloud.githubusercontent.com/assets/2707765/3910352/4b62e308-2317-11e4-80cb-a2df13ade126.png" alt="screen shot 2014-08-13 at 9 22 51 pm" style="max-width: 100%;"></a></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/7317458/3932689/5819bcd0-246f-11e4-8973-451a17f7685f.png"><img src="https://cloud.githubusercontent.com/assets/7317458/3932689/5819bcd0-246f-11e4-8973-451a17f7685f.png" alt="screenshot_49" style="max-width: 100%;"></a></p> <p dir="auto">stick on the bar at the top - no window around.<br> fresh install from <a href="http://www.atom.io" rel="nofollow">www.atom.io</a> - version 0.122.0</p>
1
<h3 dir="auto">Bug report</h3> <p dir="auto"><strong>Bug summary</strong></p> <p dir="auto">Using version 3.1.0, ax.invert_yaxis() does not work as expected when called on a 3D scatter plot. There seems to be no effect when it is called after populating the plot, while calling it before the plot inverts the data points correctly but moves all ticks to one point.</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="# Version 1: calling invert_yaxis() after populating the plot. # Version 2 (omitted): calling invert_yaxis() after ax = fig.add_subplot(111, projection='3d') # Using the official 3D scatter plot example. from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot as plt import numpy as np np.random.seed(19680801) def randrange(n, vmin, vmax): ''' Helper function to make an array of random numbers having shape (n, ) with each number distributed Uniform(vmin, vmax). ''' return (vmax - vmin)*np.random.rand(n) + vmin fig = plt.figure() ax = fig.add_subplot(111, projection='3d') n = 100 # For each set of style and range settings, plot n random points in the box # defined by x in [23, 32], y in [0, 100], z in [zlow, zhigh]. for m, zlow, zhigh in [('o', -50, -25), ('^', -30, -5)]: xs = randrange(n, 23, 32) ys = randrange(n, 0, 100) zs = randrange(n, zlow, zhigh) ax.scatter(xs, ys, zs, marker=m) ax.invert_yaxis() ax.set_xlabel('X Label') ax.set_ylabel('Y Label') ax.set_zlabel('Z Label') plt.show()"><pre class="notranslate"><span class="pl-c"># Version 1: calling invert_yaxis() after populating the plot.</span> <span class="pl-c"># Version 2 (omitted): calling invert_yaxis() after ax = fig.add_subplot(111, projection='3d')</span> <span class="pl-c"># Using the official 3D scatter plot example. </span> <span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span>.<span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-v">Axes3D</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">seed</span>(<span class="pl-c1">19680801</span>) <span class="pl-k">def</span> <span class="pl-en">randrange</span>(<span class="pl-s1">n</span>, <span class="pl-s1">vmin</span>, <span class="pl-s1">vmax</span>): <span class="pl-s">'''</span> <span class="pl-s"> Helper function to make an array of random numbers having shape (n, )</span> <span class="pl-s"> with each number distributed Uniform(vmin, vmax).</span> <span class="pl-s"> '''</span> <span class="pl-k">return</span> (<span class="pl-s1">vmax</span> <span class="pl-c1">-</span> <span class="pl-s1">vmin</span>)<span class="pl-c1">*</span><span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">rand</span>(<span class="pl-s1">n</span>) <span class="pl-c1">+</span> <span class="pl-s1">vmin</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">add_subplot</span>(<span class="pl-c1">111</span>, <span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>) <span class="pl-s1">n</span> <span class="pl-c1">=</span> <span class="pl-c1">100</span> <span class="pl-c"># For each set of style and range settings, plot n random points in the box</span> <span class="pl-c"># defined by x in [23, 32], y in [0, 100], z in [zlow, zhigh].</span> <span class="pl-k">for</span> <span class="pl-s1">m</span>, <span class="pl-s1">zlow</span>, <span class="pl-s1">zhigh</span> <span class="pl-c1">in</span> [(<span class="pl-s">'o'</span>, <span class="pl-c1">-</span><span class="pl-c1">50</span>, <span class="pl-c1">-</span><span class="pl-c1">25</span>), (<span class="pl-s">'^'</span>, <span class="pl-c1">-</span><span class="pl-c1">30</span>, <span class="pl-c1">-</span><span class="pl-c1">5</span>)]: <span class="pl-s1">xs</span> <span class="pl-c1">=</span> <span class="pl-en">randrange</span>(<span class="pl-s1">n</span>, <span class="pl-c1">23</span>, <span class="pl-c1">32</span>) <span class="pl-s1">ys</span> <span class="pl-c1">=</span> <span class="pl-en">randrange</span>(<span class="pl-s1">n</span>, <span class="pl-c1">0</span>, <span class="pl-c1">100</span>) <span class="pl-s1">zs</span> <span class="pl-c1">=</span> <span class="pl-en">randrange</span>(<span class="pl-s1">n</span>, <span class="pl-s1">zlow</span>, <span class="pl-s1">zhigh</span>) <span class="pl-s1">ax</span>.<span class="pl-en">scatter</span>(<span class="pl-s1">xs</span>, <span class="pl-s1">ys</span>, <span class="pl-s1">zs</span>, <span class="pl-s1">marker</span><span class="pl-c1">=</span><span class="pl-s1">m</span>) <span class="pl-s1">ax</span>.<span class="pl-en">invert_yaxis</span>() <span class="pl-s1">ax</span>.<span class="pl-en">set_xlabel</span>(<span class="pl-s">'X Label'</span>) <span class="pl-s1">ax</span>.<span class="pl-en">set_ylabel</span>(<span class="pl-s">'Y Label'</span>) <span class="pl-s1">ax</span>.<span class="pl-en">set_zlabel</span>(<span class="pl-s">'Z Label'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">show</span>()</pre></div> <p dir="auto"><strong>Actual outcome when inverting axis after populating plot:</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15879839/59764142-727ea780-929b-11e9-9620-e7b21cf54dbd.png"><img src="https://user-images.githubusercontent.com/15879839/59764142-727ea780-929b-11e9-9620-e7b21cf54dbd.png" alt="Figure_0" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Actual outcome when inverting axis before populating plot:</strong></p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15879839/59764401-018bbf80-929c-11e9-954c-aaed719dc34e.png"><img src="https://user-images.githubusercontent.com/15879839/59764401-018bbf80-929c-11e9-954c-aaed719dc34e.png" alt="Figure_1" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Expected outcome</strong></p> <p dir="auto">Using ax.set_ylim(105,-5):</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/15879839/59764658-81b22500-929c-11e9-874c-64f54fe2f537.png"><img src="https://user-images.githubusercontent.com/15879839/59764658-81b22500-929c-11e9-874c-64f54fe2f537.png" alt="Figure_2" style="max-width: 100%;"></a></p> <p dir="auto"><strong>Matplotlib version</strong></p> <ul dir="auto"> <li>Operating system: Ubuntu 18.04.2</li> <li>Matplotlib version: 3.1.0</li> <li>Matplotlib backend (<code class="notranslate">print(matplotlib.get_backend())</code>): TkAgg</li> <li>Python version: 3.6.8</li> <li>Jupyter version (if applicable):</li> <li>Other libraries: Numpy 1.16.1</li> </ul> <p dir="auto">Matplotlib and Python were installed with pip.</p> <hr> <p dir="auto">Also posted on SO, <a href="https://stackoverflow.com/questions/56666916/inverting-axis-of-matplotlib-3d-plot-ruins-ticks" rel="nofollow">https://stackoverflow.com/questions/56666916/inverting-axis-of-matplotlib-3d-plot-ruins-ticks</a></p>
<h3 dir="auto">Bug summary</h3> <p dir="auto">The ax.invertxaxis() and ax.invert_yaxis() function both produce the same output, a scatterplot with a flipped X axis.</p> <h3 dir="auto">Code for reproduction</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from mpl_toolkits import mplot3d import matplotlib.pyplot as plt ax = plt.axes(projection='3d') plt.title(&quot;Invert Z&quot;) ax.scatter3D(1,1,1) # ax.invert_xaxis() ax.invert_yaxis() # ax.invert_zaxis()"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">mpl_toolkits</span> <span class="pl-k">import</span> <span class="pl-s1">mplot3d</span> <span class="pl-k">import</span> <span class="pl-s1">matplotlib</span>.<span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span> <span class="pl-s1">ax</span> <span class="pl-c1">=</span> <span class="pl-s1">plt</span>.<span class="pl-en">axes</span>(<span class="pl-s1">projection</span><span class="pl-c1">=</span><span class="pl-s">'3d'</span>) <span class="pl-s1">plt</span>.<span class="pl-en">title</span>(<span class="pl-s">"Invert Z"</span>) <span class="pl-s1">ax</span>.<span class="pl-en">scatter3D</span>(<span class="pl-c1">1</span>,<span class="pl-c1">1</span>,<span class="pl-c1">1</span>) <span class="pl-c"># ax.invert_xaxis()</span> <span class="pl-s1">ax</span>.<span class="pl-en">invert_yaxis</span>() <span class="pl-c"># ax.invert_zaxis()</span></pre></div> <h3 dir="auto">Actual outcome</h3> <p dir="auto">No inversions:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35809470/137531316-0b630f80-6077-436e-9af3-78e473c634b5.png"><img src="https://user-images.githubusercontent.com/35809470/137531316-0b630f80-6077-436e-9af3-78e473c634b5.png" alt="Screen Shot 2021-10-15 at 1 52 25 PM" style="max-width: 100%;"></a></p> <p dir="auto">X Inversion:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35809470/137531353-e30e4400-9821-4edb-b760-c39b1967cdf2.png"><img src="https://user-images.githubusercontent.com/35809470/137531353-e30e4400-9821-4edb-b760-c39b1967cdf2.png" alt="Screen Shot 2021-10-15 at 1 52 48 PM" style="max-width: 100%;"></a></p> <p dir="auto">Y Inversion:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35809470/137531630-2c4ef7bf-cadc-44fb-a633-5e22cda5b4f9.png"><img src="https://user-images.githubusercontent.com/35809470/137531630-2c4ef7bf-cadc-44fb-a633-5e22cda5b4f9.png" alt="Screen Shot 2021-10-15 at 1 54 55 PM" style="max-width: 100%;"></a></p> <p dir="auto">Z Inversion behaves as expected:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/35809470/137531781-c01d7b74-fb60-4926-b72c-ec7e86580537.png"><img src="https://user-images.githubusercontent.com/35809470/137531781-c01d7b74-fb60-4926-b72c-ec7e86580537.png" alt="Screen Shot 2021-10-15 at 1 56 10 PM" style="max-width: 100%;"></a></p> <h3 dir="auto">Expected outcome</h3> <p dir="auto">I would expect the y axis to be inverted</p> <h3 dir="auto">Operating system</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Matplotlib Version</h3> <p dir="auto">3.2.2</p> <h3 dir="auto">Matplotlib Backend</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Python version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Jupyter version</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Other libraries</h3> <p dir="auto">mpl_toolkits.mplot3d</p> <h3 dir="auto">Installation</h3> <p dir="auto"><em>No response</em></p> <h3 dir="auto">Conda channel</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: 10.0.19013.0 Windows Terminal version (if applicable):0.6.2951.0 Any other software? PSReadLine 2.0.0"><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.19013.0 Windows Terminal version (if applicable):0.6.2951.0 Any other software? PSReadLine 2.0.0 </code></pre></div> <h1 dir="auto">Steps to reproduce</h1> <p dir="auto">Copy a PowerShell function at least twice the height of the terminal window to the clipboard. Right-mouse click paste the code in to terminal.</p> <h1 dir="auto">Expected behavior</h1> <p dir="auto">The pasted function works as expected.</p> <h1 dir="auto">Actual behavior</h1> <p dir="auto">The terminal window content area "flashes". Somewhere along the way an error appears--usually, but not always, after a closing brace (}). The error is, reported in red text, "Oops, something went wrong...Report on GitHub: <a href="https://github.com/lzybkr/PSReadLine/issues/new">https://github.com/lzybkr/PSReadLine/issues/new</a>". The issues happens on PS 5.1 and PS 6.</p> <p dir="auto">Pasting the same code in to a non-terminal PS 5.1 works as expected with the same version of PSReadLine.</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/46634177/68094989-a259d080-fe73-11e9-9478-21f75569f0db.PNG"><img src="https://user-images.githubusercontent.com/46634177/68094989-a259d080-fe73-11e9-9478-21f75569f0db.PNG" alt="Error" style="max-width: 100%;"></a></p>
<h1 dir="auto">Environment</h1> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): Version: 0.4.2382.0 Any other software? Office C2R SSMS 18.2 VSCode # Steps to reproduce - Right-Click app from start menu - Fill in appropriate credentials # Expected behavior Expecting a copy of Windows Terminal to load. # Actual behavior Nothing after entering credentials. Looking in task manager, WindowsTerminal.exe does not seem to load. This was not built, this was the preview through the store."><pre lang="none" class="notranslate"><code class="notranslate">Windows build number: 10.0.18362.0 Windows Terminal version (if applicable): Version: 0.4.2382.0 Any other software? Office C2R SSMS 18.2 VSCode # Steps to reproduce - Right-Click app from start menu - Fill in appropriate credentials # Expected behavior Expecting a copy of Windows Terminal to load. # Actual behavior Nothing after entering credentials. Looking in task manager, WindowsTerminal.exe does not seem to load. This was not built, this was the preview through the store. </code></pre></div>
0
<p dir="auto">Hi,<br> I have a requirement that model should search for relevant documents before answering the query. I found RAG from Facebook AI which perfectly aligns with my requirement . Also saw <a href="https://huggingface.co/blog/ray-rag" rel="nofollow">this</a> blog from HF and came to know that HF implemented RAG which is awesome!</p> <p dir="auto">My doubt is whether I could extend HF's implementation of RAG so that the model should retrieve documents from local directory rather than HF's wikipedia corpus.<br> Are there any notebooks to refer..?</p>
<h1 dir="auto"><g-emoji class="g-emoji" alias="rocket" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f680.png">🚀</g-emoji> Feature request</h1> <p dir="auto"><strong>Good Second Issue</strong> - A more advanced issue for contributors who want to dive more into Longformer's attention mechanism.</p> <p dir="auto">Longformer currently only outputs global attentions, which is suboptimal because users might be interested in the local attentions as well. I propose to change the "output_attention" logic as follows in longformer:</p> <p dir="auto"><code class="notranslate">attentions</code> should correspond to the "local" attentions and then we'll add a new output type <code class="notranslate">global_attention</code> that contains the global_attentions. This is consistent with the naming of <code class="notranslate">attention_mask</code> and <code class="notranslate">global_attention_mask</code> IMO and the cleanest way to implement the feature.</p> <p dir="auto">Implementing this feature would mean to that Longformer will require its own <code class="notranslate">ModelOutput</code> class =&gt;<br> <code class="notranslate">BaseModelOutput,</code> =&gt; <code class="notranslate">LongformerBaseModelOutput</code> or <code class="notranslate">BaseModelOutputWithGlobalAttention</code> (prefer the first name though)<br> <code class="notranslate">BaseModelOutputWithPooling,</code> =&gt; ...</p> <p dir="auto">Also some tests will have to be adapted.</p> <p dir="auto">This is a slightly more difficult issue, so I'm happy to help on it. One should understand the difference between local and global attention and how Longformer's attention is different to <em>e.g.</em> Bert's attention in general.</p> <p dir="auto">For more detail check out discussion here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="654458686" data-permission-text="Title is private" data-url="https://github.com/huggingface/transformers/issues/5646" data-hovercard-type="issue" data-hovercard-url="/huggingface/transformers/issues/5646/hovercard" href="https://github.com/huggingface/transformers/issues/5646">#5646</a></p>
0
<p dir="auto">I want to confirm that the current and future versions of opencv4 will no longer support vs2013?</p> <p dir="auto">Will the opencv3 version always support vs2013?</p> <p dir="auto">Thanks answer.</p>
<p dir="auto">Start using <code class="notranslate">noexcept</code> in commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/opencv/opencv/commit/43f821afb91330958d4723f6300a5ec0bfa2185e/hovercard" href="https://github.com/opencv/opencv/commit/43f821afb91330958d4723f6300a5ec0bfa2185e"><tt>43f821a</tt></a> makes it impossible to use VS2013.</p>
1
<h1 dir="auto">Summary of the new feature/enhancement</h1> <p dir="auto">Having multiple languages installed on my machine, I start typing in the wrong language in the Run search box. I click the correct keys for what I am looking for, but of course the outcome is something completely different.<br> For example, searching for "terminal" would turn out as "אקרצןמשך" (just to make it clear - this is <em>not</em> a translation. This is gibberish, and the outcome of clicking on the same keys as "terminal" while the current language is Hebrew)</p> <p dir="auto">A very simple mapping of keyboard keys across different languages can easily realize I might have meant to write "terminal" and show suggestions based on both strings (the original gibberish one, and the guess in English).<br> Of course, this can happen the other way around, and also with more than two languages installed.</p> <p dir="auto">A very similar idea is already implemented in Google Search - searching for "אקרצןמשך" will show results for "terminal" (<a href="https://www.google.com/search?q=%D7%90%D7%A7%D7%A8%D7%A6%D7%9F%D7%9E%D7%A9%D7%9A&amp;oq=%D7%90%D7%A7%D7%A8%D7%A6%D7%9F%D7%9E%D7%A9%D7%9A&amp;aqs=chrome..69i57j0l4j46l2j0.5687j0j1&amp;sourceid=chrome&amp;ie=UTF-8" rel="nofollow">example</a>)</p> <h1 dir="auto">Proposed technical implementation details (optional)</h1> <p dir="auto">I've been thinking of implementing this feature for a while now, and I have not found a programmatic way to get a keypress value from the keyboard, and translate it into different keyboard layouts/languages. It might be necessary to start out with some hard-coded map of keyboards in different layouts. But if there is any way to do it automatically using some low-level windows API that would make matters so much easier.<br> After mapping the input text to different language keyboard layouts, it's should be a matter of adding more terms to the QueryBuilder, and interleaving the results. On almost all cases, only a single term will return any results, as most other terms will be gibberish anyway.<br> I think the end result may be completely transparent to the end-user. The search box will contain some gibberish, and the results will "magically" contain the results they are expecting.</p>
<h1 dir="auto">Summary of the new feature/enhancement</h1> <h1 dir="auto">Proposed technical implementation details (optional)</h1>
0
<p dir="auto">Describe what you were doing when the bug occurred:</p> <ol dir="auto"> <li>Monitoring page load with ReactDevTool Profiler</li> <li>Stopped the recording</li> <li>Selected a render phase in the FlameGraph</li> </ol> <hr> <h2 dir="auto">Please do not remove the text below this line</h2> <p dir="auto">DevTools version: 4.10.0-11a2ae3a0d</p> <p dir="auto">Call stack: at updateTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19650:17)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19583:26)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19576:32)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19576:32)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19576:32)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19576:32)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19576:32)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19576:32)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19576:32)<br> at getCommitTree (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:19576:32)</p> <p dir="auto">Component stack: at CommitFlamegraphAutoSizer (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:34133:50)<br> at div<br> at div<br> at div<br> at SettingsModalContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:28195:3)<br> at Profiler_Profiler (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:35761:50)<br> at ErrorBoundary_ErrorBoundary (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29208:5)<br> at PortaledContent (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29325:32)<br> at div<br> at div<br> at ProfilerContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:32923:3)<br> at TreeContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24311:3)<br> at SettingsContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:24800:3)<br> at ModalDialogContextController (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:29393:3)<br> at DevTools_DevTools (chrome-extension://fmkadmapgofadopljbjfkapdkoienihi/build/main.js:36196:3)</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> bug</p> <p dir="auto"><strong>What is the current behavior?</strong><br> error message:<br> <code class="notranslate">/node_modules/@types/react-router/node_modules/@types/react/index.d.ts(2314,14): TS2300: Duplicate identifier 'LibraryManagedAttributes'.</code></p> <p dir="auto"><strong>What is the expected behavior?</strong><br> 正常编译<br> <strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> package.json:<br> <code class="notranslate">"react": "^16.8.6",</code><br> <code class="notranslate">"@types/react": "^16.8.6",</code></p> <p dir="auto">yarn.lock file:<br> <code class="notranslate">"@types/react@^16.8.6": version "16.9.17" resolved "https://registry.yarnpkg.com/@types/react/-/react-16.9.17.tgz#58f0cc0e9ec2425d1441dd7b623421a867aa253e" integrity sha512-UP27In4fp4sWF5JgyV6pwVPAQM83Fj76JOcg02X5BZcpSu5Wx+fP9RMqc2v0ssBoQIFvD5JdKY41gjJJKmw6Bg== dependencies: "@types/prop-types" "*" csstype "^2.2.0"</code></p>
0
<p dir="auto">stats.mode seems surprisingly slow, especially since it's very much the same as <code class="notranslate">find_repeats</code>. Despite only needing to return the first value and being pretty much the same function, stats.mode is much slower than find_repeats (which appears to be a very thin wrapper around a fortran function), here's some benchmarking:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import numpy as np import scipy.stats as stats arr1 = np.random.randint(-1000, 1000, 10000) %timeit stats.mode(arr1) %timeit stats.find_repeats(arr1)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">numpy</span> <span class="pl-k">as</span> <span class="pl-s1">np</span> <span class="pl-k">import</span> <span class="pl-s1">scipy</span>.<span class="pl-s1">stats</span> <span class="pl-k">as</span> <span class="pl-s1">stats</span> <span class="pl-s1">arr1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">-</span><span class="pl-c1">1000</span>, <span class="pl-c1">1000</span>, <span class="pl-c1">10000</span>) <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">stats</span>.<span class="pl-en">mode</span>(<span class="pl-s1">arr1</span>) <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">stats</span>.<span class="pl-en">find_repeats</span>(<span class="pl-s1">arr1</span>)</pre></div> <p dir="auto">which yields</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="10 loops, best of 3: 142 ms per loop 1000 loops, best of 3: 832 µs per loop"><pre class="notranslate"><code class="notranslate">10 loops, best of 3: 142 ms per loop 1000 loops, best of 3: 832 µs per loop </code></pre></div> <p dir="auto">The problem is that the implementation is very slow when the number of unique labels is much greater than the number of unique values, because it iterates over every count:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="arr1 = np.random.randint(-100, 100, 10000) ser = pd.Series(arr1) %timeit stats.mode(arr1) %timeit stats.find_repeats(arr1)"><pre class="notranslate"><span class="pl-s1">arr1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">-</span><span class="pl-c1">100</span>, <span class="pl-c1">100</span>, <span class="pl-c1">10000</span>) <span class="pl-s1">ser</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-v">Series</span>(<span class="pl-s1">arr1</span>) <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">stats</span>.<span class="pl-en">mode</span>(<span class="pl-s1">arr1</span>) <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">stats</span>.<span class="pl-en">find_repeats</span>(<span class="pl-s1">arr1</span>)</pre></div> <p dir="auto">yields</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="100 loops, best of 3: 15.2 ms per loop 1000 loops, best of 3: 681 µs per loop"><pre class="notranslate"><code class="notranslate">100 loops, best of 3: 15.2 ms per loop 1000 loops, best of 3: 681 µs per loop </code></pre></div> <p dir="auto">And is still twice as slow with 20 uniques vs. 10000 entries:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="arr1 = np.random.randint(-10, 10, 10000) %timeit stats.mode(arr1) %timeit stats.find_repeats(arr1)"><pre class="notranslate"><code class="notranslate">arr1 = np.random.randint(-10, 10, 10000) %timeit stats.mode(arr1) %timeit stats.find_repeats(arr1) </code></pre></div> <p dir="auto">yielding</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="1000 loops, best of 3: 1.89 ms per loop 1000 loops, best of 3: 508 µs per loop"><pre class="notranslate"><code class="notranslate">1000 loops, best of 3: 1.89 ms per loop 1000 loops, best of 3: 508 µs per loop </code></pre></div> <p dir="auto">And still not great with 2 dimensions:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="arr1 = np.random.randint(-100, 100, (500, 100)) %timeit stats.mode(arr1) %timeit stats.find_repeats(arr1) # approximate finding repeats on each axis: %timeit [stats.find_repeats(arr1[i]) for i in range(len(arr1))]"><pre class="notranslate"><span class="pl-s1">arr1</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-s1">random</span>.<span class="pl-en">randint</span>(<span class="pl-c1">-</span><span class="pl-c1">100</span>, <span class="pl-c1">100</span>, (<span class="pl-c1">500</span>, <span class="pl-c1">100</span>)) <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">stats</span>.<span class="pl-en">mode</span>(<span class="pl-s1">arr1</span>) <span class="pl-c1">%</span><span class="pl-s1">timeit</span> <span class="pl-s1">stats</span>.<span class="pl-en">find_repeats</span>(<span class="pl-s1">arr1</span>) <span class="pl-c"># approximate finding repeats on each axis:</span> <span class="pl-c1">%</span><span class="pl-s1">timeit</span> [<span class="pl-s1">stats</span>.<span class="pl-en">find_repeats</span>(<span class="pl-s1">arr1</span>[<span class="pl-s1">i</span>]) <span class="pl-s1">for</span> <span class="pl-s1">i</span> <span class="pl-c1">in</span> <span class="pl-en">range</span>(<span class="pl-en">len</span>(<span class="pl-s1">arr1</span>))]</pre></div> <p dir="auto">which yields:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="10 loops, best of 3: 50.6 ms per loop 100 loops, best of 3: 3.6 ms per loop 100 loops, best of 3: 4.61 ms per loop"><pre class="notranslate"><code class="notranslate">10 loops, best of 3: 50.6 ms per loop 100 loops, best of 3: 3.6 ms per loop 100 loops, best of 3: 4.61 ms per loop </code></pre></div> <p dir="auto">At least for 1D, a better implementation would be to take advantage of find_repeats (or reuse its internals) rather than iterating over uniques, e.g. something like this for 1D:</p> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="def faster_mode1D(a): arr = np.asarray(a) # would be _chk_array v, c = stats.find_repeats(arr) if len(c) == 0: arr.sort() # mimic first value behavior return arr[0], 1. else: pos = c.argmax() return v[pos], c[pos]"><pre class="notranslate"><span class="pl-k">def</span> <span class="pl-en">faster_mode1D</span>(<span class="pl-s1">a</span>): <span class="pl-s1">arr</span> <span class="pl-c1">=</span> <span class="pl-s1">np</span>.<span class="pl-en">asarray</span>(<span class="pl-s1">a</span>) <span class="pl-c"># would be _chk_array</span> <span class="pl-s1">v</span>, <span class="pl-s1">c</span> <span class="pl-c1">=</span> <span class="pl-s1">stats</span>.<span class="pl-en">find_repeats</span>(<span class="pl-s1">arr</span>) <span class="pl-k">if</span> <span class="pl-en">len</span>(<span class="pl-s1">c</span>) <span class="pl-c1">==</span> <span class="pl-c1">0</span>: <span class="pl-s1">arr</span>.<span class="pl-en">sort</span>() <span class="pl-c"># mimic first value behavior</span> <span class="pl-k">return</span> <span class="pl-s1">arr</span>[<span class="pl-c1">0</span>], <span class="pl-c1">1.</span> <span class="pl-k">else</span>: <span class="pl-s1">pos</span> <span class="pl-c1">=</span> <span class="pl-s1">c</span>.<span class="pl-en">argmax</span>() <span class="pl-k">return</span> <span class="pl-s1">v</span>[<span class="pl-s1">pos</span>], <span class="pl-s1">c</span>[<span class="pl-s1">pos</span>]</pre></div> <p dir="auto">Not sure whether this makes as much sense for multiple dimensions, but maybe it would be worth special-casing 1D ndarrays? The performance difference is pretty big.</p>
<p dir="auto"><em>Original ticket <a href="http://projects.scipy.org/scipy/ticket/905" rel="nofollow">http://projects.scipy.org/scipy/ticket/905</a> on 2009-03-31 by trac user parejkoj, assigned to unknown.</em></p> <p dir="auto">I'm trying to run scipy.stats.mode (in scipy.stats.stats) on a 2-d ndarray, but it takes an extremely long time. The data is an image (astronomical data), with:</p> <p dir="auto">data.shape = (227,3104)<br> data.dtype = ('float32')</p> <p dir="auto">A quick-and-dirty mode function like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def mode(data): counts = {} for x in data.flatten(): counts[x] = counts.get(x,0) + 1 maxcount = max(counts.values()) modelist = [] for x in counts: if counts[x] == maxcount: modelist.append(x) return modelist,maxcount #..."><pre class="notranslate"><code class="notranslate">def mode(data): counts = {} for x in data.flatten(): counts[x] = counts.get(x,0) + 1 maxcount = max(counts.values()) modelist = [] for x in counts: if counts[x] == maxcount: modelist.append(x) return modelist,maxcount #... </code></pre></div> <p dir="auto">takes only a second or so to run, while stats.mode(data) or stats.mode(data.flatten()) takes ~20 minutes, no matter how I set the axis parameter. Am I missing something, or shouldn't it be significantly faster?</p> <p dir="auto">I'm using scipy 0.6.0 from Fink on Mac OS X Leopard with python2.5, but there appear to be no changes to the mode function between 0.6.0 and the current svn.</p>
1
<h3 dir="auto">Current Behavior:</h3> <p dir="auto">I've got a pre-workspaces monorepo setup like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=". ├── app1 │   └── package.json ├── app2 │   └── package.json └── packages ├── pkg1 │   └── package.json └── pkg2 └── package.json "><pre class="notranslate"><code class="notranslate">. ├── app1 │   └── package.json ├── app2 │   └── package.json └── packages ├── pkg1 │   └── package.json └── pkg2 └── package.json </code></pre></div> <p dir="auto">In app1 and app2 we consume the shared packages like this:</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;dependencies&quot;: { &quot;@us/pkg1&quot;: &quot;file:./../packages/pkg1&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"@us/pkg1"</span>: <span class="pl-s"><span class="pl-pds">"</span>file:./../packages/pkg1<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto"><code class="notranslate">pkg1</code> has a set of external dependencies specified in its <code class="notranslate">package.json</code>, e.g.</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;dependencies&quot;: { &quot;lodash&quot;: &quot;4.17.21&quot; } }"><pre class="notranslate">{ <span class="pl-ent">"dependencies"</span>: { <span class="pl-ent">"lodash"</span>: <span class="pl-s"><span class="pl-pds">"</span>4.17.21<span class="pl-pds">"</span></span> } }</pre></div> <p dir="auto">When I run <code class="notranslate">npm i</code> from within one of the app folders, the package itself gets installed, however starting with npm 7 (all versions I could test until now), the transient dependencies of the packages (lodash when following the example above) won't get installed, thus making the applications fail with import errors. When I manually install the transient dependencies by running <code class="notranslate">npm i</code> from within the package directory, it works as expected.</p> <p dir="auto">The repo does not have a top level package.json and it does not configure workspaces anywhere.</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">I would expect npm to not only install the linked local package, but also its dependencies. This happens with npm 6 but not with npm 7.</p> <p dir="auto">Using <code class="notranslate">npm link</code> or installing does not make a difference.</p> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS: Ubuntu 20.04</li> <li>Node: 12.6.1</li> <li>npm: 7.8.0</li> </ul> <h3 dir="auto">This might not be a bug?</h3> <p dir="auto">I am aware that npm 7 brought the workspaces feature and this behavior might not be a bug but expected behavior as I am supposed to use workspaces for such a monorepo setup, however this would mean we'd need to migrate the entire team from npm 6 to 7 at the same point in time.</p> <hr> <p dir="auto">I created a reproducible example over here <a href="https://github.com/m90/npm-monorepo-issue">https://github.com/m90/npm-monorepo-issue</a></p>
<h3 dir="auto">Current Behavior:</h3> <p dir="auto">npm v7 does not install linked local packages dependencies.</p> <h3 dir="auto">Expected Behavior:</h3> <p dir="auto">In npm v6 the dependencies of a local linked package are installed. This means that if <code class="notranslate">app</code> has <code class="notranslate">my-local-pkg</code> as a dependency, running <code class="notranslate">npm install</code> generates <code class="notranslate">app/node_modules</code> folder and also <code class="notranslate">my-local-pkg/node_modules</code> (with its dependencies).<br> In npm v7, however, only <code class="notranslate">app/node_modules</code> is generated.</p> <h3 dir="auto">Steps To Reproduce:</h3> <p dir="auto">I created the <a href="https://github.com/garciaalvaro/npm-deps-issue">following repository</a> to illustrate it. The <code class="notranslate">README.md</code> has the instructions on how to reproduce it.<br> Simplified, the steps are:</p> <ol dir="auto"> <li>Add the following folder structure: <code class="notranslate">./app</code> and <code class="notranslate">./my-local-pkg</code>, each with their own <code class="notranslate">package.json</code></li> <li>Include this in the <code class="notranslate">./app/package.json</code>:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;app&quot;, &quot;dependencies&quot;: { &quot;my-local-pkg&quot;: &quot;file:../my-local-pkg&quot;, &quot;prettier&quot;: &quot;^2.2.1&quot; } }"><pre class="notranslate"><code class="notranslate">{ "name": "app", "dependencies": { "my-local-pkg": "file:../my-local-pkg", "prettier": "^2.2.1" } } </code></pre></div> <ol start="3" dir="auto"> <li>Include this in the <code class="notranslate">./my-local-pkg/package.json</code>:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;name&quot;: &quot;my-local-pkg&quot;, &quot;dependencies&quot;: { &quot;typescript&quot;: &quot;^4.1.3&quot; } }"><pre class="notranslate"><code class="notranslate">{ "name": "my-local-pkg", "dependencies": { "typescript": "^4.1.3" } } </code></pre></div> <ol start="4" dir="auto"> <li>Go to <code class="notranslate">./app</code> and run <code class="notranslate">npm install</code>.<br> npm version 6 produces:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules .bin my-local-pkg node_modules typescript prettier"><pre class="notranslate"><code class="notranslate">node_modules .bin my-local-pkg node_modules typescript prettier </code></pre></div> <p dir="auto">while npm version 7 produces:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules .bin my-local-pkg prettier"><pre class="notranslate"><code class="notranslate">node_modules .bin my-local-pkg prettier </code></pre></div> <p dir="auto">Compare the two outputs, npm v7 does not install <code class="notranslate">my-local-pkg</code> dependencies, there is no <code class="notranslate">./my-local-pkg/node_modules</code> folder generated.</p> <h3 dir="auto">Environment:</h3> <p dir="auto">npm v7.1.2</p>
1
<p dir="auto">when I render <strong>form.jade</strong> from <strong>columns.json</strong> , I try to pass propsData(multi props) to component , but It seems unsupported. Is there a better way to do this?</p> <blockquote> <p dir="auto">json</p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[ {&quot;title&quot;: &quot;A&quot;, &quot;name&quot;:&quot;a&quot;, &quot;component&quot;: &quot;ui-dropdown&quot; , &quot;propsData&quot;: {&quot;options&quot;: [], &quot;on&quot;:&quot;hover&quot; }}, {&quot;title&quot;: &quot;B&quot;, &quot;name&quot;:&quot;b&quot;, &quot;component&quot;: &quot;ui-dropdown&quot; , &quot;propsData&quot;: {&quot;options&quot;: [] , &quot;on&quot;:&quot;click&quot;}}, ]"><pre class="notranslate">[ {<span class="pl-ent">"title"</span>: <span class="pl-s"><span class="pl-pds">"</span>A<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>:<span class="pl-s"><span class="pl-pds">"</span>a<span class="pl-pds">"</span></span>, <span class="pl-ent">"component"</span>: <span class="pl-s"><span class="pl-pds">"</span>ui-dropdown<span class="pl-pds">"</span></span> , <span class="pl-ent">"propsData"</span>: {<span class="pl-ent">"options"</span>: [], <span class="pl-ent">"on"</span>:<span class="pl-s"><span class="pl-pds">"</span>hover<span class="pl-pds">"</span></span> }}, {<span class="pl-ent">"title"</span>: <span class="pl-s"><span class="pl-pds">"</span>B<span class="pl-pds">"</span></span>, <span class="pl-ent">"name"</span>:<span class="pl-s"><span class="pl-pds">"</span>b<span class="pl-pds">"</span></span>, <span class="pl-ent">"component"</span>: <span class="pl-s"><span class="pl-pds">"</span>ui-dropdown<span class="pl-pds">"</span></span> , <span class="pl-ent">"propsData"</span>: {<span class="pl-ent">"options"</span>: [] , <span class="pl-ent">"on"</span>:<span class="pl-s"><span class="pl-pds">"</span>click<span class="pl-pds">"</span></span>}}, ]</pre></div> <p dir="auto">template :</p> <div class="highlight highlight-text-jade notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".ui.segment.form.bottom.attached .field(v-for=&quot;column in columns&quot;) label {{column.title}} component(:is=&quot;column.component&quot;, :propsData=&quot;column.propsData&quot;, :value.sync=&quot;editor[column.name]&quot;)"><pre class="notranslate"><span class="pl-e">.ui.segment.form.bottom.attached</span> <span class="pl-e">.field</span><span class="pl-c1">(</span><span class="pl-e">v-for</span>=<span class="pl-s">"column in columns"</span><span class="pl-c1">)</span> label {{column.title}} component<span class="pl-c1">(</span><span class="pl-e">:is</span>=<span class="pl-s">"column.component"</span>, <span class="pl-e">:propsData</span>=<span class="pl-s">"column.propsData"</span>, <span class="pl-e">:value.sync</span>=<span class="pl-s">"editor[column.name]"</span><span class="pl-c1">)</span></pre></div> </blockquote> <p dir="auto">Of course , there is a way to pass props one by one , but it seems not so good.</p> <div class="highlight highlight-text-jade notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=".ui.segment.form.bottom.attached .field(v-for=&quot;column in columns&quot;) label {{column.title}} component(:is=&quot;column.component&quot;, :options=&quot;column.propsData.options&quot;, :on=&quot;column.propsData.on&quot;, :value.sync=&quot;editor[column.name]&quot;)"><pre class="notranslate"><span class="pl-e">.ui.segment.form.bottom.attached</span> <span class="pl-e">.field</span><span class="pl-c1">(</span><span class="pl-e">v-for</span>=<span class="pl-s">"column in columns"</span><span class="pl-c1">)</span> label {{column.title}} component<span class="pl-c1">(</span><span class="pl-e">:is</span>=<span class="pl-s">"column.component"</span>, <span class="pl-e">:options</span>=<span class="pl-s">"column.propsData.options"</span>, <span class="pl-e">:on</span>=<span class="pl-s">"column.propsData.on"</span>, <span class="pl-e">:value.sync</span>=<span class="pl-s">"editor[column.name]"</span><span class="pl-c1">)</span></pre></div>
<p dir="auto">It would be great if we could use v-bind with an object of attributes to pass props to a component.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;component is=&quot;component&quot; v-bind=&quot;data&quot;&gt;&lt;/component&gt;"><pre class="notranslate"><code class="notranslate">&lt;component is="component" v-bind="data"&gt;&lt;/component&gt; </code></pre></div> <p dir="auto">Currently we need to explicitly state the props we are passing to the component.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="&lt;component is=&quot;component&quot; :prop-a=&quot;propA&quot; :prop-b=&quot;propB&quot;&gt;&lt;/component&gt;"><pre class="notranslate"><code class="notranslate">&lt;component is="component" :prop-a="propA" :prop-b="propB"&gt;&lt;/component&gt; </code></pre></div> <p dir="auto"><a href="http://jsbin.com/yudivokovi/edit?html,js,output" rel="nofollow">http://jsbin.com/yudivokovi/edit?html,js,output</a></p>
1
<h3 dir="auto">Describe the bug</h3> <p dir="auto">Mounting StaticFiles with an APIRouter doesn't work.</p> <h3 dir="auto">To Reproduce</h3> <div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="from typing import Any from fastapi import FastAPI, Request, APIRouter from fastapi.staticfiles import StaticFiles from fastapi.testclient import TestClient router = APIRouter() @router.get(&quot;/&quot;) async def foo(request: Request) -&gt; Any: # this raises starlette.routing.NoMatchFound return request.url_for(&quot;static&quot;, path=&quot;/bar&quot;) app = FastAPI() router.mount(&quot;/static&quot;, StaticFiles(directory=&quot;.&quot;), name=&quot;static&quot;) # uncomment to fix # app.mount(&quot;/static&quot;, StaticFiles(directory=&quot;.&quot;), name=&quot;static&quot;) app.include_router(router) client = TestClient(app) client.get(&quot;/&quot;)"><pre class="notranslate"><span class="pl-k">from</span> <span class="pl-s1">typing</span> <span class="pl-k">import</span> <span class="pl-v">Any</span> <span class="pl-k">from</span> <span class="pl-s1">fastapi</span> <span class="pl-k">import</span> <span class="pl-v">FastAPI</span>, <span class="pl-v">Request</span>, <span class="pl-v">APIRouter</span> <span class="pl-k">from</span> <span class="pl-s1">fastapi</span>.<span class="pl-s1">staticfiles</span> <span class="pl-k">import</span> <span class="pl-v">StaticFiles</span> <span class="pl-k">from</span> <span class="pl-s1">fastapi</span>.<span class="pl-s1">testclient</span> <span class="pl-k">import</span> <span class="pl-v">TestClient</span> <span class="pl-s1">router</span> <span class="pl-c1">=</span> <span class="pl-v">APIRouter</span>() <span class="pl-en">@<span class="pl-s1">router</span>.<span class="pl-en">get</span>(<span class="pl-s">"/"</span>)</span> <span class="pl-k">async</span> <span class="pl-k">def</span> <span class="pl-en">foo</span>(<span class="pl-s1">request</span>: <span class="pl-v">Request</span>) <span class="pl-c1">-&gt;</span> <span class="pl-v">Any</span>: <span class="pl-c"># this raises starlette.routing.NoMatchFound</span> <span class="pl-k">return</span> <span class="pl-s1">request</span>.<span class="pl-en">url_for</span>(<span class="pl-s">"static"</span>, <span class="pl-s1">path</span><span class="pl-c1">=</span><span class="pl-s">"/bar"</span>) <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-v">FastAPI</span>() <span class="pl-s1">router</span>.<span class="pl-en">mount</span>(<span class="pl-s">"/static"</span>, <span class="pl-v">StaticFiles</span>(<span class="pl-s1">directory</span><span class="pl-c1">=</span><span class="pl-s">"."</span>), <span class="pl-s1">name</span><span class="pl-c1">=</span><span class="pl-s">"static"</span>) <span class="pl-c"># uncomment to fix</span> <span class="pl-c"># app.mount("/static", StaticFiles(directory="."), name="static")</span> <span class="pl-s1">app</span>.<span class="pl-en">include_router</span>(<span class="pl-s1">router</span>) <span class="pl-s1">client</span> <span class="pl-c1">=</span> <span class="pl-v">TestClient</span>(<span class="pl-s1">app</span>) <span class="pl-s1">client</span>.<span class="pl-en">get</span>(<span class="pl-s">"/"</span>)</pre></div> <ul dir="auto"> <li>Execute the script, raises NoMatchFound</li> <li>Uncomment line to mount with app instead</li> <li>Executes as expected</li> </ul> <h3 dir="auto">Expected behavior</h3> <p dir="auto">I can use APIRouter() as if it was a FastAPI() as noted in the docs.</p>
<p dir="auto"><strong>Description</strong></p> <p dir="auto">This is half a question on conceptual ideas, and half a feature request maybe?</p> <p dir="auto">I was wondering if anyone here has any thoughts on the following scenario.</p> <p dir="auto">Say I'm making a profile API. When posting a new profile, you use this model</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Profile(BaseModel): first_name: str last_name: str title: str = None age: int = None tagline: str = None"><pre class="notranslate"><code class="notranslate">class Profile(BaseModel): first_name: str last_name: str title: str = None age: int = None tagline: str = None </code></pre></div> <p dir="auto">First name and last name are understandably required fields, because we have to have <em>something</em> for a profile.</p> <p dir="auto">So now I want to add a patch endpoint, where you can just edit a single field. For that we want to enable the following request:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="patch service.com/profile/1234 { &quot;tagline&quot;: &quot;I am so cool&quot; }"><pre class="notranslate"><code class="notranslate">patch service.com/profile/1234 { "tagline": "I am so cool" } </code></pre></div> <p dir="auto">But I haven't given a first and last name, so obviously this endpoint can't use the Profile model as its body model.</p> <p dir="auto">What is the best approach for this? I can think of a variety of options, but nothing really <code class="notranslate">sparks joy.</code></p> <p dir="auto">Obviously one approach is to just make a different model for patch. This is certainly the most straightforward, but across a large service you might end up with a <em>lot</em> of duplicate models. And you'll have to manually maintain similarities between the two <g-emoji class="g-emoji" alias="nauseated_face" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f922.png">🤢</g-emoji></p> <p dir="auto">Another thought I had (not sure how easy this would be with Fast built in behaviors? I might be missing something), was to maybe bring the method <code class="notranslate">POST v PATCH</code> into a field on the profile model, and write a validator that is dependent on the value of that method field...but that is definitely a bit hacky <g-emoji class="g-emoji" alias="grimacing" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f62c.png">😬</g-emoji></p> <p dir="auto">There are likely lots of other ideas, just curious what the thoughts are from other users of this API (and or the creator)</p>
0
<p dir="auto">With the proposal for <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="243831362" data-permission-text="Title is private" data-url="https://github.com/JuliaLang/julia/issues/22858" data-hovercard-type="issue" data-hovercard-url="/JuliaLang/julia/issues/22858/hovercard" href="https://github.com/JuliaLang/julia/issues/22858">#22858</a>, I've been thinking it could be useful to have a type which commonly represents "AllIndices". So <code class="notranslate">A[AllIndices()]</code> would return <code class="notranslate">A</code>, making it the identity indexing element in some sense.</p> <p dir="auto">The reason is so that this could handle non-standard indexing. In some algorithms you might want the user to specify some indices that they "want to save", and you can default to <code class="notranslate">AllIndices</code>. In many of these cases, you haven't built the array yet and may be getting a non-standard type from the user, so defaulting to <code class="notranslate">eachindex</code> or something like that isn't possible. Currently a way to handle this is to default the chosen indices to <code class="notranslate">nothing</code>, and if you see <code class="notranslate">nothing</code> you treat it as <code class="notranslate">AllIndices</code> applied to the type by iterating <code class="notranslate">eachindex</code> after the array is built.</p> <p dir="auto">The name could change of course.</p>
<p dir="auto">Numpy has this ellipsis notation for filling<br> index tuples up to dimension, where in<br> <code class="notranslate">A[..., i, k]</code><br> <code class="notranslate">...</code> is interpreted as shorthand for the number of colons <code class="notranslate">:, :, : etc</code> needed to fill<br> the indexing tuple up to dimension <code class="notranslate">n</code>.</p> <p dir="auto"><a href="http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html" rel="nofollow">http://docs.scipy.org/doc/numpy/reference/arrays.indexing.html</a></p> <p dir="auto">This gives nice access to contiguous subarrays in the dense array case and would be not more harmful than the <code class="notranslate">:</code> notation itself.</p> <p dir="auto">Was this feature already considered? It was mentioned by <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/toivoh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/toivoh">@toivoh</a> on the mailing list, but did not trigger discussion.</p>
1
<p dir="auto">I just upgraded from 2.0.16 to 2.1.0 Beta 4 and in this code I get error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$builder-&gt;add('name', 'text'); $builder-&gt;add('category', 'entity', array( 'class' =&gt; 'PostBundle:Category', 'query_builder' =&gt; function(EntityRepository $er) { return $er-&gt;createQueryBuilder('u'); }, ));"><pre class="notranslate"><code class="notranslate">$builder-&gt;add('name', 'text'); $builder-&gt;add('category', 'entity', array( 'class' =&gt; 'PostBundle:Category', 'query_builder' =&gt; function(EntityRepository $er) { return $er-&gt;createQueryBuilder('u'); }, )); </code></pre></div> <blockquote> <p dir="auto">Class PostBundle:Category does not exist</p> </blockquote> <p dir="auto">Using Acme\PostBundle\Entity\Category instead of PostBundle:Category does work.</p>
<p dir="auto">The master documentation says the following about the entity form type:</p> <blockquote> <p dir="auto">The class of your entity (e.g. AcmeStoreBundle:Category). This can be a fully-qualified class name (e.g. Acme\StoreBundle\Entity\Category) or the short alias name (as shown prior).</p> </blockquote> <p dir="auto">However, the <code class="notranslate">Bundle:Entity</code> syntax throws the following exception:</p> <blockquote> <p dir="auto">Class Bundle:Entity does not exist</p> </blockquote> <p dir="auto">I've downloaded the symfony-standard edition and made the following test, just to be sure the problem is not caused by my project.</p> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace Acme\DemoBundle\Entity; class Smartie { private $smarties = array('red', 'green', 'yellow', 'brown'); public function getSmarties() { return $this-&gt;smarties; } }"><pre class="notranslate"><span class="pl-k">namespace</span> <span class="pl-v">Acme</span>\<span class="pl-v">DemoBundle</span>\<span class="pl-v">Entity</span>; <span class="pl-k">class</span> <span class="pl-v">Smartie</span> { <span class="pl-k">private</span> <span class="pl-c1"><span class="pl-c1">$</span>smarties</span> = <span class="pl-en">array</span>(<span class="pl-s">'red'</span>, <span class="pl-s">'green'</span>, <span class="pl-s">'yellow'</span>, <span class="pl-s">'brown'</span>); <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">getSmarties</span>() { <span class="pl-k">return</span> <span class="pl-s1"><span class="pl-c1">$</span><span class="pl-smi">this</span></span>-&gt;<span class="pl-c1">smarties</span>; } }</pre></div> <div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="namespace Acme\DemoBundle\Form; public function buildForm(FormBuilderInterface $builder, array $options) { $builder-&gt;add('yummie', 'entity', array( 'class' =&gt; 'AcmeDemoBundle:Smartie', 'property' =&gt; 'smarties' )); }"><pre class="notranslate"><span class="pl-k">namespace</span> <span class="pl-v">Acme</span>\<span class="pl-v">DemoBundle</span>\<span class="pl-v">Form</span>; <span class="pl-k">public</span> <span class="pl-k">function</span> <span class="pl-en">buildForm</span>(<span class="pl-smi"><span class="pl-smi">FormBuilderInterface</span></span> <span class="pl-s1"><span class="pl-c1">$</span>builder</span>, <span class="pl-smi">array</span> <span class="pl-s1"><span class="pl-c1">$</span>options</span>) { <span class="pl-s1"><span class="pl-c1">$</span>builder</span>-&gt;<span class="pl-en">add</span>(<span class="pl-s">'yummie'</span>, <span class="pl-s">'entity'</span>, <span class="pl-en">array</span>( <span class="pl-s">'class'</span> =&gt; <span class="pl-s">'AcmeDemoBundle:Smartie'</span>, <span class="pl-s">'property'</span> =&gt; <span class="pl-s">'smarties'</span> )); }</pre></div> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{{ form_widget(form.yummie) }}"><pre class="notranslate"><code class="notranslate">{{ form_widget(form.yummie) }} </code></pre></div> <p dir="auto">And that throws the following exception:</p> <blockquote> <p dir="auto">Class AcmeDemoBundle:Smartie does not exist<br> vendor/doctrine/common/lib/Doctrine/Common/Persistence/AbstractManagerRegistry.php at line 158<br> $proxyClass = new \ReflectionClass($class);</p> </blockquote> <p dir="auto">Maybe something has changed due the latest form improvements, I don't know. Either it's a bug or the documentation needs a update.</p>
1
<p dir="auto">Will node programs be able to run via deno? Will there be an adapter? I think that's pretty important if deno adaption is to increase.</p>
<p dir="auto">Would it be possible to get access to exactly the same API in Node.js?</p> <p dir="auto">I found the API surface overall to be exquisitely neatly designed, and I like it a lot. I'd like to be able to seamlessly switch between Deno and Node.js without memorizing strikingly different OS/file APIs.</p>
1
<p dir="auto">Feature Request: Open recent documents and reopen last closed window</p>
<p dir="auto">A feature I love about ST2 and iA Writer, which I'm missing in Atom, is when you quit the app with open windows (including unsaved documents), they all appear again when you reopen.</p> <p dir="auto">This has saved me countless times in my workflow to handle having to do a system restart for software update, etc and not have to take time to save all my unsaved docs, etc.</p> <p dir="auto">It's also nice because I generally have five or six open projects that I just keep minimized in the editor for ease of access. It would be great to have such a feature in Atom.</p>
1
<p dir="auto">I upgraded MUI from v0.16.7 to v0.19.3 and have now the following problem with my popovers.</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">Popover should rendered at the position the placement logic calculates.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Popover renders at position 0/0 and after a short amount jumps to correct position.</p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <p dir="auto">I made a video of the DatePicker docs which uses a Popover if inlined:<br> <a href="https://www.youtube.com/watch?v=cxSSbHWHR-U" rel="nofollow">https://www.youtube.com/watch?v=cxSSbHWHR-U</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>0.19.3</td> </tr> <tr> <td>React</td> <td>15.6.2</td> </tr> <tr> <td>browser</td> <td>Chrome 59.0.3071.115</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/mui-org/material-ui/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">A button should be rendered.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">An error is displayed: Using version beta28 in a newly created create-react-app app that renders only a material-ui <code class="notranslate">Button</code>, I get the following error with firefox 57.0.1 (mac os): <code class="notranslate">TypeError: CSS2Properties doesn't have an indexed property setter for '0'</code><br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/168223/34973384-52b08ade-fa55-11e7-8dc3-e1f3bbacc078.png"><img width="1038" alt="image" src="https://user-images.githubusercontent.com/168223/34973384-52b08ade-fa55-11e7-8dc3-e1f3bbacc078.png" style="max-width: 100%;"></a></p> <h2 dir="auto">Steps to Reproduce</h2> <ol dir="auto"> <li>run the following commands:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="create-react-app test-cra cd test-cra yarn install [email protected]"><pre class="notranslate"><code class="notranslate">create-react-app test-cra cd test-cra yarn install [email protected] </code></pre></div> <ol start="2" dir="auto"> <li>replace the content of src/index.js by the following code:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" import React from 'react'; import ReactDOM from 'react-dom'; import Button from 'material-ui/Button'; ReactDOM.render(&lt;Button raised&gt;Boom&lt;/Button&gt;, document.querySelector('#root'));"><pre class="notranslate"><code class="notranslate"> import React from 'react'; import ReactDOM from 'react-dom'; import Button from 'material-ui/Button'; ReactDOM.render(&lt;Button raised&gt;Boom&lt;/Button&gt;, document.querySelector('#root')); </code></pre></div> <p dir="auto">Here is a codesandbox <a href="https://codesandbox.io/s/m5qpp35wvy" rel="nofollow">link</a> but I can't reproduce the issue in it... 😞 (maybe some dependency caching in codesandbox?..)</p> <p dir="auto">Note: version 1.0.0-beta.27 works well.</p> <h2 dir="auto">Context</h2> <p dir="auto">It happened to me while upgrading material-ui in a medium-size project.</p> <h2 dir="auto">Your Environment</h2> <ul dir="auto"> <li>mac os high sierra 10.13.2</li> <li>firefox 57.0.1</li> <li>react-script</li> <li>dependencies:</li> </ul> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" &quot;material-ui&quot;: &quot;1.0.0-beta.28&quot;, &quot;react&quot;: &quot;^16.2.0&quot;, &quot;react-dom&quot;: &quot;^16.2.0&quot;, &quot;react-scripts&quot;: &quot;1.1.0&quot;"><pre class="notranslate"><code class="notranslate"> "material-ui": "1.0.0-beta.28", "react": "^16.2.0", "react-dom": "^16.2.0", "react-scripts": "1.1.0" </code></pre></div> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>Material-UI</td> <td>1.0.0-beta</td> </tr> <tr> <td>React</td> <td>16.2.0</td> </tr> <tr> <td>browser</td> <td>Firefox 57.0.1</td> </tr> <tr> <td>react-dom</td> <td>16.2.0</td> </tr> <tr> <td>react-scripts</td> <td>1.1.0</td> </tr> </tbody> </table>
0
<p dir="auto"><strong>Migrated issue, originally created by Wichert Akkerman (<a href="https://github.com/wichert">@wichert</a>)</strong></p> <p dir="auto">After upgrading from 0.9.4 to 0.9.5 or 0.9.6 I am suddenly seeing an error appear in my tests:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="src/lets_lynk/factory.py:51: in factory &gt; return query.first() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/query.py:2334: in first &gt; ret = list(self[0:1]) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/query.py:2201: in __getitem__ &gt; return list(res) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/query.py:2404: in __iter__ &gt; self.session._autoflush() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/session.py:1188: in _autoflush &gt; self.flush() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/session.py:1907: in flush &gt; self._flush(objects) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/session.py:2025: in _flush &gt; transaction.rollback(_capture_exception=True) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/util/langhelpers.py:57: in __exit__ &gt; compat.reraise(exc_type, exc_value, exc_tb) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/session.py:1989: in _flush &gt; flush_context.execute() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/unitofwork.py:350: in execute &gt; postsort_actions = self._generate_actions() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/unitofwork.py:324: in _generate_actions &gt; for rec in cycles ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/unitofwork.py:324: in &lt;genexpr&gt; &gt; for rec in cycles ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/unitofwork.py:541: in per_state_flush_actions &gt; dep.per_state_flush_actions(uow, states_for_prop, False) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/dependency.py:166: in per_state_flush_actions &gt; else attributes.PASSIVE_NO_INITIALIZE) E TypeError: get_all_pending() takes exactly 3 arguments (4 given)"><pre class="notranslate"><code class="notranslate">src/lets_lynk/factory.py:51: in factory &gt; return query.first() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/query.py:2334: in first &gt; ret = list(self[0:1]) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/query.py:2201: in __getitem__ &gt; return list(res) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/query.py:2404: in __iter__ &gt; self.session._autoflush() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/session.py:1188: in _autoflush &gt; self.flush() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/session.py:1907: in flush &gt; self._flush(objects) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/session.py:2025: in _flush &gt; transaction.rollback(_capture_exception=True) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/util/langhelpers.py:57: in __exit__ &gt; compat.reraise(exc_type, exc_value, exc_tb) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/session.py:1989: in _flush &gt; flush_context.execute() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/unitofwork.py:350: in execute &gt; postsort_actions = self._generate_actions() ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/unitofwork.py:324: in _generate_actions &gt; for rec in cycles ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/unitofwork.py:324: in &lt;genexpr&gt; &gt; for rec in cycles ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/unitofwork.py:541: in per_state_flush_actions &gt; dep.per_state_flush_actions(uow, states_for_prop, False) ../../Library/buildout/eggs/SQLAlchemy-0.9.5-py2.7-macosx-10.9-x86_64.egg/sqlalchemy/orm/dependency.py:166: in per_state_flush_actions &gt; else attributes.PASSIVE_NO_INITIALIZE) E TypeError: get_all_pending() takes exactly 3 arguments (4 given) </code></pre></div>
<p dir="auto"><strong>Migrated issue, originally created by NotTheEvilOne (<a href="https://github.com/NotTheEvilOne">@NotTheEvilOne</a>)</strong></p> <p dir="auto">Hi,</p> <p dir="auto">the "autoflush" feature triggers an error in SQLAlchemy 0.9.6.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content=" File &quot;/opt/pas/src/dNG/pas/data/upnp/resources/mp_entry.py&quot;, line 588, in init_cds_id .first() File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py&quot;, line 2334, in first ret = list(self[0:1]) File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py&quot;, line 2201, in __getitem__ return list(res) File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py&quot;, line 2404, in __iter__ self.session._autoflush() File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/session.py&quot;, line 1188, in _autoflush self.flush() File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/session.py&quot;, line 1907, in flush self._flush(objects) File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/session.py&quot;, line 2025, in _flush transaction.rollback(_capture_exception=True) File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/util/langhelpers.py&quot;, line 57, in __exit__ compat.reraise(exc_type, exc_value, exc_tb) File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/util/compat.py&quot;, line 172, in reraise raise value File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/session.py&quot;, line 1989, in _flush flush_context.execute() File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/unitofwork.py&quot;, line 350, in execute postsort_actions = self._generate_actions() File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/unitofwork.py&quot;, line 324, in _generate_actions for rec in cycles File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/unitofwork.py&quot;, line 324, in &lt;genexpr&gt; for rec in cycles File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/unitofwork.py&quot;, line 541, in per_state_flush_actions dep.per_state_flush_actions(uow, states_for_prop, False) File &quot;/usr/lib/python3.4/site-packages/sqlalchemy/orm/dependency.py&quot;, line 166, in per_state_flush_actions else attributes.PASSIVE_NO_INITIALIZE) TypeError: get_all_pending() takes 3 positional arguments but 4 were given"><pre class="notranslate"><code class="notranslate"> File "/opt/pas/src/dNG/pas/data/upnp/resources/mp_entry.py", line 588, in init_cds_id .first() File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py", line 2334, in first ret = list(self[0:1]) File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py", line 2201, in __getitem__ return list(res) File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/query.py", line 2404, in __iter__ self.session._autoflush() File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/session.py", line 1188, in _autoflush self.flush() File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/session.py", line 1907, in flush self._flush(objects) File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/session.py", line 2025, in _flush transaction.rollback(_capture_exception=True) File "/usr/lib/python3.4/site-packages/sqlalchemy/util/langhelpers.py", line 57, in __exit__ compat.reraise(exc_type, exc_value, exc_tb) File "/usr/lib/python3.4/site-packages/sqlalchemy/util/compat.py", line 172, in reraise raise value File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/session.py", line 1989, in _flush flush_context.execute() File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/unitofwork.py", line 350, in execute postsort_actions = self._generate_actions() File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/unitofwork.py", line 324, in _generate_actions for rec in cycles File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/unitofwork.py", line 324, in &lt;genexpr&gt; for rec in cycles File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/unitofwork.py", line 541, in per_state_flush_actions dep.per_state_flush_actions(uow, states_for_prop, False) File "/usr/lib/python3.4/site-packages/sqlalchemy/orm/dependency.py", line 166, in per_state_flush_actions else attributes.PASSIVE_NO_INITIALIZE) TypeError: get_all_pending() takes 3 positional arguments but 4 were given </code></pre></div> <p dir="auto">I think it's related to commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/sqlalchemy/sqlalchemy/commit/69dbcdd0ebf8de81643c038276fcc822a7b0bd0b/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/commit/69dbcdd0ebf8de81643c038276fcc822a7b0bd0b"><tt>69dbcdd</tt></a> which in turn is related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384630589" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3060" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3060/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3060">#3060</a> as far as I understand.</p> <p dir="auto">Best regards<br> Tobias</p>
1
<p dir="auto">E.g.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[ 94%] Built target opencv_videoio [100%] Built target opencv_highgui Linking CXX executable ../../bin/opengl-example-opengl_interop ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::cancel_group_execution()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::interface5::internal::task_base::destroy(tbb::task&amp;)' ../../lib/libopencv_core.so.3.0.0: undefined reference to `tbb::task_scheduler_init::initialize(int)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task::note_affinity(unsigned short)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::handle_perror(int, char const*)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::NFS_Allocate(unsigned long, unsigned long, void*)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::NFS_Free(void*)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long) const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::throw_exception_v4(tbb::internal::exception_id)' ../../lib/libopencv_core.so.3.0.0: undefined reference to `tbb::task_scheduler_init::terminate()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `typeinfo for tbb::task' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::reset()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `vtable for tbb::task' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&amp;) const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::init()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_additional_child_of_proxy::allocate(unsigned long) const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_scheduler_init::default_num_threads()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()' ../../lib/libopencv_core.so.3.0.0: undefined reference to `tbb::task_scheduler_init::initialize(int, unsigned long)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::~task_group_context()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long) const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long) const' collect2: error: ld returned 1 exit status make[3]: *** [bin/opengl-example-opengl_interop] Error 1 make[2]: *** [samples/opengl/CMakeFiles/example_opengl_opengl_interop.dir/all] Error 2 make[1]: *** [samples/opengl/CMakeFiles/example_opengl_opengl_interop.dir/rule] Error 2 make: *** [example_opengl_opengl_interop] Error 2"><pre class="notranslate"><code class="notranslate">[ 94%] Built target opencv_videoio [100%] Built target opencv_highgui Linking CXX executable ../../bin/opengl-example-opengl_interop ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::cancel_group_execution()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::interface5::internal::task_base::destroy(tbb::task&amp;)' ../../lib/libopencv_core.so.3.0.0: undefined reference to `tbb::task_scheduler_init::initialize(int)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task::note_affinity(unsigned short)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::handle_perror(int, char const*)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::NFS_Allocate(unsigned long, unsigned long, void*)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::NFS_Free(void*)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::is_group_execution_cancelled() const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_continuation_proxy::allocate(unsigned long) const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::throw_exception_v4(tbb::internal::exception_id)' ../../lib/libopencv_core.so.3.0.0: undefined reference to `tbb::task_scheduler_init::terminate()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `typeinfo for tbb::task' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::reset()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `vtable for tbb::task' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::free(tbb::task&amp;) const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::init()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_additional_child_of_proxy::allocate(unsigned long) const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_scheduler_init::default_num_threads()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::get_initial_auto_partitioner_divisor()' ../../lib/libopencv_core.so.3.0.0: undefined reference to `tbb::task_scheduler_init::initialize(int, unsigned long)' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::task_group_context::~task_group_context()' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_child_proxy::allocate(unsigned long) const' ../../lib/libopencv_imgproc.so.3.0.0: undefined reference to `tbb::internal::allocate_root_with_context_proxy::allocate(unsigned long) const' collect2: error: ld returned 1 exit status make[3]: *** [bin/opengl-example-opengl_interop] Error 1 make[2]: *** [samples/opengl/CMakeFiles/example_opengl_opengl_interop.dir/all] Error 2 make[1]: *** [samples/opengl/CMakeFiles/example_opengl_opengl_interop.dir/rule] Error 2 make: *** [example_opengl_opengl_interop] Error 2 </code></pre></div>
<h5 dir="auto">System information (version)</h5> <ul dir="auto"> <li>OpenCV =&gt; 3.3</li> <li>Operating System / Platform =&gt; Windows 10 64 Bit</li> <li>Compiler =&gt; Visual Studio 2015</li> </ul> <h5 dir="auto">Detailed description</h5> <h5 dir="auto">Steps to reproduce</h5> <p dir="auto">Duplicate of <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="283912246" data-permission-text="Title is private" data-url="https://github.com/opencv/opencv/issues/10377" data-hovercard-type="issue" data-hovercard-url="/opencv/opencv/issues/10377/hovercard" href="https://github.com/opencv/opencv/issues/10377">#10377</a></p>
0
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">template module</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0 config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">N/A</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">N/A</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Cannot apply a <code class="notranslate">to_nice_yaml</code> filter to a list of ip address. Note that this same playbook works well on ansible 2.2.0.0</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">template.j2</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="subnets: {{ subnets | to_nice_yaml }}"><pre class="notranslate"><code class="notranslate">subnets: {{ subnets | to_nice_yaml }} </code></pre></div> <p dir="auto">test.yaml</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="--- - hosts: localhost connection: local vars: subnets: &quot;{{ [(ansible_default_ipv4.network + '/' + ansible_default_ipv4.netmask) | ipaddr] }}&quot; tasks: - name: Create config template: src: template.j2 dest: ./config"><pre class="notranslate"><code class="notranslate">--- - hosts: localhost connection: local vars: subnets: "{{ [(ansible_default_ipv4.network + '/' + ansible_default_ipv4.netmask) | ipaddr] }}" tasks: - name: Create config template: src: template.j2 dest: ./config </code></pre></div> <h1 dir="auto">ansible-playbook test.yaml</h1> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [Create config] *********************************************************** changed: [localhost] =&gt; {&quot;changed&quot;: true, &quot;checksum&quot;: &quot;50a3b2ac0572ebc8e4fe03a7f40bfabcd222d63c&quot;, &quot;dest&quot;: &quot;./config&quot;, &quot;gid&quot;: 20, &quot;group&quot;: &quot;staff&quot;, &quot;md5sum&quot;: &quot;d89ea9ad98dadabf94e53226657c21f8&quot;, &quot;mode&quot;: &quot;0644&quot;, &quot;owner&quot;: &quot;albertom&quot;, &quot;size&quot;: 28, &quot;src&quot;: &quot;/Users/albertom/.ansible/tmp/ansible-tmp-1484951820.46-246530977738450/source&quot;, &quot;state&quot;: &quot;file&quot;, &quot;uid&quot;: 502}"><pre class="notranslate"><code class="notranslate">TASK [Create config] *********************************************************** changed: [localhost] =&gt; {"changed": true, "checksum": "50a3b2ac0572ebc8e4fe03a7f40bfabcd222d63c", "dest": "./config", "gid": 20, "group": "staff", "md5sum": "d89ea9ad98dadabf94e53226657c21f8", "mode": "0644", "owner": "albertom", "size": 28, "src": "/Users/albertom/.ansible/tmp/ansible-tmp-1484951820.46-246530977738450/source", "state": "file", "uid": 502} </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TASK [Create config] *********************************************************** fatal: [localhost]: FAILED! =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;msg&quot;: &quot;RepresenterError: cannot represent an object: 192.168.1.20/24&quot;} to retry, use: --limit @/Users/albertom/github/template/test.retry"><pre class="notranslate"><code class="notranslate">TASK [Create config] *********************************************************** fatal: [localhost]: FAILED! =&gt; {"changed": false, "failed": true, "msg": "RepresenterError: cannot represent an object: 192.168.1.20/24"} to retry, use: --limit @/Users/albertom/github/template/test.retry </code></pre></div>
<h3 dir="auto">Issue Type:</h3> <p dir="auto">Bug Report</p> <h3 dir="auto">Ansible Version:</h3> <p dir="auto">ansible 1.8.2</p> <h3 dir="auto">Environment:</h3> <ul dir="auto"> <li>OS X 10.10.2</li> <li>VMWare Fusion Professional 7.1.1</li> <li>Vagrant 1.7.2</li> <li>vagrant-vmware-fusion (3.2.3)</li> </ul> <h3 dir="auto">Summary:</h3> <p dir="auto">When running a template-task on a vagrant shared folder, the playbook-run is stopped with the error</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed: [default] =&gt; {&quot;failed&quot;: true, &quot;parsed&quot;: false} SUDO-SUCCESS-fkqfzpqnukvypcybwjzcuueirjhhaorz Traceback (most recent call last): File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy&quot;, line 1824, in &lt;module&gt; main() File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy&quot;, line 238, in main module.atomic_move(src, dest) File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy&quot;, line 1624, in atomic_move os.chown(dest, os.getuid(), os.getgid()) OSError: [Errno 1] Operation not permitted: '/vagrant/test.conf' Exception OSError: (2, 'No such file or directory', '/vagrant/.ansible_tmpPHJWkgtest.conf') in &lt;bound method _TemporaryFileWrapper.__del__ of &lt;closed file '&lt;fdopen&gt;', mode 'w+b' at 0x7fc206235270&gt;&gt; ignored"><pre class="notranslate"><code class="notranslate">failed: [default] =&gt; {"failed": true, "parsed": false} SUDO-SUCCESS-fkqfzpqnukvypcybwjzcuueirjhhaorz Traceback (most recent call last): File "/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy", line 1824, in &lt;module&gt; main() File "/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy", line 238, in main module.atomic_move(src, dest) File "/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy", line 1624, in atomic_move os.chown(dest, os.getuid(), os.getgid()) OSError: [Errno 1] Operation not permitted: '/vagrant/test.conf' Exception OSError: (2, 'No such file or directory', '/vagrant/.ansible_tmpPHJWkgtest.conf') in &lt;bound method _TemporaryFileWrapper.__del__ of &lt;closed file '&lt;fdopen&gt;', mode 'w+b' at 0x7fc206235270&gt;&gt; ignored </code></pre></div> <p dir="auto">The file is generated and on subsequent runs (also when changing it) no error occurs. I created a sample repository that showcases the error by erasing the file after creating it, so every <code class="notranslate">vagrant provision</code> run leads to the error.</p> <h3 dir="auto">Steps To Reproduce:</h3> <ol dir="auto"> <li>Clone my sample repo <a href="https://github.com/timbuchwaldt/vagrant-ansible-bug">https://github.com/timbuchwaldt/vagrant-ansible-bug</a></li> <li>Run <code class="notranslate">vagrant up</code></li> </ol> <h3 dir="auto">Expected Results:</h3> <p dir="auto">The file is created without an error</p> <h3 dir="auto">Actual Results:</h3> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="failed: [default] =&gt; {&quot;failed&quot;: true, &quot;parsed&quot;: false} SUDO-SUCCESS-fkqfzpqnukvypcybwjzcuueirjhhaorz Traceback (most recent call last): File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy&quot;, line 1824, in &lt;module&gt; main() File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy&quot;, line 238, in main module.atomic_move(src, dest) File &quot;/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy&quot;, line 1624, in atomic_move os.chown(dest, os.getuid(), os.getgid()) OSError: [Errno 1] Operation not permitted: '/vagrant/test.conf' Exception OSError: (2, 'No such file or directory', '/vagrant/.ansible_tmpPHJWkgtest.conf') in &lt;bound method _TemporaryFileWrapper.__del__ of &lt;closed file '&lt;fdopen&gt;', mode 'w+b' at 0x7fc206235270&gt;&gt; ignored"><pre class="notranslate"><code class="notranslate">failed: [default] =&gt; {"failed": true, "parsed": false} SUDO-SUCCESS-fkqfzpqnukvypcybwjzcuueirjhhaorz Traceback (most recent call last): File "/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy", line 1824, in &lt;module&gt; main() File "/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy", line 238, in main module.atomic_move(src, dest) File "/home/vagrant/.ansible/tmp/ansible-tmp-1424374956.05-84759286783521/copy", line 1624, in atomic_move os.chown(dest, os.getuid(), os.getgid()) OSError: [Errno 1] Operation not permitted: '/vagrant/test.conf' Exception OSError: (2, 'No such file or directory', '/vagrant/.ansible_tmpPHJWkgtest.conf') in &lt;bound method _TemporaryFileWrapper.__del__ of &lt;closed file '&lt;fdopen&gt;', mode 'w+b' at 0x7fc206235270&gt;&gt; ignored </code></pre></div>
0
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>no</td> </tr> <tr> <td>Feature request?</td> <td>yes</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>yes</td> </tr> <tr> <td>Symfony version</td> <td>4.1+</td> </tr> </tbody> </table> <p dir="auto">The Validator component comes with some constraints that require optional third-party libraries (for example, the <code class="notranslate">EmailValidator</code> constraint can optionally be used with the <code class="notranslate">egulias/email-validator</code> library). Right now, these requirements are evaluated at runtime when the validator is executed. If you do not have tests covering the validators, you may only notice at runtime that you needed to set up something when your application breaks with an exception.</p> <p dir="auto">To improve DX here I suggest to move these checks from the validators to the actual constraint classes to allow to catch mistakes earlier. However, we cannot do that in 4.1 as this would break applications where constraint metadata is loaded for classes that are never used (for example, when you depend on some third-party bundle that defines those constraints while you do not use all of their classes).</p> <p dir="auto">As an upgrade path I suggest to duplicate the checks in 4.1 from the validator classes to the constraint, but not throw exceptions there but trigger deprecations instead. So at least we can then finally make this move in 5.0.</p>
<table role="table"> <thead> <tr> <th>Q</th> <th>A</th> </tr> </thead> <tbody> <tr> <td>Bug report?</td> <td>Maybe</td> </tr> <tr> <td>Feature request?</td> <td>no</td> </tr> <tr> <td>BC Break report?</td> <td>no</td> </tr> <tr> <td>RFC?</td> <td>no</td> </tr> <tr> <td>Symfony version</td> <td>3.4.x</td> </tr> </tbody> </table> <p dir="auto">Hello,</p> <p dir="auto">I have run a composer update to my project runnning PHP 5.6</p> <p dir="auto">These are the packages that have been updated:</p> <table role="table"> <thead> <tr> <th>Package</th> <th>Old Version</th> <th>New Version</th> </tr> </thead> <tbody> <tr> <td>league/csv</td> <td>8.2.2</td> <td>8.2.3</td> </tr> <tr> <td>php-amqplib/php-amqplib</td> <td>v2.7.0</td> <td>v2.7.2</td> </tr> <tr> <td>symfony/polyfill-mbstring</td> <td>v1.6.0</td> <td>v1.7.0</td> </tr> <tr> <td>symfony/polyfill-php70</td> <td>v1.6.0</td> <td>v1.7.0</td> </tr> <tr> <td>symfony/polyfill-util</td> <td>v1.6.0</td> <td>v1.7.0</td> </tr> <tr> <td>symfony/polyfill-php56</td> <td>v1.6.0</td> <td>v1.7.0</td> </tr> <tr> <td>symfony/symfony</td> <td>v3.4.3</td> <td>v3.4.4</td> </tr> <tr> <td>symfony/polyfill-intl-icu</td> <td>v1.6.0</td> <td>v1.7.0</td> </tr> <tr> <td>symfony/polyfill-apcu</td> <td>v1.6.0</td> <td>v1.7.0</td> </tr> <tr> <td>sensio/framework-extra-bundle</td> <td>v5.1.4</td> <td>v5.1.5</td> </tr> <tr> <td>symfony/phpunit-bridge</td> <td>v3.4.3</td> <td>v3.4.4</td> </tr> <tr> <td>webmozart/assert</td> <td>1.2.0</td> <td>1.3.0</td> </tr> <tr> <td>phpspec/prophecy</td> <td>1.7.3</td> <td>1.7.4</td> </tr> </tbody> </table> <p dir="auto">One of these packages seems to have increased the memory usage of my tests. Most of them are symfony packages so I thought I might ask here first.</p> <p dir="auto"><code class="notranslate">PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 32 bytes) in symfony/var/cache/test/ContainerHnbtgen/appTestDebugProjectContainer.php on line 9372</code></p> <p dir="auto">My tests used to get around 400 MB</p>
0
<p dir="auto">Based on the discussion <a href="https://discourse.julialang.org/t/getting-union-tuple-covariance-for-maps-between-parallel-type-hierarchies/70060/6" rel="nofollow">https://discourse.julialang.org/t/getting-union-tuple-covariance-for-maps-between-parallel-type-hierarchies/70060/6</a></p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="abstract type Continuous end abstract type Count end Scitype(::Type{&lt;:Integer}) = Count Scitype(::Type{&lt;:AbstractFloat}) = Continuous Scitype(::Type{Union{A,B}}) where {A&lt;:Integer,B} = Union{Count,Scitype(B)} # Scitype(::Type{Union{A,B}}) where {A,B&lt;:AbstractFloat} = Union{Scitype(A),Continuous} println(Scitype(Union{Int,Float64}))"><pre class="notranslate"><code class="notranslate">abstract type Continuous end abstract type Count end Scitype(::Type{&lt;:Integer}) = Count Scitype(::Type{&lt;:AbstractFloat}) = Continuous Scitype(::Type{Union{A,B}}) where {A&lt;:Integer,B} = Union{Count,Scitype(B)} # Scitype(::Type{Union{A,B}}) where {A,B&lt;:AbstractFloat} = Union{Scitype(A),Continuous} println(Scitype(Union{Int,Float64})) </code></pre></div> <p dir="auto">fails with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: LoadError: StackOverflowError:"><pre class="notranslate"><code class="notranslate">ERROR: LoadError: StackOverflowError: </code></pre></div> <p dir="auto">whereas</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="abstract type Continuous end abstract type Count end Scitype(::Type{&lt;:Integer}) = Count Scitype(::Type{&lt;:AbstractFloat}) = Continuous # Scitype(::Type{Union{A,B}}) where {A&lt;:Integer,B} = Union{Count,Scitype(B)} Scitype(::Type{Union{A,B}}) where {A,B&lt;:AbstractFloat} = Union{Scitype(A),Continuous} println(Scitype(Union{Int,Float64}))"><pre class="notranslate"><code class="notranslate">abstract type Continuous end abstract type Count end Scitype(::Type{&lt;:Integer}) = Count Scitype(::Type{&lt;:AbstractFloat}) = Continuous # Scitype(::Type{Union{A,B}}) where {A&lt;:Integer,B} = Union{Count,Scitype(B)} Scitype(::Type{Union{A,B}}) where {A,B&lt;:AbstractFloat} = Union{Scitype(A),Continuous} println(Scitype(Union{Int,Float64})) </code></pre></div> <p dir="auto">succeeds with</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Union{Continuous, Count}"><pre class="notranslate"><code class="notranslate">Union{Continuous, Count} </code></pre></div> <p dir="auto">This looks illogical. Tested on 1.6.3</p>
<p dir="auto">in a fresh Mac v1.6.2 session:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; function f1(x::Union{AbstractArray{T}, AbstractArray{Union{T, Missing}}}, y::Union{AbstractArray{T}, AbstractArray{Union{T, Missing}}}; α::T = T(3.0) ) where {T&lt;:Real} println(typeof(x), &quot; &quot;, typeof(y)) end; julia&gt; f1([1.0, missing], [2.0, missing]) ERROR: MethodError: no method matching Union{Missing, Float64}(::Float64) Stacktrace: [1] f1(x::Vector{Union{Missing, Float64}}, y::Vector{Union{Missing, Float64}}) @ Main ./REPL[1]:4 [2] top-level scope @ REPL[2]:1 julia&gt; function f2(x::Union{AbstractArray{T}, AbstractArray{&lt;:Union{T, Missing}}}, y::Union{AbstractArray{T}, AbstractArray{&lt;:Union{T, Missing}}}; α::T = T(3.0) ) where {T&lt;:Real} println(typeof(x), &quot; &quot;, typeof(y)) end; julia&gt; f2([1.0, missing], [2.0, missing]) Vector{Union{Missing, Float64}} Vector{Union{Missing, Float64}}"><pre class="notranslate"><code class="notranslate">julia&gt; function f1(x::Union{AbstractArray{T}, AbstractArray{Union{T, Missing}}}, y::Union{AbstractArray{T}, AbstractArray{Union{T, Missing}}}; α::T = T(3.0) ) where {T&lt;:Real} println(typeof(x), " ", typeof(y)) end; julia&gt; f1([1.0, missing], [2.0, missing]) ERROR: MethodError: no method matching Union{Missing, Float64}(::Float64) Stacktrace: [1] f1(x::Vector{Union{Missing, Float64}}, y::Vector{Union{Missing, Float64}}) @ Main ./REPL[1]:4 [2] top-level scope @ REPL[2]:1 julia&gt; function f2(x::Union{AbstractArray{T}, AbstractArray{&lt;:Union{T, Missing}}}, y::Union{AbstractArray{T}, AbstractArray{&lt;:Union{T, Missing}}}; α::T = T(3.0) ) where {T&lt;:Real} println(typeof(x), " ", typeof(y)) end; julia&gt; f2([1.0, missing], [2.0, missing]) Vector{Union{Missing, Float64}} Vector{Union{Missing, Float64}} </code></pre></div> <p dir="auto">error seems coming from mistaking <code class="notranslate">Union{Missing, Float64}</code> as <code class="notranslate">T</code>, which should be <code class="notranslate">Float64</code>, in the default keyword argument assignment.</p> <p dir="auto">noted that if I supply the keyboard argument such that <strong>the default value assignment is not called</strong>, no error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="julia&gt; f1([1.0, missing], [2.0, missing]; α = 2.2) Vector{Union{Missing, Float64}} Vector{Union{Missing, Float64}}"><pre class="notranslate"><code class="notranslate">julia&gt; f1([1.0, missing], [2.0, missing]; α = 2.2) Vector{Union{Missing, Float64}} Vector{Union{Missing, Float64}} </code></pre></div> <p dir="auto">it seems to be <strong>a bug in extracting</strong> the <code class="notranslate">T</code> (when <code class="notranslate">Union</code> is involved?).</p> <p dir="auto">the original discussion is from <a href="https://discourse.julialang.org/t/union-causes-incorrect-type-parameter-extraction/65953" rel="nofollow">here</a>. Thanks.</p>
1
<p dir="auto">Add new "local" snapshot repository type that would be similar to shared filesystem repository but will allow storing all snapshot file on a local file system of a single node.</p>
<p dir="auto"><strong>Elasticsearch version</strong>: v5.0.0-alpha5</p> <p dir="auto"><strong>Plugins installed</strong>: x-pack</p> <p dir="auto"><strong>JVM version</strong>: jdk1.8.0_92</p> <p dir="auto"><strong>OS version</strong>: Mac 10.11.5</p> <p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br> When using an ingest pipeline with a rename processor that tries to rename the element to a nested one where the parent object name is the same as the current object, it fails.</p> <p dir="auto"><strong>Steps to reproduce</strong>:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="POST _ingest/pipeline/_simulate { &quot;pipeline&quot;: { &quot;processors&quot;: [ { &quot;rename&quot;: { &quot;field&quot;: &quot;version&quot;, &quot;target_field&quot;: &quot;version.displayName&quot; } } ] }, &quot;docs&quot;: [ { &quot;_index&quot;: &quot;myindex&quot;, &quot;_type&quot;: &quot;doc&quot;, &quot;_id&quot;: &quot;1&quot;, &quot;_source&quot;: { &quot;version&quot;: &quot;1.1.0&quot; } } ] }"><pre class="notranslate"><code class="notranslate">POST _ingest/pipeline/_simulate { "pipeline": { "processors": [ { "rename": { "field": "version", "target_field": "version.displayName" } } ] }, "docs": [ { "_index": "myindex", "_type": "doc", "_id": "1", "_source": { "version": "1.1.0" } } ] } </code></pre></div> <p dir="auto">Results in the following error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{ &quot;docs&quot;: [ { &quot;error&quot;: { &quot;root_cause&quot;: [ { &quot;type&quot;: &quot;exception&quot;, &quot;reason&quot;: &quot;java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: cannot set [displayName] with parent object of type [java.lang.String] as part of path [version.displayName]&quot;, &quot;header&quot;: { &quot;processor_type&quot;: &quot;rename&quot; } } ], &quot;type&quot;: &quot;exception&quot;, &quot;reason&quot;: &quot;java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: cannot set [displayName] with parent object of type [java.lang.String] as part of path [version.displayName]&quot;, &quot;caused_by&quot;: { &quot;type&quot;: &quot;illegal_argument_exception&quot;, &quot;reason&quot;: &quot;java.lang.IllegalArgumentException: cannot set [displayName] with parent object of type [java.lang.String] as part of path [version.displayName]&quot;, &quot;caused_by&quot;: { &quot;type&quot;: &quot;illegal_argument_exception&quot;, &quot;reason&quot;: &quot;cannot set [displayName] with parent object of type [java.lang.String] as part of path [version.displayName]&quot; } }, &quot;header&quot;: { &quot;processor_type&quot;: &quot;rename&quot; } } } ] }"><pre class="notranslate"><code class="notranslate">{ "docs": [ { "error": { "root_cause": [ { "type": "exception", "reason": "java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: cannot set [displayName] with parent object of type [java.lang.String] as part of path [version.displayName]", "header": { "processor_type": "rename" } } ], "type": "exception", "reason": "java.lang.IllegalArgumentException: java.lang.IllegalArgumentException: cannot set [displayName] with parent object of type [java.lang.String] as part of path [version.displayName]", "caused_by": { "type": "illegal_argument_exception", "reason": "java.lang.IllegalArgumentException: cannot set [displayName] with parent object of type [java.lang.String] as part of path [version.displayName]", "caused_by": { "type": "illegal_argument_exception", "reason": "cannot set [displayName] with parent object of type [java.lang.String] as part of path [version.displayName]" } }, "header": { "processor_type": "rename" } } } ] } </code></pre></div> <p dir="auto">Desired expectation is that this would work. The workaround right now is to rename to a temporary name. So for example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="POST _ingest/pipeline/_simulate { &quot;pipeline&quot;: { &quot;processors&quot;: [ { &quot;rename&quot;: { &quot;field&quot;: &quot;version&quot;, &quot;target_field&quot;: &quot;versionTemp&quot; } }, { &quot;rename&quot;: { &quot;field&quot;: &quot;versionTemp&quot;, &quot;target_field&quot;: &quot;version.displayName&quot; } } ] }, &quot;docs&quot;: [ { &quot;_index&quot;: &quot;myindex&quot;, &quot;_type&quot;: &quot;doc&quot;, &quot;_id&quot;: &quot;1&quot;, &quot;_source&quot;: { &quot;version&quot;: &quot;1.1.0&quot; } } ] }"><pre class="notranslate"><code class="notranslate">POST _ingest/pipeline/_simulate { "pipeline": { "processors": [ { "rename": { "field": "version", "target_field": "versionTemp" } }, { "rename": { "field": "versionTemp", "target_field": "version.displayName" } } ] }, "docs": [ { "_index": "myindex", "_type": "doc", "_id": "1", "_source": { "version": "1.1.0" } } ] } </code></pre></div>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">Bug</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">The unsafe lifecycle function aliases in 16.3.2 are not merged when defined more than once because of mixins, triggering an error:</p> <blockquote> <p dir="auto">Uncaught Error: ReactClassInterface: You are attempting to define <code class="notranslate">UNSAFE_componentWillReceiveProps</code> on your component more than once. This conflict may be due to a mixin.</p> </blockquote> <p dir="auto">To reproduce: rename all cWM, cWRP, and cWU functions with their UNSAFE_ versions in a project where mixins cause those functions to be duplicated</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">That these lifecyle function continue to work as expected when called via UNSAFE aliases in 16.3, and if they are not supposed to with regard to redefining/merging, that the migration path documentation is updated to indicate so.</p>
<p dir="auto">I'm trying to run this snippet:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="class Container extends React.Component { constructor() { super(); ​ this.state = { text: '...', }; } ​ componentDidMount() { fetch(urlThatReturnsSomeText) .then(res =&gt; res.text()) .then(text =&gt; this.setState({ text })); } ​ render() { return &lt;div&gt;{this.state.text}&lt;/div&gt;; } }"><pre class="notranslate"><code class="notranslate">class Container extends React.Component { constructor() { super(); ​ this.state = { text: '...', }; } ​ componentDidMount() { fetch(urlThatReturnsSomeText) .then(res =&gt; res.text()) .then(text =&gt; this.setState({ text })); } ​ render() { return &lt;div&gt;{this.state.text}&lt;/div&gt;; } } </code></pre></div> <p dir="auto">It causes the warning. I noticed, that <code class="notranslate">setState</code> triggers <code class="notranslate">componentWillUnmount</code> hook in React 16.<br> Hooks are consoled in the next order:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="componentWillMount componentDidMount componentWillMount componentWillUnmount componentDidMount"><pre class="notranslate"><code class="notranslate">componentWillMount componentDidMount componentWillMount componentWillUnmount componentDidMount </code></pre></div> <p dir="auto">In previous version component only was mounting twice (that behavior is also a bit strange to me).<br> When it comes to only <code class="notranslate">setState</code> without any data fetching everything works fine.</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.7.7-SNAPSHOT</li> <li>Operating System version: mac</li> <li>Java version: 1.8.0_65</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>PojoUtilsTest 下的test_PrimitiveArray新增如下测试用例</li> <li></li> </ol> <p dir="auto">assertObject(new int[][]{{37, -39, 12456}});<br> assertObject(new Integer[][][]{{{37, -39, 12456}}});<br> assertArrayObject(new Integer[]{37, -39, 12456});<br> 3. xxx</p> <p dir="auto">Pls. provide [GitHub address] to reproduce this issue.</p> <h3 dir="auto">Expected Result</h3> <p dir="auto">通过测试用例</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">What actually happens?</p> <p dir="auto">org.opentest4j.AssertionFailedError: expected: [[I@b3d7190&lt;[[37, -39, 12456]]&gt; but was: [[I@10d59286&lt;[[37, -39, 12456]]&gt;</p> <p dir="auto">生成一个新的对象了。</p>
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/apache/incubator-dubbo/issues">issues</a> of this repository and believe that this is not a duplicate.</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have checked the <a href="https://github.com/apache/incubator-dubbo/blob/master/FAQ.md">FAQ</a> of this repository and believe that this is not a duplicate.</li> </ul> <h3 dir="auto">Environment</h3> <ul dir="auto"> <li>Dubbo version: 2.6.2</li> <li>Operating System version: win7</li> <li>Java version: 1.8</li> </ul> <h3 dir="auto">Steps to reproduce this issue</h3> <ol dir="auto"> <li>启动两个服务提供者</li> <li>对其中一个服务提供者设置断点使其不响应客户端</li> <li>启动服务消费者消费服务</li> </ol> <h4 dir="auto">服务消费者代码</h4> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="@Reference(loadbalance = &quot;random&quot;, cluster = &quot;failfast&quot;, retries = 2) private DemoService failFastService; @Test public void testFail() { String str = failFastService.sayHello(&quot;freeseawind&quot;); System.out.println(str); }"><pre class="notranslate"><code class="notranslate">@Reference(loadbalance = "random", cluster = "failfast", retries = 2) private DemoService failFastService; @Test public void testFail() { String str = failFastService.sayHello("freeseawind"); System.out.println(str); } </code></pre></div> <h5 dir="auto">服务提供者示例截图</h5> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19760912/45597745-2f895e00-ba03-11e8-8b06-35bfb99570c7.png"><img src="https://user-images.githubusercontent.com/19760912/45597745-2f895e00-ba03-11e8-8b06-35bfb99570c7.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto">问题重现工程地址:<a href="https://github.com/freeseawind/copycat-dubbo">https://github.com/freeseawind/copycat-dubbo</a></p> <h3 dir="auto">Expected Result</h3> <p dir="auto">调用失败后立即结束</p> <h3 dir="auto">Actual Result</h3> <p dir="auto">随机重试了服务消费者,日志显示的是FailOver调用失败而不是Failfast</p> <p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/19760912/45597823-05846b80-ba04-11e8-97ce-8bb5ef4fac2e.png"><img src="https://user-images.githubusercontent.com/19760912/45597823-05846b80-ba04-11e8-97ce-8bb5ef4fac2e.png" alt="image" style="max-width: 100%;"></a></p> <p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/carryxyh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/carryxyh">@carryxyh</a></p>
0
<p dir="auto">It looks like webpack try to bundle all of server side dependencies, so it can't find module <code class="notranslate">fs</code>.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues?q=is%3Aissue">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto"><code class="notranslate">dotenv</code> in <code class="notranslate">_document</code> works with Next.js v6.</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">After upgrading from v5 to v6, it throws error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="This dependency was not found: * fs in ./node_modules/dotenv/lib/main.js To install it, you can run: npm install --save fs (node:6389) DeprecationWarning: Module.chunks: Use Module.forEachChunk/mapChunks/getNumberOfChunks/isInChunk/addChunk/removeChunk instead Client on: http://localhost:3000/projects"><pre class="notranslate"><code class="notranslate">This dependency was not found: * fs in ./node_modules/dotenv/lib/main.js To install it, you can run: npm install --save fs (node:6389) DeprecationWarning: Module.chunks: Use Module.forEachChunk/mapChunks/getNumberOfChunks/isInChunk/addChunk/removeChunk instead Client on: http://localhost:3000/projects </code></pre></div> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>use <code class="notranslate">dotenv</code> in <code class="notranslate">_doucment</code></li> <li>upgrade to Next.js v6</li> </ol> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>v6.6.0</td> </tr> <tr> <td>node</td> <td>v9.11.1</td> </tr> <tr> <td>OS</td> <td>macos 10.13.4</td> </tr> <tr> <td>browser</td> <td></td> </tr> <tr> <td>etc</td> <td></td> </tr> </tbody> </table>
<p dir="auto">I'm trying to rely on multiple &lt;style jsx global&gt; to be ordered correctly. E.g.:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;GlobalStyle /&gt; &lt;BlogStyle /&gt;"><pre class="notranslate"><span class="pl-c1">&lt;</span><span class="pl-ent">GlobalStyle</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span> <span class="pl-c1">&lt;</span><span class="pl-v">BlogStyle</span> <span class="pl-c1">/</span><span class="pl-c1">&gt;</span></pre></div> <p dir="auto">Where I'd like BlogStyle to tweak stuff like body background image and text color. But it looks like tags get ordered certain way irrespective of their order in the component (probably based on the hash?).</p> <p dir="auto">If "I'm doing it wrong", then how would you adjust body bg image, color, default text and link color for a specific page (e.g. dark zeit home page vs white blog)? Without having to duplicate all of the global styles into 2 js modules.</p> <p dir="auto">E.g. I'd be ok with adding a class to , but not sure how to do that from within the <code class="notranslate">&lt;BlogLayout /&gt;</code> component.</p>
0
<p dir="auto">I followed the build instructions given for the FreeBSD (10.0 x86_64) here- <a href="https://github.com/atom/atom/blob/master/docs/build-instructions/freebsd.md">https://github.com/atom/atom/blob/master/docs/build-instructions/freebsd.md</a></p> <p dir="auto">I compiled node and npm from sources (FreeBSD ports) but still no luck. Here is the full error log:<br> <a href="http://pastebin.com/WQx8UXWs" rel="nofollow">http://pastebin.com/WQx8UXWs</a></p>
<p dir="auto">I tried to build it following this instructions:<br> <a href="https://github.com/atom/atom/blob/8db47bd7b2226b858a255867aaa16419c652f64d/docs/build-instructions/freebsd.md">https://github.com/atom/atom/blob/8db47bd7b2226b858a255867aaa16419c652f64d/docs/build-instructions/freebsd.md</a></p> <p dir="auto">Here is the full build log:<br> <a href="http://pastebin.com/VEtB9WuY" rel="nofollow">http://pastebin.com/VEtB9WuY</a></p> <p dir="auto">TIA,</p>
1
<p dir="auto">Repeatable case: <a href="http://is.gd/kcejxG" rel="nofollow">http://is.gd/kcejxG</a></p> <p dir="auto">% uname -a<br> Darwin pair 14.1.0 Darwin Kernel Version 14.1.0: Mon Dec 22 23:10:38 PST 2014; root:xnu-2782.10.72~2/RELEASE_X86_64 x86_64</p> <p dir="auto">% rustc --version --verbose<br> rustc 1.0.0-dev (<a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/a45e117733b866302fa99390553d1c548508dcca/hovercard" href="https://github.com/rust-lang/rust/commit/a45e117733b866302fa99390553d1c548508dcca"><tt>a45e117</tt></a> 2015-01-28 11:01:36 +0000)<br> binary: rustc<br> commit-hash: <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/rust-lang/rust/commit/a45e117733b866302fa99390553d1c548508dcca/hovercard" href="https://github.com/rust-lang/rust/commit/a45e117733b866302fa99390553d1c548508dcca"><tt>a45e117</tt></a><br> commit-date: 2015-01-28 11:01:36 +0000<br> host: x86_64-apple-darwin<br> release: 1.0.0-dev</p> <p dir="auto">% RUST_BACKTRACE=1 make<br> ...<br> [ 96%] Making lib crate rs_cmset with /usr/local/bin/rustc<br> error: internal compiler error: unexpected panic<br> note: the compiler unexpectedly panicked. this is a bug.<br> note: we would appreciate a bug report: <a href="http://doc.rust-lang.org/complement-bugreport.html" rel="nofollow">http://doc.rust-lang.org/complement-bugreport.html</a><br> note: run with <code class="notranslate">RUST_BACKTRACE=1</code> for a backtrace<br> thread 'rustc' panicked at 'assertion failed: did.krate != ast::LOCAL_CRATE', /Users/swizard/distr/rust/src/librustc/middle/ty.rs:5369</p> <p dir="auto">stack backtrace:<br> 1: 0x1060db7a7 - sys::backtrace::write::ha7c2a314980a2c9fvbu<br> 2: 0x106101c5c - failure::on_fail::h6e454f5b61899a9aqbB<br> 3: 0x106063068 - rt::unwind::begin_unwind_inner::h197e2c88eee2bed0mTA<br> 4: 0x1030d9f6c - rt::unwind::begin_unwind::h15446879943960288925<br> 5: 0x10345a400 - middle::ty::lookup_trait_def::h88c5bce57aa634a31O7<br> 6: 0x10349cb77 - middle::ty::predicates_for_trait_ref::h459855321b274b287P7<br> 7: 0x103475438 - middle::traits::util::Elaborator&lt;'cx, 'tcx&gt;.Iterator::next::h670ac496f66d05c4wyT<br> 8: 0x10347b4e4 - middle::traits::util::Supertraits&lt;'cx, 'tcx&gt;.Iterator::next::ha6665f6ae93509757AT<br> 9: 0x102da1b98 - astconv::ast_ty_to_ty::closure.30847<br> 10: 0x102d39f10 - astconv::ast_ty_to_ty::h791f4e70b868f1e66jt<br> 11: 0x102d98239 - vec::Vec.FromIterator::from_iter::h17536640115762312557<br> 12: 0x102d95d5d - astconv::convert_angle_bracketed_parameters::h8a8cf081a61eaf4c7ss<br> 13: 0x102d99f92 - astconv::ast_path_to_trait_ref::h76759fc1ebf0bbe4yFs<br> 14: 0x102d467fb - astconv::instantiate_trait_ref::hce19a4879401779bfCs<br> 15: 0x102d9931a - astconv::instantiate_poly_trait_ref::h56d2fa5170cae6f6XAs<br> 16: 0x102dc9ae3 - collect::compute_bounds::h1a901096fd069158CDv<br> 17: 0x102db110b - collect::trait_def_of_item::hc3bcbaea1d0acb87U1u<br> 18: 0x102daf8ef - collect::CollectTraitDefVisitor&lt;'a, 'tcx&gt;.visit..Visitor&lt;'v&gt;::visit_item::h31c230bdcdecd31bneu<br> 19: 0x102dafb1f - collect::CollectTraitDefVisitor&lt;'a, 'tcx&gt;.visit..Visitor&lt;'v&gt;::visit_item::h31c230bdcdecd31bneu<br> 20: 0x102def55f - check_crate::closure.31984<br> 21: 0x102ded4d5 - check_crate::haecc3fe6465ec7b6ZNy<br> 22: 0x1027be8eb - driver::phase_3_run_analysis_passes::h79664d81b6b5b4e4NFa<br> 23: 0x1027a4e5c - driver::compile_input::hec1fc484fb82a3b3Bba<br> 24: 0x10286d50e - run_compiler::hc5f9e0285db79a55n9b<br> 25: 0x10286a62f - thunk::F.Invoke&lt;A, R&gt;::invoke::h4736678281155978274<br> 26: 0x1028692c0 - rt::unwind::try::try_fn::h3346791736825056138<br> 27: 0x10617aa09 - rust_try_inner<br> 28: 0x10617a9f6 - rust_try<br> 29: 0x102869984 - thunk::F.Invoke&lt;A, R&gt;::invoke::h14937575134341006880<br> 30: 0x1060ec313 - sys:<g-emoji class="g-emoji" alias="thread" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f9f5.png">🧵</g-emoji>:thread_start::hd065b218eff37dc2J3w<br> 31: 0x7fff87bec268 - _pthread_body<br> 32: 0x7fff87bec1e5 - _pthread_body</p>
<p dir="auto">It actually happens even if you take out the <code class="notranslate">type T</code> but I figured that would be too confusing of a testcase.</p> <div class="highlight highlight-source-rust notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="#![feature(associated_types)] pub trait Foo { type T; type S: Bar&lt;Self::T&gt;; } pub trait Bar&lt;T&gt; {}"><pre class="notranslate"><span class="pl-c1">#!<span class="pl-kos">[</span>feature<span class="pl-kos">(</span>associated_types<span class="pl-kos">)</span><span class="pl-kos">]</span></span> <span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">Foo</span> <span class="pl-kos">{</span> <span class="pl-k">type</span> <span class="pl-smi">T</span><span class="pl-kos">;</span> <span class="pl-k">type</span> <span class="pl-smi">S</span><span class="pl-kos">:</span> <span class="pl-smi">Bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">Self</span><span class="pl-kos">::</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span><span class="pl-kos">;</span> <span class="pl-kos">}</span> <span class="pl-k">pub</span> <span class="pl-k">trait</span> <span class="pl-smi">Bar</span><span class="pl-kos">&lt;</span><span class="pl-smi">T</span><span class="pl-kos">&gt;</span> <span class="pl-kos">{</span><span class="pl-kos">}</span></pre></div> <div class="highlight highlight-text-shell-session notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="error: internal compiler error: unexpected panic note: the compiler unexpectedly panicked. this is a bug. note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html note: run with `RUST_BACKTRACE=1` for a backtrace thread 'rustc' panicked at 'no entry found for key', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/option.rs:329 stack backtrace: 1: 0x1078c7c38 - sys::backtrace::write::h329291c3ffa2342c0Jt 2: 0x1078e8a03 - failure::on_fail::h17e4ace9633d727be0z 3: 0x107854c3a - rt::unwind::begin_unwind_inner::h190be063817ae06eFHz 4: 0x10785915d - rt::unwind::begin_unwind_fmt::hc68ebd2b3de4118e2Ez 5: 0x1078e8302 - rust_begin_unwind 6: 0x107935d0c - panicking::panic_fmt::h6d9a452b0d084e9dLkl 7: 0x1046960b9 - collections::hash::map::HashMap&lt;K,$u{20}V$C$$u{20}H$GT$.Index$LT$Q$C$$u{20}V$GT$::index::h4548773097338651390 8: 0x104756a96 - astconv::ast_ty_to_ty::unboxed_closure.36753 9: 0x104755323 - astconv::ast_ty_to_ty::h3464216238889989760 10: 0x10475497c - iter::IteratorExt::collect::h1178474147849539242 11: 0x104862cf1 - astconv::ast_path_to_trait_ref::h12290017992957141453 12: 0x1048625e6 - astconv::instantiate_poly_trait_ref::h3434886886043991751 13: 0x104862350 - vec::Vec&lt;T&gt;.FromIterator&lt;T&gt;::from_iter::h6759705047736047902 14: 0x1048c987d - collect::compute_bounds::h9074989142750734463 15: 0x104860e9b - collect::ty_generics_for_trait::ha23d00f7844cb7b4quv 16: 0x1047321ee - collect::trait_def_of_item::h2e00c54b47ce1f2cgdv 17: 0x10472ed30 - collect::CollectTraitDefVisitor&lt;$u{27}a$C$$u{20}$u{27}tcx$GT$.visit..Visitor$LT$$u{27}v$GT$::visit_item::h913166666a1bcfc7dSt 18: 0x10492237f - check_crate::unboxed_closure.43401 19: 0x10492048a - check_crate::hcab218417b8f1f7f51y 20: 0x103ff9113 - driver::phase_3_run_analysis_passes::hb0ac12e829cd00e7Jta 21: 0x103fdaffe - driver::compile_input::hdcb29128a43ec322wba 22: 0x10417aff8 - thunk::Thunk&lt;(*,$u{20}R$GT$::new::unboxed_closure.30336 23: 0x104179038 - thunk::F.Invoke&lt;A,$u{20}R$GT$::invoke::h12480167585331118411 24: 0x1041777d9 - rt::unwind::try::try_fn::h9666833473335668351 25: 0x107950669 - rust_try_inner 26: 0x107950656 - rust_try 27: 0x104177ed7 - thunk::F.Invoke&lt;A,$u{20}R$GT$::invoke::h4838524648863172491 28: 0x1078d7c24 - sys::thread::thread_start::h7394d69fbc5b85e9vFw 29: 0x7fff8115e899 - _pthread_body 30: 0x7fff8115e72a - _pthread_struct_init"><pre class="notranslate"><span class="pl-c1">error: internal compiler error: unexpected panic</span> <span class="pl-c1">note: the compiler unexpectedly panicked. this is a bug.</span> <span class="pl-c1">note: we would appreciate a bug report: http://doc.rust-lang.org/complement-bugreport.html</span> <span class="pl-c1">note: run with `RUST_BACKTRACE=1` for a backtrace</span> <span class="pl-c1">thread 'rustc' panicked at 'no entry found for key', /Users/rustbuild/src/rust-buildbot/slave/nightly-mac/build/src/libcore/option.rs:329</span> <span class="pl-c1">stack backtrace:</span> <span class="pl-c1"> 1: 0x1078c7c38 - sys::backtrace::write::h329291c3ffa2342c0Jt</span> <span class="pl-c1"> 2: 0x1078e8a03 - failure::on_fail::h17e4ace9633d727be0z</span> <span class="pl-c1"> 3: 0x107854c3a - rt::unwind::begin_unwind_inner::h190be063817ae06eFHz</span> <span class="pl-c1"> 4: 0x10785915d - rt::unwind::begin_unwind_fmt::hc68ebd2b3de4118e2Ez</span> <span class="pl-c1"> 5: 0x1078e8302 - rust_begin_unwind</span> <span class="pl-c1"> 6: 0x107935d0c - panicking::panic_fmt::h6d9a452b0d084e9dLkl</span> <span class="pl-c1"> 7: 0x1046960b9 - collections::hash::map::HashMap&lt;K,$u{20}V$C$$u{20}H$GT$.Index$LT$Q$C$$u{20}V$GT$::index::h4548773097338651390</span> <span class="pl-c1"> 8: 0x104756a96 - astconv::ast_ty_to_ty::unboxed_closure.36753</span> <span class="pl-c1"> 9: 0x104755323 - astconv::ast_ty_to_ty::h3464216238889989760</span> <span class="pl-c1"> 10: 0x10475497c - iter::IteratorExt::collect::h1178474147849539242</span> <span class="pl-c1"> 11: 0x104862cf1 - astconv::ast_path_to_trait_ref::h12290017992957141453</span> <span class="pl-c1"> 12: 0x1048625e6 - astconv::instantiate_poly_trait_ref::h3434886886043991751</span> <span class="pl-c1"> 13: 0x104862350 - vec::Vec&lt;T&gt;.FromIterator&lt;T&gt;::from_iter::h6759705047736047902</span> <span class="pl-c1"> 14: 0x1048c987d - collect::compute_bounds::h9074989142750734463</span> <span class="pl-c1"> 15: 0x104860e9b - collect::ty_generics_for_trait::ha23d00f7844cb7b4quv</span> <span class="pl-c1"> 16: 0x1047321ee - collect::trait_def_of_item::h2e00c54b47ce1f2cgdv</span> <span class="pl-c1"> 17: 0x10472ed30 - collect::CollectTraitDefVisitor&lt;$u{27}a$C$$u{20}$u{27}tcx$GT$.visit..Visitor$LT$$u{27}v$GT$::visit_item::h913166666a1bcfc7dSt</span> <span class="pl-c1"> 18: 0x10492237f - check_crate::unboxed_closure.43401</span> <span class="pl-c1"> 19: 0x10492048a - check_crate::hcab218417b8f1f7f51y</span> <span class="pl-c1"> 20: 0x103ff9113 - driver::phase_3_run_analysis_passes::hb0ac12e829cd00e7Jta</span> <span class="pl-c1"> 21: 0x103fdaffe - driver::compile_input::hdcb29128a43ec322wba</span> <span class="pl-c1"> 22: 0x10417aff8 - thunk::Thunk&lt;(*,$u{20}R$GT$::new::unboxed_closure.30336</span> <span class="pl-c1"> 23: 0x104179038 - thunk::F.Invoke&lt;A,$u{20}R$GT$::invoke::h12480167585331118411</span> <span class="pl-c1"> 24: 0x1041777d9 - rt::unwind::try::try_fn::h9666833473335668351</span> <span class="pl-c1"> 25: 0x107950669 - rust_try_inner</span> <span class="pl-c1"> 26: 0x107950656 - rust_try</span> <span class="pl-c1"> 27: 0x104177ed7 - thunk::F.Invoke&lt;A,$u{20}R$GT$::invoke::h4838524648863172491</span> <span class="pl-c1"> 28: 0x1078d7c24 - sys::thread::thread_start::h7394d69fbc5b85e9vFw</span> <span class="pl-c1"> 29: 0x7fff8115e899 - _pthread_body</span> <span class="pl-c1"> 30: 0x7fff8115e72a - _pthread_struct_init</span></pre></div>
1
<p dir="auto">Was scheduled for 110.</p>
<p dir="auto">Replaces <code class="notranslate">xrange</code> by <code class="notranslate">range</code> and replaces <code class="notranslate">range(...)</code> by <code class="notranslate">list(range(...))</code> where needed.</p>
0
<p dir="auto">I've recently updated scipy in Fedora to newest 0.13.0 release and I can see one test failure on every architecture, both in python 2 and 3:</p> <h5 dir="auto">Python 3.3.2</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: test_fitpack.TestSplder.test_kink ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python3.3/site-packages/scipy/interpolate/fitpack.py&quot;, line 1178, in splder c = (c[1:-1-k] - c[:-2-k]) * k / dt FloatingPointError: invalid value encountered in true_divide During handling of the above exception, another exception occurred: Traceback (most recent call last): File &quot;/usr/lib/python3.3/site-packages/nose/case.py&quot;, line 198, in runTest self.test(*self.arg) File &quot;/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python3.3/site-packages/scipy/interpolate/tests/test_fitpack.py&quot;, line 329, in test_kink splder(spl2, 2) # Should work File &quot;/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python3.3/site-packages/scipy/interpolate/fitpack.py&quot;, line 1186, in splder &quot;and is not differentiable %d times&quot;) % n) ValueError: The spline has internal repeated knots and is not differentiable 2 times"><pre class="notranslate"><code class="notranslate">ERROR: test_fitpack.TestSplder.test_kink ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python3.3/site-packages/scipy/interpolate/fitpack.py", line 1178, in splder c = (c[1:-1-k] - c[:-2-k]) * k / dt FloatingPointError: invalid value encountered in true_divide During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.3/site-packages/nose/case.py", line 198, in runTest self.test(*self.arg) File "/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python3.3/site-packages/scipy/interpolate/tests/test_fitpack.py", line 329, in test_kink splder(spl2, 2) # Should work File "/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python3.3/site-packages/scipy/interpolate/fitpack.py", line 1186, in splder "and is not differentiable %d times") % n) ValueError: The spline has internal repeated knots and is not differentiable 2 times </code></pre></div> <h5 dir="auto">Python 2.7.5</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ERROR: test_fitpack.TestSplder.test_kink ---------------------------------------------------------------------- Traceback (most recent call last): File &quot;/usr/lib/python2.7/site-packages/nose/case.py&quot;, line 197, in runTest self.test(*self.arg) File &quot;/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python2.7/site-packages/scipy/interpolate/tests/test_fitpack.py&quot;, line 329, in test_kink splder(spl2, 2) # Should work File &quot;/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python2.7/site-packages/scipy/interpolate/fitpack.py&quot;, line 1186, in splder &quot;and is not differentiable %d times&quot;) % n) ValueError: The spline has internal repeated knots and is not differentiable 2 times"><pre class="notranslate"><code class="notranslate">ERROR: test_fitpack.TestSplder.test_kink ---------------------------------------------------------------------- Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest self.test(*self.arg) File "/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python2.7/site-packages/scipy/interpolate/tests/test_fitpack.py", line 329, in test_kink splder(spl2, 2) # Should work File "/builddir/build/BUILDROOT/scipy-0.13.0-1.fc21.arm/usr/lib/python2.7/site-packages/scipy/interpolate/fitpack.py", line 1186, in splder "and is not differentiable %d times") % n) ValueError: The spline has internal repeated knots and is not differentiable 2 times </code></pre></div> <h4 dir="auto">Setup</h4> <p dir="auto">numpy 1.8.0<br> atlas 3.10.1<br> blas 3.4.2<br> lapack 3.4.2</p> <h4 dir="auto">Build logs:</h4> <p dir="auto"><a href="http://kojipkgs.fedoraproject.org/packages/scipy/0.13.0/1.fc21/data/logs/armv7hl/build.log" rel="nofollow">http://kojipkgs.fedoraproject.org/packages/scipy/0.13.0/1.fc21/data/logs/armv7hl/build.log</a><br> <a href="http://kojipkgs.fedoraproject.org/packages/scipy/0.13.0/1.fc21/data/logs/i686/build.log" rel="nofollow">http://kojipkgs.fedoraproject.org/packages/scipy/0.13.0/1.fc21/data/logs/i686/build.log</a><br> <a href="http://kojipkgs.fedoraproject.org/packages/scipy/0.13.0/1.fc21/data/logs/x86_64/build.log" rel="nofollow">http://kojipkgs.fedoraproject.org/packages/scipy/0.13.0/1.fc21/data/logs/x86_64/build.log</a></p>
<p dir="auto"><code class="notranslate">eigs</code>, <code class="notranslate">eigsh</code>, <code class="notranslate">svds</code> all default to using <code class="notranslate">2 * k + 1</code> for the number of lanczos vectors <code class="notranslate">ncv</code>. This is fine for <code class="notranslate">k &gt; ~5</code> or so but drastically slows the algorithm down for small <code class="notranslate">k</code> (e.g. k=2 or 1 slower than k=6!) and often means the convergence fails. The problem is worse for dense matrices (these sparse methods are actually very useful for dense matrices as well).</p> <p dir="auto">The optimum value depends on <code class="notranslate">n, k,</code>, the sparsity and other factors, but should generally should be <code class="notranslate">&gt;= 10</code>. Matlab apparently uses 20 as its minimum for equivalent functions but this might be a bit high for small sparse matrices.</p> <p dir="auto">There might be a method of choosing <code class="notranslate">ncv</code> intelligently? But setting it to at minimum <code class="notranslate">10</code> would be a quick fix.</p>
0
<h4 dir="auto">Challenge Name</h4> <h4 dir="auto">Issue Description</h4> <p dir="auto">The code editor won't let me select or even navigate down to the last two lines of code. The 3rd line from the bottom it will let me select 2/3s of the line and the 4th line up will let me select about 3/4.</p> <h4 dir="auto">Browser Information</h4> <ul dir="auto"> <li>Browser Name, Version: Google Chrome Version 55.0.2883.87 m</li> <li>Operating System: Windows 7</li> <li>Mobile, Desktop, or Tablet:</li> </ul> <h4 dir="auto">Your Code</h4> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" "><pre class="notranslate"> </pre></div> <h4 dir="auto">Screenshot</h4>
<p dir="auto">In all the exercises, we the users are forced to press the enter key before writing any code.</p> <hr> <h4 dir="auto">Update:</h4> <p dir="auto">We have locked the conversation temporarily on this thread to collaborators only, this has been resolved in staging, and will be live soon.</p> <p dir="auto">The fix can be confirmed on the beta website.</p> <p dir="auto">The workaround currently on production website is:<br> Press the <kbd>Enter</kbd> key on the challenge editor and then proceed with the challenge.</p> <p dir="auto">Apologies for the inconvenience meanwhile.</p> <p dir="auto">Reach us in the chat room if you need any assistance.</p>
1
<h4 dir="auto">Describe the bug</h4> <p dir="auto">Form uploads appear to have broken between v0.26 and v0.27. Requests that used to work without issue no longer work.</p> <p dir="auto">Here is sample code that accepts a file and attempts to upload it to Cloudinary using form data.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const upload = (file) =&gt; { const formData = new FormData(); formData.set(&quot;file&quot;, file); formData.set(&quot;upload_preset&quot;, CLOUDINARY_UPLOAD_PRESET); return axios.post( `https://api.cloudinary.com/v1_1/${CLOUDINARY_CLOUD}/upload`, formData ); };"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">upload</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">file</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">formData</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">FormData</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">formData</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">"file"</span><span class="pl-kos">,</span> <span class="pl-s1">file</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">formData</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">"upload_preset"</span><span class="pl-kos">,</span> <span class="pl-c1">CLOUDINARY_UPLOAD_PRESET</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span> <span class="pl-s">`https://api.cloudinary.com/v1_1/<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">CLOUDINARY_CLOUD</span><span class="pl-kos">}</span></span>/upload`</span><span class="pl-kos">,</span> <span class="pl-s1">formData</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">Inspecting the v0.26 request in with Chrome shows that it at least understands the content provided:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1100408/165413540-02c0e2bb-9676-448b-9a57-06c88a32a8c6.png"><img width="305" alt="image" src="https://user-images.githubusercontent.com/1100408/165413540-02c0e2bb-9676-448b-9a57-06c88a32a8c6.png" style="max-width: 100%;"></a></p> <p dir="auto">Inspecting the v0.27 request in Chrome it appears to show more raw data - as if the form data wasn't handled correctly and is corrupted.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/1100408/165413575-04b53606-bb97-4c70-95f7-8618c8ef4087.png"><img width="543" alt="image" src="https://user-images.githubusercontent.com/1100408/165413575-04b53606-bb97-4c70-95f7-8618c8ef4087.png" style="max-width: 100%;"></a></p> <p dir="auto">I've attempted to use the alternate FormData syntax for v0.27 as suggested in the documentation but I have the same issue.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const upload = (file) =&gt; { return axios.post(`https://api.cloudinary.com/v1_1/${CLOUDINARY_CLOUD}/upload`, { file: file, upload_preset: CLOUDINARY_UPLOAD_PRESET }, { headers: { &quot;Content-Type&quot;: &quot;multipart/form-data&quot; } }); };"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">upload</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">file</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">return</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">`https://api.cloudinary.com/v1_1/<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-c1">CLOUDINARY_CLOUD</span><span class="pl-kos">}</span></span>/upload`</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">file</span>: <span class="pl-s1">file</span><span class="pl-kos">,</span> <span class="pl-c1">upload_preset</span>: <span class="pl-c1">CLOUDINARY_UPLOAD_PRESET</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">headers</span>: <span class="pl-kos">{</span> <span class="pl-s">"Content-Type"</span>: <span class="pl-s">"multipart/form-data"</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> <h4 dir="auto">To Reproduce</h4> <p dir="auto">I couldn't get this running on RunKit because it's a Node environment, where my issue is in the browser using the native FormData vs the <code class="notranslate">form-data</code> npm package. However, the code below can be used (making a dummy request to <code class="notranslate">/api</code>) that would demonstrate the difference in request handing between the two affected versions.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="export const upload = (file) =&gt; { const formData = new FormData(); formData.set(&quot;file&quot;, file); formData.set(&quot;additional_parameter&quot;, &quot;additional_parameter&quot;); return axios.post(&quot;/api&quot;, formData); };"><pre class="notranslate"><span class="pl-k">export</span> <span class="pl-k">const</span> <span class="pl-en">upload</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-s1">file</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">const</span> <span class="pl-s1">formData</span> <span class="pl-c1">=</span> <span class="pl-k">new</span> <span class="pl-v">FormData</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">formData</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">"file"</span><span class="pl-kos">,</span> <span class="pl-s1">file</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-s1">formData</span><span class="pl-kos">.</span><span class="pl-en">set</span><span class="pl-kos">(</span><span class="pl-s">"additional_parameter"</span><span class="pl-kos">,</span> <span class="pl-s">"additional_parameter"</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-k">return</span> <span class="pl-s1">axios</span><span class="pl-kos">.</span><span class="pl-en">post</span><span class="pl-kos">(</span><span class="pl-s">"/api"</span><span class="pl-kos">,</span> <span class="pl-s1">formData</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">;</span></pre></div> <h4 dir="auto">Expected behavior</h4> <p dir="auto">I would have expected the request with form data that worked in v0.26 to continue to work in v0.27 without issue.</p> <h4 dir="auto">Environment</h4> <ul dir="auto"> <li>Axios Version 0.27</li> <li>Browser: Chrome</li> <li>Browser Version: 100</li> <li>Node.js Version: 18.0.0</li> <li>OS: maxOS 12.3.1</li> </ul> <h4 dir="auto">Additional context/Screenshots</h4> <p dir="auto">Add any other context about the problem here. If applicable, add screenshots to help explain.</p>
<h4 dir="auto">Summary</h4> <p dir="auto">After upgrade from <strong>0.16.2</strong> to <strong>0.17.0</strong> I got error <code class="notranslate">window is undefined</code> when running in web worker at line:</p> <p dir="auto"></p><div class="Box Box--condensed my-2"> <div class="Box-header f6"> <p class="mb-0 text-bold"> <a href="https://github.com/axios/axios/blob/2c0e3183215d9a5fbc2ee8f35f459ac0e4d9f99c/lib/adapters/xhr.js#L27">axios/lib/adapters/xhr.js</a> </p> <p class="mb-0 color-fg-muted"> Line 27 in <a data-pjax="true" class="commit-tease-sha" href="/axios/axios/commit/2c0e3183215d9a5fbc2ee8f35f459ac0e4d9f99c">2c0e318</a> </p> </div> <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data"> <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip=""> <tbody><tr class="border-0"> <td id="L27" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="27"></td> <td id="LC27" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">if</span> <span class="pl-kos">(</span><span class="pl-c1">!</span><span class="pl-smi">window</span><span class="pl-kos">.</span><span class="pl-c1">XMLHttpRequest</span> <span class="pl-c1">&amp;&amp;</span> </td> </tr> </tbody></table> </div> </div> <p></p> <p dir="auto">Changing order of conditions <code class="notranslate">typeof window !== 'undefined'</code> and <code class="notranslate">!window.XMLHttpRequest</code> fixes the error.</p> <h4 dir="auto">Context</h4> <ul dir="auto"> <li>axios version: <strong>0.17.0</strong></li> <li>Environment: <strong>web worker in Chrome</strong></li> </ul> <h4 dir="auto">Notes</h4> <p dir="auto">looking closer ar xhr.js:</p> <ul dir="auto"> <li><code class="notranslate">typeof window</code> checks could be probably replaced with <code class="notranslate">typeof XMLHttpRequest</code> and <code class="notranslate">typeof btoa</code></li> <li>There is <code class="notranslate">new XMLHttpRequest()</code> few lines prior <code class="notranslate">!window.XMLHttpRequest</code> check. I would expect, in case <code class="notranslate">!window.XMLHttpRequest</code> is true, <code class="notranslate">new XMLHttpRequest()</code> will throw error before the check and the check is never performed</li> </ul>
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 &amp; Help</h2> <p dir="auto">I am trying to fine-tune XLM on the SQuAD dataset.<br> The command is as following:<br> [CUDA_VISIBLE_DEVICES=0 python run_squad.py --model_type xlm --model_name_or_path xlm-mlm-tlm-xnli15-1024 --do_train --do_eval --train_file $SQUAD_DIR/train-v1.1.json --predict_file $SQUAD_DIR/dev-v1.1.json --per_gpu_train_batch_size 12 --learning_rate 3e-5 --num_train_epochs 100 --max_seq_length 384 --doc_stride 128 --eval_all_checkpoints --save_steps 50 --evaluate_during_training --output_dir /home/weihua/Sqad/transformers/xlm_out/ ]<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43492059/68640277-2da52700-0542-11ea-981b-c748e918e1d8.png"><img src="https://user-images.githubusercontent.com/43492059/68640277-2da52700-0542-11ea-981b-c748e918e1d8.png" alt="WeChat Image_20191112113346" style="max-width: 100%;"></a></p> <p dir="auto">All the parameters I set are in accordance with the example in the pytorch-transformers document. But Exact and F1 scores have barely increased. And the loss of each epoch also drops very slowly. Each epoch drops by about 0.01.<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/43492059/68640296-3f86ca00-0542-11ea-93b3-db1bd64539b2.png"><img src="https://user-images.githubusercontent.com/43492059/68640296-3f86ca00-0542-11ea-93b3-db1bd64539b2.png" alt="68477603-d6b10080-0268-11ea-947f-995b157da8d3" style="max-width: 100%;"></a></p> <p dir="auto">Is there a problem with my parameter settings? Or do I need to adjust some parts of the model when I use XLM?</p>
<h3 dir="auto">Feature request</h3> <p dir="auto">Similarly to the <code class="notranslate">max_new_tokens</code>, a <code class="notranslate">min_new_tokens</code> option would count only the newly generated tokens, ignoring the tokens of the input sequence (prompt) in decoder only models.</p> <h3 dir="auto">Motivation</h3> <p dir="auto">The option <code class="notranslate">min_length</code> of the <code class="notranslate">generate()</code> method might be ambiguous for decoder only models. It is not clear if decoder only models consider the length of the input (prompt) for the <code class="notranslate">min_length</code> condition or only the newly generated tokens.<br> In Encoder Decoder (seq2seq) it is clear though.</p> <h3 dir="auto">Your contribution</h3> <p dir="auto">Not that I remember. But I could test it.</p>
0
<p dir="auto">I'm working on an application with many different code paths that load textures and I've patched the WebGLRenderer to cache textures also on the GL level, so that <code class="notranslate">uploadTexture</code> and <code class="notranslate">onTextureDispose</code> use a dictionary to see if a texture has aleady been uploaded or are no longer used, which can reduce VRAM usage and does not need sweeping changes in other parts of the code.</p> <p dir="auto">Is that a useful thing for others, too? Or is there side-effects I'm missing / is it too specific to be useful within three.js?</p>
<h5 dir="auto">Description of the problem</h5> <p dir="auto">When entering VR mode, <code class="notranslate">VREffect</code> sets the pixel ratio to 1. It saves a backup of the original value as <code class="notranslate">rendererPixelRatio</code> so it can set it back to what it was when exiting VR presentation. However, with the webvr-polyfill, both the full screen event handler and <code class="notranslate">vrdisplaypresentchange</code> fire, so whichever one runs second will overwrite <code class="notranslate">rendererPixelRatio</code> with 1.</p> <p dir="auto">Since there's a lot of repeated code in the two event handlers, I propose unifying them into a single function. At the top of that function, we'll check if the value of <code class="notranslate">isPresenting</code> is the same as it was before and abort if the values match. That way, we avoid running the same code twice.</p> <h5 dir="auto">Three.js version</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> Dev</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> r76</li> </ul> <h5 dir="auto">Browser</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Chrome</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Firefox</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Internet Explorer</li> </ul> <h5 dir="auto">OS</h5> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> All of them</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Windows</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Linux</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> Android</li> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> IOS</li> </ul> <h5 dir="auto">Hardware Requirements (graphics card, VR Device, ...)</h5> <p dir="auto">webvr-polyfill and a mobile browser</p>
0
<ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Expected Behavior</h2> <p dir="auto">Page should render</p> <h2 dir="auto">Current Behavior</h2> <p dir="auto">Page is not rendering. Instead giving error that <code class="notranslate"> The default export is not a React Component in page: "/"</code></p> <h2 dir="auto">Steps to Reproduce (for bugs)</h2> <ol dir="auto"> <li>Update to Next 5 using command from blog: <code class="notranslate">npm i next@latest react@latest react-dom@latest</code></li> </ol> <p dir="auto">I reduced my page to this, and still got error:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="export class MyComp extends React.Component { render() { return ( &lt;div&gt; Hello World &lt;/div&gt; ) } } export default MyComp;"><pre class="notranslate"><code class="notranslate">export class MyComp extends React.Component { render() { return ( &lt;div&gt; Hello World &lt;/div&gt; ) } } export default MyComp; </code></pre></div> <h2 dir="auto">Context</h2> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>5.0.0</td> </tr> <tr> <td>node</td> <td>9.4.0</td> </tr> <tr> <td>OS</td> <td>Mac</td> </tr> <tr> <td>browser</td> <td>All</td> </tr> <tr> <td>react</td> <td>16.2.0</td> </tr> <tr> <td>react-dom</td> <td>16.2.0</td> </tr> </tbody> </table>
<p dir="auto">There are many tags in the HTML which NextJS generates which contain absolute URLs. For example:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="href=&quot;/_next/blah&quot;"><pre class="notranslate"><code class="notranslate">href="/_next/blah" </code></pre></div> <p dir="auto">I've added selenium + chrome headless testing to my Next project, and it works fine when I test <a href="http://localhost:3000" rel="nofollow">http://localhost:3000</a>, but when I do a <code class="notranslate">next export</code>, and then try to to test <code class="notranslate">file:///home/user/project_dir/out/index.html</code>, all of those absolute links are broken.I.e, it tries to fetch <code class="notranslate">file:///_next/blah</code> instead of: <code class="notranslate">file:///home/user/project_dir/out/_next/blah</code>.</p> <p dir="auto">If I post-edit the generated HTML to make those links relative, then it all works fine.</p> <p dir="auto">I need to be able to run my tests against the static files which are generated by export to ensure that they have been generated correctly before publishing.</p> <p dir="auto">I suspect this is also an issue when people simply wish to run their nextjs application from a location other than the root of their website.</p> <ul class="contains-task-list"> <li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the <a href="https://github.com/zeit/next.js/issues">issues</a> of this repository and believe that this is not a duplicate.</li> </ul> <h2 dir="auto">Your Environment</h2> <table role="table"> <thead> <tr> <th>Tech</th> <th>Version</th> </tr> </thead> <tbody> <tr> <td>next</td> <td>v3.0.1-beta.15</td> </tr> <tr> <td>node</td> <td>v8.1.3</td> </tr> <tr> <td>OS</td> <td>Debian 9</td> </tr> <tr> <td>browser</td> <td>Google Chrome 59.0.3071.115</td> </tr> </tbody> </table>
0
<p dir="auto"><strong>Migrated issue, originally created by Anonymous</strong></p> <p dir="auto">SQLAlchemy 0.3.0</p> <p dir="auto">Oracle 10g</p> <p dir="auto">cx_Oracle 4.2</p> <p dir="auto">Red Hat Enterprise Linux WS release 3 (Taroon Update 7)</p> <p dir="auto">If you have autoloaded tables Spam and Egg related by Spam has-many Egg like so:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="engine = create_engine(...) meta = BoundMetaData(engine) tspam = Table(&quot;spam&quot;, meta, autoload = True) tegg = Table(&quot;egg&quot;, meta, autoload = True) class Egg(object): pass mapper(Egg, tegg) class Spam(object): pass mapper(Spam, tspam, properties=dict(eggs=relation(Egg,lazy=False)))"><pre class="notranslate"><code class="notranslate">engine = create_engine(...) meta = BoundMetaData(engine) tspam = Table("spam", meta, autoload = True) tegg = Table("egg", meta, autoload = True) class Egg(object): pass mapper(Egg, tegg) class Spam(object): pass mapper(Spam, tspam, properties=dict(eggs=relation(Egg,lazy=False))) </code></pre></div> <p dir="auto">then the unconstrained select</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="session.query(Spam).select()"><pre class="notranslate"><code class="notranslate">session.query(Spam).select() </code></pre></div> <p dir="auto">works properly but</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="session.query(Spam).select_by(col=value)"><pre class="notranslate"><code class="notranslate">session.query(Spam).select_by(col=value) </code></pre></div> <p dir="auto">fails, where "col" is the name of a column present in Egg but not in Spam. The second query returns Egg objects with all values of "col". The only difference in result from the first query is that Spam objects lacking any associated Eggs are omitted.</p> <p dir="auto">The unconstrained query produces SQL like this:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SELECT egg_74ee.spam_id AS egg_74ee_spam_id, egg_74ee.version AS egg_74ee_version, egg_74ee.id AS egg_74ee_id, egg_74ee.name AS egg_74ee_name, spam.id AS spam_id, spam.name AS spam_name FROM spam LEFT OUTER JOIN egg egg_74ee ON spam.id = egg_74ee.spam_id ORDER BY spam.rowid, egg_74ee.rowid"><pre class="notranslate"><code class="notranslate">SELECT egg_74ee.spam_id AS egg_74ee_spam_id, egg_74ee.version AS egg_74ee_version, egg_74ee.id AS egg_74ee_id, egg_74ee.name AS egg_74ee_name, spam.id AS spam_id, spam.name AS spam_name FROM spam LEFT OUTER JOIN egg egg_74ee ON spam.id = egg_74ee.spam_id ORDER BY spam.rowid, egg_74ee.rowid </code></pre></div> <p dir="auto">The second query should have been just like the first with the addition of a WHERE clause. Instead a useless new join is added with a constraint on ''it'' instead of on the old join:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="SELECT egg_3216.spam_id AS egg_3216_spam_id, egg_3216.version AS egg_3216_version, egg_3216.id AS egg_3216_id, egg_3216.name AS egg_3216_name, spam.id AS spam_id, spam.name AS spam_name FROM egg, spam LEFT OUTER JOIN egg egg_3216 ON spam.id = egg_3216.spam_id WHERE egg.col = value AND spam.id = egg.spam_id ORDER BY spam.rowid, egg_3216.rowid"><pre class="notranslate"><code class="notranslate">SELECT egg_3216.spam_id AS egg_3216_spam_id, egg_3216.version AS egg_3216_version, egg_3216.id AS egg_3216_id, egg_3216.name AS egg_3216_name, spam.id AS spam_id, spam.name AS spam_name FROM egg, spam LEFT OUTER JOIN egg egg_3216 ON spam.id = egg_3216.spam_id WHERE egg.col = value AND spam.id = egg.spam_id ORDER BY spam.rowid, egg_3216.rowid </code></pre></div> <p dir="auto">I see a similar problem if I omit the lazy=False from the call to relation().</p> <p dir="auto">By the way, it isn't clear to me whether the select_by() query should return Spam objects with empty Egg lists or omit them. A simple equality constraint would omit them since the comparision with NULL would fail; you'd have to use (table.col = value OR table.col is null) to get them.</p> <hr> <p dir="auto">Attachments: <a href="../wiki/imported_issue_attachments/367/bug.2.py">bug.2.py</a> | <a href="../wiki/imported_issue_attachments/367/bug.py">bug.py</a> | <a href="../wiki/imported_issue_attachments/367/bugout.txt">bugout.txt</a></p>
<p dir="auto">Hi,</p> <p dir="auto">I am getting a StaleDataError with <code class="notranslate">SQLAlchemy==1.3.6</code> whenever sqlalchemy is trying to use <code class="notranslate">session.bulk_update_mappings()</code> and its always 1 less than the number of rows to be updated. I am running the code as part of an aws lambda function.</p> <p dir="auto">This happens intermittently without any definite pattern. Following is the stack trace:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="UPDATE statement on table 'data_table' expected to update 33 row(s); 32 were matched.: StaleDataError Traceback (most recent call last): File &quot;/var/task/saving/rds/serverless.py&quot;, line 185, in handler output = event_processor(event) File &quot;/var/task/saving/rds/serverless.py&quot;, line 178, in event_processor save_to_database(data) File &quot;/var/task/saving/rds/serverless.py&quot;, line 133, in save_to_database session.bulk_update_mappings(Data, update_data) File &quot;/var/task/sqlalchemy/orm/session.py&quot;, line 2849, in bulk_update_mappings mapper, mappings, True, False, False, False, False File &quot;/var/task/sqlalchemy/orm/session.py&quot;, line 2888, in _bulk_save_mappings transaction.rollback(_capture_exception=True) File &quot;/var/task/sqlalchemy/util/langhelpers.py&quot;, line 68, in __exit__ compat.reraise(exc_type, exc_value, exc_tb) File &quot;/var/task/sqlalchemy/util/compat.py&quot;, line 153, in reraise raise value File &quot;/var/task/sqlalchemy/orm/session.py&quot;, line 2873, in _bulk_save_mappings update_changed_only, File &quot;/var/task/sqlalchemy/orm/persistence.py&quot;, line 180, in _bulk_update bookkeeping=False, File &quot;/var/task/sqlalchemy/orm/persistence.py&quot;, line 1029, in _emit_update_statements % (table.description, len(records), rows) sqlalchemy.orm.exc.StaleDataError: UPDATE statement on table 'data_table' expected to update 33 row(s); 32 were matched."><pre class="notranslate"><code class="notranslate">UPDATE statement on table 'data_table' expected to update 33 row(s); 32 were matched.: StaleDataError Traceback (most recent call last): File "/var/task/saving/rds/serverless.py", line 185, in handler output = event_processor(event) File "/var/task/saving/rds/serverless.py", line 178, in event_processor save_to_database(data) File "/var/task/saving/rds/serverless.py", line 133, in save_to_database session.bulk_update_mappings(Data, update_data) File "/var/task/sqlalchemy/orm/session.py", line 2849, in bulk_update_mappings mapper, mappings, True, False, False, False, False File "/var/task/sqlalchemy/orm/session.py", line 2888, in _bulk_save_mappings transaction.rollback(_capture_exception=True) File "/var/task/sqlalchemy/util/langhelpers.py", line 68, in __exit__ compat.reraise(exc_type, exc_value, exc_tb) File "/var/task/sqlalchemy/util/compat.py", line 153, in reraise raise value File "/var/task/sqlalchemy/orm/session.py", line 2873, in _bulk_save_mappings update_changed_only, File "/var/task/sqlalchemy/orm/persistence.py", line 180, in _bulk_update bookkeeping=False, File "/var/task/sqlalchemy/orm/persistence.py", line 1029, in _emit_update_statements % (table.description, len(records), rows) sqlalchemy.orm.exc.StaleDataError: UPDATE statement on table 'data_table' expected to update 33 row(s); 32 were matched. </code></pre></div> <p dir="auto">I have tried multiple things, following is a snippet of the current code base:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="def connect_db(): def connect(): return mysql.connector.connect(host=hostname, user=username, password=password, database=database, port=port) db = create_engine(f'mysql+mysqlconnector://', creator=connect, isolation_level='REPEATABLE_READ', echo=False) return db # establish connection once per container engine = connect_db() Data.__table__.create(bind=engine, checkfirst=True) Session = sessionmaker(bind=engine) def save_to_database(data): session = Session() try: ids = [result[0] for result in session.query(Data.id).with_for_update(nowait=True).all()] ... #saving logic ... session.bulk_insert_mappings(Data, insert_data) session.flush() session.bulk_update_mappings(Data, update_data) session.flush() session.commit() except: session.rollback() raise finally: session.close() def handler(event, context): output = save_to_database(event) return {'records': output}"><pre class="notranslate"><code class="notranslate">def connect_db(): def connect(): return mysql.connector.connect(host=hostname, user=username, password=password, database=database, port=port) db = create_engine(f'mysql+mysqlconnector://', creator=connect, isolation_level='REPEATABLE_READ', echo=False) return db # establish connection once per container engine = connect_db() Data.__table__.create(bind=engine, checkfirst=True) Session = sessionmaker(bind=engine) def save_to_database(data): session = Session() try: ids = [result[0] for result in session.query(Data.id).with_for_update(nowait=True).all()] ... #saving logic ... session.bulk_insert_mappings(Data, insert_data) session.flush() session.bulk_update_mappings(Data, update_data) session.flush() session.commit() except: session.rollback() raise finally: session.close() def handler(event, context): output = save_to_database(event) return {'records': output} </code></pre></div> <p dir="auto">I even added <code class="notranslate">.with_for_update(nowait=True)</code> based on the recommendation from "<a href="https://stackoverflow.com/questions/30763961/update-statement-on-table-xxx-expected-to-update-1-rows-0-were-matched-with" rel="nofollow">https://stackoverflow.com/questions/30763961/update-statement-on-table-xxx-expected-to-update-1-rows-0-were-matched-with</a>"</p> <p dir="auto">Also I have already checked <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="384634406" data-permission-text="Title is private" data-url="https://github.com/sqlalchemy/sqlalchemy/issues/3476" data-hovercard-type="issue" data-hovercard-url="/sqlalchemy/sqlalchemy/issues/3476/hovercard" href="https://github.com/sqlalchemy/sqlalchemy/issues/3476">#3476</a> as it talked about similar issue but the problem is I am not deleting any ids from the table yet, its just insert or update. I am segregating insert and update after querying for all ids and then depending on that deciding whether the ids should be updated or inserted.</p> <p dir="auto">Any help or pointers in this regard would be really appreciated.</p>
0
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong></p> <p dir="auto">This is a bug.</p> <p dir="auto"><strong>What is the current behavior?</strong></p> <p dir="auto">When rendering a range input element, the value of the input isn't set on the initial render. You have to call render again for the value to get picked up.</p> <p dir="auto"><strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/reactjs/69z2wepo/" rel="nofollow">https://jsfiddle.net/reactjs/69z2wepo/</a>).</strong></p> <p dir="auto">I've created a demo here, <a href="https://jsfiddle.net/caozilla/qchxo3qb/4/" rel="nofollow">https://jsfiddle.net/caozilla/qchxo3qb/4/</a>.</p> <p dir="auto">The demo includes a component called Test which simply renders an range input component by passing some props. There is an update button which calls setState and should trigger the render. There are also console.log statements which show the values being used during the render.</p> <p dir="auto">When you run the demo you'll notice that you have to click the update button twice before the input value updates. The strange thing is that it seems to have something to do with the min and max attributes of the input. There is a commented out line where it does <code class="notranslate">var max = 100</code> and that seems to work fine on initial render. But when it references the state value, it doesn't work.</p> <p dir="auto"><strong>What is the expected behavior?</strong></p> <p dir="auto">The input value should be set properly on initial render.</p> <p dir="auto"><strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong></p> <p dir="auto">This affects React 15.2.0. It works fine in 15.1.0. I've only tested on the latest Chrome.</p>
<p dir="auto"><strong>Do you want to request a <em>feature</em> or report a <em>bug</em>?</strong><br> Bug<br> <strong>What is the current behavior?</strong><br> React at the beginning rounds <code class="notranslate">input[type=range]</code> value to 0 or 1, and then looks at step parameter which is 0.1 for example. The result is incorrect value of input after component mounts. When I put <code class="notranslate">value</code> attribute after <code class="notranslate">step</code> attributes, it works fine.<br> <strong>If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via <a href="https://jsfiddle.net" rel="nofollow">https://jsfiddle.net</a> or similar (template: <a href="https://jsfiddle.net/reactjs/69z2wepo/" rel="nofollow">https://jsfiddle.net/reactjs/69z2wepo/</a>).</strong><br> Demo: <a href="https://jsfiddle.net/2Lm4gy5k/" rel="nofollow">https://jsfiddle.net/2Lm4gy5k/</a> Comment or uncomment line 13 and 14 to see the difference.</p> <p dir="auto"><strong>What is the expected behavior?</strong><br> To always look at step parameter and then round the value (if required).<br> <strong>Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?</strong><br> v15.1.0 (Opera, Chrome, Firefox).</p> <p dir="auto">Yes, works in v.0.14.0 (<a href="https://jsfiddle.net/wrcnLugd/" rel="nofollow">https://jsfiddle.net/wrcnLugd/</a>)</p>
1
<p dir="auto">More informations on <a href="http://docopt.org/" rel="nofollow">http://docopt.org/</a>.</p> <p dir="auto">Dump to docopt: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9267514" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/6339" data-hovercard-type="pull_request" data-hovercard-url="/symfony/symfony/pull/6339/hovercard" href="https://github.com/symfony/symfony/pull/6339">#6339</a>, <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="9258971" data-permission-text="Title is private" data-url="https://github.com/symfony/symfony/issues/6329" data-hovercard-type="issue" data-hovercard-url="/symfony/symfony/issues/6329/hovercard" href="https://github.com/symfony/symfony/issues/6329">#6329</a></p>
<p dir="auto">The whole thing already feels like <a href="http://docopt.org/" rel="nofollow">docopt</a> a bit - but by changing a few things, adding default values etc I think we could do better.</p> <p dir="auto">Another thing that might be good in addition to having -&gt;setHelp() in the commands is a -&gt;setUsage() that would take an array of usage examples that can be dumped on top of the help text in the Usage section.</p>
1
<p dir="auto">my Question:</p> <p dir="auto">Sample ListView Page in Diffrent Environment CPU and Memory very Hight, i Want To Know Why ,And How to solution!</p> <p dir="auto">====================================================</p> <ol dir="auto"> <li>Doctor:</li> </ol> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel unknown, v0.5.1, on Mac OS X 10.13.4 17E199, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK 28.0.1) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] iOS toolchain - develop for iOS devices (Xcode 9.3) ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ! CocoaPods out of date (1.5.0 is recommended). CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side. Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS. For more info, see https://flutter.io/platform-plugins To upgrade: brew upgrade cocoapods pod setup [✓] Android Studio (version 3.1) [✓] Connected devices (1 available)"><pre class="notranslate"><code class="notranslate">Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel unknown, v0.5.1, on Mac OS X 10.13.4 17E199, locale zh-Hans-CN) [!] Android toolchain - develop for Android devices (Android SDK 28.0.1) ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses [!] iOS toolchain - develop for iOS devices (Xcode 9.3) ✗ libimobiledevice and ideviceinstaller are not installed. To install, run: brew install --HEAD libimobiledevice brew install ideviceinstaller ! CocoaPods out of date (1.5.0 is recommended). CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side. Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS. For more info, see https://flutter.io/platform-plugins To upgrade: brew upgrade cocoapods pod setup [✓] Android Studio (version 3.1) [✓] Connected devices (1 available) </code></pre></div> <ol start="2" dir="auto"> <li> <p dir="auto">比对:<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5095376/44389556-bf033480-a55d-11e8-8894-dd6ba6023889.png"><img src="https://user-images.githubusercontent.com/5095376/44389556-bf033480-a55d-11e8-8894-dd6ba6023889.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">UI页面<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/5095376/44393027-2cb35e80-a566-11e8-94aa-c2368198f032.png"><img src="https://user-images.githubusercontent.com/5095376/44393027-2cb35e80-a566-11e8-94aa-c2368198f032.png" alt="image" style="max-width: 100%;"></a></p> </li> <li> <p dir="auto">major Code:</p> </li> </ol> <div class="highlight highlight-source-dart notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content=" child: PageView.builder( itemCount: widget.entity.length, controller: controller, // controller: scrollController, onPageChanged: onPageChanged, itemBuilder: (BuildContext context, int index){ return RefreshIndicator( child: ListView.builder( itemCount: dataList.length + 1, itemBuilder: (context,index){ if (index == dataList.length){ return _buildProgressIndicator(); }else{ return _buildRow(dataList[index],selectIndex,size,context); } } ), onRefresh: fetchList, ); }, ),"><pre class="notranslate"> child<span class="pl-k">:</span> <span class="pl-c1">PageView</span>.<span class="pl-en">builder</span>( itemCount<span class="pl-k">:</span> widget.entity.length, controller<span class="pl-k">:</span> controller, <span class="pl-c">// controller: scrollController,</span> onPageChanged<span class="pl-k">:</span> onPageChanged, itemBuilder<span class="pl-k">:</span> (<span class="pl-c1">BuildContext</span> context, <span class="pl-c1">int</span> index){ <span class="pl-k">return</span> <span class="pl-c1">RefreshIndicator</span>( child<span class="pl-k">:</span> <span class="pl-c1">ListView</span>.<span class="pl-en">builder</span>( itemCount<span class="pl-k">:</span> dataList.length <span class="pl-k">+</span> <span class="pl-c1">1</span>, itemBuilder<span class="pl-k">:</span> (context,index){ <span class="pl-k">if</span> (index <span class="pl-k">==</span> dataList.length){ <span class="pl-k">return</span> <span class="pl-en">_buildProgressIndicator</span>(); }<span class="pl-k">else</span>{ <span class="pl-k">return</span> <span class="pl-en">_buildRow</span>(dataList[index],selectIndex,size,context); } } ), onRefresh<span class="pl-k">:</span> fetchList, ); }, ),</pre></div>
<p dir="auto">It sometimes times out:</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="8:59 +428 ~1 -1: test/integration/expression_evaluation_test.dart: expression evaluation can evaluate complex expressions in build method [E] Did not receive expected app.started event. Received: [+ 2321] [{&quot;event&quot;:&quot;daemon.connected&quot;,&quot;params&quot;:{&quot;version&quot;:&quot;0.4.0&quot;,&quot;pid&quot;:5386}}] [+ 2357] [{&quot;event&quot;:&quot;daemon.showMessage&quot;,&quot;params&quot;:{&quot;level&quot;:&quot;warning&quot;,&quot;title&quot;:&quot;Unable to list devices&quot;,&quot;message&quot;:&quot;Unable to discover Android devices. Please run \&quot;flutter doctor\&quot; to diagnose potential issues&quot;}}] [+ 2755] [{&quot;event&quot;:&quot;app.start&quot;,&quot;params&quot;:{&quot;appId&quot;:&quot;78fdd08f-369c-4898-a757-129e962633eb&quot;,&quot;deviceId&quot;:&quot;flutter-tester&quot;,&quot;directory&quot;:&quot;/private/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/test_appCoDrnH&quot;,&quot;supportsRestart&quot;:true}}] [+ 3789] Launching lib/main.dart on Flutter test device in debug mode... [+ 60011] &lt;timed out&gt; test/integration/test_driver.dart 248:7 FlutterTestDriver._timeoutWithMessages.&lt;fn&gt; ===== asynchronous gap =========================== dart:async Future.timeout test/integration/test_driver.dart 246:16 FlutterTestDriver._timeoutWithMessages test/integration/test_driver.dart 227:12 FlutterTestDriver._waitFor ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper test/integration/test_driver.dart FlutterTestDriver.run test/integration/expression_evaluation_test.dart 97:22 main.&lt;fn&gt;.&lt;fn&gt; Did not receive expected app.debugPort event. Received: [+ 2320] [{&quot;event&quot;:&quot;daemon.connected&quot;,&quot;params&quot;:{&quot;version&quot;:&quot;0.4.0&quot;,&quot;pid&quot;:5386}}] [+ 2356] [{&quot;event&quot;:&quot;daemon.showMessage&quot;,&quot;params&quot;:{&quot;level&quot;:&quot;warning&quot;,&quot;title&quot;:&quot;Unable to list devices&quot;,&quot;message&quot;:&quot;Unable to discover Android devices. Please run \&quot;flutter doctor\&quot; to diagnose potential issues&quot;}}] [+ 2755] [{&quot;event&quot;:&quot;app.start&quot;,&quot;params&quot;:{&quot;appId&quot;:&quot;78fdd08f-369c-4898-a757-129e962633eb&quot;,&quot;deviceId&quot;:&quot;flutter-tester&quot;,&quot;directory&quot;:&quot;/private/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/test_appCoDrnH&quot;,&quot;supportsRestart&quot;:true}}] [+ 3788] Launching lib/main.dart on Flutter test device in debug mode... [+ 60093] &lt;timed out&gt; test/integration/test_driver.dart 248:7 FlutterTestDriver._timeoutWithMessages.&lt;fn&gt; ===== asynchronous gap =========================== dart:async Future.timeout test/integration/test_driver.dart 246:16 FlutterTestDriver._timeoutWithMessages test/integration/test_driver.dart 227:12 FlutterTestDriver._waitFor ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper test/integration/test_driver.dart FlutterTestDriver.run test/integration/expression_evaluation_test.dart 97:22 main.&lt;fn&gt;.&lt;fn&gt; The job exceeded the maximum time limit for jobs, and has been terminated."><pre class="notranslate"><code class="notranslate">8:59 +428 ~1 -1: test/integration/expression_evaluation_test.dart: expression evaluation can evaluate complex expressions in build method [E] Did not receive expected app.started event. Received: [+ 2321] [{"event":"daemon.connected","params":{"version":"0.4.0","pid":5386}}] [+ 2357] [{"event":"daemon.showMessage","params":{"level":"warning","title":"Unable to list devices","message":"Unable to discover Android devices. Please run \"flutter doctor\" to diagnose potential issues"}}] [+ 2755] [{"event":"app.start","params":{"appId":"78fdd08f-369c-4898-a757-129e962633eb","deviceId":"flutter-tester","directory":"/private/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/test_appCoDrnH","supportsRestart":true}}] [+ 3789] Launching lib/main.dart on Flutter test device in debug mode... [+ 60011] &lt;timed out&gt; test/integration/test_driver.dart 248:7 FlutterTestDriver._timeoutWithMessages.&lt;fn&gt; ===== asynchronous gap =========================== dart:async Future.timeout test/integration/test_driver.dart 246:16 FlutterTestDriver._timeoutWithMessages test/integration/test_driver.dart 227:12 FlutterTestDriver._waitFor ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper test/integration/test_driver.dart FlutterTestDriver.run test/integration/expression_evaluation_test.dart 97:22 main.&lt;fn&gt;.&lt;fn&gt; Did not receive expected app.debugPort event. Received: [+ 2320] [{"event":"daemon.connected","params":{"version":"0.4.0","pid":5386}}] [+ 2356] [{"event":"daemon.showMessage","params":{"level":"warning","title":"Unable to list devices","message":"Unable to discover Android devices. Please run \"flutter doctor\" to diagnose potential issues"}}] [+ 2755] [{"event":"app.start","params":{"appId":"78fdd08f-369c-4898-a757-129e962633eb","deviceId":"flutter-tester","directory":"/private/var/folders/bb/n7t3rs157850byt_jfdcq9k80000gn/T/test_appCoDrnH","supportsRestart":true}}] [+ 3788] Launching lib/main.dart on Flutter test device in debug mode... [+ 60093] &lt;timed out&gt; test/integration/test_driver.dart 248:7 FlutterTestDriver._timeoutWithMessages.&lt;fn&gt; ===== asynchronous gap =========================== dart:async Future.timeout test/integration/test_driver.dart 246:16 FlutterTestDriver._timeoutWithMessages test/integration/test_driver.dart 227:12 FlutterTestDriver._waitFor ===== asynchronous gap =========================== dart:async _asyncThenWrapperHelper test/integration/test_driver.dart FlutterTestDriver.run test/integration/expression_evaluation_test.dart 97:22 main.&lt;fn&gt;.&lt;fn&gt; The job exceeded the maximum time limit for jobs, and has been terminated. </code></pre></div>
0
<p dir="auto">Hi,</p> <h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</li> </ul> <h5 dir="auto">COMPONENT NAME</h5> <p dir="auto">include_role</p> <h5 dir="auto">ANSIBLE VERSION</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ansible 2.2.1.0 config file = /home/stephane/.ansible.cfg configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.2.1.0 config file = /home/stephane/.ansible.cfg configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">CONFIGURATION</h5> <p dir="auto">Nothing special</p> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ansible running from ArchLinux, managing an OpenBSD machine, but the problem is with any managed machine.</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">When the include_role module is used within an handler, the calling role fails, before knowing if the handler will be called.</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <p dir="auto">Create the simple following role:</p> <p dir="auto">calling-role/tasks/main.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - name: task with notify debug: msg=&quot;test&quot;"><pre class="notranslate">--- - <span class="pl-ent">name</span>: <span class="pl-s">task with notify</span> <span class="pl-ent">debug</span>: <span class="pl-s">msg="test"</span></pre></div> <p dir="auto">calling-role/handlers/main.yml</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - name: handler include_role: name=called-role"><pre class="notranslate">--- - <span class="pl-ent">name</span>: <span class="pl-s">handler</span> <span class="pl-ent">include_role</span>: <span class="pl-s">name=called-role</span></pre></div> <p dir="auto">called-role can be any role, with at least on task.</p> <p dir="auto">I run this role with this playbook:</p> <div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="--- - hosts: - all roles: - calling-role"><pre class="notranslate">--- - <span class="pl-ent">hosts</span>: - <span class="pl-s">all</span> <span class="pl-ent">roles</span>: - <span class="pl-s">calling-role</span></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <p dir="auto">I expect the playbook to run.</p> <h5 dir="auto">ACTUAL RESULTS</h5> <p dir="auto">The playbook doesn't run, it fails immediately.</p> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Using /home/stephane/.ansible.cfg as config file PLAYBOOK: main.yml ************************************************************* 1 plays in main.yml PLAY [all] ********************************************************************* ERROR! Unexpected Exception: 'Task' object has no attribute 'listen' the full traceback was: Traceback (most recent call last): File &quot;/usr/bin/ansible-playbook&quot;, line 103, in &lt;module&gt; exit_code = cli.run() File &quot;/usr/lib/python2.7/site-packages/ansible/cli/playbook.py&quot;, line 159, in run results = pbex.run() File &quot;/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py&quot;, line 154, in run result = self._tqm.run(play=play) File &quot;/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py&quot;, line 248, in run self._initialize_notified_handlers(new_play) File &quot;/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py&quot;, line 143, in _initialize_notified_handlers if handler.listen: AttributeError: 'Task' object has no attribute 'listen' zsh: exit 250 ansible-playbook main.yml -vvv"><pre class="notranslate"><code class="notranslate">Using /home/stephane/.ansible.cfg as config file PLAYBOOK: main.yml ************************************************************* 1 plays in main.yml PLAY [all] ********************************************************************* ERROR! Unexpected Exception: 'Task' object has no attribute 'listen' the full traceback was: Traceback (most recent call last): File "/usr/bin/ansible-playbook", line 103, in &lt;module&gt; exit_code = cli.run() File "/usr/lib/python2.7/site-packages/ansible/cli/playbook.py", line 159, in run results = pbex.run() File "/usr/lib/python2.7/site-packages/ansible/executor/playbook_executor.py", line 154, in run result = self._tqm.run(play=play) File "/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 248, in run self._initialize_notified_handlers(new_play) File "/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 143, in _initialize_notified_handlers if handler.listen: AttributeError: 'Task' object has no attribute 'listen' zsh: exit 250 ansible-playbook main.yml -vvv </code></pre></div> <p dir="auto">The problem still exists with the devel branch (216e2c8).</p> <p dir="auto">Let me know if I can be of any help concerning this issue!</p> <p dir="auto">Stéphane</p>
<h5 dir="auto">ISSUE TYPE</h5> <ul dir="auto"> <li>Bug Report</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="ansible 2.1.2.0 config file = configured module search path = Default w/o overrides"><pre class="notranslate"><code class="notranslate">ansible 2.1.2.0 config file = configured module search path = Default w/o overrides </code></pre></div> <h5 dir="auto">OS / ENVIRONMENT</h5> <p dir="auto">Ubunty 16.04, created irtual environment with pip install ansible</p> <h5 dir="auto">SUMMARY</h5> <p dir="auto">Error handling/displaying not working in loops properly</p> <h5 dir="auto">STEPS TO REPRODUCE</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="- name: Install packages yum: name: &quot;{{ item }}&quot; state: present with_items: - non-existing-package "><pre class="notranslate"><code class="notranslate">- name: Install packages yum: name: "{{ item }}" state: present with_items: - non-existing-package </code></pre></div> <h5 dir="auto">EXPECTED RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [test playbook] *********************************************************** TASK [install packages] ******************************************************** failed: [test] (item=non-existing-package) =&gt; {&quot;changed&quot;: false, &quot;failed&quot;: true, &quot;item&quot;: &quot;non-existing-package&quot;, &quot;msg&quot;: &quot;No Package matching 'non-existing-package' found available, installed or updated&quot;, &quot;rc&quot;: 0, results: []} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @test.retry PLAY RECAP ********************************************************************* test : ok=0 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">PLAY [test playbook] *********************************************************** TASK [install packages] ******************************************************** failed: [test] (item=non-existing-package) =&gt; {"changed": false, "failed": true, "item": "non-existing-package", "msg": "No Package matching 'non-existing-package' found available, installed or updated", "rc": 0, results: []} NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @test.retry PLAY RECAP ********************************************************************* test : ok=0 changed=0 unreachable=0 failed=1 </code></pre></div> <h5 dir="auto">ACTUAL RESULTS</h5> <div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PLAY [test playbook] *********************************************************** TASK [install packages] ******************************************************** ok: [test] =&gt; (item=[u'non-existing-package']) NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @test.retry PLAY RECAP ********************************************************************* test : ok=0 changed=0 unreachable=0 failed=1 "><pre class="notranslate"><code class="notranslate">PLAY [test playbook] *********************************************************** TASK [install packages] ******************************************************** ok: [test] =&gt; (item=[u'non-existing-package']) NO MORE HOSTS LEFT ************************************************************* to retry, use: --limit @test.retry PLAY RECAP ********************************************************************* test : ok=0 changed=0 unreachable=0 failed=1 </code></pre></div> <p dir="auto">I've dig a little bit into this issue, and I've found, that if a result key is exists in the returned dictionary (even if it's empty array), the display will be ok:<br> If I delete the the result from dict, It's working fine (res.pop('result', None) in yum.py</p> <p dir="auto">If I run the command directly (without loop), it displays it correctly</p>
0
<p dir="auto">when use deno compile , Uncaught NotSupported: LocalStorage is not supported in this context.</p>
<p dir="auto"><a href="https://www.npmjs.com/package/ttypescript" rel="nofollow">https://www.npmjs.com/package/ttypescript</a></p> <div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="{ &quot;compilerOptions&quot;: { &quot;plugins&quot;: [ { &quot;transform&quot;: &quot;transformer-module&quot; }, ] } }"><pre class="notranslate">{ <span class="pl-ent">"compilerOptions"</span>: { <span class="pl-ent">"plugins"</span>: [ { <span class="pl-ent">"transform"</span>: <span class="pl-s"><span class="pl-pds">"</span>transformer-module<span class="pl-pds">"</span></span> }, ] } }</pre></div> <p dir="auto"><a href="https://www.npmjs.com/package/tst-reflect-transformer" rel="nofollow">https://www.npmjs.com/package/tst-reflect-transformer</a></p>
0
<p dir="auto">I keep getting this error: "Oops! Something went wrong. Please try again later" when clicking on my map in Basic JavaScript. Also the site seems generally slow and has been for over a week.</p> <p dir="auto">Thanks</p> <p dir="auto">Dave</p>
<p dir="auto">Please see the attached screenshot<br> <a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/218870/12986435/41dbf09e-d11d-11e5-9247-b9f95f9806ef.png"><img src="https://cloud.githubusercontent.com/assets/218870/12986435/41dbf09e-d11d-11e5-9247-b9f95f9806ef.png" alt="fcc error" style="max-width: 100%;"></a></p> <p dir="auto">Once this error appears even when I try to navigate to the home page, it redirects to the same page with the error.</p>
1
<pre class="notranslate">What steps will reproduce the problem? $ cat k.c #include &lt;stdio.h&gt; int main(int argc, char* argv[]) { printf("hello\n"); return 0; } $ cat k.go package main func main() { println("hello") } $ rm -f *.o *.gc* k $ /opt/gccgo/bin/gcc -o k k.c --coverage k.gcno is created $ ./k hello k.gcda is created $ gcov k File 'k.c' Lines executed:100.00% of 3 Creating 'k.c.gcov' looks good now with go: $ rm -f *.o *.gc* k $ /opt/gccgo/bin/gccgo -o k k.go --coverage k.gcno is created $ ./k hello k.gcna is not created Which compiler are you using (5g, 6g, 8g, gccgo)? gccgo Which operating system are you using? linux Which revision are you using? (hg identify) tip</pre>
<pre class="notranslate">Problem description on golang-nuts: <a href="https://groups.google.com/d/msg/golang-nuts/mWXsJJMdL0M/wioVT04ye7UJ" rel="nofollow">https://groups.google.com/d/msg/golang-nuts/mWXsJJMdL0M/wioVT04ye7UJ</a> In short, pprof misses 7.5% of samples in newstack/oldstack (perf reports them properly). This happens because the profiler ignores samples on g0 (where newstack/oldstack are executed). We need to figure out a way to attribute the samples to the running goroutine.</pre>
0
<p dir="auto">Playwright already offers the important assertion method <code class="notranslate">toHaveClass</code> but unfortunately it is not possible to use it, when explicitly checking for one class attribute.<br> The function offers several options for the <code class="notranslate">expected</code> argument, but is seems not possible to ensure that the class attribute contains one specific class attribute.<br> Using a regular expression is possible but relies on the exact order of class attributes and the delimiters used.<br> Maybe an property could be added the the options argument that allows to specify if the class string should be compared or rather a <code class="notranslate">classList.contains</code> operation (like in the native DOM) is wanted.<br> Checking for the existence of one specific class attribute in my experience is a very common tasks and should be made as simple as possible.</p>
<p dir="auto">Hi there)</p> <p dir="auto">I have a strange behavior with toHaveClass assertion.</p> <p dir="auto">I have an html</p> <div class="highlight highlight-text-html-basic notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="&lt;label class=&quot;MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-root MuiFormLabel-colorPrimary Mui-error css-1958la6-MuiFormLabel-root-MuiInputLabel-root&quot; data-shrink=&quot;false&quot; for=&quot;mui-1&quot; id=&quot;mui-1-label&quot;&gt;&lt;/label&gt;"><pre class="notranslate"><span class="pl-kos">&lt;</span><span class="pl-ent">label</span> <span class="pl-c1">class</span>="<span class="pl-s">MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-root MuiFormLabel-colorPrimary Mui-error css-1958la6-MuiFormLabel-root-MuiInputLabel-root</span>" <span class="pl-c1">data-shrink</span>="<span class="pl-s">false</span>" <span class="pl-c1">for</span>="<span class="pl-s">mui-1</span>" <span class="pl-c1">id</span>="<span class="pl-s">mui-1-label</span>"<span class="pl-kos">&gt;</span><span class="pl-kos">&lt;/</span><span class="pl-ent">label</span><span class="pl-kos">&gt;</span></pre></div> <p dir="auto">And I have assertion:</p> <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="await expect(label).toHaveClass('Mui-error')"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">label</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveClass</span><span class="pl-kos">(</span><span class="pl-s">'Mui-error'</span><span class="pl-kos">)</span></pre></div> <p dir="auto">which fails, but this one is good:</p> <div class="highlight highlight-source-tsx notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="await expect(label).toHaveClass('MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-root MuiFormLabel-colorPrimary Mui-error css-1958la6-MuiFormLabel-root-MuiInputLabel-root')"><pre class="notranslate"><span class="pl-k">await</span> <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-s1">label</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toHaveClass</span><span class="pl-kos">(</span><span class="pl-s">'MuiInputLabel-root MuiInputLabel-formControl MuiInputLabel-animated MuiInputLabel-outlined MuiFormLabel-root MuiFormLabel-colorPrimary Mui-error css-1958la6-MuiFormLabel-root-MuiInputLabel-root'</span><span class="pl-kos">)</span></pre></div> <p dir="auto">Is that intended?</p> <p dir="auto">I expected <code class="notranslate">toHaveClass</code> be like: "Hey, label, do you have class Mui-error in your bag?", but instead I have "Hey, label, do you have exactly one class and is it Mui-error?".</p>
1