sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: deno
Issue: deno vendor import map should keep the entries of the existing import map
Labels: bug,vendor

The `import_map.json` file generated by `deno vendor` doesn't contain the imports of the existing `import_map.json`. This makes script to fail because these import entries are missing.

As an example, Lume uses the following import map:

```json
{
  "imports": {
    "lume/": "https://deno.land/x/lume@v1.11.4/"
  }
}
```

To vendor a Lume project, the script take 2 lume files and the _config.ts file:

```bash
deno vendor \
https://deno.land/x/lume@v1.11.4/task.ts \
https://deno.land/x/lume@v1.11.4/cli.ts \
./_config.ts
```

The `vendor/import_map.json` file doesn't include the `lume/` import, so it fails.

Lume has a `lume vendor` command to run `deno vendor` and fix the new `import_map.json` file by adding automatically the missing imports (https://github.com/lumeland/lume/blob/f9866692391ed4d7500494b9d2b29de0921f9f26/cli/vendor.ts#L55-L63) but I think this is something that Deno should do.
Repository: pytorch
Issue: CUDA allocator feature requests
Labels: module: cuda,triaged,module: CUDACachingAllocator

### 🚀 The feature, motivation and pitch

I'm working on torch for R, a project that exposes similar functionality as PyTorch for the R language. 

Tensors are exposed to R as very thin wrappers around LibTorch tensors (basically just pointers to the actual LibTorch tensor),   thus R is not aware at all of memory used by torch Tensors. 

However, R is a garbage collected language and its GC is very lazy. It's only called when R really needs another chunk of memory from the OS. This causes tensors to keep dangling on the session using the valuable GPU memory.  To solve this problem we've been using the `FreeMemoryCallbacks` functionality that will call the R GC whenever getting a free block fails: 

https://github.com/pytorch/pytorch/blob/89896b8778b76685c4fc40d1f8ce337d36105c02/c10/cuda/CUDACachingAllocator.cpp#L607-L611

In theory this solves the problem, but it adds a lot of overhead (calling a full garbage collection is very slow) and the callbacks are called almost for every CUDA allocation if the session still didn't 'reserve' a good chunk of memory. 

Like Python's garbage collector, R's is generational garbage collector, so you can choose to do faster collections. But with the `FreeMemoryCallbacks` API we don't have enough information to decide whether we should do a full collection or a faster one (we end up needing to do full collections to support peak memory usage) because

1. The callbacks don't know how much memory needs to be allocated, nor in which device.
2. Either all callbacks are called or no callback is called - as you can see the `trigger_free_memory_callbacks` implementation.
https://github.com/pytorch/pytorch/blob/89896b8778b76685c4fc40d1f8ce337d36105c02/c10/cuda/CUDACachingAllocator.cpp#L1285-L1292



### Alternatives

I'm proposing two alternatives, but open to other suggestions.

1. Passing `device` and `size`  (or possibly `AllocParams`) to the callback `Execute` method defined in:
https://github.com/pytorch/pytorch/blob/89896b8778b76685c4fc40d1f8ce337d36105c02/c10/cuda/CUDACachingAllocator.h#L16-L20 This way we could query for how much memory the faster collection released and if necessary run a full collection.

2. Introduce some notion of priority to the callbacks and call them in order until it was possible to release enough memory. For example, modifying `trigger_free_memory_callback` to something like:
      ```c++
      bool trigger_free_memory_callbacks(AllocParams& p) {
        bool freed_memory = false;
        for (const auto& name : FreeCudaMemoryCallbacksRegistry()->Keys()) {
          if (FreeCudaMemoryCallbacksRegistry()->Create(name)->Execute() && get_free_block(p)) {
            return true;
          }
        }
        return false;
      }
      ``` 

Thank you very much for taking a look at this! 

### Additional context

_No response_

cc @ngimel
Repository: pytorch
Issue: [functorch] conv.{1, 2, 3}d should raise errors
Labels: triaged,module: functorch

### 🐛 Describe the bug

We discovered it in #85202.

`conv.{1, 2, 3}d` should raise *RuntimeError* when the bias shape does not equal the number of output channels. Instead, in functorch, it throws the *ValueError*.

#### Current behavior
```python
In [3]: input = torch.rand((1, 1, 4, 4))

In [4]: weight = torch.rand((1, 1, 3, 2))

In [5]: bias = torch.rand((2,))

In [6]: vmap(torch.nn.functional.conv2d)(input, weight, bias)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Input In [6], in <cell line: 1>()
----> 1 vmap(torch.nn.functional.conv2d)(input, weight, bias)

File ~/Documents/pytorch/functorch/_src/vmap.py:348, in vmap.<locals>.wrapped(*args, **kwargs)
    345 @functools.wraps(func)
    346 def wrapped(*args, **kwargs):
    347     _check_out_dims_is_int_or_int_pytree(out_dims, func)
--> 348     batch_size, flat_in_dims, flat_args, args_spec = _process_batched_inputs(in_dims, args, func)
    349     return _flat_vmap(
    350         func, batch_size, flat_in_dims, flat_args, args_spec, out_dims, randomness, **kwargs
    351     )

File ~/Documents/pytorch/functorch/_src/vmap.py:102, in _process_batched_inputs(in_dims, args, func)
     99     if in_dim is not None and in_dim < 0:
    100         flat_in_dims[i] = in_dim % arg.dim()
--> 102 return _validate_and_get_batch_size(flat_in_dims, flat_args), flat_in_dims, flat_args, args_spec

File ~/Documents/pytorch/functorch/_src/vmap.py:35, in _validate_and_get_batch_size(flat_in_dims, flat_args)
     33     raise ValueError('vmap: Expected at least one Tensor to vmap over')
     34 if batch_sizes and any(size != batch_sizes[0] for size in batch_sizes):
---> 35     raise ValueError(
     36         f'vmap: Expected all tensors to have the same size in the mapped '
     37         f'dimension, got sizes {batch_sizes} for the mapped dimension')
     38 return batch_sizes[0]

ValueError: vmap: Expected all tensors to have the same size in the mapped dimension, got sizes [1, 1, 2] for the mapped dimension
```

#### Expected
```python
In [7]: torch.nn.functional.conv2d(input, weight, bias)
---------------------------------------------------------------------------
RuntimeError                              Traceback (most recent call last)
Input In [7], in <cell line: 1>()
----> 1 torch.nn.functional.conv2d(input, weight, bias)

RuntimeError: Given weight of size [1, 1, 3, 2], expected bias to be 1-dimensional with 1 elements, but got bias of size [2] instead
```

The CI test raises *AssertionError* stating `Exception not raised`. 

Link: https://github.com/pytorch/pytorch/actions/runs/3093401271/jobs/5005991218. Currently, these test cases are skipped in the `test_vmap` file.

### Versions

`1.13.0a0+git83c73f7`

cc @zou3519 @Chillee @samdow @soumith
Repository: pytorch
Issue: [functorch] CUDA Graph failure with AOTAutograd
Labels: triaged,module: cuda graphs,module: functorch

### 🐛 Describe the bug

We are having issues with one of the latest commits on functorch. Namely [PR 85301](https://github.com/pytorch/pytorch/pull/85301) is breaking our TIMM benchmark with CUDA Graphs:

Before PyTorch commit `5f623f5c4c759cada9f0dc3866b63c906178dbc1` it was working fine 

```
Benchmarking in float32 precision. NCHW layout. torchscript disabled
Model adv_inception_v3 created, param count: 23834568
Running train benchmark on adv_inception_v3 for 40 steps w/ input size (3, 224, 224) and batch size 32.
/home/aaitzhan/git/pytorch-master/torch/jit/_check.py:181: UserWarning: The TorchScript type system doesn't support instance-level annotations on empty non-base types in `__init__`. Instead, either 1) use a type annotation in the class body, or 2) wrap the type in `torch.jit.Attribute`.
  warnings.warn("The TorchScript type system doesn't support "
Train [8/40]. 199.36 samples/sec. 160.512 ms/step.
Train [16/40]. 196.29 samples/sec. 163.025 ms/step.
Train [24/40]. 196.33 samples/sec. 162.992 ms/step.
Train [32/40]. 196.01 samples/sec. 163.257 ms/step.
Train [40/40]. 196.39 samples/sec. 162.943 ms/step.
Train benchmark of adv_inception_v3 done. 196.38 samples/sec, 162.94 ms/sample
--result
{
    "model": "adv_inception_v3",
    "train_samples_per_sec": 196.38,
    "train_step_time": 162.943,
    "train_batch_size": 32,
    "train_img_size": 224,
    "param_count": 23.83
}
```

However on PyTorch commit `5f623f5c4c759cada9f0dc3866b63c906178dbc1` and newer it is failing:
```
Benchmarking in float32 precision. NCHW layout. torchscript disabled
Model adv_inception_v3 created, param count: 23834568
Running train benchmark on adv_inception_v3 for 40 steps w/ input size (3, 224, 224) and batch size 32.
/home/aaitzhan/git/pytorch-master/torch/jit/_check.py:181: UserWarning: The TorchScript type system doesn't support instance-level annotations on empty non-base types in `__init__`. Instead, either 1) use a type annotation in the class body, or 2) wrap the type in `torch.jit.Attribute`.
  warnings.warn("The TorchScript type system doesn't support "
ERROR: "CUDA error: operation failed due to a previous error during capture
CUDA kernel errors might be asynchronously reported at some other API call,so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1." while running benchmark.
```

Steps to reproduce:
```
git clone --recursive https://github.com/xwang233/pytorch-image-models.git
cd pytorch-image-models/
git checkout 094755c9ed1f92575ed74bc29d09fba11d96a3bc
TIMM_BENCHMARK_ENABLE_CUDAGRAPH=1 python -u ./benchmark.py --bench train --model adv_inception_v3 --img-size 224 -b 32 --fuser nvfuser --aot-autograd
```

CC @ezyang


### Versions

PyTorch upstream.

cc @mcarilli @ezyang @zou3519 @Chillee @samdow @soumith
Repository: godot
Issue: Incorrect UI position due to browser zooming
Labels: bug,platform:web,topic:porting,needs testing,topic:input

### Godot version

v4.0.beta1.official [20d667284]

### System information

Windows10, Vulkan, (Edge Browser 105.0.1343.50)

### Issue description

Incorrect UI position due to browser zooming

### Steps to reproduce


https://user-images.githubusercontent.com/46029824/192384380-d361e96d-9f25-4a98-b465-469c302db56a.mp4



### Minimal reproduction project
[FlowGraph.zip](https://github.com/godotengine/godot/files/9649799/FlowGraph.zip)
_No response_
Repository: godot
Issue: "Files are newer on disk" when opening project twice for multiplayer
Labels: discussion,topic:editor

### Godot version

4.0-beta1

### System information

Windows 10, Vulkan,  Nvidia 2080

### Issue description

When opening the same project twice, e.g. for testing multiplayer and all changes are saved a popup with "Files are newer on disk" occurrs regularly.  If you choose reload or save it goes away and reappears several moments later.

### Steps to reproduce

* Have a godot project in editor 1) open
* Save all files (no pending changes) (optional step?)
* Have a scene running in editor 1)  (optional step?)
* Open same project in second editor 2)
* Tab over to editor 1)  and the popup appears shortly
* Choose any action (Save, Cancel, Do nothing, ...)
* Tab over to editor 2)
* Same thing happens in the other editor 2)

