sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: [Windows][Desktop]: textfield caret position is not consistent when traversing Chinese text
Labels: a: text input,framework,f: material design,a: internationalization,platform-windows,a: desktop,has reproducible steps,P2,found in release: 2.10,found in release: 2.11,team-windows,triaged-windows

Below problems occurred on windows 10 desktop version.
- put a long Chinese article which consists of multiple paragraphs into a textfield, and try to move caret by using keyboard. And soon you will find some weird caret position problems. E.g. the caret positions will suddenly go to unexpected positions etc. This might be relevant to the next problem.

- If mouse is used, soemtimes you just cannot click into the blank line in between the paragraphs. Seems if the newline is pasted from outside or read from db then it cannnot be clicked into. If the newline is originally made in textfield, no problem.

- When you try to select a specific piece of text segment by mouse, the caret will sometimes quickly move over the selected segment leaving nothing selected.

- When I copied a article from a text editor (like emeditor) to textfield in flutter, all the characters become blocks. Then If I selected carefully from the very first character to the last and then paste into textfield, there will be no blocks at all. So I guess some special marks made all its trailing characters unrecognizable. 

<details>
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel master, 2.11.0-0.0.pre.753, on Microsoft Windows [Version 10.0.19041.1415], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.4)
[√] Android Studio (version 2020.3)
[√] VS Code (version 1.65.0)
[√] Connected device (3 available)
[!] HTTP Host Availability
    X HTTP host https://maven.google.com/ is not reachable. Reason: An error occurred while checking the HTTP host:
</details>
Repository: pytorch
Issue: CI: Bake as many dependencies as we can in the AMI (windows)
Labels: module: ci,triaged

This would stamp out network flakiness in our CI for windows

- [ ] Miniconda
- [ ] conda/pip install commands (will expand which ones later)
- [ ] sccache
- [ ] Document how to update the AMI @seemethere

cc @seemethere @malfet @pytorch/pytorch-dev-infra
Repository: transformers
Issue: issues in `generate()`
Labels: WIP

## A collection of issues for `generate()` method that we need to address

(**I don't assign these issues to anyone yet. I might work on some of these later. The purpose here is to make these issues transparent to the community, and to serve as a TODO list so we won't forget.**)

As an extension to the model equivalence tests across framework, I prepared a list of potential issues for `generate()` which gives different results across frameworks.

