sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [flutter_tools] PathNotFoundException for flutter_version_check.stamp
Labels: P2,team-tool,triaged-tool

Version: `stable/3.13.8`
Command: `flutter run -d chrome`

```
PathNotFoundException: PathNotFoundException: Cannot open file, path = '/usr/local/Caskroom/flutter/3.13.8/flutter/bin/cache/flutter_version_check.stamp' (OS Error: No such file or directory, errno = 2)
at _File.throwIfError(file_impl.dart:675)
at _File.openSync(file_impl.dart:490)
at _File.writeAsBytesSync(file_impl.dart:644)
at _File.writeAsStringSync(file_impl.dart:668)
at ForwardingFile.writeAsStringSync(forwarding_file.dart:150)
at ErrorHandlingFile.writeAsStringSync.<anonymous closure>(error_handling_io.dart:267)
at _runSync(error_handling_io.dart:590)
at ErrorHandlingFile.writeAsStringSync(error_handling_io.dart:266)
at Cache.setStampFor(cache.dart:639)
at VersionCheckStamp.store(version.dart:781)
at FlutterVersion._getLatestAvailableFlutterDate(version.dart:336)
at <asynchronous gap>(async)
at FlutterVersion.checkFlutterVersionFreshness(version.dart:283)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:311)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:285)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:115)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:90)
at <asynchronous gap>(async)
```
Repository: flutter
Issue: [flutter_tools] PathNotFoundException when running daemon
Labels: P2,team-tool,triaged-tool

Version: `stable/3.13.8`
Command: `flutter daemon`

```
PathNotFoundException: PathNotFoundException: Creation failed, path = '/Users/username/flutter/bin/cache/artifacts/engine/darwin-x64/FlutterMacOS.framework' (OS Error: No such file or directory, errno = 2)
at _Directory.createSync(directory_impl.dart:129)
at ForwardingDirectory.createSync(forwarding_directory.dart:20)
at ErrorHandlingDirectory.createSync.<anonymous closure>(error_handling_io.dart:428)
at _runSync(error_handling_io.dart:590)
at ErrorHandlingDirectory.createSync(error_handling_io.dart:427)
at EngineCachedArtifact.updateInner(cache.dart:918)
at <asynchronous gap>(async)
at CachedArtifact.update(cache.dart:812)
at <asynchronous gap>(async)
at Cache.updateAll(cache.dart:679)
at <asynchronous gap>(async)
at FlutterCommand.verifyThenRunCommand(flutter_command.dart:1566)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1297)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:212)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:339)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:285)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:115)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:90)
at <asynchronous gap>(async)
```
Repository: flutter
Issue: [flutter_tools] DevToolsActivePort file doesn't exist
Labels: P2,team-tool,triaged-tool

Version: `beta/3.16.0-0.3.pre`
Command: `flutter drive --target=test_driver/login_test.dart`

```
UnknownException: UnknownException (500): unknown error: DevToolsActivePort file doesn't exist
at parseW3cResponse(utils.dart:102)
at W3cSessionHandler.parseCreateResponse(session.dart:19)
at InferSessionHandler.parseCreateResponse(infer_handler.dart:106)
at AsyncRequestClient.send(request_client.dart:96)
at <asynchronous gap>(async)
at createDriver(async_core.dart:62)
at <asynchronous gap>(async)
at WebDriverService.startTest(web_driver_service.dart:154)
at <asynchronous gap>(async)
at DriveCommand.runCommand(drive.dart:323)
at <asynchronous gap>(async)
at FlutterCommand.run.<anonymous closure>(flutter_command.dart:1350)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at CommandRunner.runCommand(command_runner.dart:212)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand.<anonymous closure>(flutter_command_runner.dart:348)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at FlutterCommandRunner.runCommand(flutter_command_runner.dart:294)
at <asynchronous gap>(async)
at run.<anonymous closure>.<anonymous closure>(runner.dart:112)
at <asynchronous gap>(async)
at AppContext.run.<anonymous closure>(context.dart:150)
at <asynchronous gap>(async)
at main(executable.dart:90)
at <asynchronous gap>(async)
```
Repository: pytorch
Issue: Implement scatter and broadcast in functional collectives
Labels: oncall: distributed

### 🚀 The feature, motivation and pitch

scatter and broadcast are two important MPI-like collectives that syncs the data across GPUs, broadcast broadcasts tensor data from one rank to all other ranks, while scatter scatter a list of data from one rank to all ranks, so that each rank get a single tensor.

