WhereIsAI/github-issue-similarity huggingface dataset:
Issue 1:
Short version: setTimeout fails inside angular2 class cosntructor, but works fine outside of its context.

Full example you will find here: https://plnkr.co/GYir5dReBvTt0QrPp9eF?p=preview It contains function "run" which starts coutdown (inside console). Once inside angular2 code, once outside. The expected behavior is for countdown to hit zero both time.

ps. Tested at newest chrome/firefox on ubuntu system.

ps. I've found two issues about setTimeout arguments: #344 and #6088. But I'm not sure if they are related.

Issue 2:
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

When opening my Angular 2 application in Internet Explorer (10 or 11), I get the error (SystemJS) Syntax Error"

Expected behavior

The application works in Chrome and Firefox, so I would expect it to work in IE as well.

Minimal reproduction of the problem with instructions

I went to recreate a bare-bones application to see if it works and it didn't, so then I went even more basic and just went to look at the Angular 2 Quickstart example here: https://angular.io/docs/ts/latest/quickstart.html and noticed the link "QuickStart example on Plunker" does not render as a in Internet Explorer (it is a custom html tag for an angular 2 application). I tried copy and pasting the link to IE and it does not work either. I cannot find any Angular 2 Applications that work in IE.

What is the motivation / use case for changing the behavior?

I would like my application to work in IE as well

Please tell us about your environment:

Windows, .NET, Visual Studio, NPM

Angular version: 2.0.X

2.0.1

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

IE 10, 11 (earlier versions as well I would guess)

Language: [all | TypeScript X.X | ES6/7 | ES5]

all

thank you
Issue 1:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
yes

Symfony version
>2.3

Is there any reason this (snippet below) exists? the rfc does not require implementations to be identical, but that the responses be equivalent.

// check HTTP method requirement
if ($requiredMethods = $route->getMethods()) {
// HEAD and GET are equivalent as per RFC
if ('HEAD' === $method = $this->context->getMethod()) {
$method = 'GET';
}
if (!in_array($method, $requiredMethods)) {
$this->allow = array_merge($this->allow, $requiredMethods);
continue;
}
}