- Currently only look at the type and shape, not the values inside the tensors
- We might need to wait the current **`generate()` refactorization PR(s) merged** before starting address these issues.
- Here is the [Colab notebook](
https://colab.research.google.com/drive/1294oyVDrwvnuw_P3QtFE_CZ7DoMdthyq?usp=sharing) which demonstrates the issues.

Summary of issues (also included as comments in the above notebook)

- Flax's `generate()` doesn't support `return_dict_in_generate` (gives errors), `output_scores`, `output_attentions`, while PT/TF accept them
- PT/TF/Flax `BeamSearchEncoderDecoderOutput` outputs have different keys
- `scores` have different types: PT -> `tuple` , TF/Flax -> `tensor` 
- `scores` have different shape: PT -> (15, 4, 50257), TF -> (1, 4, 50257), Flax -> (1,)
- `sequences_scores` have different types: PT -> tensor , TF -> None , Flax -> no such attribute 
- `PT.sequences_scores` seems to be `Flax.scores`
- TF's `sequences` has a shorter length by 1 than PT's `sequences`
Repository: godot
Issue: 3.4's Project Manager Scans a 4.0 Project: Unnamed Project created by a non-specified version of Godot
Labels: bug,topic:editor

### Godot version

3.4.3 and 4.0.alpha3

### System information

Linux

### Issue description

Detecting a 4.0 Project name and the Godot version it was created by, should be back-ported to work on the newest version of 3.4 to prevent the loss of developer work.

Maybe even a note in Project Manager: "**Project Name (must convert to open)**" with 3 opening 4 and with 4 opening 3.
(So you don't have to click on a project to know if it is non-compatible with your editor)

### Steps to reproduce

With the newest version of Godot 3 (3.4.3):
Use the Project Manager to Scan a folder for an existing project made by the newest version of Godot 4 (4.0.alpha3).
It will list it as "Unnamed Project" created by a non-specified version of Godot.

### Minimal reproduction project

_No response_
Repository: vscode
Issue: REGRESSION: Feb Update (1.65.0) breaks ctrl+click URL encoding
Labels: bug,opener

Steps to Reproduce:

1. Paste this URL into a blank vscode editor window
```
https://git.cfdata.org/cdn-cgi/access/cli?edge_token_transfer=true&redirect_url=https%3A%2F%2Fgit.cfdata.org%3Ftoken%3D-oLXhF0c-Mn0DSfbRlQg_xSl-Si4SR74OSpdlpFxvBk%253D&send_org_token=true&token=-oLXhF0c-Mn0DSfbRlQg_xSl-Si4SR74OSpdlpFxvBk%3D
```
3. Ctrl+click the link

The URL it uses is malformed. I think the specific problem is it opens a link like this in my browser: 
```
https://git.cfdata.org/cdn-cgi/access/cli?edge_token_transfer=true&redirect_url=https://git.cfdata.org%253Ftoken=-oLXhF0c-Mn0DSfbRlQg_xSl-Si4SR74OSpdlpFxvBk%253D&send_org_token=true&token=-oLXhF0c-Mn0DSfbRlQg_xSl-Si4SR74OSpdlpFxvBk=
```

Specifically that "%253F" seems incorrect. It seems to have urlencoded the % into %25 which is not what we want. We want ctrl+click link in vscode to open the link exactly as if i had copy/pated it into my URL bar
Repository: TypeScript
Issue: allow 'convert to template string' on any string
Labels: Suggestion,Awaiting More Feedback

<!-- ⚠️⚠️ 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. -->
I'd like the 'convert to template string' action to be available for ANY non-template string, not just those using concatenation.

e.g. ` const astring = 'this is a string that could be converted'`

It seems currently the 'convert to template string' only is available on strings that are doing concatenation
e.g. `const string = 'this ' + 5 + 'string'

It's not uncommon for me to want to take a plain string and convert it to a template string, then add/modify to the now templatized string.

p.s. this is a feature in Webstorm that I miss in VSCode.
Repository: go
Issue: x/sys/windows/svc/mgr: Allow clients to request read-only access to the Service Control Manager and to individual services
Labels: OS-Windows,NeedsInvestigation

`Mgr.Connect` always requests `SC_MANAGER_ALL_ACCESS` rights, and `Mgr.OpenService` always requests `SERVICE_ALL_ACCESS` rights. Since both of those methods are requesting write access, they require the current user to run at a higher permission level than may otherwise be required by the caller.

It would be nice if additional methods were exposed that would allow either for finer-grained control over the access requested, or at least a variant that requests read-only (ie, `GENERIC_READ`) access.

Of course, this is easily worked around by directly calling the necessary Win32 APIs, but that isn't the cleanest.

### What version of Go are you using (`go version`)?

<pre>
$ go version
go version go1.17.1 linux/amd64
</pre>

### Does this issue reproduce with the latest release?

Yes

### What operating system and processor architecture are you using (`go env`)?

<details><summary><code>go env</code> Output</summary><br><pre>
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/user/.cache/go-build"
GOENV="/home/user/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/user/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/user/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.17.1"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/user/src/tailscale/go.mod"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2930209240=/tmp/go-build -gno-record-gcc-switches"
</pre></details>

### What did you do?

1. [Compile this program for Windows](https://go.dev/play/p/alGtWVwc8Lg)
2. On a Windows machine, run it as a normal, non-elevated user.

### What did you expect to see?

The program returns without error.

### What did you see instead?

The program fails with access denied errors.
Repository: deno
Issue: Support disabling automatic compression
Labels: suggestion,ext/http

I could imagine that one has an nginx in front of Deno that is responsible for on the fly encoding. In that case you want Deno to leave the responses as "pure" as possible. I don't think we per-se _need_ to add this for the PR to land, but I think it would be useful to give users an opt-out. The implementation complexity seems rather trivial.

_Originally posted by @lucacasonato in https://github.com/denoland/deno/issues/13769#issuecomment-1058717202_
Repository: youtube-dl
Issue: Can you add support for missav.com?
Labels: site-support-request,nsfw

<!--

######################################################################
  WARNING!
  IGNORING THE FOLLOWING TEMPLATE WILL RESULT IN ISSUE CLOSED AS INCOMPLETE
######################################################################

-->


## Checklist

<!--
Carefully read and work through this check list in order to prevent the most common mistakes and misuse of youtube-dl:
- First of, make sure you are using the latest version of youtube-dl. Run `youtube-dl --version` and ensure your version is 2021.12.17. If it's not, see https://yt-dl.org/update on how to update. Issues with outdated version will be REJECTED.
- Make sure that all provided video/audio/playlist URLs (if any) are alive and playable in a browser.
- Make sure that site you are requesting is not dedicated to copyright infringement, see https://yt-dl.org/copyright-infringement. youtube-dl does not support such sites. In order for site support request to be accepted all provided example URLs should not violate any copyrights.
- Search the bugtracker for similar site support requests: http://yt-dl.org/search-issues. DO NOT post duplicates.
- Finally, put x into all relevant boxes (like this [x])
-->

- [x] I'm reporting a new site support request
- [x] I've verified that I'm running youtube-dl version **2021.12.17**
- [x] I've checked that all provided URLs are alive and playable in a browser
- [x] I've checked that none of provided URLs violate any copyrights
- [x] I've searched the bugtracker for similar site support requests including closed ones


## Example URLs

<!--
Provide all kinds of example URLs support for which should be included. Replace following example URLs by yours.
-->

- Single video: https://missav.com/en/miaa-521
Repository: rust
Issue: rustdoc-json: Guard agains 2 commits making the same modification to `FORMAT_VERSION`
Labels: T-rustdoc,A-rustdoc-json

If merge A and merge B both try to increase the version from 10 to 11, git will helpfully merge both of them, resulting in the version 11 having both changes. If a nightly is released in the time between A and B are merged, then both will claim to have the save version, but with different features.

This almost happened with #94009 and #94150, but was prevented by manual noticing and intervension, which is not ideal.

We should figure out a way such that if 2 commits both attempt to merge the same increments, git will raise this as a merge conflict, so this situation wont occor again.

A way to do this would be to store in a comment the logical "latest feature"


Eg: PR Foo

```diff
-// Latest Feature: Initial release
-const FORMAT_VERSION = 1;
+// Latest Feature: Foo
+const FORMAT_VERSION = 2;
```

PR Bar:
```diff
-// Latest Feature: Initial release
-const FORMAT_VERSION = 1;
+// Latest Feature: Bar
+const FORMAT_VERSION = 2;
```


If Foo is merged, when Bar is attempted to be merged, the following conflict will occor

```rust
<<<<<<< HEAD
// Latest Feature: Foo
=======
// Latest Feature: Bar
>>>>>>> bar
const FORMAT_VERSION = 2;
```

This could work, but will have a problem if two features are given the same name, and then we're back to where we were. If someone knows some git-trickery to get around that, that would be great, but if not, I still thing doing this (or something to this effect) would be worthwhile.

cc @Dylan-DPC @CraftSpider 

@rustbot modify labels: +T-rustdoc +A-rustdoc-json
Repository: PowerToys
Issue: FancyZones: Name Zone and Overlay
Labels: Idea-Enhancement,Product-FancyZones

### Description of the new feature / enhancement

FancyZones Feature request: Name Zone and Overlay

When having many windows opened with a lot of zones many time can be confusing. Need an ability to put a custom name and can showing that name overlay(of all zones) by pressing a shortcut key.

### Scenario when this would be used?

When having many windows opened.

### Supporting information

_No response_
Repository: react-native
Issue: Android ScrollView touch event maynot be fired
Labels: Platform: Android,Component: ScrollView,Needs: Triage :mag:

### Description

```
<Animated.View onTouchStart={() => console.log('start')} onTouchMove={() => console.log('move')} onTouchEnd={() => console.log('end')}>
  <ScrollView scrollEnabled={true} style={{height: 300}}>
    ...
  </ScrollView>
<Animated.View>
```
# Android
1. when scrollEnabled is false, the touchs(onTouchStart onTouchMove onTouchEnd) are working fine.
2. when scrollEnabled is true, onTouchMove is only fired one or two times and onTouchEnd is not fired.
#iOS
1. There is no problem on iPhone.

### Version

0.66.4

### Output of `npx react-native info`

info Fetching system and libraries information...
System:
    OS: macOS 10.15.7
    CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
    Memory: 1.25 GB / 8.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 12.22.8 - ~/.nvm/versions/node/v12.22.8/bin/node
    Yarn: 1.12.3 - /usr/local/bin/yarn
    npm: 8.3.0 - ~/react/cunzhijiapp/node_modules/.bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.1, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
    Android SDK:
      API Levels: 23, 28, 30, 31
      Build Tools: 23.0.1, 28.0.3, 29.0.3, 30.0.2
      System Images: android-27 | Google Play Intel x86 Atom, android-28 | Intel x86 Atom_64
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7935034
    Xcode: 12.1/12A7403 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_201 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2 
    react-native: 0.66.4 => 0.66.4 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

### Steps to reproduce

none

### Snack, code example, screenshot, or link to a repository

_No response_
Repository: material-ui
Issue: [Snackbar] Add a simple notification method(), showing global Snackbars (especially for reducers)
Labels: new feature,component: snackbar

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Summary 💡

### Current scenerio 😯

Currently, in MUI we only have snackbars that should be used in such a way that can be rendered as HTML (JSX syntax) i.e

```
<Snackbar
  open={open}
  autoHideDuration={6000}
  onClose={handleClose}
  message="Note archived"
  action={action}
/>
```

OR

`<Alert severity="error">This is an error message!</Alert>`

### New and required behavior 🤔

But what if we have to generate a snackbar from within the reducer i.e

```const slice = createSlice({
  name: "userMatches",
  initialState: {
    matchesData: {
      matches: [],
    },
  },
  reducers: {
    getMatches: (state, { payload }) => {
      state.loading = true;
    },
    getMatchesSuccess: (state, { payload }) => {
      state.loading = false;
      state.matchesData.matches = payload.matchData;
    },
    getMatchesFailed: (state, { payload }) => {
      state.loading = false;
       👉 // notification.error(payload.message);
       👉 notification.success(payload.message);

    },
}
})
```
So currently we are not able to do that in reducers and have to install another package, or have to create the global <Snackbar/> and to do a bunch of stuff to achieve the functionality

### Sumup 🙌

A simple calling method to show the notification or snackbar for some specific task, a method that can be called from anywhere of the application

### Examples 🌈

_No response_

### Motivation 🔦

We can check this scenario working here, as Antd implemented it

> https://ant.design/components/notification/
Repository: opencv
Issue: pkg-config.pc contains extra "-L" for Libs.private (harmless?)
Labels: priority: low,category: build/install

##### System information (version)

- OpenCV => 4.5.5
- Operating System / Platform => Linux 64 Bit (latest)
- Compiler => gcc 11.2

##### Detailed description
File "pkgconfig/opencv.pc" contains extra "-L" directives for "Libs.private" key. Here is the contents of this file in my system:

# Package Information for pkg-config

prefix=/usr/local
exec_prefix=${prefix}
libdir=${exec_prefix}/lib64
includedir=${prefix}/include/opencv4

Name: OpenCV
Description: Open Source Computer Vision Library
Version: 4.5.5
Libs: -L${exec_prefix}/lib64 -lopencv_world
Libs.private: -lm -lpthread -lcudart_static -ldl -lrt -lnppc -lnppial -lnppicc -lnppicom -lnppidei -lnppif -lnppig -lnppim -lnppist -lnppisu -lnppitc -lnpps -lcublas -lcufft -L-L/usr/local/cuda -llib64 -L-L
Cflags: -I${includedir}

<!-- your description -->

##### Steps to reproduce
cat /usr/local/lib64/pkgconfig/opencv.pc
Repository: TypeScript
Issue: Different type-inference with two structurally identical types
Labels: Needs Investigation

# Bug Report

### 🔎 Search Terms

inference identical

### 🕗 Version & Regression Information

3.5-3.9, 4.0-4.6, 4.7.0-dev.20220304 (did not test earlier versions)

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAkgJhAdsAlqAPAQQHxQLwCwAUFKWZlBAB7BJwDOUA9gEYBWEAxsMWVAPxQA3gG0A0lBSIoAawggmAMyiYAugC5YCZGhBZxq7AF9eZTZgDcxYqEhQAEgEN6ANUcAbAK4QAjFlx4wqakAG4e3urwSKgYOFZEJkS20E6u4RAATP74QSRkYV4QkdoxenHEicSKnojcKEzStPTA6ABC2AAUjuqpboV+7QCUwpVE1bWoDVCKTEx+OF09zn3e8yKGw0JNwF2DRlAA9AdQAPJiVTV1UzNMWQvdvel369ib27v7R1DJALQQAE7-Jj-YhAA)

### 💻 Code

<!-- Please post the relevant code sample here as well-->
```ts
type Identity<A> =
      A extends object
    ? {[K in keyof A]: Identity<A[K]>}
    : A;

type HasValue1<A> = {
    value:Identity<A>;
}
type HasValue2<A> = {
    value:Identity<A>;
}

function test<B>(a:HasValue1<B>) {}

function foo1<A>(a:HasValue1<A[]>) {test(a)} // OK
function foo2<A>(a:HasValue2<A[]>) {test(a)} // type-error
```

### 🙁 Actual behavior

The body of `foo2` does not type-check because the wrong type for type-variable B is inferred.

### 🙂 Expected behavior

The body of `foo2` should type-check exactly as `foo1` since `HasValue1` and `HasValue2` are structurally the same type.
Repository: TypeScript
Issue: TypeScript 4.6 regression
Labels: Docs

# Bug Report

I have read the [release notes](https://devblogs.microsoft.com/typescript/announcing-typescript-4-6/#dependent-parameters-cfa) and the code that is breaking for me is not mentioned in the breaking changes section.

### 🔎 Search Terms
None. As the code works with 4.5

### 🕗 Version & Regression Information
The `typeof var === 'function'` call narrows the variable to function vs one of the union.

- This changed between versions `4.5` and `4.6`

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.6.2#code/C4TwDgpgBAwg9gO2BAHsKBeKAlCBjOAJwBMAeAZ2EIEsEBzAGigEMEQA+AWACge8AbZuXJQAYnDikAKlFTIExEfCRz2UAN5QoPLWBoA3ZsigEVaAIJ48AVwC2g4EQCEALigAKAJSY1MgD5QAAqEcLbU5BDSXLzcWqaUhNZ4joTuOlomiMhobv4eXj5QecGh4ZFS7J7p3urpWtQAZh6gkHBNptnoGN1QAOQN1gjJ1Ii9NXUZwAAW4QB0HXKWNvZGRJiZZsATAL7pu9zbQA)

### 💻 Code

```ts
type Context = Record<string, any>

class Foo<T extends Context> {  
  private contextAccumlator!: () => T | Promise<T>

  constructor(
    context: T | (() => T | Promise<T>)
  ) {
    if (typeof context === 'function') {
      this.contextAccumlator = context
    }
  }
}
```

### 🙁 Actual behavior

I expect `this.contextAccumlator = context` to report zero errors.

### 🙂 Expected behavior

Instead it says

```
Type '(() => T | Promise<T>) | (T & Function)' is not assignable to type '() => T | Promise<T>'.
  Type 'T & Function' is not assignable to type '() => T | Promise<T>'.
    Type 'Context & Function' provides no match for the signature '(): T | Promise<T>'.(2322)
```
Repository: vscode
Issue: A white line at the top of the window on macOS Monterey
Labels: bug,macos,polish,titlebar,confirmed

<!-- ⚠️⚠️ Do Not Delete This! bug_report_template ⚠️⚠️ -->
<!-- Please read our Rules of Conduct: https://opensource.microsoft.com/codeofconduct/ -->
<!-- 🕮 Read our guide about submitting issues: https://github.com/microsoft/vscode/wiki/Submitting-Bugs-and-Suggestions -->
<!-- 🔎 Search existing issues to avoid creating duplicates. -->
<!-- 🧪 Test using the latest Insiders build to see if your issue has already been fixed: https://code.visualstudio.com/insiders/ -->
<!-- 💡 Instead of creating your report here, use 'Report Issue' from the 'Help' menu in VS Code to pre-fill useful information. -->
<!-- 🔧 Launch with `code --disable-extensions` to check. -->
Does this issue occur when all extensions are disabled?: Yes

<!-- 🪓 If you answered No above, use 'Help: Start Extension Bisect' from Command Palette to try to identify the cause. -->
<!-- 📣 Issues caused by an extension need to be reported directly to the extension publisher. The 'Help > Report Issue' dialog can assist with this. -->

- VS Code Version:版本: 
1.65.0
提交: b5205cc8eb4fbaa726835538cd82372cc0222d43
日期: 2022-03-02T11:13:50.741Z
Electron: 13.5.2
Chromium: 91.0.4472.164
Node.js: 14.16.0
V8: 9.1.269.39-electron.0
OS: Darwin arm64 21.3.0

- OS Version: macOS 12.2.1 (21D62)

Steps to Reproduce:

<img width="1439" alt="iShot2022-03-04 19 53 44" src="https://user-images.githubusercontent.com/56858288/156759020-873bfe83-cd50-47ec-b7f0-f08190c0354f.png">

As long as the system is in light mode and vscode is in a dark theme, a white line will appear on the top of the vscode window. When the system switches to dark mode, it will disappear. This white line is really distracting. Hope you can fix this.