broadcast distributed API: https://pytorch.org/docs/stable/distributed.html#torch.distributed.broadcast
scatter distributed API: https://pytorch.org/docs/stable/distributed.html?highlight=scatter#torch.distributed.scatter

The current broadcast/scatter API in torch.distributed uses a inplace version, which means it inplace modify the data passed into the collective API, this makes the API harder to use and suffer from tracing in PyTorch. The new functional collective API we designed (design: https://github.com/pytorch/pytorch/issues/93173, [functional collective APIs](https://github.com/pytorch/pytorch/blob/main/torch/distributed/_functional_collectives.py#L125)) helped us make the collective API be simpler and easier to trace. Currently the functional collectives only have a few APIs implemented (i.e. allreduce, allgather, reduce_scatter), but it's missing a lot of other APIs like broadcast/scatter, this means we have to do some special wrapper function to implement a functional like interface, see https://github.com/pytorch/pytorch/blob/main/torch/distributed/_tensor/_collective_utils.py#L25

The goal of this task is to implement broadcast/scatter in the functional collectives to make these two API easy to use.



### Alternatives

_No response_

### Additional context

_No response_

cc @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @H-Huang @kwen2501 @awgu @penguinwu
Repository: vscode
Issue: Relaunch terminal hides terminal after reloading window
Labels: bug,help wanted,terminal-persistence

Testing microsoft/vscode-python#22288

1. Do steps from https://github.com/microsoft/vscode-python/issues/22309 
2. Reload window 
3. See that Python extension wants to relaunch terminal 
4. Click relaunch terminal 
5. :bug: terminal pane hides itself and doesn't come back
Repository: godot
Issue: EditorInterface.inspect_object(Obj) keeps reference to Obj thus ref count climbs endlessly.
Labels: topic:editor,needs testing

### Godot version

v4.2.beta2.official [f8818f85e]

### System information

Godot v4.2.beta2 - Ubuntu 22.04.3 LTS 22.04 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2060 (nvidia; 535.113.01) - Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 Threads)

### Issue description

Either of these will cause "myres" to increment its reference count, seemingly without end.
```
EditorInterface.edit_resource(myres) # either of these
EditorInterface.inspect_object(myres) # two does the same thing
```
I have made a small reproduction project below. It should demonstrate and explain quite well. See the code in test.gd to start.

### Steps to reproduce

1. Load a resource into a variable
2. Pass that to EditorInterface.edit_resource(..) 
3. Print the get_reference_count()
4. Observe the number climbing
5. Goto 2



### Minimal reproduction project

I could not get the zip file to upload by dropping it. No idea why. I made a repo on my Gitlab. It's public.

https://gitlab.com/dbat/inspector-refcount-issue

HTH
dbat
```[tasklist]
### Tasks
```
Repository: PowerToys
Issue: PowerToys Run can't launch executables in PATH.
Labels: Issue-Bug,Product-PowerToys Run,Needs-Triage,Run-Results (Programs)

### Microsoft PowerToys version

0.74.1

### Installation method

GitHub

### Running as admin

No

### Area(s) with issue?

PowerToys Run

### Steps to reproduce

I have an app (tcpview.exe, installed via winget and is in PATH) I want to launch through PowerToys Run but it doesn't seem to find the executable. I can run the command ```tcpview``` in the command line and it works fine.

