WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Electron version: 1.2.5

Operating system: Windows 10

My application has a custom "res://" protocol. It appears to register correctly (no errors or anything) but as you can see from the picture I'm getting the error net::ERR_UNKNOWN_URL_SCHEME. This is working in version 1.2.4.

Issue 2:
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 an issue that matches the one I want to file, without success.

Issue Details

Electron Version:

9.1.0

Operating System:

Win10 x64

Last Known Working Electron version:

8.4.0

Expected Behavior

Redux DevTools should find the store, which exists.

Actual Behavior

Redux tab is added to Chome devtools, but clicking on the tab displays the message No store found. Make sure to follow the instructions.. Running the exact same minimal app in Electron 8.4.0 does show the store.

This has been mentioned at electron-devtools-installer here and now is indicated as an Electron issue.

To Reproduce

electron package.json

{
"name": "electron_3",
"version": "1.0.0",
"description": "",
"main": "main.js",
"scripts": {
"start": "electron .",
"install": "electron-rebuild",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"devDependencies": {
"electron": "^9.1.0",
"electron-devtools-installer": "^3.0.0"
}
}

Ng package.json

{
"name": "test",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "~9.1.11",
"@angular/common": "~9.1.11",
"@angular/compiler": "~9.1.11",
"@angular/core": "~9.1.11",
"@angular/forms": "~9.1.11",
"@angular/platform-browser": "~9.1.11",
"@angular/platform-browser-dynamic": "~9.1.11",
"@angular/router": "~9.1.11",
"rxjs": "~6.5.4",
"tslib": "^1.10.0",
"zone.js": "~0.10.2",
"ngx-electron": "^2.2.0",
"@ngrx/effects": "^9.2.0",
"@ngrx/store": "^9.2.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "~0.901.8",
"@angular/cli": "~9.1.8",
"@angular/compiler-cli": "~9.1.11",
"@types/node": "^12.11.1",
"@types/jasmine": "~3.5.0",
"@types/jasminewd2": "~2.0.3",
"codelyzer": "^5.1.2",
"jasmine-core": "~3.5.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~5.0.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~3.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~3.8.3",
"@ngrx/schematics": "^9.2.0",
"@ngrx/store-devtools": "^9.2.0"
}
}

Create a minimal store in Ng project. Then open Electron app. In Electron 8.4.0 you'll see the Store interface in the Redux tab in DevTools, in Electron 9.x you'll see the above message. see pics below.

Screenshots

Electron 8.4.0

Electron 9.1.0
Issue 1:
I opened a large project with a lot of Java + bash files and CTRL+P takes forever to find and list a file. Same project gets file list indexed almost immediately when I open it in sublime text and CTRL+P file search works smooth as butter. VSCode needs to improve performance of file search.

Issue 2:
I have the following code:

getExistingThing({
id,
spaceId
}: {
id: string,
spaceId: string
}): IThingInfo {
// Use the params object here with destructuring...
}

