sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: node
Issue: http request is destroyed for no reason
Labels: http

### Version

v16.10.0

### Platform

Darwin Kernel Version 20.6.0; root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64

### Subsystem

http

### What steps will reproduce the bug?

```js
const http = require('http');
const axios = require('axios');

const sleep = (time) => new Promise((resolve) => setTimeout(resolve, time));

const app = http.createServer(async (req, res) => {
  let body = '';
  req.on('data', (c) => { body += c; });
  req.on('end', async () => {
    req.body = body;
    console.log(req.destroyed);
    await sleep(1000);
    console.log(req.destroyed);
    req.on('aborted', () => {
      console.log('request aborted!');
    });
    req.on('close', () => {
      console.log('request closed!');
    });

    console.log('starting request');
    await sleep(5000);
    console.log('finishing request');
  });
});

const run = async () => {
  try {
    await axios.post('http://localhost:3000/',
      { ofek: 'cool' });
  } catch (e) {
    console.log('error:', e.code);
    await sleep(1000);
  }
};

app.listen(3000);
run();

```

### How often does it reproduce? Is there a required condition?

reproduced every time, i did notice it has something to do with sending body inside the request, at first i thought its an issue in express body parser
https://github.com/expressjs/body-parser/issues/460

### What is the expected behavior?

i expect the request.destroy() method not to be invoked, so the output should be:

```
false
false
starting request
request closed!
finishing request
```

### What do you see instead?

```
false
true
starting request
finishing request
```

### Additional information

no event is emitted after the request is destroyed, so i have no indication to what happened.
this whole issue happens only when sending body inside the request.
Repository: rust
Issue: Tracking Issue for more complex const parameter types: `feature(adt_const_params)`
Labels: T-lang,C-tracking-issue,A-const-generics,F-adt_const_params

This is a tracking issue for allowing more const parameter types.
The feature gate for this issue is `#![feature(adt_const_params)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.

### Steps

Most of the work here will be coordinated in the `#project-const-generics` stream on [zulip](https://rust-lang.zulipchat.com/#narrow/stream/260443-project-const-generics).