My other apps that ARE NOT installed through winget seem to be doing fine, I have firefox installed and PowerToys Run can launch it.
![Screenshot (555)](https://github.com/microsoft/PowerToys/assets/130174233/d30e72d4-39ba-48ed-ab10-843a7f2a2357)
![Screenshot (556)](https://github.com/microsoft/PowerToys/assets/130174233/68017120-bdcc-4b64-9535-c543d294ea38)
![Screenshot (557)](https://github.com/microsoft/PowerToys/assets/130174233/201f908c-7b2b-47b5-aa8d-a851b4941896)
![Screenshot (558)](https://github.com/microsoft/PowerToys/assets/130174233/0441f6de-81c7-457e-a1b5-d8801ccf8c2c)
![Screenshot (559)](https://github.com/microsoft/PowerToys/assets/130174233/ea420cde-0075-46f2-8a83-405cdd42b3ce)

Oddly seems to work with this one in particular
![Screenshot (560)](https://github.com/microsoft/PowerToys/assets/130174233/c2c7555f-665e-4faa-bbc1-b06cf8a7befb)


I think this is related too. https://github.com/microsoft/PowerToys/issues/20512

### ✔️ Expected Behavior

Launch an app installed via winget through PowerToys Run.

### ❌ Actual Behavior

It does not seem to be able to run it.

### Other Software

_No response_
Repository: pytorch
Issue: Inductor with cpu lowering fails to raise exception on invalid getitem
Labels: triaged,oncall: pt2,module: inductor

### 🐛 Describe the bug

This is a follow-up issue of https://github.com/pytorch/pytorch/pull/108690 to track an existing bug found while working on it. PyTorch fails to insert an assert for an invalid getitem.

```python
import torch

@torch.compile(dynamic=False)
def indexit(A, b):
    b = torch.arange(start=-1, end=-A.numel() - 1, step=-1)
    return A[b + 21]

A = torch.arange(20)
b = torch.zeros(4, dtype=torch.int)

print(indexit(A, b))

# prints
tensor([139747079203824,              19,              18,              17,
                     16,              15,              14,              13,
                     12,              11,              10,               9,
                      8,               7,               6,               5,
                      4,               3,               2,               1])
```

Generates the following C++ program

```cpp
#include "/tmp/torchinductor_guilhermeleobas/tb/ctbgktuhgnnlel6ipqkfk76lfztr5pledachdkcq3asdqtlxpzt6.h"
extern "C" void kernel(const long* in_ptr0,
                       long* out_ptr0)
{
    {
        for(long x0=static_cast<long>(0L); x0<static_cast<long>(20L); x0+=static_cast<long>(1L))
        {
            auto tmp0 = in_ptr0[static_cast<long>(20L + ((-1L)*x0) + (((20L + ((-1L)*x0)) >= 0L) ? 0L : 20L))];
            out_ptr0[static_cast<long>(x0)] = tmp0;
        }
    }
}
```

### Error logs

_No response_

### Minified repro

_No response_

### Versions

Happens on main branch

cc @ezyang @msaroufim @wconstab @bdhirsh @anijain2305 @zou3519 @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @kadeng @muchulee8 @aakhundov @ColinPeppler
Repository: flutter
Issue: [tool:flake] tryToDelete logic doesn't seem to be helping
Labels: tool,c: flake,team-tool

We have [tryToDelete](https://github.com/flutter/flutter/blob/c15ff6820ffbbf828c319d7fa49ac587eb0f0730/packages/flutter_tools/test/src/common.dart#L23) test utility that attempts to deal with locked files on Windows. The idea is to try to delete locked files, but if we fail, oh well, we continue running tests pretending that everything went as expected.

Unfortunately, that does not seem to be sufficient. When we get into a "Deletion failed" situations, the test cannot recover. Here's an example:

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8766399898990442497/+/u/run_test.dart_for_web_tool_tests_shard_and_subshard_1_2/test_stdout
Repository: flutter
Issue: [infra:goldens] Skia Gold "settling" after golden update
Labels: team-infra,P2,triaged-infra

There was a recent code change that affected CanvasKit goldens. It didn't land cleanly, so it was reverted then relanded:

- First landing: https://github.com/flutter/flutter/pull/135249
- Revert: https://github.com/flutter/flutter/pull/136860
- Relanding: https://github.com/flutter/flutter/pull/136918

The change affects goldens. According to Skia Gold UI the goldens changed as expected:

![Screenshot 2023-10-24 at 12 32 45 PM](https://github.com/flutter/flutter/assets/211513/abe19b96-a894-405c-8113-6ed3b5bf25a0)

However, after the reland I noticed that tests were flaky for a couple of commits after the reland happened:

![Screenshot 2023-10-24 at 12 34 03 PM](https://github.com/flutter/flutter/assets/211513/54bab183-74ff-4285-ab32-4ef1417a49b5)

It's as if Skia Gold needed some time to "settle". There's a period of time during which sometimes Skia Gold would reject the new golden. For example, [this build](https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8766676789378877937/+/u/run_test.dart_for_web_canvaskit_tests_shard_and_subshard_0/test_stdout) failed with "Skia Gold received an unapproved image in post-submit testing". The test generated golden was c8d9d65546ec0142469c967cd644ade0, which, according to the [Skia Gold UI](https://flutter-gold.skia.org/search?corpus=flutter&include_ignored=false&left_filter=name%3Dwidgets.image_filter_matrix&max_rgba=0&min_rgba=0&negative=true&not_at_head=false&positive=true&reference_image_required=false&right_filter=&sort=descending&untriaged=true), is the correct SHA.
Repository: vscode
Issue: [wrapped lines] inline chat zone shows on the wrong line
Labels: bug,editor-api,inline-chat

Testing #196258

1. Open a Markdown file and go to an empty line below a paragraph.
The example below used https://github.com/microsoft/vscode-docs/blob/main/docs/getstarted/userinterface.md in a local clone of the vscode-docs repo.

![image](https://github.com/microsoft/vscode/assets/12818376/d755339e-5478-4001-8363-dc0d00f4ade4)

2. Click on the gutter sparkle icon.

The inline change opens one line above the empty line.

![image](https://github.com/microsoft/vscode/assets/12818376/ff3c96aa-4e3d-4368-8ac1-2d785509d9c3)

This is not limited to the clicking the sparkle icon. This also happens if you use Ctrrl+I to open the inline chat
Repository: pytorch
Issue: torch 2.1 FSDP only some layers might not be working with training only a couple of layers
Labels: triaged,module: fsdp

I am trying to use the new FSDP feature in torch 2.1 where the require_grad does not need to be uniform across a block.

``` python 
model = AutoModelForCausalLM.from_pretrained(
        'some_llama_checkpoint')
for n,p in model.named_parameters():
    if n == 'some_layer':
        p.requires_grad = False
training_args.ddp_find_unused_parameters = False
training_args.fsdp_config['use_orig_params'] = True
trainer = Trainer(
        model=model,
        args=training_args,
        train_dataset=train_dataset
        eval_dataset=eval_dataset
        tokenizer=tokenizer,
        compute_metrics=compute_metrics if training_args.do_eval and not is_torch_tpu_available() else None,
        preprocess_logits_for_metrics=preprocess_logits_for_metrics)
    train_result = trainer.train()
    model.eval()
    lm_eval_model = LMEvalAdaptor(model, tokenizer)
    results = evaluator.simple_evaluate(
        model=lm_eval_model,
        tasks=task_names,
        batch_size=384,
        no_cache=True,
    )
```
And the model will be fsdp'ed inside the ```trainer.train()```.
But when I call the ```evaluator.simple_evaluate```, I will get the following error: 
```RuntimeErrorRuntimeError: : 'weight' must be 2-D'weight' must be 2-D
RuntimeError
RuntimeError: 'weight' must be 2-D: 
'weight' must be 2-D
    return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: 'weight' must be 2-D
    return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: 'weight' must be 2-D
    return torch.embedding(weight, input, padding_idx, scale_grad_by_freq, sparse)
RuntimeError: 'weight' must be 2-D```

What seems to be the problem? Is the model not being put back into the original form?

### Versions

[pip3] numpy==1.25.2
[pip3] torch==2.1.0+cu118
[pip3] torchaudio==2.1.0+cu118
[pip3] torchvision==0.16.0+cu118
[pip3] triton==2.1.0
[conda] numpy                     1.25.2                   pypi_0    pypi
[conda] torch                     2.1.0+cu118              pypi_0    pypi
[conda] torchaudio                2.1.0+cu118              pypi_0    pypi
[conda] torchvision               0.16.0+cu118             pypi_0    pypi
[conda] triton                    2.1.0                    pypi_0    pypi

cc @zhaojuanmao @mrshenli @rohan-varma @awgu @fegin @penguinwu
Repository: rust
Issue: higher-ranked lifetime error
Labels: A-lifetimes,T-compiler,C-bug,A-higher-ranked

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.
-->
This is boiled down reproducible example.

I tried this code:

```rust
use std::future::Future;
pub struct Test<T, U, R, F>
where
    U: Future<Output = Option<R>>,
    F: Fn(&mut T) -> U,
{
    ty: T,
    fun: F 
}

impl<T, U, R, F> Test<T, U, R, F>
where
    U: Future<Output = Option<R>>,
    F: Fn(&mut T) -> U, 
{
    fn new(ty: T, fun: F) -> Self {
        Self { ty, fun }
    }
}
struct Ty {
    v: Vec<u32>,
}
impl Ty {
    async fn recv(&mut self) -> Option<u32> {
        self.v.pop()
    }
}

pub async fn run() {
    let ty = Ty { v: vec![] };

    let mut test = Test::new(ty, Ty::recv);
    while let Some(_v) = (test.fun)(&mut test.ty).await {}
}
```
Compiler throws errors:
```rust

error[E0308]: mismatched types
  --> crates\render\src\regui.rs:68:20
   |
68 |     let mut test = Test::new(ty, Ty::recv);
   |                    ^^^^^^^^^ one type is more general than the other
   |
   = note: expected opaque type `impl for<'a> Future<Output = Option<u32>>`
              found opaque type `impl Future<Output = Option<u32>>`
   = help: consider `await`ing on both `Future`s
   = note: distinct uses of `impl Trait` result in different opaque types

error: higher-ranked lifetime error
  --> crates\render\src\regui.rs:68:20
   |
68 |     let mut test = Test::new(ty, Ty::recv);
   |                    ^^^^^^^^^^^^^^^^^^^^^^^

error: higher-ranked lifetime error
  --> crates\render\src\regui.rs:68:20
   |
68 |     let mut test = Test::new(ty, Ty::recv);
   |                    ^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: could not prove `Test<Ty, impl Future<Output = Option<u32>>, u32, for<'a> fn(&'a mut Ty) -> impl Future<Output = Option<u32>> {Ty::recv}> well-formed`
   ```
Repository: pytorch
Issue: [pytree] `pytree.tree_map` does not respect type of `torch.Size`
Labels: triaged,module: pytree,bug

### 🐛 Describe the bug

I don't think this is right. It needs to preserve the original types, shouldn't it?

```python
torch.utils._pytree.tree_map(lambda x: x, torch.Size([1]))
# (1,)
```

The reason is that `isinstance(torch.Size([1]), tuple)` is True.

This behaviour may not be desirable as `torch.Size` has methods that `tuple` does not.

### Versions

main

cc @zou3519
Repository: excalidraw
Issue: Collision between Full Screen "F" and Frame Tool "F" keyboard shortcut
Labels: UX/UI,shortcuts

According to the Excalidraw help menu, "Full Screen" mode can be toggled with <kbd>F</kbd>:

![screenshot from excalidraw help showing full screen mode can be toggled with the F key](https://github.com/excalidraw/excalidraw/assets/11916674/e6fe3913-360a-4385-ad4e-865412b21bed)

... but the "Frame Tool" also uses <kbd>F</kbd>:

![screenshot from excalidraw help showing the frame tool can be selected with the F key](https://github.com/excalidraw/excalidraw/assets/11916674/fff34c29-3a8e-47d4-b90a-7961e63eedfc)

When using https://excalidraw.com/ (`v0.16.1`?) it looks like the frame tool is getting precedence, and I'm having trouble getting the full screen mode to work.

Maybe rebind to <kbd>Shift</kbd> + <kbd>F</kbd>?
Repository: kubernetes
Issue: Custom resource objects can be created during CRD Termination using server-side apply
Labels: kind/bug,priority/important-soon,sig/api-machinery,help wanted,area/custom-resources,triage/accepted

### What happened?

After a CRD DELETE, while the CRD finalizer is deleting all custom resource objects of that type, and the `Terminating=True` status condition is set, it should not be possible to create objects of that type, but it is with server-side apply, because the creation prevention implementation blocks by method type and there's no check in the PATCH handler.

- CREATE is blocked: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go#L373
- PATCH is not blocked: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/customresource_handler.go#L390

In the Patch Apply handler, the `forceAllowCreate` flag is set to `true`: https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apiserver/pkg/endpoints/handlers/patch.go#L646 This allows patching to always create objects.

### What did you expect to happen?

When the CRD is terminating, SSA should not be able to create new objects.

### How can we reproduce it (as minimally and precisely as possible)?

1. apply a CRD
2. apply a CR with a manual finalizer to block CRD termination
3. delete the CRD
4. create a new CR with SSA

### Anything else we need to know?

There is another race condition allowing creation, but it's otherwise unrelated to this bug, which is not a race condition: https://github.com/kubernetes/kubernetes/issues/99181

### Kubernetes version

<details>

```console
$ kubectl version
Client Version: v1.28.2
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.27.4-gke.900
```

</details>


### Cloud provider

ANY


### OS version

ANY

### Install tools

ANY

### Container runtime (CRI) and version (if applicable)

ANY

### Related plugins (CNI, CSI, ...) and versions (if applicable)

ANY
Repository: vscode
Issue: `revealNextCellOnExecute:firstLine` does not work when the window size is small.
Labels: bug,notebook-workflow

Testing #196327



![Image](https://github.com/microsoft/vscode/assets/25044782/299c2ae6-5419-4509-b5bc-97021dfc4445)