### Minimal reproduction project

_No response_
Repository: flutter
Issue: [path_provider] "`getApplicationSupportDirectory` should not be used for user data files", is this misleading?
Labels: d: api docs,p: path_provider,package,team-ecosystem,P3,triaged-ecosystem

I am developing an app (on android, but ios needs to be supported as well) and I need to save user taken images.

As I am developing on android, I was looking for `path_provider` methods that get the app's local storage (as that's where I need to save them, in android at least), and there seems to be two methods that return a directory in the local storage: `getApplicationDocumentsDirectory` and `getApplicationSupportDirectory`.

now, here's where I get confused:

`getApplicationDocumentsDirectory` returns `/data/data/com.example.app/app_flutter/`, which seems like an odd location to save app data; why is it in a flutter specific directory, and not a standard android location?

on the other hand, `getApplicationSupportDirectory` returns `/data/data/com.example.app/files/`, which seems much more correct, though its dart doc says `Your app should not use this directory for user data files.`

So, is there an explanation to the documents directory's odd location? or perhaps the support directory's doc is misleading?
Repository: vscode
Issue: Support Continue On from a codespace to a container
Labels: feature-request,continue-working-on

I find myself wanting this if I am in a codespace but will go offline for an extended period of time (e.g. getting on a plane) and want to keep working on my changes.
Repository: godot
Issue: Gltf bones do not import with correct positions, causing animations to break.
Labels: bug,topic:import,topic:animation,topic:3d