- [x] Implement `valtrees`
- [x] deal with structural equality
- [x] Figure out which types should be allowed as const parameter types and how
- [ ] Investigate ICEs around not-wf const arguments (e.g. #131052 #129095 #128232)
- [ ] Ensure no forwards compatibility issues with `min_generic_const_args`
- [ ] Finalize symbol mangling decision for values of arbitrary types (#61486 rust-lang/rfcs#3161)
- [ ] Document feature
- [ ] Stabilization report with lang FCP explaining all the differences between rfc and current impl

### Unresolved Questions

- Is the v0 mangling setup for `adt_const_params` forwards compatible with `unsized_const_params` (#128028)

cc @rust-lang/project-const-generics
Repository: kubernetes
Issue: Plumb request context to client-go credential plugin exec call
Labels: sig/auth,lifecycle/frozen,triage/accepted

> as an aside (and in a separate PR), we should plumb req.Context() to getCreds() and timeout the exec call if the driving request context expires

_Originally posted by @liggitt in https://github.com/kubernetes/kubernetes/pull/106768#discussion_r787203758_

If the request is terminated (i.e. times out), we should kill the client-go credential plugin instead of waiting for it to complete.  This change should include unit and integration tests.
Repository: storybook
Issue: Multiple links broken in the multiframework doc examples
Labels: documentation

**Describe the bug**
When viewing the [addons/docs multiframework docs](https://github.com/storybookjs/storybook/blob/next/addons/docs/docs/multiframework.md), there are many links that lead to 404s in both github and storybook.js.org.

**The following links are broken**
• "For webpack configuration, Docs for Vue defines [preset.ts](https://github.com/storybookjs/storybook/blob/next/addons/docs/src/frameworks/vue/preset.ts)"
• "which follows the [preset](https://storybook.js.org/docs/vue/api/presets) file structure:"
• "For props tables and descriptions, both of which are described in more detail below, it defines a file [config.jsx](https://github.com/storybookjs/storybook/blob/next/addons/docs/src/frameworks/vue/config.jsx)."
• "With the release of Storybook 6.0, we've improved how stories are rendered in the [Source doc block](https://storybook.js.org/docs/react/writing-docs/doc-blocks#source)."
• "To learn more and see how it's implemented in context, check out [the code](https://github.com/storybookjs/storybook/blob/next/addons/docs/src/frameworks/react/jsxDecorator.tsx) ." (repeated twice)

I understand that it would be a huge task to update all links throughout the documentation when things change, but perhaps redirects could be useful for docs that are moved.

I don't have enough information about where these links are intended to go to submit a PR.

**Additional context**
this multiframework doc was linked from [here](14876), and I believe it's important to have this info to move forward with better docs support for Preact.
Repository: vscode
Issue: Settings editor scrolls a little when I switch to it
Labels: bug,polish,settings-editor,confirmed

![Recording 2022-03-21 at 10 21 13](https://user-images.githubusercontent.com/323878/159328981-d33ee9fd-fca8-40b6-ad9f-cec5f42e7c2e.gif)
Repository: bitcoin
Issue: rpc: dumptxoutset as sqlite file
Labels: Feature

There has been at least 3 efforts to expand the `dumptxoutset` command to be able to export the data as CSV: 
* https://github.com/bitcoin/bitcoin/pull/18689
* https://github.com/bitcoin/bitcoin/pull/24202
* [luke-jr/bitcoin#rpc_dumptxoutset_hr](https://github.com/luke-jr/bitcoin/tree/rpc_dumptxoutset_hr)

JSON export also has been requested: https://github.com/bitcoin/bitcoin/issues/21670

Lately [@theStack suggested](https://github.com/bitcoin/bitcoin/pull/24202#issuecomment-1064124278) that we can leverage the SQLite format for the export.

I think this is the best approach since it is trivial to export both CSV and JSON from SQLite + you can access the file programatically via virtually any programming language:
* `sqlite3 -header -csv foo.db "select * from foo" > foo.csv`
* `sqlite3 -json foo.db "select * from foo" > foo.json`

... and we already have SQLite as an optional dependency. Such format is also future proof (we can add new table columns if needed).
Repository: TypeScript
Issue: IntelliSense slow down with large json file
Labels: Bug,Rescheduled

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->
- VS Code Version: 1.65.2
- OS Version: Ubuntu 20.04.4 LTS

IntelliSense slow down when I set value for `compilerOptions->jsx` option in `tsconfig.json` file. Without this option (after restart vscode) I get autocomplete suggestion less then 1 second, with `compilerOptions->jsx` I get suggestion after 3-4 seconds. CPU i5 8 cores, available RAM more than 10GB.

When `initializing js/ts language features` in progress IntelliSense work fast

Tried in 1.66.0-insider the result is the same

```
{
	"compilerOptions": {
		...
		"jsx": "react",
		...
	},
	"exclude": [...]
}
```
Repository: deno
Issue: upgradeWebSocket could return a WebSocketStream 
Labels: suggestion,ext/http

Currently, `Deno.upgradeWebSocket` returns a `WebSocket`. It could return a `WebSocketStream`, too, for example:

```typescript
const conn = await Deno.listen({ port: 80 });
const httpConn = Deno.serveHttp(await conn.accept());
const e = await httpConn.nextRequest();
if (e) {
  const { stream, response } = Deno.upgradeWebSocket(e.request);
  const [_, { writable, readable }] = await Promise.all([
    e.respondWith(response),
    stream.connection,
  ]);
  // Use writable and/or readable
}
```
Repository: pytorch
Issue: dir(torch._VF) doesn't work
Labels: triaged,better-engineering,release notes: python_frontend

### 🐛 Describe the bug

```
$ python -c "import torch; print(dir(torch._VF))"
['__doc__', '__loader__', '__name__', '__package__', '__spec__', 'vf']
```

### Versions

master
Repository: excalidraw
Issue: bind text to container on ipad - accessing context menu is difficult
Labels: enhancement,Text containers

probably would be better to add an action button to the element properties panel, similar to add hyperlink.

https://user-images.githubusercontent.com/14358394/159355871-7ac101a0-4985-4ee3-86fc-34386d50775f.MOV
Repository: go
Issue: x/tools/gopls: check for code after f.Fuzz
Labels: gopls,Tools,gopls/analysis

Spin-off of https://github.com/golang/go/issues/50198: our analysis of Fuzz targets can be improved by checking for code after a call to f.Fuzz

This analyzer is the last of the analyzers suggested in the original vet check proposal #46218

This could also possibly be split into several analyzers to check for:
- multiple calls to f.Fuzz
- calls to f.Add after the call to f.Fuzz

@ansaba
Repository: deno
Issue: Import maps don't always work with `deno run`
Labels: bug,cli

I have the following files:

```ts
// hello-world.ts

console.log("hello world 1");
```

```ts
// hello-world-2.ts

console.log("hello world 2");
```

And this import map file:

```json
{
  "imports": {
    "./hello-world.ts": "./hello-world-2.ts",
    "hello-world": "./hello-world-2.ts"
  }
}
```

Now I run the first file:

```
deno run hello-world.ts                             
> hello world 1
```

If I run the same file including the import map (to resolve `hello-world.ts` to `hello-world-2.ts`), it works as expected:

```
deno run --import-map=import_map.json hello-world.ts
> hello world 2
```

The import map has two imports: `./hello-world.ts` and `hello-worlds`. If I want to use the second import, it doesn't work:

```
deno run --import-map=import_map.json hello-world   
error: Module not found "file:///Users/oscarotero/test/hello-world".
```
Repository: pytorch
Issue: One should be able to query if a DecorateInfo is a xfail or skip
Labels: triaged,enhancement,module: testing

### 🚀 The feature, motivation and pitch

The obvious thing `DecorateInfo.decorator == unittest.skip("Skipped!")` doesn't work because it creates a new function very time.

This would be helpful for functorch where we are trying to see what our coverage is like. Ideally we'd use the presence of skip or xfail decorators to determine we don't have coverage for an operation.

### Alternatives

_No response_

### Additional context

_No response_
Repository: rust
Issue: Is `bool` FFI-safe?
Labels: A-FFI,A-ABI

The following seem inconsistent:

> An object with the boolean type has a [size and alignment](https://doc.rust-lang.org/reference/type-layout.html#size-and-alignment)
> of 1 each. The value false has the bit pattern 0x00 and the value true has the bit pattern 0x01. It is
> [undefined behavior](https://doc.rust-lang.org/reference/behavior-considered-undefined.html) for an object with the boolean type
> to have any other bit pattern.
>
> -- https://doc.rust-lang.org/reference/types/boolean.html#boolean-type 

```rust
warning: `extern` fn uses type `Improper`, which is not FFI-safe
 --> <source>:2:35
  |
2 | pub extern "C" fn bad(_: bool, _: Improper) {}
  |                                   ^^^^^^^^ not FFI-safe
  |
  = note: `#[warn(improper_ctypes_definitions)]` on by default
  = help: consider adding a `#[repr(C)]` or `#[repr(transparent)]` attribute to this struct
  = note: this struct has unspecified layout
note: the type is defined here
 --> <source>:1:1
  |
1 | pub struct Improper;
  | ^^^^^^^^^^^^^^^^^^^^

warning: 1 warning emitted
```

The reference states that `bool` has the same layout as `u8` and can only take on the "usual" bitpatterns. OTOH, The improper ctypes lints seem to believe that `bool` is FFI-safe, by omission, which is further underscored in the UGC draft: https://rust-lang.github.io/unsafe-code-guidelines/layout/scalars.html#bool, which ties it to `_Bool`; C makes ~no guarantees about the layout of this type, although papers have been published in the past to try to nail down a bit representation. (Personally, such a proposal seems as unlikely as nullptr being guaranteed to be all-zeroes, so I wouldn't count on it.)

Discussion on a somewhat old issue seems to indicate we are [not sure how we feel about this](https://github.com/rust-lang/unsafe-code-guidelines/issues/53), so I'd lean towards weakening the reference's assertion.
Repository: pytorch
Issue: Compilation error on M1 Mac
Labels: module: build,triaged,module: macos,module: arm

### 🐛 Describe the bug

I'm trying to compile pytorch from source following the [from source](https://github.com/pytorch/pytorch#from-source) section on the GitHub page. I'm on an M1 MacBook, using macOS version 12.2.1.

I'm installing all the dependencies using conda (but mkl and mkl-include don't seem to be supported on M1 Macs, so they failed to install, but all other packages did install). When I start the compilation, it abruptly stops here:

```
[ 75%] Building C object confu-deps/XNNPACK/CMakeFiles/all_microkernels.dir/src/tables/exp2minus-k-over-2048.c.o
[ 75%] Built target all_microkernels
make: *** [all] Error 2
```

How can I fix this? I basically need an M1 compatible version of libtorch 🤷‍♀️.


### Versions

```
OS: macOS 12.2.1 (arm64)
GCC version: Could not collect
Clang version: 13.0.0 (clang-1300.0.29.30)
CMake version: version 3.22.3
Libc version: N/A
Python version: 3.9.10 (main, Jan 15 2022, 11:40:53)  [Clang 13.0.0 (clang-1300.0.29.3)] (64-bit runtime)
```

cc @malfet @seemethere @albanD
Repository: go
Issue: x/crypto/ssh: Cannot connect to unencrypted server
Labels: NeedsInvestigation

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What version of Go are you using (`go version`)?

go version go1.18 darwin/arm64

### Does this issue reproduce with the latest release?

yes

### What operating system and processor architecture are you using (`go env`)?

GOARCH="arm64"
GOHOSTARCH="arm64"
GOHOSTOS="darwin"

### What did you do?

Tried to connect to a server that has "none" used for KeyExchanges, Ciphers, and HostKeyAlgorithms. I set all three of these values in ClientConfig but the connection threw an error as the "none" value is currently not allowed for ciphers.

```
clientConfig := ssh.ClientConfig{
		User:    "user",
		Timeout: 10 * time.Second,
		HostKeyCallback: ssh.InsecureIgnoreHostKey(),
		Config: ssh.Config{
			KeyExchanges: []string{"none"},
			Ciphers:      []string{"none"},
		},
		HostKeyAlgorithms: []string{"none"},
	}

	sshClientConn, chans, reqs, err := ssh.NewClientConn(s.socket, "", &clientConfig)
```


<!--
If possible, provide a recipe for reproducing the error.
A complete runnable program is good.
A link on go.dev/play is best.
-->



### What did you expect to see?

The client connects to the server without using encryption.

### What did you see instead?

Using the above config produces the error 
```
failed to create ssh session: error creating ssh client connection: ssh: handshake failed: ssh: no common algorithm for client to server cipher; client offered: [], server offered: [none]
```
The none value is accepted for KeyExchanges and HostKeyAlgorithms but for ciphers the none value is not being allowed which does not allow for the ssh client to connect without encryption.
Repository: pytorch
Issue: Figure out a lint for directly returning a nullptr instead of raising python_error
Labels: triaged,better-engineering,release notes: python_frontend

### 🐛 Describe the bug

Although returning a nullptr is standard operating procedure for Python bindings, our warning handler when you use `HANDLE_TH_ERRORS` is written in such a way that there MUST be an exception unwinding for the error case, otherwise https://github.com/pytorch/pytorch/issues/74334 will happen. See also https://github.com/pytorch/pytorch/pull/74357

### Versions

master
Repository: pytorch
Issue: Lazy TS Test Failures
Labels: triaged,lazy

- [ ] Cuda: TestInverse fails, seems we get a transposed version of the correct result which is odd, especially since this op is not (directly) supported and is just falling back to eager transpose [log paste](https://www.internalfb.com/phabricator/paste/view/P489057575)
- [ ] test_ts_opinfo.py : ops marked with runtime error or incorrect results @Krovatkin 
- [x]  test_ts_opinfo.py: failure to dispatch on windows ([paste of error](https://www.internalfb.com/phabricator/paste/view/P489289523))
- [ ] ASAN: divide-by-zero detected in TestNllLoss: @wconstab https://gist.github.com/wconstab/f4b6fcc3b6c69facd5c2ec5353ea5463
- [ ] ASAN: (same error, for TestNllLossBackward) @wconstab 
- [ ] ASAN: test_ts_opinfo.py failure for test_correctness_all_cpu_float32 (error log [paste](https://www.internalfb.com/phabricator/paste/view/P489057270)) (Related to https://github.com/pytorch/pytorch/issues/63034)
- [ ] Cuda: TestAmpForeachNonFiniteCheckAndUnscale fails, needs to be debugged
Repository: vscode
Issue: Firefox: blank page opening vscode.dev
Labels: bug,web,firefox,vscode.dev

On the page https://code.visualstudio.com/api/language-extensions/language-server-extension-guide, if you click Edit at the top, it takes you to https://vscode.dev/github/microsoft/vscode-docs/blob/main/api/language-extensions/language-server-extension-guide.md which is just a logo on Firefox.

![ma 21 mars19:35:50+01002022](https://user-images.githubusercontent.com/1139198/159341181-aef01e52-6ecf-435b-af60-49cfe5d71d66.png)
Repository: youtube-dl
Issue: Ellen Tube's subtitles not detected
Labels: request,question

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- Look through the README (http://yt-dl.org/readme) and FAQ (http://yt-dl.org/faq) for similar questions
- Search the bugtracker for similar questions: http://yt-dl.org/search-issues
- Finally, put x into all relevant boxes (like this [x])
-->

- [V] I'm asking a question
- [V] I've looked through the README and FAQ for similar questions
- [V] I've searched the bugtracker for similar questions including closed ones


## Question

I am trying to download subtitles for video clips in https://www.ellentube.com/, but couldn't. For example, I ran the following command:

`$ youtube-dl --list-subs [%url%](https://www.ellentube.com/video/tyler-james-williams-hopes-to-validate-black-male-experience-with-abbott-elementary-role.html)`

However, it prints the following:

`17721270-f453-4a2b-b1e2-18a9ee41fc72 has no subtitles`

Do you know why the subtitles are not detected?
Repository: pytorch
Issue: Supports for dist.send/dist.recv sending and recving torch.shorttensor
Labels: oncall: distributed,module: c10d,function request

### 🚀 The feature, motivation and pitch

Currently I am trying to send some 16bits integer quantized tensor by using dist.send/dist.recv. However dist.send /dist.recv does not support this.
And is there any way to rewrite tensor type to support n-bit tensors, n is a self define number.

### Alternatives

Sorry I don,t know the principle of dist.send, maybe in tcp methods.

### Additional context

_No response_

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang
Repository: flutter
Issue: Poor app performance with multiple TextFields inside a Table
Labels: a: text input,platform-android,engine,c: performance,platform-web,perf: speed,has reproducible steps,P2,found in release: 2.10,found in release: 2.13,team-engine,triaged-engine

I'm building an app where there is a scrollable Table composed of columns of TexField.

When I try to edit a field or scroll through the table, I notice a huge performance hit. How can I solve this problem?

Below is a sample app to test my problem

```
void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: App(),
      ),
    );
  }
}

class App extends StatelessWidget {
  List<Item> items = List.generate(3 * 48, (index) => Item(index));

  @override
  Widget build(BuildContext context) {
    return SingleChildScrollView(
      scrollDirection: Axis.horizontal,
      child: Table(
        border: TableBorder.all(),
        defaultColumnWidth: FixedColumnWidth(100),
        children: [
          TableRow(
              children: items
                  .map((item) =>
                      SizedBox(height: 48, child: Text(item.value.toString())))
                  .toList()),
          ...List.generate(
              6,
              (index) => TableRow(
                  children: items
                      .map((item) => SizedBox(
                          height: 48,
                          child: CellTextField(item: item, onChange: (_) {})))
                      .toList()))
        ],
      ),
    );
  }
}

class Item {
  int value;
  Item(this.value);
}

class CellTextField extends StatelessWidget {
  final Item item;
  final Function(num newValue) onChange;

  CellTextField({Key? key, required this.item, required this.onChange})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return TextField(
      controller: TextEditingController(text: item.value.toString())
        ..selection =
            TextSelection.collapsed(offset: item.value.toString().length),
      onChanged: (newValue) {
        try {
          final _newValue = int.parse(newValue);
          if (item.value != _newValue) {
            onChange(_newValue);
          }
        } catch (e) {}
      },
      decoration: InputDecoration(
        suffixText: '€',
      ),
    );
  }
}
```