Worse, in 2.3, what i am currently using (could be it's the same in higher versions), the router debug will actually not take this into consideration and report that the routing works as per the user routing definition

There could be valid reasons to not want to execute the same code for GET and HEAD - f.e. avoid expensive hydration in exploratory HEAD calls.

If the Content-Length defined in 14.13 is a factor here, that is expressed with SHOULD, not MUST, so no reason to impose this on the user.

Issue 2:
Q
A

Bug report?
yes

Feature request?
no

BC Break report?
no

RFC?
no

Symfony version
2.8.14

Related to #20893 issue, theres a problem when you change to prod environment, all the routes annotated with @Method("HEAD") are not accessible, because before to send it to backend, is sent a GET instead of a HEAD and that route is not configured for this method.

The only solution is to annotate it as @Method({"HEAD", "GET"}).
Issue 1:
running 2 tests from ./cli/tests/unit/webgpu_test.ts
webgpuComputePass ...
============================================================
Deno has panicked. This is a bug in Deno. Please report this
at https://github.com/denoland/deno/issues/new.
If you can reliably reproduce this panic, include the
reproduction steps and re-run with the RUST_BACKTRACE=1 env
var set and include the backtrace in your report.

Platform: windows x86_64
Version: 1.30.3
Args: ["C:\\Users\\GJZwiers\\repos\\deno\\target\\debug\\deno.exe", "test", "--unstable", "--location=http://js-unit-tests/foo/bar", "--no-prompt", "-A", "C:\\Users\\GJZwiers\\repos\\deno\\cli\\tests\\unit"]

thread 'tokio-runtime-worker' panicked at 'called glDebugMessageCallback but it was not loaded.', C:\Users\GJZwiers\.cargo\registry\src\github.com-1ecc6299db9ec823\glow-0.12.0\src\gl46.rs:4234:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
test integration::js_unit_tests::js_unit_tests ... FAILED

failures:

---- integration::js_unit_tests::js_unit_tests stdout ----
test_server starting...
thread 'integration::js_unit_tests::js_unit_tests' panicked at 'assertion failed: `(left == right)`
left: `Some(0)`,
right: `Some(1)`', cli\tests\integration\js_unit_tests.rs:37:3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

failures:
integration::js_unit_tests::js_unit_tests

test result: FAILED. 1 passed; 1 failed; 0 ignored; 0 measured; 981 filtered out; finished in 129.18s

Issue 2:
webgpuComputePass
AssertionError: Test case is leaking resources.
Before: {
"0": "stdin",
"1": "stdout",
"2": "stderr"
}
After: {
"0": "stdin",
"1": "stdout",
"2": "stderr",
"3": "webGPUAdapter"
}

Make sure to close all open resource handles returned from Deno APIs before
finishing test case.
at assert (deno:runtime/js/06_util.js:41:13)
at resourceSanitizer (deno:runtime/js/40_testing.js:128:7)
at async exitSanitizer (deno:runtime/js/40_testing.js:144:9)
at async Object.applyPermissions [as fn] (deno:runtime/js/40_testing.js:245:9)
at async runTest (deno:runtime/js/40_testing.js:349:7)
at async Object.runTests (deno:runtime/js/40_testing.js:460:22)

failures:

webgpuComputePass

Failed on Windows. Maybe this does not close the right resource sometimes?

deno/cli/tests/unit/webgpu_test.ts

Line 98
in
43a6353

Deno.close(Number(resources[resources.length - 1]));
Issue 1:
A static constructor is a function that is run only once when the class is loaded. It can be used to initialize static class members and maybe as entry point to the application.

Suggested syntax is:

class MyClass {
static initialized = false;

static constructor() {
MyClass.initialized = true;
}
}

alert(MyClass.initialized);

That would be same as the following:

class MyClass {
static initialized = false;

static __ctor = (() => {
MyClass.initialized = true;
})();
}

alert(MyClass.initialized);

Except that __ctor does not need to be assigned to the class in the output code, and only needs to be invoked in an anonymous function. Also compiler can check that no more than one static constructor is defined in a class.

Update: Since this generates an Immediately-Invoked Function Expression (IIFE), compiler should make sure to move it to the end of the class definition in the output JavaScript.

TypeScript:

class MyClass {
static constructor() {
MyClass.initialized = true;
}

static initialized = false;
}

Expected JavaScript output:

var MyClass = (function () {
function MyClass() {
}
MyClass.initialized = false;

// run last
(function () {
MyClass.initialized = true;
})();
return MyClass;
})();

Note that body of the static constructor is moved to the bottom and invoked.

Related suggestion in codeplex: Please add static constructors to classes

Issue 2:
// test.tsx
/// <reference path="react/react.d.ts" />
/// <reference path="react/react-dom.d.ts" />
import React = require('react');
import ReactDOM = require('react-dom');
let Test = (state: any) => <div />;
ReactDOM.render(<Test />, document.getElementById('react'));

compiled with

$ tsc test.tsx --jsx react --module commonjs

results in

error TS2605: JSX element type 'Element' is not a constructor function for JSX elements.

In case we translate JSX by hand and use

let Test = state => React.createElement("div", null);
ReactDOM.render(React.createElement(Test, null), document.getElementById('react'));

everything works as expected.
Issue 1:
Add "open Windows terminal here" to right-click context menu?

We know that, for windows 7, by default when we click "shift + right click with mouse" when we enter into a folder without selecting anything, we can see the option "open command window here".

While for windows 10, by default when we click "shift + right click with mouse", we can see the option "open powershell window here".

So for Windows 10 (version later than 1903), how can we make the following three options available in right-click context menu?

open command window here

open powershell window here

open Windows terminal here

Looking forward to your reply, thanks a lot~

Issue 2:
How to add to the right-click menu

This is a necessary function.

Administrator mode must also be supported

For example:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\folder\shell\cmd]
@="CMD"

[HKEY_CLASSES_ROOT\folder\shell\cmd\command]
@="cmd.exe /k cd %1"
Issue 1:
Challenge use-hex-code-to-mix-colors has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

During the Hex Code challenge, the hex code for Dodger blue does not seem to be working. Multiple other Campers have reported the same issue on Gitter.

<style>
.red-text {
color: #FF0000;
}
.green-text {
color: #00FF00;
}
.dodger-blue-text {
color: #1e90ff;
}
.orange-text {
color: #FFA500;
}
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>

```

Issue 2:
Challenge use-hex-code-to-mix-colors has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

<style>
.red-text {
color: #ff0000;
}
.green-text {
color: #00ff00;
}
.dodger-blue-text {
color: #1e90ff;
}
.orange-text {
color: #ffa500;
}
</style>

<h1 class="red-text">I am red!</h1>

<h1 class="green-text">I am green!</h1>

<h1 class="dodger-blue-text">I am dodger blue!</h1>

<h1 class="orange-text">I am orange!</h1>

```

