WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
In ErrorPage Component this error is coming at last statement of "export default connect(...) ".

import React, { Component } from 'react'
import { connect } from 'react-redux';

class ErrorPage extends Component {
state = {}
render() {
return (
<div>
ErrorPage;
</div>
);
}
}
const mapStateToProps = (state) => {
console.log('====================================');
console.log(state);
console.log('====================================');
}

export default connect(mapStateToProps, null)(ErrorPage);

Issue 2:
Do you want to request a feature or report a bug?

no.

What is the current behavior?

look this: react-week-time-range-picker.

This is a component written by react hooks. I run it normal when i develop it. However, when i npm install react-week-time-range-picker to test , the page report error Minified React error #321;visit https://reactjs.org/docs/error-decoder.html?invariant=321 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.

I look for the solution almost two days, but i failed.

My version is no problem

I think the hooks call is correct

I doubt it may be the third cause in the official documents，but i test it with official documents code, it print true。

Now, i am muddled.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:

What is the expected behavior?

I hope who can help me

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

{
"react": "^16.10.2",
"react-dom": "^16.10.2"
}

chrome 77.

Thank you!
Issue 1:
Challenge http://www.freecodecamp.com/challenges/bonfire-return-largest-numbers-in-arrays has an issue.

When you start exercising the compiler tells you "cannot read property 'eql' of undefined", the problem is that I have never stated that property and more change that I made in the editor, compile always says the same.

Issue 2:
Challenge http://www.freecodecamp.com/challenges/waypoint-bring-your-javascript-slot-machine-to-life has an issue. Please describe how to reproduce it, and include links to screenshots if possible.

