sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: ant-design
Issue: Unable to type onSelect prop for Select correctly
Labels: help wanted,Inactive

- [x] I have searched the [issues](https://github.com/ant-design/ant-design/issues) of this repository and believe that this is not a duplicate.

### Reproduction link
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/bold-lamarr-zze2rw?file=/src/App.tsx)

### Steps to reproduce
Add an onSelect prop to a `<Select />` when using typescript. 

### What is expected?
That I am able to get proper types for the onSelect callback parameters.

### What is actually happening?
both arguments get implicitly typed as any, even when trying to use the generics syntax `<Select<ValueType, OptionType>></Select>`, this syntax does however seem to apply to the filterOption callback which does get its params typed based on ValueType and OptionType. 

| Environment | Info |
|---|---|
| antd | 4.18.8 |
| React | react 17.0.2 |
| System | windows 10 |
| Browser | n/a |


<!-- generated by ant-design-issue-helper. DO NOT REMOVE -->
Repository: pytorch
Issue: Pytorch Typing, for Tensor type annotations
Labels: module: typing,triaged

### 🚀 The feature, motivation and pitch


Doing something like https://numpy.org/devdocs/reference/typing.html#numpy.typing.NDArray would be cool, to allow people to see read the dtype of tensors in the signature, and possibly something like [Beartype](https://github.com/beartype/beartype) to do runtime type checking to make sure that the tensors are of the correct dtype, would be great. Number of dimensions could also be informative and would be runtime testable.

Allowing to name the dimensions (eg "batch_size" x "sequence_length" x "hidden_state_size") would also be great. 
Some inspiration is https://github.com/patrick-kidger/torchtyping
In-depth discussion https://github.com/beartype/beartype/discussions/96


### Alternatives

_No response_

### Additional context


https://numpy.org/devdocs/reference/typing.html#numpy.typing.NDArray
https://github.com/beartype/beartype/discussions/96
https://github.com/patrick-kidger/torchtyping


cc @ezyang @malfet @rgommers @xuzhao9 @gramster
Repository: go
Issue: cmd/trace: support splitting in goroutine view
Labels: NeedsInvestigation,FeatureRequest,compiler/runtime

For the main trace view, we support splitting the trace into smaller time chunks. e.g., `/trace?start=966781&end=1937169`. This is used to split the trace into small chunks that will (hopefully) prevent the viewer from choking on too much data.

```
View trace (0s-325.884822ms)
View trace (325.884822ms-686.872205ms)
View trace (686.866981ms-1.054600408s)
View trace (1.054600408s-1.386457684s)
View trace (1.386457684s-1.730625581s)
...
```

The goroutines view (`/trace?goid=1`) does not provide links to a split view. In theory, this can be done manually by adding `start` and `end` parameters to the URL. In my experience, this works fine if `start=0` (it will provide a trace truncated at the `end` time). However, any start time other than 0 results in an empty trace.

cc @mknyszek
Repository: material-ui
Issue: [Tooltip] Tooltip (as slider `ValueLabel`) won't show up until I click the slider thumb
Labels: docs,support: question,component: slider,component: tooltip

### Duplicates

- [X] I have searched the existing issues

### Latest version

- [X] I have tested the latest version

### Current behavior 😯

When overriding ValueLabel in Slider props with a custom tooltip like this
```jsx
function ValueLabelComponent(props) {
  const { children, value } = props;

  return (
    <Tooltip enterTouchDelay={0} placement="top" title={value}>
      {children}
    </Tooltip>
  );
}
```
we observed following behavior

- if there is only one thumb in the slider, everything works as expected
- if there are more than one thumb, the tooltip won't show up as we hover on the thumb until we click on it. After clicking on the thumb, the tooltip will show up whenever we hover on the thumb as expected. Note: this behavior applies to each thumb separately, i.e. for each thumb on the slider, we need to click on it to make its tooltip functionally work.

### Expected behavior 🤔

We should not have to click on the thumb to make tooltip work

### Steps to reproduce 🕹

Steps:

1. Open the sandbox of this demo https://mui.com/components/slider/#customization
2. Verify that the 3rd slider's overridden tooltip works properly
3. Override the same ValueLabelComponent as ValueLabel in the 4th slider(airbnbSlider)'s `components` prop
4. should observe that the tooltip on the 4th slider won't show up until you click on the thumb


