sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: create-react-app
Issue: Clarify CRA => Typescript docs regarding tsconfig.json
Labels: issue: proposal,needs triage

Hey guys, bit of a newbie here but I went down a difficult to figure out rabbit hole because the docs for setting up Typescript in CRA say a tsconfig.json file will be created for you. This is only true when the app is created as a typescript app and not when converting an existing project. If this could be clarified with an example of a default tsconfig.json file it would help those relatively new to programming (like me).

Cheers!
Repository: vscode
Issue: Dialog Has Two Primary Buttons
Labels: feature-request,quick-pick

Testing #167161

![image](https://user-images.githubusercontent.com/2931520/204557992-1a800d33-fda9-4def-bb76-3fcbbc674e25.png)

I think "Show Contents" should not be a primary button.
In general, there should only be one primary button, which would be "OK" here.
Repository: vscode
Issue: VSCode hangs when switching between local login and remote desktop login
Labels: bug,upstream,freeze-slow-crash-leak,windows,electron,remote-desktop

<!-- ⚠️⚠️ 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.73.1
- OS Version: Windows_NT x64 10.0.22621

Steps to Reproduce:

1. Log in locally to your Windows desktop
2. Set scaling to 150% (Control Panel-->System-->Display)
3. Take note of the display resolution
4. From a local login, open a project in VSCode
5. Lock the local workstation (do not log out)
6. From a different system where scaling is set to something other than 150%, and preferably the resolution is also different
7. Open Remote Desktop Connection
8. Enter the IP of the original system
9. Click Connect
10. Log in

VSCode will resize the outermost frame of the window, but will leave Explorer and code windows smaller, and will be unresponsive to mouse or keyboard input. After about 15 seconds, you'll get a popup that says:

"The window is not responding. You can reopen or close the window or keep waiting"

If you choose "Reopen", a new instance of VSCode will launch and will work fine. If you Keep Waiting, it will never come back.
Repository: kubernetes
Issue: client-go: introduce event driven alternative to HasSynced
Labels: sig/api-machinery,needs-triage

Today, `HasSynced() bool` is used all throughout client-go. The downside of this is that it requires polling. Typically, folks poll with 100ms interval. For a typical controller, delaying 100ms is not that big of a deal, but it is still a bit non-optimal.

However, for tests things our worse. In our test suite, we were able to cut our test times from 10min to 5min just by changing how we interacted with HasSynced. This is mostly done by polling every 100 microseconds instead of milliseconds (https://github.com/istio/istio/blob/373fc89518c986c9f48ed3cd891930da6fdc8628/pkg/kube/client.go#L594). We do this only for tests, though, since this seems questionable in a production env.

A more optimal solution would be to be event driven. Instead of `HasSynced() bool` we could have a `SyncDone() <-chan struct{}` (similar to `ctx.Done()`) which is closed once the sync is complete. 

This allows consumers to stop polling and instead just wait for the channel. 

`HasSynced()` is typically implemented either by user controllers (which have custom logic and could chose to implement this new function, if they can or want to) OR delegating to an underlying `HasSynced()`. The underlying `HasSynced()` is almost always delta_fifo. delta_fifo can easily implement this new method by keeping track of when we initially have synced in `Pop` and closing a stored channel.

Just to be clear, this is essentially a nitpick. There are reasonable and workable solutions currently. While I think this is a nice addition, its plausible its not worth the extra API churn.

/sig api-machinery
Repository: vscode
Issue: Emmet doesn't work in html documents containing R code
Labels: bug,emmet,emmet-parse

<!-- ⚠️⚠️ 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.73.1
- OS Version: Darwin x64 21.6.0

Steps to Reproduce:

1. Create a new html document with the following content:
```
<pre><code data-trim class="language-R">
    attributes(dat$v1)$label <- "Label for V1"
    attributes(dat$v3)$label <- "Label for V3"
</code></pre>
div
```

2. Try to use emmet to expand out the div on line 5
3. Get an error message:

> Unable to find matching pair for < at char 118

I know that I should be just using `&lt;` instead of the literal `<` symbol but this makes it a pain to copy and paste R code directly into a html slide deck. Would be awesome if this didn't trip emmet up but understand if this is isn't regarded as a bug.
Repository: flutter
Issue: Reconsider Bazel support
Labels: tool,c: proposal,P3,team-tool,triaged-tool

## Use case

Bazel has been gaining more and more traction in the last couple of years and has
become the a pretty popular alternative build system for iOS/Android development.

On paper it looks like Bazel would be a great fit for Flutter codebases since you can mix
native packages into flutter and those packages can be built using existing C++/Java/Kotlin/Swift/Obj-C
Bazel rules and thus reap the hermeticity and cache features that Bazel provides.

I was hoping that the Flutter team might reconsider adding Bazel support to the project.

Previous discussion: https://github.com/flutter/flutter/issues/58082
Also tagging @jdob to see if he can connect the Bazel/Flutter teams if there is interest.
Repository: PowerToys
Issue: FancyZones: Custom drop targets, decoupled from but linked to zones
Labels: Needs-Triage

### Description of the new feature / enhancement

The idea would be to allow the user to add custom rectangular drop targets that when a window is dragged onto them place that window in a zone linked to the drop target. 

To elaborate:

Fancyzones already sort of has this feature; when you drag a window to the area between two zones, it is spanned over those two zones (placed in a zone that is a combination of those two zones). Effectively that is a rectangular drop target that is not exactly the same as a zone. This feature would thus be a generalization of that, allowing users to be very flexible in what zone they want to activate when dragging a window to a specific drop target.

The core of this feature would be the decoupling of the drop targets from the zones.

The interface would have to:
- Allow creating (rectangular) drop targets
- Allow linking drop targets to specific zones
- Show which zone would be used when hovering over a drop target

### Scenario when this would be used?

- Personally, I miss being able to drag a window to the right of the screen and have it take up the right half of the screen when I use a four-zone grid on my central monitor. This would allow me to create drop targets that serve that function.
- The system would be flexible enough that you could support many layouts simultaneously with only dragging -- no more switching layouts with modifier keys. A user could have, in an extreme case, 20 instantly accessible drop targets that map to whatever custom window placements (zones) they wish to use. The drop targets for dividing a monitor in threes could be along the center, targets for 4-grid placements towards the corners, entire monitor top center, etc.

### Supporting information

_No response_
Repository: kubernetes
Issue: dynamic resource allocation: create conformance test
Labels: sig/node,lifecycle/frozen,needs-triage

Once dynamic resource allocation is GA, we need conformance tests for the new resource.k8s.io API. As its functionality depends on a driver, we may have to use the test driver. There's currently one issue with it: as it stands, it depends on port forwarding, which is a debug feature and not part of conformance. We would need a way to deploy it, which implies that we need images for it. It also needs a runtime with support for CDI, which might not have a solution.

At least tests that create, update and delete objects are possible.

Once we have conformance tests, ineligible_endpoints.yaml must get updated (see https://github.com/kubernetes/kubernetes/pull/114156).
Repository: rust
Issue: Track perf regression "Branch Clause from Predicate #104846"
Labels: C-cleanup,E-medium

A perf regression was introduced by #104846, https://github.com/rust-lang/rust/pull/104846#issuecomment-1327887603

Right now we are moving (moderately large) `Clause`s around. What we often do in the compiler is to wrap such types in a newtype and an `Interned` (see `ty::Ty`, `ty::Predicate` and `ty::Const`) for examples. So what we could do is do the same thing with `Clause`. It does mean every time we match on it we need to add and call something like the `kind` method on `Ty` and `Predicate` to get at the inner `Clause`. There's also some naming issues, as you can't have both the interned type and the inner type be called `ty::Clause`. One solution could be to publicly reexport all `Clause` variants from the `clause` module, so we can write `clause::Trait` instead of `Clause::Trait`, and then rename the current `Clause` enum to `ClauseKind`. After that the `Clause` name is free again for use by the wrapper type.

each of these steps could be a separate PR, but should at least be a separate commit for easy review and rebases.

The plan again in a more structured manner (where each step is a commit):

* [ ] (`E-easy`) reexport `Clause`'s variants from the `clause` module and change all uses of `Clause::Foo` to `clause::Foo` and import the `clause` module where necessary.
* [ ] (`E-medium`) rename `Clause` to `ClauseKind` and add the wrapper type called `Clause`, add `Clause` to  the `direct_interners!` macro invocation, use `mk_clause` at all sites that create `Clause`s, add a `kind` method to the new `Clause` type, call `kind` at each site that matches on `ClauseKind` variants.
Repository: flutter
Issue: Properly track outputs of `sdk_rewriter` in gn
Labels: engine,platform-web,c: proposal,P2,team-web,triaged-web

In `//flutter/web_sdk/BUILD.gn`, the `inputs` passed to both the `_kernel_worker` and `_dartdevc` templates are kind of bogus. Both of them operate on the already rewritten sources, but are using the pre-rewrite sources as inputs. This kind of works, just because it's sort of transitively capturing the chain of causality. That is to say, the target knows that if `sdk_rewriter.dart` or any of the input files change, the script will be rerun and the outputs of the script might possibly change.

This is kind of janky, however, and what would actually be better is for the `sdk_rewriter` template to accurately reflect each output file that it creates, and have the inputs of the `_kernel_worker` or `_dartdevc` templates be the output of the `sdk_rewriter `template.
Repository: excalidraw
Issue: midpoint shouldn't be created if holding Opt/Cmd
Labels: UX/UI

When Opt/Alt-dragging or Cmd-dragging (box select), the arrow midpoint shouldn't be created.
Repository: TypeScript
Issue: TypeScript type resolve fails for symlinked folders (pnpm)
Labels: Needs Investigation

<!-- ⚠️⚠️ 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/No

<!-- 🪓 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.73.1
- OS Version:
ProductName:	macOS
ProductVersion:	12.6
BuildVersion:	21G115

Steps to Reproduce:

Here is a video of the issue
https://user-images.githubusercontent.com/33131460/203819438-464d7205-ab57-4b96-8f88-4d38b916fca5.mp4


1.  Clone https://github.com/kamnakis/vscode-symlink-issue-reproduction
2. Install pnpm globally if you haven't already.
3. Run `pnpm i`
4. Go to `node_modules/react-router-dom/dist/index.d.ts`
5. Types from `react-router` and `@remix-run/router` are not resolved even though they are defined in the dependencies of `react-router-dom`.

I think the issue is happening because the `node_modules/react-router-dom` is a symlink and vs code looks at the copy and not the original folder.
Repository: rust
Issue: Wrong architecture objects mixed in self-built compiler
Labels: A-cross,T-bootstrap,C-bug,O-AArch64,requires-custom-config

When using a self-built compiler on an Apple Silicon host to build a `x86_64-unknown-none` static library, `mach-o-arm64` objects get mixed into the output. This happens since https://github.com/rust-lang/rust/pull/103732.

# Problem setup

```toml
# config.toml
# using stage1, built with `./x.py build`
changelog-seen = 2

[llvm]
targets = "AArch64;X86"

[build]
target = [
    "aarch64-apple-darwin",
    "x86_64-unknown-none",
]

[rust]
llvm-tools = true
lld = true
```

```
host: aarch64-apple-darwin
```

```rust
// foo.rs
#![no_std]

#[panic_handler]
fn panic(_: &core::panic::PanicInfo) -> ! {
    loop {}
}
```

```
$ rustc --crate-type staticlib --target x86_64-unknown-none foo.rs
$ objdump --archive-headers libfoo.a
```

# Results

1. 33b530e04099465a8029ef581202d52f4075558e
    * [33b530e.log](https://github.com/rust-lang/rust/files/10116319/33b530e.log)
    * does not contain any `mach-o-arm64` files
2. 5984b1d86f0e7221c83c0d63b8d63fc0de9c5760 (the next commit)
    * [5984b1d.log](https://github.com/rust-lang/rust/files/10116320/5984b1d.log)
    * contains `absvdi2.o: file format mach-o-arm64` and more
3. `nightly-2022-11-01` (the next nightly)
    * [nightly-2022-11-01.log](https://github.com/rust-lang/rust/files/10116427/nightly-2022-11-01.log)
    * does not contain any `mach-o-arm64` files

CC: @stlankes
Repository: flutter
Issue: Migrate flutter documentation of experimental feature over to flutter.dev 
Labels: platform-android,d: api docs,P3,team-android,triaged-android


https://github.com/flutter/flutter/wiki/Experimental:-Launch-Flutter-with-non-main-entrypoint is according to @xster no longer experimental. 
Move that content to https://flutter.dev/ instead.
Repository: vscode
Issue: Reopen in Local Folder has no validation
Labels: feature-request,continue-working-on

Testing #167433

<img width="488" alt="image" src="https://user-images.githubusercontent.com/6561887/204629540-e081569d-36b2-4361-8fbc-5188f8067660.png">

I guess this entry allows you to open an existing local clone, but its not clear and there is no validation that the changes apply to the folder you choose.
Repository: opencv
Issue: Calling `bilateralFilter` with `sigmaColor=0` produces the same result as `sigmaColor=1`
Labels: category: imgproc,category: documentation

### System Information

OpenCV python version: 4.6.0.66
Operating System: Win 10 64bit
Python version: 3.9.7

### Detailed description

When calling `bilateralFilter` in python with a `sigmaColor` value of 0, the function produces the same result as if `sigmaColor` were 1. This is a huge problem for images stored as 0 to 1 float32 values.

Here is an example:

diameter=10, sigmaColor=0.39, sigmaSpace=100
![image](https://user-images.githubusercontent.com/20878432/204614694-af3cb49f-823a-4115-b575-ddf006b2ccbc.png)

diameter=10, sigmaColor=0.039, sigmaSpace=100
![image](https://user-images.githubusercontent.com/20878432/204614730-c9d1e2c8-8e32-45ff-beef-b7f9fa28434f.png)

diameter=10, sigmaColor=0.0039, sigmaSpace=100
![image](https://user-images.githubusercontent.com/20878432/204614751-a4f5a3b0-3530-44be-8745-4c432d473855.png)

diameter=10, sigmaColor=0, sigmaSpace=100
![image](https://user-images.githubusercontent.com/20878432/204614768-9e56f729-fb82-44d7-ab6a-8dc8931c1035.png)

diameter=10, sigmaColor=1, sigmaSpace=100
![image](https://user-images.githubusercontent.com/20878432/204615007-e58bdfe3-72da-47dd-9ce8-6dd5106e6727.png)

This behavior is [not documented](https://docs.opencv.org/4.6.0/d4/d86/group__imgproc__filter.html#ga9d7064d478c95d60003cf839430737ed).

### Steps to reproduce

Have any image that is a numpy array with float32 values between 0 and 1.

```py
diameter=10
sigma_color=0.0
sigma_space=100
cv2.bilateralFilter(
            image,
            diameter,
            sigma_color,
            sigma_space,
            borderType=cv2.BORDER_REFLECT_101,
        )
```

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [ ] I updated to the latest OpenCV version and the issue is still there
- [ ] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: vscode
Issue: Terminal quick fixes often don't work on Linux
Labels: bug,linux,terminal-quick-fix

Testing #167475

On the latest Insiders, on Ubuntu 16 with git 2.38 and bash 4.3.48.
The lightbulb to suggest running a similar git subcommand shows up inconsistently:
![Screencap where I'm running a lot of misspelled git subcommands, and only some of them get a quick fix lightbulb](https://user-images.githubusercontent.com/7199958/204633370-3c1de75f-5ad7-4852-8436-cf67af4f4afa.gif)
Repository: stable-diffusion-webui
Issue: [Feature Request]: add elapsed time stamp option to x/y plot script
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

The x/y plot script is great for comparing different samplers, steps, cfg, etc. But the samplers can take quite different amounts of time at the same number of steps. It is hard to compare these speed discrepancies. An option could be added to include the time it took (perhaps in seconds, to tenth of a second precision) to generate each image, stamped on the corner of each image, for easy speed comparisons on the grid.

### Proposed workflow

1. Go to txt2img, select x/y plot script
2. Click checkbox to "add elapsed time to images"
3. Generate
4. The elapsed time for each image generated would be stamped on the corner of the images.


### Additional information

_No response_
Repository: rust
Issue: Exponential parse time involving `maybe_suggest_struct_literal`
Labels: I-compiletime,T-compiler,C-bug

### Code

```rust
fn main() {
    0 & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
    x: y & {
```

### Where it's slow

According to `-Z time-passes`, the slow pass is `parse_crate`.

[sample-head.txt](https://github.com/rust-lang/rust/files/10116959/sample-head.txt)

`maybe_suggest_struct_literal` repeatedly on the stack is sus.

### Regression

Regression in nightly-2020-10-09, most likely from #75470, which added the function `maybe_suggest_struct_literal` (@estebank)

### Version

```
rustc 1.67.0-nightly (1eb62b123 2022-11-27)
binary: rustc
commit-hash: 1eb62b1235fd77200e6bd967d70e83c0f2497233
commit-date: 2022-11-27
host: x86_64-apple-darwin
release: 1.67.0-nightly
LLVM version: 15.0.4
```

@rustbot label +I-compiletime
Repository: stable-diffusion-webui
Issue: [Feature Request]: add token count (tokenizer) support in API
Labels: enhancement

### Is there an existing issue for this?

- [X] I have searched the existing issues and checked the recent builds/commits

### What would your feature do ?

I would like to request a feature that could be useful for testing various prompts.
You can already access this information at SD interface an tokenizer script but API support for token count would be useful.

### Proposed workflow

1. Construct payload with one or more prompts
2. Send it to API
3. Receive token count as response


### Additional information

_No response_