### Godot version

3.4.5

### System information

windows 10

### Issue description

Importing gltf with bones will position them incorrectly.
This causes the animations to be incorrect and the model to morph weirdly.
The top of the picture shows the incorrect bones, and the bottom shows the correct bones.
![godotbonebug](https://user-images.githubusercontent.com/10412778/192404944-51218842-d7ba-49df-8cdf-a5ccf41b0a20.png)

In other programs, the gltf opens just fine with the corrrect bone positions and animates correctly,
However, when it comes to Godot, godot fails to load them correctly.

Here's another example,
You can see clearly how the bones in godot don't have the correct angle.
![godotbonebug2](https://user-images.githubusercontent.com/10412778/192406474-7923b203-ba94-4cf4-b2d3-082d55abe0bd.png)


### Steps to reproduce

Here is the simple box example gltf.
[boxgltf.zip](https://github.com/godotengine/godot/files/9650580/boxgltf.zip)


### Minimal reproduction project

_No response_
Repository: yt-dlp
Issue: Separate ID archive for non-videos
Labels: enhancement,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [X] I understand that I will be **blocked** if I remove or skip any mandatory\* field

### Checklist

- [X] I'm requesting a feature unrelated to a specific site
- [X] I've looked through the [README](https://github.com/yt-dlp/yt-dlp#readme)
- [X] I've verified that I'm running yt-dlp version **2022.09.01** ([update instructions](https://github.com/yt-dlp/yt-dlp#update)) or later (specify commit)
- [X] I've searched the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [X] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)

### Provide a description that is worded well enough to be understood

Commit 3c757d5ed2527b17881eb65c67ddbe0d1335771f

The `--download-archive` option only records videos. For example, if you were to download a YouTube channel's playlist tab, all the playlists downloaded would not be recorded in the archive, just the videos themselves.

I use the `epoch` value in my output template which makes the output filenames always unique, so the playlists or channel homepage end up getting downloaded again everytime I download from a playlist/channel URL, which can pile up. Not a problem for videos because of the download-archive option stopping redownloads so that I can manually trigger them, but I would like a separate option that handles non-video IDs.

### Provide verbose output that clearly demonstrates the problem

- [ ] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

_No response_
Repository: storybook
Issue: [React] Passing a mapping of React component as prop cause the app to become unresponsive
Labels: bug,needs triage

**Describe the bug**
If I pass a mapping of React components as a prop into any component belong to a story, the app become completely unresponsive.

The content of prop itself, nor does its name, does not matter, as long as it is a mapping of React component.
```
<Page
    irrelevantProps={{
        irrelevantKey: <div>Irrelevant Content</div>,
    }}
/>
```

If I put this props in any component in a story file, the app will become unresponsive right after update, even if it not, a simple re-render will cause the problem to happen. The app does not respond to any interaction, I can't even reload it or close it normally, most of the time I must kill it via Task Manager.

**To Reproduce**
This repo is created using `npx sb@next repo`: https://github.com/lauqerm/storybook-issue-repro Running it the first time is fine, but a simple clicking (which will trigger a re-render) will cause the problem to happen. The state is of course, irrelevant to the component.

I recorded a video here just in case, as you can see after passing the prop and click the button, the app no longer response to my click, and buttons no longer have hover effect: https://www.screencast.com/t/03bRLYiEN

**System**
```
Environment Info:

  System:
    OS: macOS 10.15.7
    CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Binaries:
    Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
    Yarn: 3.2.3 - /usr/local/bin/yarn
    npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
  Browsers:
    Chrome: 105.0.5195.125
    Firefox: 103.0.2
    Safari: 14.1.2
  npmPackages:
    @storybook/addon-actions: ^6.5.12 => 6.5.12
    @storybook/addon-docs: ^6.5.12 => 6.5.12
    @storybook/addon-essentials: ^6.5.12 => 6.5.12
    @storybook/addon-interactions: ^6.5.12 => 6.5.12
    @storybook/addon-links: ^6.5.12 => 6.5.12
    @storybook/builder-webpack5: ^6.5.12 => 6.5.12
    @storybook/manager-webpack5: ^6.5.12 => 6.5.12
    @storybook/node-logger: ^6.5.12 => 6.5.12
    @storybook/preset-create-react-app: ^4.1.2 => 4.1.2
    @storybook/react: ^6.5.12 => 6.5.12
    @storybook/testing-library: ^0.0.13 => 0.0.13
```

**Additional context**
The component work completely fine in a React app. So I think the problem belong to storybook. If I am making some rookie mistakes here, please let me know. Thanks in advance.
Repository: electron
Issue: [Bug]: visible/enabled not working for root application menus (Windows)
Labels: platform/windows,component/menu,bug :beetle:,status/confirmed

### Preflight Checklist

- [X] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [X] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [X] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

21.0.0

### What operating system are you using?

Windows

### Operating System Version

Windows 11

### What arch are you using?

x64

### Last Known Working Electron version

_No response_

### Expected Behavior

When using the `visible: false` prop on a menu item, it must be hidden from view.

### Actual Behavior

When using the `visible: false` prop on a menu item, it is still visible.

### Testcase Gist URL

https://gist.github.com/nosferatu500/ab8a3ee1d395fefe5e2c6a542488c142

### Additional Information

When I click "Toggle Dev" on Mac, the Dev menu in the root and submenus is hidden. but when I click "Toggle Dev" on Windows, only the Dev menu in the submenu is hidden, but the root element still appears.

Related with #2895 
@VerteDinde closed this issue in March, but it still occurs in the latest version of Electron.
Repository: ant-design
Issue: form.list组件里面支持update的功能吗
Labels: Inactive

### What problem does this feature solve?

目前form.list有 add,remove,move的功能，是否能够支持update的功能，更新表单的值。比如我form.list里面是好多个组件，我有一个按钮，点击想控制其显示隐藏，但是字段的值是放在fields的对象中，是否能够提供一个方法，比如update,去更新对应字段的值。目前我是套了一层Form.Item，name绑定[name,key]。在里面onchange更新对应key的值

### What does the proposed API look like?

form list operater中增加update方法

<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: kubernetes
Issue: Windows node to provide metrics for rootfs space usage  
Labels: kind/feature,sig/windows,help wanted,needs-triage

### What would you like to be added?

Monitoring disk space usage for ephemeral storage (rootfs) usage for Windiows pods.

### Why is this needed?

Unlike Linux, Windows container sandbox requires a fixed maximum size of rootfs. This can be a limiting factor that users may want to monitor.
Repository: vscode
Issue: Broken copy/paste menu in extension description
Labels: bug,webview


Type: <b>Bug</b>

- select Extensions (Ctrl+Shift+X)
- select any Extension
- select any text in Extension description
- press the right mouse button on this selection
- select the Copy command in the popup menu
- the text is not transferred to the Clipboard !!!
- if I use the keyboard shortcut Ctrl+C, everything is OK

VS Code version: Code 1.71.2 (74b1f979648cc44d385a2286793c226e611f59e7, 2022-09-14T21:03:37.738Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 5 3600 6-Core Processor               (12 x 3593)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|15.92GB (4.25GB free)|
|Process Argv|--crash-reporter-id ff099b83-7939-4a61-bb36-fbb002bad152|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (18)</summary>

Extension|Author (truncated)|Version
---|---|---
pythoncreatevenv|car|1.0.0
blender-development|Jac|0.0.17
vscode-cudacpp|kri|0.1.1
git-graph|mhu|1.30.0
ooxml-validator-vscode|mik|1.4.5
python|ms-|2022.8.0
vscode-pylance|ms-|2022.9.40
jupyter|ms-|2022.9.1002511105
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.9
cpptools|ms-|1.12.4
resourcemonitor|mut|1.0.7
vscode-print|pdc|0.10.4
sourcery|sou|0.12.9
code-spell-checker|str|2.8.0
code-spell-checker-czech|str|1.0.0
todo-list|Tza|1.6.0
ooxml-viewer|yue|1.3.0


</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411cf:30557515
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaac:30438847
vsclangdf:30486550
c4g48928:30535728
hb751961:30553087
dsvsc012:30540252
azure-dev_surveyone:30548225
2144e591:30553903
vsccc:30566497
fc301958:30567733

```

</details>

<!-- generated by issue reporter -->