### Context 🔦

_No response_

### Your environment 🌎

<details>
  <summary>`npx @mui/envinfo`</summary>

```
"@mui/material": "^5.1.0"
Microsoft Edge browser
```
</details>
Repository: flutter
Issue: Mouse Middle click to paste doesn't perform any action.
Labels: a: text input,framework,a: mouse,has reproducible steps,P2,found in release: 2.10,found in release: 2.11,team-framework,triaged-framework

In a native text field, middle click can usually be used to paste.  See https://people.gnome.org/~shaunm/mobile-mallard/gnome-help/mouse-middleclick.html.  Also see [shift + insert](https://drewdevault.com/2021/06/27/You-cant-capture-the-nuance.html).

I haven't verified this yet because I don't think it exists on Mac and I don't think my Magic Mouse can middle click.

### To reproduce

 1. Run any app with a text input, such as the one given below.
 2. Copy something to your clipboard.
 3. Middle click somewhere in the field.

Expected: The copied text is pasted at the middle click location.
Actual: Nothing happens.

<details>

<summary>Code</summary>

```dart
import 'package:flutter/material.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({
    Key? key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Flutter Demo'),
        ),
        body: const Center(
          child: TextField(),
        ),
      ),
    );
  }
}
```

</details>
Repository: PowerToys
Issue: Remapping stopped working when ALTGR+"  is mapped to ;  and pressed (macOS ; mapping)
Labels: Issue-Bug,Product-Keyboard Shortcut Manager,Needs-Triage,Needs-Team-Response

### Microsoft PowerToys version

0.55.2

### Running as admin

- [X] Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

I would like to write " ; "  with " ALTGR + ů "(czech keyboard) to simulate macOS czech layout.
However, when i add this mapping, it works (i have to put some delay between triggering of that remap). HOwever all other remaps will not work anymore, until i restart Entire Powertoys as admin, or Remove ";" remap from remaps.

### ✔️ Expected Behavior

All remaps should work

### ❌ Actual Behavior

All other remaps are not working anymore

### Other Software

_No response_
Repository: pytorch
Issue: elastic/rendezvous: _matches_machine_hostname doesn't resolve hostnames fully
Labels: triaged,module: elastic,oncall: r2p,topic: bug fixes

### 🐛 Describe the bug

Steps to reproduce the behavior:

1. Launch a 2 node job on Kubernetes+Volcano
1.  `LOGLEVEL=INFO python -m torch.distributed.run --rdzv_backend c10d --rdzv_id 1 --rdzv_endpoint "$VC_SH_0_HOSTS" --nnodes 2 echo hello`
1. rendezvous times out since the rank 0 host doesn't realize it's the master due to insufficient hostname resolution

```
root@sh-db2kkt73p534vd-sh-0-0:/app# echo $VC_SH_0_HOSTS
sh-db2kkt73p534vd-sh-0-0.sh-db2kkt73p534vd
root@sh-db2kkt73p534vd-sh-0-0:/app# hostname
sh-db2kkt73p534vd-sh-0-0
root@sh-db2kkt73p534vd-sh-0-0:/app# cat /etc/resolv.conf 
nameserver 10.100.0.10
search default.svc.cluster.local svc.cluster.local cluster.local us-west-2.compute.internal
options ndots:5
root@sh-db2kkt73p534vd-sh-0-0:/app# cat /etc/hosts    
# Kubernetes-managed hosts file.
127.0.0.1	localhost
::1	localhost ip6-localhost ip6-loopback
fe00::0	ip6-localnet
fe00::0	ip6-mcastprefix
fe00::1	ip6-allnodes
fe00::2	ip6-allrouters
192.168.15.246	sh-db2kkt73p534vd-sh-0-0.sh-db2kkt73p534vd.default.svc.cluster.local	sh-db2kkt73p534vd-sh-0-0
```

The hostname is `sh-db2kkt73p534vd-sh-0-0` but Volcano gives the addresss `sh-db2kkt73p534vd-sh-0-0.sh-db2kkt73p534vd`. Between hosts, resolve.conf and hostname there's all the information required to realize that these addresses are equivalent but the current logic isn't sufficient.

