sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Improve developer experience for opting in to Material 3
Labels: c: new feature,framework,f: material design,c: proposal,team-design,triaged-design

Setting `useMaterial3` applies certain defaults when constructed from the factory constructor, but since many themes are constructed from a default and customized with `copyWith`, they won't have correct typography or ripple effects. The code snippet below illustrates the missing defaults:

Copying my initial comment from a PR: 

> I would expect `copyWith` with `useMaterial3` true to apply these updates, if I haven't provided my own `typography` and `splashFactory`, of course. If I understand correctly, we're currently requiring *every created theme out there* (that doesn't use the factory constructor) to add the following?

```.copyWith(
...
typography: Typography.material2021(platform: platform),
splashFactory: platform == TargetPlatform.android && !kIsWeb ? InkSparkle.splashFactory ?  InkRipple.splashFactory,
)
```

> It's not documented anywhere and is pretty brittle.

_Originally posted by @guidezpl in https://github.com/flutter/flutter/pull/104815#discussion_r884625696_
Repository: vscode
Issue: Toggle side bar visibility has issues when `registerWebviewViewProvider` with `retainContextWhenHidden` is used
Labels: bug,webview-views

<!-- ⚠️⚠️ 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.67.2
- OS Version: macOS 12.3

**Issue:**

When using a custom webview panel in combination with another webview. There is a weird issue going on when toggling the sidebar its visibility using the `View: Toggle Primary Side Bar Visibility` command (`cmd+b`). In some cases it does not open the panel, it immediately closes again. In other cases, it is the other way around.

Here is a video of what is happening:

https://user-images.githubusercontent.com/2900833/172593687-4bfec844-d3a7-4494-bf5e-48030bbb23a8.mp4

This issue only occurs when the `retainContextWhenHidden` is set to `true` for the activity bar panel webview.

**Steps to Reproduce:**

To make it easier to test it out, I started from the [webview-view-sample](https://github.com/microsoft/vscode-extension-samples/blob/main/webview-view-sample) and added the cat webview.

1. Clone the following sample repo: `https://github.com/estruyf/vscode-webview-issue`
2. Run the sample
3. Open the `Calico Colors` activity bar panel
4. Run the `calicoColors.openWebview` command
	- You should now have the panel and webview open
5. Toggle the activity bar three times with the `View: Toggle Primary Side Bar Visibility` (`cmd+b`) command
6. On the third time, the problem starts to occur.
Repository: TypeScript
Issue: Make it possible to pass rootDirs and paths via cli
Labels: Suggestion,Awaiting More Feedback

# Suggestion

<!--
  Please fill in each section completely. Thank you!
-->

## 🔍 Search Terms
<!--
  💡 Did you know? TypeScript has over 2,000 open suggestions!
  🔎 Please search thoroughly before logging new feature requests as most common ideas already have a proposal in progress.
  The "Common Feature Requests" section of the FAQ lists many popular requests: https://github.com/Microsoft/TypeScript/wiki/FAQ#common-feature-requests

  Replace the text below:
-->

* tsc cli "rootDirs"

## ✅ Viability Checklist

<!--
   Suggestions that don't meet all these criteria are very, very unlikely to be accepted.
   We always recommend reviewing the TypeScript design goals before investing time writing
   a proposal for ideas outside the scope of the project.
-->
My suggestion meets these guidelines:

* [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code
* [x] This wouldn't change the runtime behavior of existing JavaScript code
* [x] This could be implemented without emitting different JS based on the types of the expressions
* [x] This isn't a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
* [x] This feature would agree with the rest of [TypeScript's Design Goals](https://github.com/Microsoft/TypeScript/wiki/TypeScript-Design-Goals).


## ⭐ Suggestion
It should be possible to pass `--rootDirs` and `--paths` via CLI. This would make it easier to integrate with (non-js)-buildtools, which just call the CLI.

<!-- A summary of what you'd like to see added or changed -->

## 📃 Motivating Example
Make it easier to use the `tsc`-cli with arbitrary build-tools in big projects without using a `tsconfig.json`.
<!--
  If you were announcing this feature in a blog post, what's a short explanation that shows
  a developer why this feature improves the language?
-->

## 💻 Use Cases
My specific use-case is a project with generated files (protobuf). I want to generate the files into a build/dist directory but need a way for referencing the file properly (which I would do with `rootDirs` or the `baseUrl`, `paths` pair). I also want to use a buildtool which just calls the `tsc`-cli for every file (like when compiling C-sourcecode).
<!--
  What do you want to use this for?
  What shortcomings exist with current approaches?
  What workarounds are you using in the meantime?
-->
Repository: go
Issue: proposal: runtime/pprof: extend profile configuration to support perf events
Labels: Proposal,Proposal-Hold

#42502 Proposes configurable CPU profiling via NewCPUProfile + cpuProfile.Start and the proposal has been accepted. But the proposal does not appear to approve any exported fields, nor does it support any perf event extensions. So I propose to extend this proposal to support configuring perf events.

I propose to add the following exported struct and method to the pprof package.

```
type PerfProfile {  // We already have struct Profile, name it as PerfProfile
    Event string  // perf event names, such as cycles, instructions
    Rate int  // perf event period or os-timer frequency
}

func (p *PerfProfile) Start(w io.Writer) error {}

```

It would be better if a corresponding Stop method was exported, but it is not necessary, we can correctly stop the profiling by the cached configuration.

If we want to use PMU profiling in `http/pprof `and `testing `packages, then we need to make a few more changes.

For `http/pprof`, we are not necessary to add a new interface, we can add some parameters to the profiling URL, and then do the corresponding profiling according to the parameters. for example:
`go tool pprof http://localhost:6060/debug/pprof/profile?event=cycles&&rate=10000`

For the `testing `package,  we need to add two options to the `go test` command, one is `-perfprofile perf.out` to specify the output file, and the other is `-perfprofileconfig "conf"` to specify the configuration. These two options need to exist at the same time to work. The value of `-perfprofileconfig` must meet the specified format: `"{event=EEE rate=RRR}"`  Example:
`go test -perfprofile perf.out -perfprofileconfig="{event=EEE rate=RRR}" -run .`



The introduction of perf event helps to improve the precision of profiling, which is also beneficial for PGO in the future. I have made a preliminary implementation, see the series of patches https://go-review.googlesource.com/c/go/+/410796/5, the implementation does not make any changes to the `http/pprof` and `testing` packages.

This proposal is related to #42502 and #36821.
Repository: pytorch
Issue: About the source code of 
Labels: triaged,topic: docs

### 📚 The doc issue

I am actually trying to find the source implementation of a very simple function - cosine similarity, due to some concerns from its computation scheme.

However, when I was looking at [the website](https://pytorch.org/docs/stable/generated/torch.nn.functional.cosine_similarity.html), I cannot locate the source code. I also failed to find the function from the original GitHub repository (or I am being too lazy to dig everything. I stopped after several migrating using F12 on VScode...).

I am aware that such "torch.nn.functional" functions are implemented not purely in Python but wrapped with Cython (correct me). But still I would like to see the inner working mechanism. Could you please kindly point me to where the actual implementation locates in the repo? Cython or even C/C++ code will be fine. Thanks!

### Suggest a potential alternative/fix

I actually would like to suggest to at least add one "source location" for the functions that can be browsed in the website. It does not have to be Python code or even code necessarily contained in the repo, but at least something making people feel whatever they will feel to open ideas or discussions.
Repository: PowerToys
Issue: Keyboard shortcut to show/hide hidden files from File Explorer
Labels: Idea-Enhancement,Product-File Explorer,Needs-Triage

### Description of the new feature / enhancement

As a developer, I want to be able to see hidden files from the system, but most of the time I don't need to see them, and letting the setting show hidden files makes file explorer.
Having a keyboard shortcut that could show me hidden files only at that time should be great.
Apple has this feature using the keyboard shortcut Command + Shift + . (period).

### Scenario when this would be used?

When developing times I have to access files inside the user AppData folder or inside the .git folder on the project.

### Supporting information

_No response_
Repository: pytorch
Issue: Hide or fuse TupleConstruct / TupleUnpack from tensorboard graph
Labels: triaged,module: tensorboard

### 🚀 The feature, motivation and pitch

Tensorboard graphs generated by Summary.add_graph are cluttered with successions of TupleUnpack and TupleConstruct when chaining modules that take and return several arguments. Tuple packing and unpacking is a basic and transparent programming pattern in python, I cannot think of a situation where we want to explicitly view it in the graph.

I would be more legible if forward arguments and tuple return values were not grouped into a single graph node.

### Alternatives

_No response_

### Additional context

Example:

```py
import torch
from torch import nn
from torch.utils.tensorboard import SummaryWriter


class Layer(nn.Module):
    def __init__(self):
        super().__init__()

        self.linear = nn.Linear(64, 64)

    def forward(self, a, b):
        return self.linear(a), self.linear(b)


class Model(nn.Module):
    def __init__(self):
        super().__init__()

        self.layer1 = Layer()
        self.layer2 = Layer()

    def forward(self, x):
        a, b = self.layer1(x, x)
        c, d = self.layer2(a, b)
        return a + b + c + d


model = Model()

summary = SummaryWriter(".")
summary.add_graph(model, input_to_model=(torch.rand([1, 64])))
```

![Capture d’écran du 2022-06-08 13-50-41](https://user-images.githubusercontent.com/3764009/172610553-8d943f15-0624-4823-9186-6d7920088147.png)
Repository: rust
Issue: Limiting deprecated lint output
Labels: A-lints,A-diagnostics,T-compiler,D-verbose,L-deprecated

Given the following code: https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=f4b5234e06a28be1f975034f107e1367

```rust
#![allow(dead_code)]

#[deprecated]
fn baz() -> Foo {
    Foo::new()
}

#[deprecated]
struct Foo {
    bar: String,
}

impl Foo {
    fn new() -> Foo {
        Self {
            bar: String::default(),
        }
    }
}
```

The current output is:

```
   Compiling playground v0.0.1 (/playground)
warning: use of deprecated struct `Foo`
 --> src/lib.rs:4:13
  |
4 | fn baz() -> Foo {
  |             ^^^
  |
  = note: `#[warn(deprecated)]` on by default

warning: use of deprecated struct `Foo`
 --> src/lib.rs:5:5
  |
5 |     Foo::new()
  |     ^^^

warning: use of deprecated struct `Foo`
  --> src/lib.rs:13:6
   |
13 | impl Foo {
   |      ^^^

warning: use of deprecated struct `Foo`
  --> src/lib.rs:14:17
   |
14 |     fn new() -> Foo {
   |                 ^^^

warning: use of deprecated field `Foo::bar`
  --> src/lib.rs:16:13
   |
16 |             bar: String::default(),
   |             ^^^^^^^^^^^^^^^^^^^^^^

warning: `playground` (lib) generated 5 warnings
    Finished dev [unoptimized + debuginfo] target(s) in 1.16s
```

<!-- The following is not always necessary. -->

I would argue that this code should not output any warnings, since all usages of deprecated items are, themselves, deprecated; there is no non-deprecated code using deprecated code.
Repository: flutter
Issue: Snap presentation time to next vsync target time if a frame was resubmitted.
Labels: platform-android,engine,P2,team-android,triaged-android

This issue to to track fixing a TODO item in the flutter/engine codebase. This TODO was introduced by me in https://github.com/flutter/engine/pull/33881.
Repository: rust
Issue: Incomplete error message "future created by async block is not `Send`"
Labels: A-diagnostics,T-compiler

<!--
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.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

Given the following code: <!-- Please provide a link to play.rust-lang.org -->

```rust
pub trait Trait: Send {}

#[rocket::main]
async fn main() -> Result<(), rocket::Error> {
// future with "dyn Trait + Send + 'static" is created and used here
}
```

The current output is:

```
error: future cannot be sent between threads safely
   --> botman/src/main.rs:66:46
    |
66  |   async fn main() -> Result<(), rocket::Error> {
    |  ______________________________________________^
131 | | }
    | |_^ future created by async block is not `Send`
```

Ideally the output should look like:

```
error: future cannot be sent between threads safely
   --> botman/src/main.rs:66:46
    |
66  |   async fn main() -> Result<(), rocket::Error> {
    |  ______________________________________________^
131 | | }
    | |_^ future created by async block is not `Send` + `Sync`
```
Repository: create-react-app
Issue: Allow to disable historyApiFallback on dev server
Labels: issue: proposal,needs triage

### Is your proposal related to a problem?

I am the author of Quarkus Quinoa, a Quarkus extension to ease dev and deployment of NodeJS app on Quarkus (a Java Framework).

To allow a good development experience, Quarkus also have a live coding mode, when using the Quinoa extension, it also starts the Node live coding server (`npm start`) and proxy relevant requests to it (the opposite of `setupProxy` in RCA).

Currently, it's not possible to disable `historyApiFallback` on the dev server (`react-scripts start`). Because of this the dev server is not honoring 404 when a file is not found making it complex to detect if a file is actually served by the NodeJs server or if it's just a fallback.

The Quinoa extension also allow historyApiFallback as part of its routing so having it on the NodeJs server is not necessary.

### Describe the solution you'd like

Have an environment variable to disable `historyApiFallback`. e.g. `HISTORY_API_FALLBACK=false react-scripts start`
Repository: vscode
Issue: Context menu for comment threads
Labels: feature-request,api,api-proposal,comments

<!-- ⚠️⚠️ Do Not Delete This! feature_request_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- Please search existing issues to avoid creating duplicates. -->

<!-- Describe the feature you'd like. -->

From @alexr00 (in https://github.com/microsoft/vscode/issues/150824):
> Finally, for comments it might be nice to have all these actions in a context menu on the whole comment peek view. I don't think I'm the only one who will right click on things to see if there are some actions I don't know about.

I think that's a simple feature to add:
1. Add a 3-dot menu on the comment thread title (at the right of other contributed icons)
2. Support right-clicking on the comment thread title

The combination of 3-dot + right-click already exists in other parts of vscode and would improve the experience on wide screens.

This would also help us rely less on icons. New users are often confused with all the icons. Plus, there are multiple features we didn't expose precisely because they cannot be explained with an icon.

cc @hermannloose
Repository: pytorch
Issue: torchvision.models.mobilenetv3 can't save pre-trained model to custom dir?
Labels: triaged,module: vision

### 📚 The doc issue

import torchvision.models as models
mobile_v3 = models.mobilenet_v3_small(pretrained=True)
this method load the pre-trained model to defaul catch dir?
in this function  _mobilenet_v3_model
the line 
"state_dict = load_state_dict_from_url(model_urls[arch], progress=progress)
 model.load_state_dict(state_dict)"
if I want to save pre-trained model to custom dir .how to set the 'model_dir' to load_state_dict_from_url() this method?

### Suggest a potential alternative/fix

_No response_

cc @fmassa @vfdev-5 @pmeier
Repository: flutter
Issue: use `NiceMock<Foo>` (using ::testing::NiceMock) in engine unittests to reduce spam
Labels: a: tests,team,engine,P2,c: tech-debt,team-engine,triaged-engine
Repository: flutter
Issue: engine linker error `framework not found for -framework Flutter`
Labels: engine,P2,e: local-engine-development,team-engine,triaged-engine

## description
Sometimes after having pulled a new version of the engine then running gclient sync, the engine won't build because of a linker error `framework not found for -framework Flutter`.  The workaround is to delete the build folders and run gn again.  I noticed it about a month ago the first time.

## environment
engine hash: 10ff30257d7671fa4f96189607487dd62c550f36
platform: macOS

## error
```
[10/2537] SOLINK libcopy_and_verify_framework_module.dylib libcopy_and_verify_framework_module.dylib.TOC
FAILED: libcopy_and_verify_framework_module.dylib libcopy_and_verify_framework_module.dylib.TOC 
if [ ! -e ./libcopy_and_verify_framework_module.dylib -o ! -e ./libcopy_and_verify_framework_module.dylib.TOC ] || otool -l ./libcopy_and_verify_framework_module.dylib | grep -q LC_REEXPORT_DYLIB ; then ../../buildtools/mac-x64/clang/bin/clang++ -shared -isysroot /Users/aaclarke/dev/engine/src/out/ios_profile/gen/SDKs/iPhoneOS15.4.sdk -miphoneos-version-min=11.0  -Wl,-object_path_lto,./lto_libcopy_and_verify_framework_module.o -arch arm64 -stdlib=libc++ -Wl,-dead_strip -o ./libcopy_and_verify_framework_module.dylib -Wl,-filelist,./libcopy_and_verify_framework_module.dylib.rsp    && { otool -l ./libcopy_and_verify_framework_module.dylib | grep LC_ID_DYLIB -A 5; nm -gP ./libcopy_and_verify_framework_module.dylib | cut -f1-2 -d' ' | grep -v U$$; true; } > ./libcopy_and_verify_framework_module.dylib.TOC; else ../../buildtools/mac-x64/clang/bin/clang++ -shared -isysroot /Users/aaclarke/dev/engine/src/out/ios_profile/gen/SDKs/iPhoneOS15.4.sdk -miphoneos-version-min=11.0  -Wl,-object_path_lto,./lto_libcopy_and_verify_framework_module.o -arch arm64 -stdlib=libc++ -Wl,-dead_strip -o ./libcopy_and_verify_framework_module.dylib -Wl,-filelist,./libcopy_and_verify_framework_module.dylib.rsp    && { otool -l ./libcopy_and_verify_framework_module.dylib | grep LC_ID_DYLIB -A 5; nm -gP ./libcopy_and_verify_framework_module.dylib | cut -f1-2 -d' ' | grep -v U$$; true; } > ./libcopy_and_verify_framework_module.dylib.tmp && if ! cmp -s ./libcopy_and_verify_framework_module.dylib.tmp ./libcopy_and_verify_framework_module.dylib.TOC; then mv ./libcopy_and_verify_framework_module.dylib.tmp ./libcopy_and_verify_framework_module.dylib.TOC ; fi; fi
ld64.lld: error: framework not found for -framework Flutter
clang-15: error: linker command failed with exit code 1 (use -v to see invocation)
```
Repository: neovim
Issue: Neovim erroneously sends a focus lost FOCUS_EVENT on shutdown
Labels: bug,status:blocked-external,tui,has:plan

### Neovim version (nvim -v)

0.7.0

### Vim (not Nvim) behaves the same?

no, vim 8.2.3412

### Operating system/version

Windows

### Terminal name/version

Windows Terminal v1.14

### $TERM environment variable

n/a

### Installation

winget

### How to reproduce the issue

nvim --clean
:q

### Expected behavior

There's a lot more investigation over in https://github.com/microsoft/terminal/issues/13238, so go read that thread.

It seems that on exit, neovim writes a `FOCUS_EVENT` `INPUT_RECORD` to the console via `WriteConsoleInput`, before disabling VT input or FocusEvent mode. However, neovim doesn't drain the input queue at this point, so the input that ends up getting synthesized here (`\x1b[O`) ends up arriving at the shell prompt (who was almost certainly not expecting it).

### Actual behavior

Depending on the shell, some variation on ^[[O is printed to the input.
Repository: godot
Issue: Drag a Font file in a 'Font' field to automatically generate a Dynamic/BitmapFont with Font Data
Labels: enhancement,topic:editor

### Describe the project you are working on

i dont think it matters

### Describe the problem or limitation you are having in your project

Every time I am adding a new Label/TextEdit or anything related, and have to put in a font, I always think having to create a DynamicFont BitmapFont and then assigning the data for it is very cumbersome

### Describe the feature / enhancement and how it helps to overcome the problem or limitation

Just drag a font file over a "Font Data" or similiar property field and have it generate a Dynamic/BitmapFont with the data from the dragged file

### Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

![immagine](https://user-images.githubusercontent.com/64893077/172521931-603a4cbc-d079-4969-a8bd-5ebec38a96ed.png)
*not sure how to explain this*

### If this enhancement will not be used often, can it be worked around with a few lines of script?

Not to my knowledge

### Is there a reason why this should be core and not an add-on in the asset library?

I think this is a very basic feature and having to install a separate plugin for it to happen could lead people off

Godot Version: 3.4.4
Platform: X11 (Arch Linux)
Repository: pytorch
Issue: [AUTOGRAD] codegen to use sym_sizes for ops w/ symint overloads in derivative formulas
Labels: triaged,lazy

Change codegen logic so it can transparently generate `sym_sizes` in place of `sizes` for ops that support `SymInt[]` overload.
Repository: pytorch
Issue: [AUTOGRAD] support implicit reductions with SymInts in autograd.
Labels: triaged,lazy