sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: flutter
Issue: Korean input keyboard in android phone adding spaces between characters not creating proper text
Labels: a: text input,platform-android,P3,team-text-input,triaged-text-input

### Steps to reproduce

```
import 'package:flutter/material.dart';

void main() {
  runApp(MaterialApp(
    home: MyForm(),
  ));
}

class MyForm extends StatefulWidget {
  @override
  _MyFormState createState() => _MyFormState();
}

class _MyFormState extends State<MyForm> {
  final _formKey = GlobalKey<FormState>();
  final _textController = TextEditingController();

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('TextFormField Example'),
      ),
      body: Form(
        key: _formKey,
        child: Padding(
          padding: const EdgeInsets.all(16.0),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              TextFormField(
                controller: _textController,
                decoration: InputDecoration(
                  labelText: 'Enter your text',
                ),
                validator: (value) {
                  if (value == null || value.isEmpty) {
                    return 'Please enter some text';
                  }
                  return null;
                },
              ),
              SizedBox(height: 16.0),
              ElevatedButton(
                onPressed: () {
                  if (_formKey.currentState!.validate()) {
                    // Form is valid, proceed with your logic
                    String enteredText = _textController.text;
                    print('Entered text: $enteredText');
                  }
                },
                child: Text('Submit'),
              ),
            ],
          ),
        ),
      ),
    );
  }

  @override
  void dispose() {
    _textController.dispose();
    super.dispose();
  }
}
```

### Expected results

text should be concated and become a proper text instead spaces in words or letters

### Actual results

text should be concated and become a proper text instead spaces in words or letters

### Code sample

<details open><summary>Code sample</summary>

```dart
[Paste your code here]
```

</details>


### Screenshots or Video

<details open>
<summary>Screenshots / Video demonstration</summary>

https://drive.google.com/file/d/1JI-v1hAapbwqhOVtB1orCJuLqnTyv9tM/view?usp=drivesdk

</details>


### Logs

<details open><summary>Logs</summary>

```console
[Paste your logs here]
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
[Paste your output here]
```

</details>
Repository: excalidraw
Issue: unable to paste images from the clipboard on Android
Labels: bug,mobile

When using Excalidraw on Android, pasting an image stored in the clipboard doesn't seem to work. I've tried it in different browsers on my OnePlus phone and on my Samsung tab. Each time, I grant the permission when asked by the browser. This issue doesn't occur from my macbook.
Repository: frp
Issue: [Feature Request] Adds UPNP support to xtcp nathole
Labels: proposal

### Describe the feature request

also see:

https://github.com/fatedier/frp/issues/1823
https://github.com/fatedier/frp/issues/3703


With the development of technologies such as P2P, initiating UPnP requests and asking routers to cooperate is a common technique in scenarios requiring public network mapping. Investigation and testing in this context, as outlined in #1823, demonstrate that even within ISP-level NAT networks, some providers offer support for related technologies.

In IPv6 environments, even though each endpoint can acquire an IPv6 address, most routers currently block all inbound requests from the internet for security reasons. Therefore, it's still necessary to configure the opening of corresponding ports. The use of UPnP in these scenarios retains significant value.