https://github.com/pytorch/pytorch/blob/1b745efbe8ee0ac3bae594ea88ff27e71a734c88/torch/distributed/elastic/rendezvous/utils.py#L110

We may want to do a full dns resolution on the address and check if it matches any of the local IP addresses.


### Versions


torch                    1.10.0
 - OS (e.g., Linux): Linux sh-db2kkt73p534vd-sh-0-0 4.14.241-184.433.amzn2.x86_64 #1 SMP Wed Aug 4 14:35:15 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
 - How you installed torchelastic (`conda`, `pip`, source, `docker`): docker
 - Docker image and tag (if using docker):  https://github.com/pytorch/torchx/pkgs/container/torchx/15644476?tag=0.1.2dev0
 - Build command you used (if compiling from source):
 - Git commit (if installed from source):
 - Python version: 3.7.11
 - CUDA/cuDNN version:
 - GPU models and configuration:
 - Execution environment (on-prem, aws, etc): EKS + Volcano
 - Any other relevant information:
Repository: vscode
Issue: Investigate enabling new model as the default/only model for language detection
Labels: feature-request,languages-guessing

Testing #143576

Right now, @JacksonKearl's model is the backup to the Guesslang model used in language detection. We should enable some way to make it be the only model used (and potentially replace Guesslang).

Why?

This feature was initially intended to help new users who are pasting in code snippets - to set them up for success by guessing the language and setting it so that they can be taken down the happy path of installing the right extension. I think as long as we support the most popular languages (that @JacksonKearl's model already does I believe) that will have the biggest impact.

I'd argue that Jackson's model that supports less languages but is able to guess off smaller inputs **is more useful** than what we  already have which supports more languages but requires more text to guess correctly.
Repository: flutter
Issue: Refactor FloatingActionButton
Labels: team,framework,f: material design,P2,c: tech-debt,team-design,triaged-design

FloatingActionButton uses RawMaterialButton which is scheduled to be deprecated and removed (eventually). 
We need to refactor them to use the new button universe, either TextButton, OutlinedButton or ElevatedButton.

cc @TahaTesser and @HansMuller
Repository: pytorch
Issue: Make it easier to figure out if packages need to be interned/mocked/externed
Labels: module: build,triaged

### 🚀 The feature, motivation and pitch

Users currently have the problem that it is extremely difficult to figure out what the dependency tree looks like. We need to find a solution of figuring out what the dependency tree is for them and intern/extern the necessary dependencies.

### Alternatives

_No response_

### Additional context

_No response_

cc @malfet @seemethere
Repository: rust
Issue: rustdoc: `pub use` re-exports of private re-exports of public items show the private path
Labels: T-rustdoc,C-bug,A-local-reexports

I tried this code:

```rust
/// bar docs
pub mod bar {
    /// the docs for Bar
    pub trait Bar {}
}

mod qux {
    pub use crate::bar::Bar;
}

pub use qux::Bar;
```

I expected to see this happen: The `Bar` item should be documented as a re-export of `bar::Bar`

Instead, this happened: It shows up as a re-export of `qux::Bar` (though the link takes me to `bar::Bar`):

> # Re-exports
>
> pub use qux::[Bar]();
>
> # Modules
>
> [bar]()&nbsp;&nbsp;&nbsp;&nbsp;bar docs

This is very odd, it shouldn't be exposing a private module path like that, it should instead show it as <code>pub use bar::[Bar]()</code>.

### Meta

`rustdoc --version --verbose`:
```
rustdoc 1.58.1 (db9d1b20b 2022-01-20)
binary: rustdoc
commit-hash: db9d1b20bba1968c1ec1fc49616d4742c1725b4b
commit-date: 2022-01-20
host: x86_64-apple-darwin
release: 1.58.1
LLVM version: 13.0.0
```
Repository: vscode
Issue: Delay starting the web worker extension host until activating first extension
Labels: feature-request,extension-host,web
Repository: flutter
Issue: [go_router] Navigation rail in books example is not persistent
Labels: c: new feature,d: examples,package,P3,p: go_router,team-go_router,triaged-go_router

Copied from the original issue: https://github.com/csells/go_router/issues/389

In the books example, you have a navigation rail down the left side of the page. I am trying to replicate this functionality with permanent sidebar navigation and was using this example as a reference. I have realised in testing however that this rail is not persistent and is built again on every page load (not the expected behaviour). As a result, if you pay close attention to the InkWell effect on the navigation buttons, when you click them they start the animation however cancel early when the page is loaded and the new version of the navigation rail loads.
Repository: godot
Issue: CanvasLayer moves Area2D collision only visually, but not actually
Labels: bug,topic:core,confirmed,topic:2d

### Godot version

3.4.2 stable, 3.4.3 stable, 4.0 alpha3

### System information

Win 64 Nvidea 765M

### Issue description


The whole purpose of the CanvasLayer node is often to just move it's children along with the Camera obove gameplay.
This works, however if there is a Area2D child of the CanvasLayer node, the collision detection area does not move, even though it is visually represented as moving along as it should:

https://user-images.githubusercontent.com/47016402/155624974-3262abb9-0fdf-45cc-9c06-bd8c560e0c75.mp4

This is very problematic for my card game project where I have a large table spanning over multiple screens and therefore need a camera which moves, but also need cards on that table to interact with Area2Ds "sticking" to the camera, like it already visually does, not as it does here in the bug where it actually sticks to the world position.


### Steps to reproduce

1.) Add a Camera2D which moves when press SPACE
2.) Add a Area2D which moves with the mouse
3.) Add a CanvasLayer 
4.) Add a Area2D as child to the CanvasLayer to interact with the mouse-Area2D.
5.) Move the Camera2D to observe the stuck collision detection