Every time I try to type my answer into this challenge I only get as far as typing $($ before the program freezes and I get a pop-up saying the pages are unresponsive. I have tried rebooting, changing browsers, changing computers, but the problem has persisted for many hours.
Issue 1:
Website or app

https://www.youtube.com/, https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox,https://docs.github.com/en

Repro steps

I was using the YouTube website. I have a habit of checking if the website i have visited was using react or not. As always I checked for YouTube website too. But the react developer tools extension was showing the youtube website is using react.

Just to make sure it was right I have installed the firefox browser then installed the react developer tools extension and opened the youtube website, But in firefox, the extension was saying the youtube is not using react.

For confirming with other websites, I have visited mdn and GitHub docs in both chrome and firefox. The chrome react developer tools extension says that the mdn is using react and the firefox react developer tools extension says that the mdn is not using react. For the GitHub docs website, the chrome extension says that the GitHub docs website was using the react whereas the firefox react developer tools extension shows that the Github docs website doesn't use the react.

I am attaching the screen recording. To differentiate what websites I have visited in chrome and firefox I previously opened the websites in chrome and showed the results, for firefox I have typed the query and showed the results. Can you tell why it was happening like this?

recording.mov

Repro steps

Login to the website

Scrolling the website

Noticed the bug

Versions:

Chrome: 97.0.4692.99

Firefox: 96.0.2

React Developer Tools:4.22.0

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

Issue 2:
Website or app

youtube.com, github.com, gmail.com, lucidchart.app

Repro steps

Open any web app not made with React (e.g.: youtube.com, amazon.com, github.com, gmail.com, lucidchart.app)

The react icon is ON and the popover message says:

'This page is using the production build of React. ✅'

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response
Issue 1:
I find when I'm reading the documentation that I have to do a shit ton of scrolling so I can get to the primary navigation after I've made my way so far down the page. A back to top link would seriously save me time and a some finger abrasion. The mighty mouse and touch pads aren't exactly free spinning scroll wheel machines.

If I try really hard the best I can get from the bottom of the component's page to the top is 11 scroll movements...

Issue 2:
In the new docs in 3.1 the navbar is not fixed on top. It's quite hard to go to other pages when you are way down below in the docs. A back to top button on the sidebar would be nice.
Issue 1:
I'm submitting a ... (check one with "x")

[X] feature request

Current behavior

Bi-directional binding (Bannana in a box) don't work out-of-the-box for parent/child component, with child event emitter. Parent component property is not updated.

Expected/desired behavior

Avoid duplication of binding attibutes.

Reproduction of the problem

Parent template (DONT WORK):

<userEdit [(toggleEditInPlace)]="toggleEditInPlace"
[hidden]="!toggleEditInPlace">
</userEdit>

Parent template (WORKS):

<userEdit [toggleEditInPlace]="toggleEditInPlace" (toggleEditInPlace)="toggleEditInPlace=$event"
[hidden]="!toggleEditInPlace">
</userEdit>

Child component:

@Input() toggleEditInPlace:boolean=false;
@Output('toggleEditInPlace') toggleEditInPlaceEvent=new EventEmitter<boolean>();

Please tell us about your environment:

Angular version: 2.0.0-rc.5

Browser: [all]

Language: [all]

Issue 2:
Hi all!

Is it possible to extend DOM Elements with Angular 2?

In a way I can use it like:

<button value="Click!" is="extended-button" />

Thanks in advance,

Tiago Braga
Issue 1:
If you hover over an open tab, you get a little hint popup showing the full path of the file open therein, which is cool. Problem is, if you happen to close that tab with CMD-w whilst it's up, apparently it never goes away, and hangs around pointing to tabs that are clearly NOT that file any more.

Issue 2:
I had a tab open, hovered my mouse over the label and then closed the tab. Now I have a permanent tooltip I can't remove.

I believe this is related to cba5854
Issue 1:
When I expand a collapsible navbar and after that resize the browser window, the navbar-collapse element keeps the class "in". In my opinion the class "in" should be removed if the width is wide enough for the navbar not to be collapsed because when I call the page with a wide browser the navbar-collapse also does not get the "in" class.

Issue 2:
Currently this is duped a few times over: #11243, #11301, and #11382—but the issue is described differently everywhere. This should clear things up and help us figure out what to do to fix it.

Problem

Starting with a narrow viewport, one with the collapsed navbar contents, open the menu, then resize to full-width with all navbar contents visible. Shrinking the viewport back to the narrow size still shows the un-collapsed navbar contents.

(Btw, this is currently visible in the docs.)

Why this happens

We're using the collapse plugin to do this. Right now it has no idea about the dimensions of your viewport. All it does is toggle the appropriate classes based on clicks—click to open, click to hide.

Our CSS utilizes those changes in classes from the plugin to style the menu accordingly. The CSS has no way to remove the .in class that the JS adds.

Fix

We need the JS plugin to be updated to detect the viewport changes and remove the class. I don't know when or how this could happen, but that's the only solution. Will need to hear from @fat or anyone else with more JS-fu.
Issue 1:
By default, alt-f is bound to editor:move-to-end-of-word and alt-h to editor:delete-to-beginning-of-word. These conflict with activating File and Help menus in Windows.

Suggestions:

Reserve alt-f and alt-h for menu bar access and change editor shortcuts.

Focus and activate menu bar via a single alt press so user can navigate through the menus using arrow keys (customary behavior in Windows).

Issue 2:
The normal Windows Alt+{letter} menu shortcuts don't work in Atom. Holding Alt highlights the relevant letter in each menu name, but then pressing the letter doesn't open the menu. For example, Alt+F should open the File menu, but instead the Key Binding Resolver shows it invoking the following:

editor:move-to-end-of-word atom-text-editor resources\app\keymaps\emacs.json

This is a vanilla install of Atom 0.141.0 in Windows 7 Home Premium x64. I haven't opted in to enabling anything Emacs related.

Pressing Alt also doesn't focus the menu bar and allow it to be navigated by arrow keys like it normally does in Windows.

I'm reporting this per this suggestion
Issue 1:
neo4j-sh (?)$ create (t:Test {a:"abc&&def"}) return t;
Unknown command 'def"})'
neo4j-sh (?)$

This breaks imports from dumps where the data contains this pattern

Issue 2:
This issue ties together all bugs related to the shell's dump command.

Schema support

Constraints using indexes during import: there needs a way to wait for indexes to become available after creating them, otherwise the import takes forever.

The shell could be extended with a command to achieve the above, but this functionality might be better introduced in Cypher, some discussion occurred here: #2491 (comment). Edit: there actually already is the schema await command which can be used for that purpose.

Currently indexes and schema creation statements aren't properly generated, they need to be separate statements. Issue: #2491

@nawroth raised the question whether this change will break the integrated live console in the manual here: #2576 (comment) So this needs to be tested.

Robustness

Newline characters need to be properly escaped (also: tab, ...). Issue: #2577

Strings containing && confuse the shell. There might be more problems if the shell attempts to parse something inside a string. Issue: #2579

Byte arrays are exported as int arrays. Does Cypher support byte arrays? Should it? Issue: #2491

Maybe (no personal experience with large data sets): scaling to allow inserting more data than fitting a single transaction. This depends on what the goal of the dump command is, whether it shall be usable the same way SQL people dump DBs to SQL scripts to load them into another DB or whether dump is designed for smaller data sets (this should also be documented, so people will know what to expect from the command).

Cosmetics: there shouldn't be a BEGIN/COMMIT pair for schema creation if no schema is created

Order of dumped statements (esp. index/constrains), discussion: #4437
Issue 1:
myfunc(myvar::AbstractMyType{T})::Array{T} where {T} = myvar.myproperty

throws UndefVarError: T not defined but

function myfunc(myvar::AbstractMyType{T})::Array{T} where {T}
myvar.myproperty
end

works absolutely fine. Is there something I am missing?

Issue 2:
In other words, ::ReturnType is incompatible with where clauses in the short function form declarations.

I thought an exemple was more clear than my words in the title.
Issue 1:
Duplication of request clears list of fields in the original request instead of duplicated one.

Issue 2:
According to the phpDoc annotation of Symfony\Component\BrowserKit::getResponse(), an instance of Symfony\Component\BrowserKit\Response should be returned by that method. But instead, I get an instance of Symfony\Component\HttpFoundation\Response. Unfortunately, the interfaces of both classes differ (eg. getStatus() vs. getStatusCode()). Since those phpDoc annotations are use by most IDEs for code completion, this circumstance might be confusing.

I've modified the standard edition's DemoControllerTest to reproduce this issue:

<?php

namespace Acme\DemoBundle\Tests\Controller;

use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;

class DemoControllerTest extends WebTestCase
{
public function testIndex()
{
$client = static::createClient();

$client->request('GET', '/demo/hello/Fabien');

$this->assertInstanceOf(
'Symfony\\Component\\BrowserKit\\Response',
$client->getResponse()
);
}
}

Result:

Failed asserting that Symfony\Component\HttpFoundation\Response Object (...) is an instance of class "Symfony\Component\BrowserKit\Response".

The examples from the documentation (http://symfony.com/doc/current/book/testing.html) reflect the current behavior. This is why I would suggest to adjust the phpDoc annotations accordingly.
Issue 1:
Keith Donald opened SPR-7163 and commented

Spring sample projects reside in the following SVN repository: http://src.springframework.org/svn/spring-samples. Users are expected to check this repository out to build, deploy, and review our sample applications. This needs to be mentioned in the reference documentation. We may also want to mention tips for how to checkout using a SVN client.

Affects: 3.0.2

Issue Links:

#11820 Update reference manual regarding PetClinic ("duplicates")

Referenced from: commits 42cdfbc

Issue 2:
Kenny MacLeod opened SPR-7290 and commented

The current implementation of JdbcTemplate can only process JDBC batch updates such that a single batch is sent. This isn't really suitable for very large batches, due to memory constraints.

Please extend this so that you can specify not only the total number of updates, but the maximum size of each batch.

For example, 2,000,000 updates, sent in batches of up to 100,000 each.

Affects: 3.0.3

Issue Links:

#11000 JdbcTemplate batch update - Managing batchSize inferior to the number of rows to be updated ("duplicates")
Issue 1:
https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/11380/

Failed: [k8s.io] Kubectl client [k8s.io] Update Demo should create and stop a replication controller [Conformance] {Kubernetes e2e suite}

/go/src/k8s.io/kubernetes/_output/dockerized/go/src/k8s.io/kubernetes/test/e2e/kubectl.go:209
Expected error:
<*errors.errorString | 0xc820b73c70>: {
s: "Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.237.115 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-qemon -o template --template={{if (exists . \"status\" \"containerStatuses\")}}{{range .status.containerStatuses}}{{if eq .name \"update-demo\"}}{{.image}}{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-4mqej] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n [] <nil> 0xc820ac4740 exit status 1 <nil> true [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca858 0xc8204ca8a8] [0xab23f0 0xab23f0] 0xc820cb55c0}:\nCommand stdout:\n\nstderr:\nfailed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.\n\nerror:\nexit status 1\n",
}
Error running &{/workspace/kubernetes/platforms/linux/amd64/kubectl [kubectl --server=https://104.198.237.115 --kubeconfig=/workspace/.kube/config get pods update-demo-nautilus-qemon -o template --template={{if (exists . "status" "containerStatuses")}}{{range .status.containerStatuses}}{{if eq .name "update-demo"}}{{.image}}{{end}}{{end}}{{end}} --namespace=e2e-tests-kubectl-4mqej] [] <nil> failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.
[] <nil> 0xc820ac4740 exit status 1 <nil> true [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca7f0 0xc8204ca888 0xc8204ca8f0] [0xc8204ca858 0xc8204ca8a8] [0xab23f0 0xab23f0] 0xc820cb55c0}:
Command stdout:

stderr:
failed to find client for version v1: error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information.

error:
exit status 1

not to have occurred

Previous issues for this test: #28565

Issue 2:
error: google: could not find default credentials. See https://developers.google.com/accounts/docs/application-default-credentials for more information. appears in a lot of flakes. Speculation is that the metadata server is slow to respond.

So far, these are the issues where this message has popped up:

#28569

#28565

#28523

#28507

#28493

#28439

#28437

#28429

#28426

#28420

#28293

#27976

#27839

#27715

#27156

#26715

#26490

Sample failed run: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/kubernetes-e2e-gke/10664

@cjcullen since this is dealing with auth, I'm initially assigning to you. Feel free to reassign to someone more appropriate.
Issue 1:
Preflight Checklist

I have read the Contributing Guidelines for this project.

I agree to follow the Code of Conduct that this project adheres to.

I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Problem Description

Looking to set my preload script directly inline in the webPreferences of main.js.

I found these two PRs that seems to be about that (please correct if wrong): #27741, #27546

But the threads state no updated information on when this is going to be released and/or the syntax to use this feature.

So, Is this doable at the moment ? If so, could you post a short example on how to do that ?

Thanks.

Electron 12.0.5
Win x64

Proposed Solution

n/a

Alternatives Considered

n/a

Additional Information

n/a

Issue 2:
Is your feature request related to a problem? Please describe.

Being able to set preloads for a session is very useful, unfortunately having to set an absolute path is problematic when you use some kind of bundler for the code, as the preload script has to be excluded and handled manually since the path to the preload no longer exists when bundled. This is especially problematic for reusable modules using session#setPreloads() as the bundling is out of its control. (Example: sindresorhus/electron-timber#17).

API: https://electronjs.org/docs/api/session#sessetpreloadspreloads

Describe the solution you'd like

I would like the ability to set session preloads as strings of content in addition to absolute paths.

The existing API can't be used for this as it already supports strings as paths.

I propose two solutions:

Add a new session.setPreloadScripts() that accepts a string[] with JS code:

session.defaultSession.setPreloads(['/foo/bar/path']);

session.defaultSession.setPreloadScripts(['console.log("loaded")']);

Add a session.PreloadScript() constructor that can be passed to session#setPreloads():

session.defaultSession.setPreloads([
'/foo/bar/path',
new session.PreloadScript('console.log("loaded")')
]);

This would also let us create dynamic preload scripts, which can be useful for modules.
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
3.4-BETA

When decorating routing.loader in a compiler pass I get the following deprecation error when the container is built:

User Deprecated: The "routing.loader" service is private, getting it from the container is deprecated since Symfony 3.2 and will fail in 4.0. You should either make the service public, or stop using the container directly and use dependency injection instead.

I can't figure out why this is happening.

Reference: umpirsky/UmpirskyI18nRoutingBundle#17

CompilerPass: https://github.com/umpirsky/UmpirskyI18nRoutingBundle/blob/a69bd4dcc901c3459aba20f8e586613a5758d05b/src/DependencyInjection/Compiler/OverrideRoutingCompilerPass.php

Issue 2:
Q
A

Bug report?
yes/no

Feature request?
yes/no

BC Break report?
yes/no

RFC?
yes/no

Symfony version
x.y.z
Issue 1:
In Atom 0.98.0, deleting a file from the tree view which is also open causes the below exception. It probably should not.

Uncaught TypeError: Cannot call method 'getBufferPosition' of undefined /Applications/Atom.app/Contents/Resources/app/src/editor.js:1321

module.exports.Editor.getCursorBufferPosition /Applications/Atom.app/Contents/Resources/app/src/editor.js:1321

StatusBarView.render statusbar-view.coffee:18

LinterView.displayStatusBar linter-view.coffee:163

(anonymous function) linter-view.coffee:41

jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676

elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360

jQuery.event.trigger /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4594

(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5119

jQuery.extend.each /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:590

jQuery.fn.jQuery.each /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:237

jQuery.fn.extend.trigger /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:5118

module.exports.PaneView.onActiveItemChanged /Applications/Atom.app/Contents/Resources/app/src/pane-view.js:305

(anonymous function) /Applications/Atom.app/Contents/Resources/app/src/pane-view.js:3

(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:133

module.exports.Emitter.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/emitter.js:132

module.exports.Behavior.emit /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/behavior.js:44

module.exports.Signal.emitValue /Applications/Atom.app/Contents/Resources/app/node_modules/emissary/lib/signal.js:82

module.exports.Model.set /Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:166

accessor.set /Applications/Atom.app/Contents/Resources/app/node_modules/theorist/lib/model.js:57

module.exports.Pane.activateItem /Applications/Atom.app/Contents/Resources/app/src/pane.js:175

_results.push._this.(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/delegato/lib/delegator.js:67

(anonymous function) /Applications/Atom.app/Contents/Resources/app/node_modules/tabs/lib/tab-bar-view.js:148

jQuery.event.dispatch /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4676

elemData.handle /Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4360

Issue 2:
Repro Steps

Open Atom

Create file foo.md

Highlight file in tree view

Press Delete button

Click "Delete" option (not "Move to Trash")

Expected: No error occurs

Actual: Exception happens:

Uncaught TypeError: Cannot call method 'getScreenRow' of undefined

/Applications/Atom.app/Contents/Resources/app/src/editor.js:1311