Moreover, some tools also offer similar functionalities, like ZeroTier (https://www.zerotier.com/).

===

随着p2p等技术的发展，主动发起upnp请求并要求路由器进行配合在需要公网映射的情况下是一个常见技术。#1823 对此做了一些上下文的调查及测试，可以看到即使在运营商级的NAT网络中，部分运营商也提供了相关技术的支持。

在ipv6环境中，即便是每个端点都能获取到ipv6地址，但目前大部分路由器为了安全均禁止互联网侧的全部入站请求，因此依然需要配置开放对应端口，目前使用的upnp在相关场景下也具有一定的价值意义。

同时，部分工具也同时提供了类似功能，如zerotier 等 https://www.zerotier.com/





### Describe alternatives you've considered


The current implementation is a straightforward extension of the STUN implementation for xTCP.

see:  https://github.com/fatedier/frp/pull/4110 for PR

After acquiring a public IP address, a callback is invoked. If permitted by the configuration, the UPnP feature is used to direct the router to transfer the externally exposed port to an open UDP port, thereby "creating" an EasyNAT in this environment. The subsequent process fully reuses the STUN procedure.

I haven't closely examined the current implementation, but my assumption is that either the visitor or the proxy needs to be reachable by the other party for a direct connection to be established without the need for server relay. Therefore, I have implemented related configuration code on both the visitor and the proxy sides.

If there's any misunderstanding on my part, please kindly correct me.


As @fatedier [mentioned](https://github.com/fatedier/frp/pull/4110#issuecomment-2024861556), this issue has been created to gather relevant information and solicit valuable feedback.

Thank you all for your contributions.

==


当前实现的设计，是对xtcp的stun实现的简单扩展。


在获取到公网ip地址后调用回调，在配置许可的情况下，调用upnp功能，使得路由器直接将已对外暴露的端口转移到已开放的udp端口上，从而在这个环境下“制造”一个EasyNAT，接下来的流程完全复用stun的过程。

我没有仔细研究目前的实现，但我做的假设是visitor或proxy只需要有一边是对方可达的，则另一边就可以直接连接到对端，而不需要服务器中转。因此，我在visitor和proxy上均做了相关配置代码。

如果有任何我理解不当的地方，请帮助指正。

如 @fatedier [提到的](https://github.com/fatedier/frp/pull/4110#issuecomment-2024861556),  创建本Issue来收集相关信息及获取宝贵意见。

感谢大家

### Affected area

- [ ] Docs
- [ ] Installation
- [x] Performance and Scalability
- [x] Security
- [ ] User Experience
- [ ] Test and Release
- [ ] Developer Infrastructure
- [ ] Client Plugin
- [ ] Server Plugin
- [ ] Extensions
- [ ] Others
Repository: kubernetes
Issue: client-go: Watcher emits StatusInternalServerError when API server closes a watch gracefully with 200
Labels: sig/api-machinery,triage/accepted

For context, we observed this issue in Kueue where we create a watcher, and every `30min` (based on `min-request-timeout` param) an error was logged because the API server would close the watch. The error message logged by Kueue would be like:
```
{"level":"Level(-3)","ts":"2024-03-13T15:12:27.160910077Z","caller":"multikueue/multikueuecluster.go:204","msg":"Watch error","clusterName":"multikueue-test-worker1","watchKind":"jobset.x-k8s.io/v1alpha2, Kind=JobSet","status":"Failure","message":"an error on the server (\"unable to decode an event from the watch stream: context canceled\") has prevented the request from succeeding","reason":"InternalError"}
```

The API server closes the watch with 200 response, here is an example log line:
```
1 httplog.go:132] "HTTP" verb="WATCH" URI="/apis/jobset.x-k8s.io/v1alpha2/jobsets?labelSelector=kueue.x-k8s.io%2Fmultikueue-origin%3Dmultikueue&watch=true" latency="34.525929114s" userAgent="manager/v0.0.0 (linux/amd64) kubernetes/$Format" audit-ID="55d611cc-e3b5-4643-b5b1-92182703a262" srcIP="192.168.8.1:36440" apf_pl="workload-low" apf_fs="service-accounts" apf_iseats=1 apf_fseats=0 apf_additionalLatency="0s" apf_init_latency="320.89µs" apf_execution_time="323.26µs" resp=200
```
However, then this is presented by the watcher as an instance of `StatusInternalServerError`, which is wrong, because there was no "Server error". 

I think I traced it down (static code analysis):

1. the client creates a new watcher with InternalError (500) as the default: [link](https://github.com/kubernetes/kubernetes/blob/03ce04584437624840ad78edac1b772e47e78dc2/staging/src/k8s.io/client-go/rest/request.go#L789-L791)
2. the watcher wraps the closed connection with the error that we see in the logs: [link](https://github.com/kubernetes/kubernetes/blob/03ce04584437624840ad78edac1b772e47e78dc2/staging/src/k8s.io/apimachinery/pkg/watch/streamwatcher.go#L120)
3. this is further wrapped by the `AsObject` function which delegates to `NewGenericServerResponse`: [link](https://github.com/kubernetes/kubernetes/blob/03ce04584437624840ad78edac1b772e47e78dc2/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go#L843-L857)
4. The `NewGenericServerResponse` does the final wrapping (because 500 is the defualt): [link](https://github.com/kubernetes/kubernetes/blob/03ce04584437624840ad78edac1b772e47e78dc2/staging/src/k8s.io/apimachinery/pkg/api/errors/errors.go#L487-L490)

Here is the analogous summary in the Kueue project: https://github.com/kubernetes-sigs/kueue/pull/1823#issuecomment-2022454868.

This seems to be covered by the `RetryWatcher` which retries the  `StatusInternalServerError` without leaving a log: [link](https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/client-go/tools/watch/retrywatcher.go#L211-L214). So using, `RetryWatcher` might mitigate it, but still emitting the `StatusInternalServerError` events for gracefully closed connections is misleading and problematic for consumers of the vanilla watchers.
Repository: PowerToys
Issue: 2 ways to make Quick Accent not trigger when it shouldn't.
Labels: Needs-Triage,Product-Quick Accent

### Description of the new feature / enhancement

I have 2 ideas of settings that should be added.
1. Maximum button hold duration before not allowing quick accent for that key.
2. Quick Accent disable on key press while holding space or an arrow key until the key is released.

### Scenario when this would be used?

If you're playing a game on a web browser, and it used WASD and Space controls, or letter keys and arrow keys controls, you wouldn't want to accidentally open the quick accent menu (as all inputs go to it instead of the intended application), so with max hold duration if you hold W for like a full second and then press space to jump, you would still jump instead of opening quick accent. For disable on key press, if you use ZXC and Arrow keys for an rpg, and you hold X to run and arrow keys to move, if you hold an arrow key and then hold X, if you switch direction, you would move in that direction instead of opening Quick Accent.

### Supporting information

I thought of this idea while testing an RPG on Scratch, and I was running around and accidentally triggered Quick Accent.
Repository: pytorch
Issue: Symbolic shapes _check_is_size, guard_size_oblivious TorchScript-ing compat
Labels: triaged,oncall: pt2,module: dynamic shapes

### 🚀 The feature, motivation and pitch

Some libraries are used in multiple tracing/scripting/compilation environment.
Symbolic shapes compiler hints API 
torch._check_is_size, guard_size_oblivious are not torch scriptable.

That results in redundant branches `if not torch_is_scripting` etc. to add symbolic shapes logic.

Solution:
Ignore them in TorchScript.

### Alternatives

_No response_

### Additional context

_No response_

cc @ezyang @msaroufim @bdhirsh @anijain2305 @zou3519 @chauhang
Repository: stable-diffusion-webui
Issue: [Bug]: CLIP shortcut keys do not work, but they work fine in version 1.6
Labels: bug-report

### Checklist

- [X] The issue exists after disabling all extensions
- [X] The issue exists on a clean installation of webui
- [X] The issue is caused by an extension, but I believe it is caused by a bug in the webui
- [X] The issue exists in the current version of the webui
- [ ] The issue has not been reported before recently
- [ ] The issue has been reported before but has not been fixed yet

### What happened?

In the versions 1.7 and 1.8, clip shortcut keys cannot work normally and are given wrong, but they can be used normally in separate clips. Is there anyone like me

### Steps to reproduce the problem

1. Upload the image to img2img
2. Click the CLIP push-back shortcut
3. An error is displayed
![批注 2024-03-28 205543](https://github.com/AUTOMATIC1111/stable-diffusion-webui/assets/114919604/43839c6e-33bb-4e25-a7ee-4bd3363d5742)


### What should have happened?

Display inference keyword

### What browsers do you use to access the UI ?

Microsoft Edge

### Sysinfo

[Diagnostics-1711630349.log](https://github.com/AUTOMATIC1111/stable-diffusion-webui/files/14789753/Diagnostics-1711630349.log)


### Console logs

```Shell
https://pastebin.com/KcHsgCQp
```


### Additional information

_No response_
Repository: flutter
Issue: Add state restoration to `SearchAnchor`
Labels: framework,f: material design,c: proposal,P2,a: state restoration,team-design,triaged-design

### Use case

Similar to https://github.com/flutter/flutter/issues/145886, I'm adding state restoration support to my app but `SearchAnchor` does not support it; leaving the app while the "Don't keep activities" Android developer option is enabled loses the search query, and also the whole search anchor is closed when the app is reopened.

### Proposal

Add state restoration to the `SearchAnchor` widget.

Also, do we want to store search suggestions in the restoration bucket as well?
Repository: godot
Issue: High level multiplayer documentation doesn't explicitly explain RPC only works on methods of a Node derived class
Labels: discussion,documentation,topic:multiplayer

### Tested versions

Currently using v4.2.stable.official [46dc27791]

### System information

Godot v4.2.stable - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1080 Ti (NVIDIA; 31.0.15.5186) - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

### Issue description

GDScript allows you to place an RPC annotation on any method of any class you create, whether or not it is derived from Node.  You can get as far as running the project and hitting the line for the defined RPC call.  When the call is attempted, a run-time error informs you that RPC calls can only be made on methods of Node-based classes.  This makes sense, but the documentation and script parsing isn't as explicit.  The documentation mentions Nodes often in the high-level multiplayer tutorial, but there is no explicit warning that attempting to call RPC on a non-Node method is not supported.  Likewise, you could code an entire interface around Resource-based RPC calls only to find out it isn't supported later during testing.

### Steps to reproduce

Create any non-Node class and define a method as ```@rpc```.  Use a Node to establish a high-level multiplayer connection, then attempt to ```rpc()``` that method.  You will get a run-time error, despite the documentation never explicitly stating that would happen and the script parser allowing it.

### Minimal reproduction project (MRP)

[bad_rpc.zip](https://github.com/godotengine/godot/files/14790171/bad_rpc.zip)
You'll have to run test.tscn and test2.tcsn on separate Godot instances.  The only indication that you can't call the rpc is a run-time error.
Repository: ollama
Issue: Multiline Input Buffer to small
Labels: bug,cli

### What is the issue?

When testing out model capabilities I copy pasted the whole rendered version of the [ollama readme](https://github.com/ollama/ollama/blob/756c2575535641f1b96d94b4214941b90f4c30c7/README.md) into the terminal to be consumed the llm.

While ollama crashed due to insufficient VRAM, this is not the issue in this issue. It took everything up to:

> .. Remove a model
... ollama rm llama2
... Copy a model
... ollama cp llama2 my-llama2
... Multiline input
... For multiline input, you can wrap text with """:
... 
... >>> """Hello,
... ... world!
... ... """
Error: Post "http://0.0.0.0:11434/api/chat": EOF
 ~ $ d '{
quote>   "model": "mistral",
quote>   "messages": [
quote>     { "role": "user", "content": "why is the sky blue?" }
quote>   ]
quote> }'
zsh: command not found: d


After that the remaining input overflowed into the standard input:
![image](https://github.com/ollama/ollama/assets/22645621/fdcc7c70-5054-4684-8329-1726ee0ed7a9)


### What did you expect to see?

Ollama taking the whole input

### Steps to reproduce

Copy the rendred version of the readme linked above, paste it and see it overflowing

### Are there any recent changes that introduced the issue?

_No response_

### OS

Linux

### Architecture

x86

### Platform

_No response_

### Ollama version

0.1.29

### GPU

Nvidia

### GPU info

_No response_

### CPU

Intel

### Other software

_No response_
Repository: TypeScript
Issue: No duplicate identifier error issued if `const` declared with function type with expandos
Labels: Bug,Help Wanted

### 🔎 Search Terms

To be updated

### 🕗 Version & Regression Information

See playground link

### ⏯ Playground Link

https://www.typescriptlang.org/play?ts=5.4.3#code/JYOwLgpgTgZghgYwgAgCIQM4KsARnXAGxQG8BYAKGWQAoMAuZDMHEAcwEpHcB7H4uCADclagBNMCRs1ZsRFAL6VKAehXJiYZDEbosOfERQBeWgyYtQnZMYB8yFgFcI8hDxDNtuyQYLEbZtKW7Bw29k4uyhRuHvwQAHSEPGw0MPESWBzylGkZCAG5ktQA1MgA5PGVALY8UBBl2dHuGHGJyanpkllRMZ4wAQBMjZraAQDMjQBucFCjpmVjAxCLDZRAA

### 💻 Code


```ts
interface Describable {
  (s: string): boolean;
  desc: string;
}

// let f: Describable = (s: string) => true;
const f: Describable = (s: string) => true;

console.log(f.desc);

f.desc = f.desc  + '...more';

console.log(f.desc);

const f = 2;

let f = 3;

var f = '32e32';

```



<details><summary><b>Output</b></summary>

```ts
"use strict";
// let f: Describable = (s: string) => true;
const f = (s) => true;
console.log(f.desc);
f.desc = f.desc + '...more';
console.log(f.desc);
const f = 2;
let f = 3;
var f = '32e32';

```


</details>


<details><summary><b>Compiler Options</b></summary>

```json
{
  "compilerOptions": {
    "strict": true,
    "noImplicitAny": true,
    "strictNullChecks": true,
    "strictFunctionTypes": true,
    "strictPropertyInitialization": true,
    "strictBindCallApply": true,
    "noImplicitThis": true,
    "noImplicitReturns": true,
    "alwaysStrict": true,
    "esModuleInterop": true,
    "declaration": true,
    "target": "ES2017",
    "jsx": "react",
    "module": "ESNext",
    "moduleResolution": "node"
  }
}
```


</details>

**Playground Link:** [Provided](https://www.typescriptlang.org/play?ts=5.4.3#code/JYOwLgpgTgZghgYwgAgCIQM4KsARnXAGxQG8BYAKGWQAoMAuZDMHEAcwEpHcB7H4uCADclagBNMCRs1ZsRFAL6VKAehXJiYZDEbosOfERQBeWgyYtQnZMYB8yFgFcI8hDxDNtuyQYLEbZtKW7Bw29k4uyhRuHvwQAHSEPGw0MPESWBzylGkZCAG5ktQA1MgA5PGVALY8UBBl2dHuGHGJyanpkllRMZ4wAQBMjZraAQDMjQBucFCjpmVjAxCLDZRAA)
      

### 🙁 Actual behavior

No errors

### 🙂 Expected behavior

Errors

### Additional information about the issue

Also try with `let` by commenting line 7 and uncommenting line 6
Repository: PowerToys
Issue: File Explorer preview pane switching does not work
Labels: Issue-Bug,Product-File Explorer,Needs-Triage

### Microsoft PowerToys version

0.79.0

### Installation method

GitHub

### Running as admin

Yes

### Area(s) with issue?

File Explorer: Preview Pane

### Steps to reproduce

I installed powertoy 0.79.0, in "File Explorer add-ons", it enabled preview pane for types of files by default. Including txt, python and pdf.

![image](https://github.com/microsoft/PowerToys/assets/5027003/c22610fa-0f77-4427-803b-f11c2d96a33f)

It failed to render the text in preview pane.
![image](https://github.com/microsoft/PowerToys/assets/5027003/5f963369-20a9-4939-a98e-eea5f2607f43)

It failed to render the pdf in preview pane.
![image](https://github.com/microsoft/PowerToys/assets/5027003/d048e240-a419-4f2f-a227-b8439a2e1cae)

It failed to render the python in preview pane.
![image](https://github.com/microsoft/PowerToys/assets/5027003/f1aaa56b-047d-4c71-a604-666011c2d3f4)

### When I disable preview pane for "Source code files" and "pdf", the preview pane works
![image](https://github.com/microsoft/PowerToys/assets/5027003/430b1c21-6760-4540-8899-54694d431b7e)
txt preview
![image](https://github.com/microsoft/PowerToys/assets/5027003/986a5bbd-8192-436e-abf5-3a9950464a48)
python preview
![image](https://github.com/microsoft/PowerToys/assets/5027003/95f060d4-29ae-47de-91c3-e4815abf3061)
pdf preview
![image](https://github.com/microsoft/PowerToys/assets/5027003/0c4e2cfd-a221-4ee0-bc45-303daea1fef4)





### ✔️ Expected Behavior

PowerToy "File Explorer add-ons" enables a preview pane for types of files by default. The preview pane should work.

### ❌ Actual Behavior

Preview pane in PowerToy's "File Explorer add-ons" won't work until preview switches are turned off.ew switches.

### Other Software

_No response_
Repository: vscode
Issue: Notebook diff not compatible with readonly files from TextDocumentContentProvider - only checks IFileService for a IFileSystemProvider
Labels: bug,api,notebook-diff

<!-- ⚠️⚠️ 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: vscode.dev 
- OS Version: macOS Sonoma 14.4.1 (23E224)

## Steps to Reproduce:

1. Have an extension that registers a `TextDocumentContentProvider` with a different "scheme", like "my-scheme://".
2. Try to open a notebook diff where the left side is served via "my-scheme://". 

## Expected:
The notebook diff can be opened with a left hand side provided via a TextDocumentContentProvider.

## Actual:
It fails in this line, because it requires the fileService to have aIFileSystemProvider for it:
https://github.com/microsoft/vscode/blob/a1d4ad18475f82b729e92f52d22eef140cfef5d4/src/vs/workbench/contrib/notebook/browser/services/notebookServiceImpl.ts#L176

## Preliminary investigation and assumptions:

My (possibly incorrect) understanding of the provided abstractions and concepts is:
* TextDocumentContentProvider is for readonly documents (such as some historic version in a VCS): https://github.com/microsoft/vscode/blob/a1d4ad18475f82b729e92f52d22eef140cfef5d4/src/vscode-dts/vscode.d.ts#L1798-L1806
* FileSystemProvider is for file systems that allow reading and writing: https://github.com/microsoft/vscode/blob/a1d4ad18475f82b729e92f52d22eef140cfef5d4/src/vscode-dts/vscode.d.ts#L8856-L8867
* The left hand side of a diff cannot be edited - this should be true both for regular and notebook diffs.

The `TextDocumentContentProvider`s seem to be registered with the `ITextModelService` -  I think Notebook diff should possibly check that instead of the FileService to see if the "my-scheme://" is supported? This check seems to have been added here: https://github.com/microsoft/vscode/issues/122627#issuecomment-829040413
https://github.com/microsoft/vscode/pull/122658

Maybe @jrieken can advise on how to get the notebook diff viewer to work with readonly files from `TextDocumentContentProvider` schemes?