Screenshot:
![image](https://cloud.githubusercontent.com/assets/3306170/18378269/47f34348-766c-11e6-8fb7-6e2da365ced7.png)
Issue 1:
Context:

Playwright Version: 1.18.1

If you need to use extensions, there is no options to configure this behaviour for browser from launchOptions as in incognito mode browser removes all extensions.

Issue 2:
On one of our projects, we need to run tests with extensions. To launch extensions, we have to set browserType.launchPersistentContext in the beforeAll section of each test.

It would be convenient to set launchPersistentContext in a playwright.config file, for instance:

use: {
launchPersistentContext: {
userDataDir: '/tmp/test-user-data-dir',
args: [
`--disable-extensions-except=${path.join(__dirname, './my-extension')}`,
`--load-extension=${path.join(__dirname, './my-extension')}`
]
}
}
Issue 1:
Below is my menu component

<Menu>
<Menu.Item header>
<Link href="/">
MyBlog
</Link>
</Menu.Item>
<Menu.Menu position='right'>
<Menu.Item name='about' active={activeItem === 'about'} onClick={this.handleItemClick} >
<Link href="/about">
<a>About</a>
</Link>
</Menu.Item>
<Menu.Item name='signup'>
<Link href="/signup">
<a>Sign Up</a>
</Link>
</Menu.Item>
<Menu.Item name='login'>
<Link href="/login">
<a>Login</a>
</Link>
</Menu.Item>
</Menu.Menu>
</Menu>

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

And I get the following error

<a> cannot appear as a descendant of <a>. See Header > MenuItem > a > ... > a.

Your Environment

Tech
Version

next
2.4.4

node
8.0.0

OS
macOS Sierra

browser
Chrome Version 59.0.3071.115

Issue 2:
I have several nextjs application that are statically exported. Navigation through pages works fine except when I use right click > Open Link in new tab : query params are missing in the url of the opened tab

When I run the application with a server, everything works fine. This issue is related to static export.

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

Expected Behavior

When I open a link in a new tab, I expect to have the url of the link in the new tab (like a regular click)

Current Behavior

When I open a link in a new tab, query params are missing in the url

Steps to Reproduce (for bugs)

Create two pages /a /b

In page a add a <link href="/b?param=value"><a href="/b?param=value">link</a></link>

Static export

On page a, right click > open link in new tab => the url is /b/ instead of /b/?param=value

Context

My application is a marketplace, from a list users open several tabs to compare details of opened items

Your Environment

Tech
Version

next
5.1.0

node
8.10

OS
Reproduced on MacOS and Linux

browser
Reproduced on Firefox and Chrome
Issue 1:
Hi,

I investigated an enjoying bug in terms of the auto formatting in atom. This happens if you call "Auto Ident" or if code becomes pasted into the editor.

In many languages, e.g. Java, Javascript, PHP, ... the following should be formatted as this:

if(somevariable === 3)
alert(somevariable);
somevariable++;

This is the similar behavior as:

if(somevariable === 3) {
alert(somevariable);
}
somevariable++;

Atom unfortunately format all lines behind the statements the following way:

if(somevariable === 3)
alert(somevariable);
somevariable++;

Hope this can be fixed soon 👍

Issue 2:
This issue can include this earlier one.

It seems that a lack of braces break the auto indentation. For example:

if (true)
i = 1;
else
i = 2;

Turns into:

if (true)
i = 1;
else
i = 2;
Issue 1:
We use expat to parse the Android fonts XML file. We could hand-roll a parser that is just enough to read the shipped fonts.xml files that would be both faster and smaller than expat.

Issue 2:
Expat is used by Skia for parsing font manifests on Android exclusively. In the latest build it takes up about 65kb uncompressed (https://storage.googleapis.com/flutter_infra/flutter/5a4bd0de69fbceb36ccecfcbf8c81dc8d94ea949/android-arm64-release/sizes/index.html).

We should verify that it's not getting bundled into non-Android builds (I believe it's not but it's been a while since I've checked). We should also explore whether we could slim this down - i.e. by using a different XML parsing implementation that may be smaller, or by using JNI to get the data instead. Relevant part of Skia is: https://github.com/google/skia/blob/master/src/ports/SkFontMgr_android_parser.cpp - some BUILD info would have to change as well to make this work in Skia.

Related bug: #40220

This would have the added benefit of resolving the expat portion of #39532

/cc @xster @chinmaygarde @matthew-carroll @mklim @jason-simmons
Issue 1:
There are no docstrings for @inline and @inbounds:

help?> @inline
No documentation found.

Base.@inline is a macro.

# 1 method for macro "@inline":
@inline(ex::ANY<:Any) in Base at expr.jl:122

help?> @inbounds
No documentation found.

Base.@inbounds is a macro.

# 1 method for macro "@inbounds":
@inbounds(blk::ANY<:Any) in Base at essentials.jl:162

EDIT: Partly duplicate of #9405

Issue 2:
Difficult to tell if this is a duplicate of some existing subtyping issue, but it's important:

julia> typeintersect(Base.RefValue, Ref{Union{Int,T}} where T)
Union{}

The answer should be (ideally) RefValue{Union{Int,T}} where T.
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: 2.6.6

Operating System version: MacOS 10.14.3

Java version: 1.8.0_151

Steps to reproduce this issue

sh bin/start.sh

Expected Result

The dubbo jar can not start.

Actual Result

sh bin/start.sh
: No such file or directoryin
: No such file or directory.
: command not found7:
: command not found13:
bin/start.sh: line 93: syntax error: unexpected end of file

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

Dubbo version: 2.7.1

Operating System version: CentOS Linux release 7.6.1810 (Core)

Java version: 1.8

Steps to reproduce this issue

yml配置文件

dubbo:
application:
name: bessky-boot-service
protocol:
name: dubbo
port: 28300
scan:
basePackages: com.bessky
registry:
address: zookeeper://192.168.99.230:2181

测试接口

public interface HelloService {
String hello(String name);
}

接口实现类

@Service
public class HelloServiceImpl implements HelloService {
@Override
public String hello(String name) {
System.out.println(name);
return "Hello, " + name;
}
}

4.启动类

@SpringBootApplication
public class BesskyBootServiceApplication {
public static void main(String[] args) {
SpringApplication.run(BesskyBootServiceApplication.class, args);
}
}

5.将Spring BOOT工程打包上传到CentOS服务器测试

问题1：注册到ZK上的地址变成了127.0.0.1，回退到Dubbo的2.7.0版本是能正确获取到网卡IP地址的。

执行hostname命令结果是localhost.localdomain

/etc/hosts文件内容是

127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4

::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

这种配置在2.7.0上是可以正确获取到网卡IP地址的

问题2：注册到ZK上的服务都变成了静态服务

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

Expected Result

1、正常获取到网卡IP地址

2、动态服务

Actual Result

服务地址:	dubbo://127.0.0.1:28300/com.bessky.hello.service.HelloService?anyhost=true&application=bessky-boot-service&bean.name=providers:dubbo:com.bessky.hello.service.HelloService&default.deprecated=false&default.dynamic=false&default.register=true&deprecated=false&dubbo=2.0.2&dynamic=false&generic=false&interface=com.bessky.hello.service.HelloService&methods=hello&pid=181167®ister=true&release=2.7.1&side=provider×tamp=1553819455170

主机名:	(localhost)127.0.0.1:28300

所属端:	provider

方法列表:	hello

release:	2.7.1

deprecated:	false

Dubbo版本:	2.0.2

进程号:	181167

default.dynamic:	false

接口名:	com.bessky.hello.service.HelloService

generic:	false

default.deprecated:	false

应用名:	bessky-boot-service

default.register:	true

动态:	false

绑定所有IP:	true

bean.name:	providers:dubbo:com.bessky.hello.service.HelloService

申请注册:	true

时间戳:	2019-03-29 08:30:55 (1553819455170)

类型:	静态

状态:	已启用

检查:	警告
Issue 1:
The follow case where link buttons and input type=submit (or type=button) result in btn-group's not aligning within the btn-toolbar in all major browsers.

<div class="btn-toolbar">
<div class="btn-group">
<input name="commit" id="commit" type="submit" class="btn" value="Update"/>
<a href="#" class="btn">Remove</a>
</div>
<div class="btn-group">
<a href="#" class="btn">Cancel</a>
</div>
</div>

My work around was to set chained .btn-group to margin-bottom the same value as .btn-toolbar, which isn't getting picked up by any chained .btn-group's. Here's the css override:

.btn-group + .btn-group {

margin-bottom: 9px;

}

Here's the original bootstrap 2.0 css:

.btn-group + .btn-group {

margin-left: 5px;

}

.btn-toolbar {

margin-top: 9px;

margin-bottom: 9px;

}

Issue 2:
Hi folks - first of all great job with the 2.0 release :)