When I tried to refactor id to thingId, it renamed it correctly in the parameter object variable and the symbols in the function body, but it did not rename it in the "shape" of the parameter object (I don't know what else to call it).

Expected:

getExistingThing({
thingId,
spaceId
}: {
thingId: string, <<< should change here
spaceId: string
}): IThingInfo {

Got:

getExistingThing({
thingId,
spaceId
}: {
id: string, <<< doesn't change though
spaceId: string
}): IThingInfo {

I would also love it if someone could tell me what the various parts of this kind of function declaration is called. I use it for named arguments which I love, but I just don't know what the various pieces are called. I just know it's awesomeness.

(VS Code version 0.10.8)
Issue 1:
Expected behavior, to be able to call something like:

console.log(arg1, arg2, arg3) and see the output in stdout separated by commas.

Actual behavior is that only the first argument is output.

Issue 2:
It appears as though if I run console.log(err, result); only err will get logged to the terminal and never result. It should log all arguments passed in as strings separated by commas.
Issue 1:
Current Behavior:

When using npm@7, if the folder name in which the project is being built matches the name of the project in package.json, a name property is actively removed (or never set) from package-lock.json.

If the project folder does not match the name in package.json then the property is actively set.

This is a change controlled file by definition. At the very least, this can cause thrashing of package-lock.json if multiple developers are working on the same project and their working copies are in different folders.

Expected Behavior:

The folder in which a project is checked out on the local file system should have zero bearing on the content of package-lock.json.

Steps To Reproduce:

Check out a project into a folder with a name that matches the name of the package.

Do an npm install

Check the content of package-lock.json and confirm that odd name property does not exist.

Rename the project folder to something that does not match the name of the package.

Do an npm install

Note that `package-lock.json" changes.

Open package-lock.json and confirm that odd name property does exist.

Environment:

Issue 2:
Current Behavior:

package-lock.json changes depending on name of local copy of git repo, e.g. if i have two copies of the same repo locally one which matches the name in package.json and one which doesn't i get two different package-lock files, one specifies the name of the package in the inner packages list and one doesn't.

Expected Behavior:

package-lock.json should be independent of top level directory name, when working in a team there shouldn't be unnecessary changes to package-lock file due to a team member having a different local name of their git repository.

Steps To Reproduce:

clone a repository twice one in the default named directory and one into a name that differs from the repo name.

run npm install

two different package-lock files will be generated.

Environment:

OS: Ubuntu 20.04

Node: 15.3.0

npm: 7.0.14
Issue 1:
Hello, I can’t remap any key to the play/pause key. Every other key combo works, including other media keys, but nothing works to create a play/pause key (my current keyboard is lacking media keys). Even using the option to type the key I’m choosing, and using a spare keyboard with media keys, so I know I’m picking the right option - doesn't work.

I've tried another utility called uncap, to run this change as well, but it didn't work either: uncap 0x6A:0xB3 should map the multiply * on the numpad to the play/pause key.

I know that it is possible, because using sharpkeys it did work

.

Windows 10 Pro 64-bit [Version 10.0.18363.959]

Intel i5-3470

12 GB RAM

Issue 2:
Environment

Windows build number: `10.0.19041.264`
PowerToys version: `0.18.0`
PowerToy module for which you are reporting the bug (if applicable): `Keyboard Manager`

Tested using a Surface Pro 6 type cover (Australian model) and a Microsoft Sculpt™ Comfort Keyboard

Steps to reproduce

Attempt to map Play/Pause Media to any other key (e.g. End)

Expected behaviour

In my example above, pressing End should play/pause media.

Actual behaviour

Pressing End does nothing. The original Play/Pause Media button still works. Testing with Spotify Desktop and YouTube playing in Edge Chromium.

Other keymaps work fine (see the attached screenshot).

Screenshots
Issue 1:
Environment

Windows Build Number: 10.0.18362.0
WIndows Terminal version: 0.6.2951.0

3 Monitor Setup
- Main Screen High-DPI (Scaling 150%, 3840x2160)
- Left and right: Scaling 100%, 1920x1200

Steps to reproduce

Start Terminal

Terminal window opens on Main Screen (High DPI, Scaling 150%)

Move Window on secondary screen (Scaling 100%)

Expected behavior

(Window scales down correctly)

Window should stay on second monitor

Actual behavior

(Window scales down correctly)

Terminal window disappears after around 1 second without message

(Process is terminated according to Task Manager/Process Explorer)

Additional information

If I set both screens to the same scaling (either 100% or 150%) the error does not occur.

If I set the secondary screen to 150% and the main screen to 100%, I can move the Window from the (low-scale) main screen to the (150% scaled) secondary screen without problem. When I move the window back to the 100%-Screen, it disappears again.

Issue 2:
Currently i configure cmd.exe and pwsh.exe as taskbar shortcuts and i can configure these shortcuts to always run in admin mode when i open them.

Is is possible to do the same for the terminal app? Not sure if this is possible since it is a store app, and not a win32 app, but it would be really convenient if i didn't have to right click a couple of times and then select Run as Administrator every time i launch the terminal.
Issue 1:
Neil Hart opened SPR-2649 and commented

There is a Sun bug: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4665132 that causes us to fail when loading our XML config files. When using this within JWS and with a very limit security policy we get the following stack trace:

java.security.AccessControlException: access denied (java.lang.RuntimePermission getClassLoader)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.Thread.getContextClassLoader(Unknown Source)

at org.springframework.util.ClassUtils.getDefaultClassLoader(ClassUtils.java:101)

at org.springframework.core.io.DefaultResourceLoader.<init>(DefaultResourceLoader.java:53)

at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:178)

at org.springframework.context.support.AbstractRefreshableApplicationContext.<init>(AbstractRefreshableApplicationContext.java:78)

at org.springframework.context.support.AbstractXmlApplicationContext.<init>(AbstractXmlApplicationContext.java:58)

at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:90)

at com.creditex.spring.SpringRegistry$StaticSpringRegistry.add(SpringRegistry.java:127)

Can we/you change the ClassUtils.getDefaultClassLoader() to get the Thread's classLoader in a try/catch block? Like this:

public static ClassLoader getDefaultClassLoader() {
ClassLoader cl = null;
try {
cl = Thread.currentThread().getContextClassLoader();
}
catch (Throwable ex) {
if (logger.isDebugEnabled()) {
logger.debug("Getting the thread class loader cause a failure: " + ex);
}
}
if (cl == null) {
// No thread context class loader -> use class loader of this class.
cl = ClassUtils.class.getClassLoader();
}
return cl;
}

The current workaround I have now is to duplicate the class hierarchy:

AbstractApplicationContext

AbstractRefreshableApplicationContext

AbstractXmlApplicationContext

ClassPathXmlApplicationContext

so that my AbstractApplicationContext passes in the ClassLoader to DefaultResourceLoader

Thanks

Affects: 1.2.8, 2.0 RC3, 2.0 RC4

Backported to: 1.2.9

Issue 2:
Michael Kanaley opened SPR-2326 and commented

Spring 2.0 now supports ApplicationContexts implementing the Lifecycle interface. I would like to see the start/stop functionality treated identically to that of init/destroy in the following way:

sending of an ApplicationEvent after start and before stop

Currently init and destroy of ApplicationContexts send events as well. I would like to see this for start/stop too.

Affects: 2.0 RC2
Issue 1:
I'm submitting a ... (check one with "x")

[x ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior

NgModule constructor calls two times when loading of module lazy using loadChildren (Active route is different)

But when NgModule is active route, constructor invoked single time

Expected/desired behavior

Single time loading and compiling

Please tell us about your environment:

Angular version: 2.0.0-rc.5

Browser: Chrome 53

Language: TypeScript 2.0

Issue 2:
@Directive({
selector: 'parent child'
})

Should throw an error, since we don't support selectors which cross elements.
Issue 1:
Two recent requests recently to suppress logging on console 1, 2

Since TensorFlow uses Google logging library standard flags should work, ie "export GLOG_logtostderr=0" should turn off logging to console. However that doesn't work, I suspect these flags are explicitly overriden in code somewhere

Issue 2:
https://www.tensorflow.org/get_started/get_started

Basic Usage example output:

WARNING:tensorflow:Using temporary folder as model directory: C:\Users\pocherka\AppData\Local\Temp\tmpaq48b_3u

WARNING:tensorflow:From C:\Users\pocherka\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\head.py:625: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30.

Instructions for updating:

Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.

WARNING:tensorflow:From C:\Users\pocherka\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\head.py:625: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30.

Instructions for updating:

Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.

WARNING:tensorflow:From C:\Users\pocherka\AppData\Local\Programs\Python\Python35\lib\site-packages\tensorflow\contrib\learn\python\learn\estimators\head.py:625: scalar_summary (from tensorflow.python.ops.logging_ops) is deprecated and will be removed after 2016-11-30.

Instructions for updating:

Please switch to tf.summary.scalar. Note that tf.summary.scalar uses the node name instead of the tag. This means that TensorFlow will automatically de-duplicate summary names based on the scope they are created in. Also, passing a tensor or list of tags to a scalar summary op is no longer supported.

train loss: {'global_step': 1000, 'loss': 2.3828899e-11}

eval loss: {'global_step': 1000, 'loss': 0.0025255322}sic usage
Issue 1:
Version

2.5.17

Reproduction link

https://codepen.io/megacromulent/pen/gdMYLx?editors=1010

Steps to reproduce

Create vue app with items displaying in a list.

Add transition group with v-for with format like v-for="(item, index) in items"

Use "index" from v-for as the v-bind:key (like: v-bind:key="index" )

Add and remove items from the data.

What is expected?

The item being removed/added should have the transition applied to it.

What is actually happening?

The last item in the list gets the transition applied.

This may be an old bug, as I was hunting for a solution to my problem, I ran into this from May 2017:

https://stackoverflow.com/questions/43598308/vue-js-wrong-transition-group-animation-position

If this is the intended behavior using index as the key, then can their be at least a warning message in the dev version of Vue.js to explain this? Or perhaps searchable text in the documentation with something like "only last item in list is animating/transition applied" so a solution can be found without thinking there is a bug in Vue.js.

Issue 2:
Version

2.6.10

Reproduction link

cdn.jsdelivr.net

Steps to reproduce

Our project cannot be accessed because vue cannot be obtained from https://cdn.jsdelivr.net/npm/vue@v2.6.10，Copying the link to the browser will report an error

google chrome error info：

cdn.jsdelivr.net 通常会使用加密技术来保护您的信息。Google Chrome 此次尝试连接到 cdn.jsdelivr.net 时，此网站发回了异常的错误凭据。这可能是因为有攻击者在试图冒充 cdn.jsdelivr.net，或 Wi-Fi 登录屏幕中断了此次连接。请放心，您的信息仍然是安全的，因为 Google Chrome 尚未进行任何数据交换便停止了连接。

您目前无法访问 cdn.jsdelivr.net，因为此网站使用了 HSTS。网络错误和攻击通常是暂时的，因此，此网页稍后可能会恢复正常。

What is expected?

can visit

What is actually happening?

Not accessible
Issue 1:
For example it detects http://www.15min.lt encoding as ISO-8859-1, but the encoding is set as utf8

Issue 2:
Requests has a get_encodings_from_content() function, but it doesn't seem to be used anywhere -- only get_encoding_from_headers() is used.

Any reason why? I'd think on most pages, trying for the meta tag encoding declaration first will produce better results. See The Verge, for one example (the meta tag declares encoding as utf-8, but Requests detects as ISO-8895-1).
Issue 1:
Consider the following snippet run in the main process where one wants to listen for "will-prevent-default" events and after some asynchronous operation (do_something, a call which returns a Promise) initiated by the event listener, depending on the result (result) of the operation, call preventDefault on the event to allow page to unload:

/// Assume `win` refers to your typical application window (a `BrowserWindow` instance)
win.webContents.on("will-prevent-default", ev => {
do_something().then(result => {
if(result == some_value) {
ev.preventDefault(); /// Does NOT work (page doesn't unload) when called from a callback, i.e. when not called immediately (synchronously) in the event handler.
}
});
/// `ev.preventDefault` would have the documented effect if one placed the call here, e.g. somewhere it would be executed as part of the event handler itself, not a callback.
});

One would expect preventDefault to work as documented regardless of when it is called?

Is this a known issue, and is this simply a bug?

Electron 6.0.10 win32 x64

Microsoft Windows 10 64-bit Enterprise build 1709

Issue 2:
Output of node_modules/.bin/electron --version: v4.0.1

Operating System (Platform and Version):

OS: Linux, Xubuntu (Ubuntu).

Version: 18.04.1 LTS (Bionic Beaver).

Kernel version: 4.15.0-43-generic

Output of node_modules/.bin/electron --version on last known working Electron version (if applicable): v5.0.1

Procedure

I put win.setMenu(null) directly under the browser window creation/declaration:

// Create the browser window.
win = new BrowserWindow({ width: 800, height: 600 })

// Hide the menu bar
win.setMenu(null)

...

Expected Behavior

I expected the menu bar to be hidden at window creation.

Actual behavior

The menu was still showing.
Issue 1:
Bug report

Describe the bug

On certain browsers, like Chrome on iOS, there is already a progress bar in place causing duplicate progress bars when using the with-loading example repo.

To Reproduce

Follow instructions on https://github.com/zeit/next.js/tree/canary/examples/with-loading to set project up.

Install and run locally

Navigate to the non-existing page using Chrome on iOS

Expected behavior

NProgress should not be displayed for browsers that have default progress bars. This is a next.js issue because the example should account for the behavior of NProgress.

Screenshots

Issue 2:
Hey guys, I'm trying to use the dynamic import system, but it doesn't seem to be working.

I'm trying to import components only on the client side and not server side render them.

const ButtonGroup = dynamic(import('../components/base').then(m => {
const { ButtonGroup } = m;
ButtonGroup.__webpackChunkName = m.__webpackChunkName;
return ButtonGroup;
}), {ssr: false});
const RoundedButton = dynamic(import('../components/base').then(m => {
const { RoundedButton } = m;
RoundedButton.__webpackChunkName = m.__webpackChunkName;
return RoundedButton;
}), {ssr: false});

I console logged what RoundedButton should be and I got this giant function:

In my render function I have this:

<RoundedButton
disabled={!auth.isLoggedIn || draft}
flat={true}
onClick={() => (
this.handleBookmark(draft, match.params.id.replace(new RegExp('_', 'g'), ' '))
)}
styles={{
button: [styles.bookmark__button, isBookmarked && styles.bookmarked]
}}
type="button"
value={isBookmarked ? 'Bookmarked' : 'Bookmark'}
/>

But I'm getting an error:

TypeError: Cannot read property 'click' of undefined

which I'm suspecting it doesn't like the onClick I'm passing through there. Anyone know what's up?

[x ] I have searched the issues of this repository and believe that this is not a duplicate.

Tech
Version

next
v5.0.0

node
v8.1.2

OS
mac osx

browser
chrome
Issue 1:
echo "export const hi = () => 'hi'" > mod.js
deno
> import('./mod.js')
thread 'tokio-runtime-worker-0' panicked at 'dyn_import callback not set', ../../core/isolate.rs:262:7
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
fatal runtime error: failed to initiate panic, error 5
[1] 20373 abort deno

Issue 2:
I know this is already on the radar, but wanted to create a distinct issue.

(This is required for a test runner.)
Issue 1:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

Dubbo version: xxx

Operating System version: xxx

Java version: xxx

Steps to reproduce this issue

xxx

xxx

xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps？

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Issue 2:
I have searched the issues of this repository and believe that this is not a duplicate.

I have checked the FAQ of this repository and believe that this is not a duplicate.

Environment

None

Steps to reproduce this issue

https://dubbo.incubator.apache.org/zh-cn/docs/dev/principals/robustness.html

ctrl-F search the key words of 服务消息者从注册中心拿到提供者列表后

Expected Result

service cosumers

Actual Result

服务消息者
Issue 1:
I am not able to use resource pool name in my playbook other than: resource_pool: "/Resources"

Though resource_pool exists and can be discovered using pysphere.

from pysphere import VIServer

s = VIServer()

s.connect("host", 'user', 'password')

vm = s.get_vm_by_name('<vm_name>')

vm.get_resource_pool_name()

'<resource_name>'

TASK: [vsphere_guest ] ********************************************************

failed: [localhost] => {"failed": true}

msg: Cannot find Resource Pool named: databases_pool

Issue 2:
Ansible Version:

ansible 1.9.2, module: vsphere_guest

Ansible Configuration:

Default configuration.

Environment:

Ubuntu 14.04.2 LTS (GNU/Linux 3.13.0-57-generic i686)

Summary:

I am not able to use resource pool name in my playbook other than: resource_pool: "/Resources"

Though resource_pool exists and can be discovered using pysphere.

Steps To Reproduce:

In Ansible playbook provide 'resource_pool' with resource pool created/present on VCenter.

Result:

TASK: [vsphere_guest ] ********************************************************

failed: [localhost] => {"failed": true}

msg: Cannot find Resource Pool named: databases_pool

But resource pool is present on VCenter and using pysphere resource pool can be discovered.

from pysphere import VIServer
s = VIServer()
s.connect("my_host", 'user', 'password')
vm = s.get_vm_by_name('')
vm.get_resource_pool_name()
'databases_pool'

Expected:

vsphere_guest module should be able to create VM guest in resource pool.

Actual Results:

vsphere_guest module only creates VM guest if 'resource_pool: /Resources'