possibly related to:
https://github.com/godotengine/godot/issues/35965
https://github.com/godotengine/godot/issues/35052

### Minimal reproduction project

Godot 3.4.2 stable and 3.4.3 stable minimal project:
[CanvasLayer_Area2D_bug.zip](https://github.com/godotengine/godot/files/8137274/CanvasLayer_Area2D_bug.zip)

Godot 4.0 alpha3 minimal project:
[CanvasLayer_Area2D_bug_G4_a3.zip](https://github.com/godotengine/godot/files/8137404/CanvasLayer_Area2D_bug_G4_a3.zip)


![image](https://user-images.githubusercontent.com/47016402/155624755-610b45f7-a59e-4cd4-ba9c-cac858d94d51.png)

``` swift
extends Control

var cam_x_position = 0

func _physics_process(delta):
	$mouseArea2D.global_position = get_global_mouse_position()
	if Input.is_action_just_pressed("ui_accept"):
		cam_x_position += 50
	$Camera2D.global_position.x = lerp($Camera2D.global_position.x, cam_x_position, 0.1)


func _on_canvaslayerArea2D_area_entered(area):
	$CanvasLayer/stateLabel.text = str(area.name," << entered")
	
func _on_canvaslayerArea2D_area_exited(area):
	$CanvasLayer/stateLabel.text = str(area.name," >> exited")
```
Repository: flutter
Issue: [go_router] Platform-adaptive support
Labels: c: new feature,package,P3,p: go_router,team-go_router,triaged-go_router

copied from https://github.com/csells/go_router/issues/384

Could you please share an example of how to best deal with the situation where we might have different navigation structures depending on the screen real estate? For example, on smartphones, I would like /users/john to stack 2 screens, one for the list of users and another one for the user details for john. But on a tablet or on the web, I would like to stack just one split screen, with the left part listing users, and the right part showing the user details (nested navigation). It seems to me like it's a very common use case, but I don't see how to do it after reading the doc.
Repository: flutter
Issue: [go_router] Broken navigation behaviour on shared scaffold example
Labels: package,has reproducible steps,P2,found in release: 2.10,p: go_router,found in release: 2.13,team-go_router,triaged-go_router

copied from https://github.com/csells/go_router/issues/383

On your shared scaffold example, if you swap out this line in the '_SharedScaffoldState' :
```
        navigationTypeResolver: (context) =>
            _drawerSize ? NavigationType.drawer : NavigationType.bottom,
```
with this line:
```
        navigationTypeResolver: (context) => _drawerSize
            ? NavigationType.permanentDrawer
            : NavigationType.bottom,
```
(NavigationType.rail also causes this)
This seems to break the navigation functionality. I understand that this is an external package however I'm not sure that is what is causing the problem, and considering you use this package in your example, I would expect it to be fully functional.

The issue is that clicking on any of the menu items on the permanentDrawer cause the entire navigator to scroll to the right and display a blank white screen (despite the URL being correct). Strangely, clicking the navigation buttons within the pages themselves still works as expected if you ignore the navigator overlapping the sidebar on transition which is a flutter issue. This leads me to believe this is something to do with context as the only difference I can think of between the two is that you are outside the navigator when using the permanentDrawer.
Repository: flutter
Issue: [go_router] Add initialNamedLocation
Labels: c: new feature,package,P3,p: go_router,team-go_router,triaged-go_router

copied from https://github.com/csells/go_router/issues/375

I'd like to be able to give my entry point a symbolic name (once I discovered those). Why isn't there an initialNamedLocation or whatever you want to call it?
Repository: flutter
Issue: [go_router] Support deferred libraries
Labels: c: new feature,package,P3,p: go_router,team-go_router,triaged-go_router

copied from https://github.com/csells/go_router/issues/374

Hi, I'm in middle of developing Web page in Flutter. The deeper I go the main file called main.dart.js is getting bigger. So then I've started searching how to reduce the file size.

I came across to that [article](https://medium.com/@SchabanBo/reduce-your-flutter-web-app-loading-time-8018d8f442) and found out about deferred libraries. That sample project from article is based on [qlevar_router](https://pub.dev/packages/qlevar_router) which has such handy method as Middleware which helps in implementing separate file for each page.

Since my project is based on your awesome package GoRouter, I was thinking about if are you planning to implement this or haven't thought about it yet?
Please let me know if its interesting enhancement for your package.
Repository: flutter
Issue: [go_router] Use concrete types for exceptions and errors
Labels: c: new feature,package,P3,p: go_router,team-go_router,triaged-go_router

copied from https://github.com/csells/go_router/issues/355

Description
When an error occurs when navigation eg the route does not exist or eg, queryParameter or params is invalid, or also problems about the assertion can be distinguished when in errorBuilder.

So when the error handle in errorBuilder I can render a specific page according to the error type.

Currently
[](https://user-images.githubusercontent.com/44025097/152789997-fd44c0dc-082e-4bd8-bd2b-a4f2ab2adfbc.png)

For the current version I only get exception info when there is an error when navigating, and I don't know what type of exception it is and what the error is

Expected
The following might help an example of implementing an error handle:
```dart
enum GoRouterErrorType { notFound, paramInvalid, queryParamInvalid, ... }
```
```dart
 errorBuilder: (context, state) {
      // `state.error` the type is `GoRouterErrorType`
      // `state.exception` the type is `GoRouterException` (custom exception) 
 },
```
Repository: flutter
Issue: [go_router] Add onInit and onDispose callbacks to routes
Labels: c: new feature,package,P3,p: go_router,team-go_router,triaged-go_router

copied from https://github.com/csells/go_router/issues/297

I'd like to wrap a branch of widget tree into provider.
But if I'll try to resolve a provided class from the nested route, it will tell there's no such a class:
```dart
final _router = GoRouter(
  routes: [
    GoRoute(
      path: '/',
      builder: (context, state) => Provider(create: (context) => ProfileController(), child: HomeScreen()),
      routes: [
        GoRoute(
          path: '/reg',
          builder: (context, state) => RegistrationScreen(profile: context.read<ProfileController>()),  // throws an error
        ),
      ],
    ),
  ],
);
```
The reason is these routes actually are spawned as neighbours, not in the parent-child relations in the widget tree.
```
|
|- Provider<ProfileController>
|-- HomeScreen
|- RegistationScreen // cannot get ProfileController from here
```
The only routing package where it is solved is GetX. It used its own Binding system, allowing to bind controller to the routes, and get them in the nested routes, and automatically dispose it when route is closed (refer to: https://github.com/jonataslaw/getx/blob/master/documentation/en_US/dependency_management.md#bindings)
Repository: flutter
Issue: [go_router] Fix nested nav samples to work w/ swiping as well as tapping
Labels: package,P2,p: go_router,team-go_router,triaged-go_router

https://github.com/csells/go_router/discussions/271#discussioncomment-1873324