Apologies if this is a duplicate, had a look through (I know there are a lot of new tickets) but couldn't find anyone who'd reported this issue.

When you have your browser width at exactly 768px wide (e.g. iPad in portrait mode), two media queries in the responsive css file overlap: those targetting max-width:768px and min-width:768px. The net result of this is that whilst the max-width query sets .row { margin-left:0 } this is overridden by the next query which re-instates margin-left:-20px.

This means that when viewing a page at exactly 768px wide, the content suddenly butts up against the left hand side of the screen.

I haven't submitted with a PR with a fix as I'm not sure what the most graceful solution is, so I've temporarily worked around it by adding my own rule for an exact width of 768px and setting margin:0.

Cheers!

Nick
Issue 1:
It's possible to interact with form controls by their <label>, but not to select them.

Other elements can also be labelled with aria-label/aria-labelledby, such as:

<h2 id="list-of-things">A list of things</h2>
<ul aria-labelledby="list-of-things">
<li>...</li>
</ul>

but there isn't a way (that I'm aware of) to select an element with the label 'A list of things'.

The selector documentation gives the example

await page.locator('[aria-label="Sign in"]').click();

which is enough when using [aria-label].

Suggestions

A label selector that works similar to text ('label=A list of things', 'label="A list of things"', 'label=/A\\s*list\\s*of\\s*things/i') that works on aria-label, aria-labelledby and <label>.

Recognise the aria-labelledby attribute and fill in aria-label with its text content. (Don't feel great, but means not extra selector.)

Issue 2:
System info

Playwright Version: 1.32.1

Operating System: Windows 11 (WSL2 Ubuntu 22.04.2 LTS)

Browser: WebKit

Source code

I provided exact source code that allows reproducing the issue locally.

Link to the GitHub repository with the repro

https://github.com/ltsuda/webkit-salt-file

Steps

git clone https://github.com/ltsuda/webkit-salt-file.git
npm ci
npx playwright install
npx playwright test --project 'webkit'

The only thing related to this is from:

https://stackoverflow.com/questions/75808396/playwright-webkit-creates-a-salt-file-in-the-root-of-directory

Also, tried without the webServer to use an external URL but issue didn't reproduce

Expected

salt file not created

Actual

salt file is created with 4-5 binary characters
Issue 1:
I used following definition to create a pod:

{
"id": "containermanifest",
"kind": "Pod",
"apiVersion": "v1beta1",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "containermanifest",
"containers": [{
"name": "heapster",
"image": "kubernetes/heapster",
}],
"restarPolicy": {"never": {}}
}
},
"labels": {
"name": "containermanifest"
}
}

The creation succeeded. But I found the restartPolicy remained to be always. I was confused and look again and again into the code and template. Finally I found I made a typo restarPolicy. It seems the engine ignored this line and used the default value of restartPolicy.

It's a small mistake but took me a lot of time. So I think we should validate each field of the template and warn the user about those unrecognized fields.

Issue 2:
Going through this guide to set up kubernetes locally via docker I end up with the error message as stated above.

Steps taken:

export K8S_VERSION='1.3.0-alpha.1' (tried 1.2.0 as well)

copy-paste the docker run command

download the appropriate kubectl binary and put in on PATH (which kubectl works)

(optionally) setup the cluster

run kubectl get nodes

In short, no magic. I am running this locally on Ubuntu 14.04, docker 1.10.3. If you need more information let me know
Issue 1:
I'm trying to fix microsoft/vscode-go#103, but as far as I can tell this isn't possible currently without tokenizing the whole file again in my extension and manually checking whether I'm in a comment to suprress providing results.

It would be nice if the CompletionItemProvider provided a setting to suppress it's results when in certain tokens/scopes.

The implementation of the TypeScript completion provider has an excludeTokens which seems to play this role but I can't get that to work in my own extension.

Issue 2:
VSCode Version: 0.10.13-insider

OS Version: Windows 7 64-bit

It would be nice if the diff view in the select for compare can be used to edit both files being compared instead of just the file on the right side.

It would make it easy to edit two very similar files at the same time, that only differ in certain parts.