sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: terminal
Issue: A windowing mode that allows the Terminal to grow in size as text is output
Labels: Issue-Feature,Area-TerminalControl,Product-Terminal,Area-Windowing

_The latest from the "I just had a four hour roadtrip so I was brainstorming idly" foundry of showerthougts_

What if there was a way to indicate that we wanted the control to start at 1 line tall, and resize as text was output, till it reached `initialRows` (at which point it would start scrolling). This I think was offhand mentioned by a PM as like, a powertoys run-like UI, and I finally wrapped my head around the idea. 

We'd either need to:
* inform the `Terminal` that it's actual viewport size is `initialRows`x`initialCols`, and that it's in this virtual size mode, and it should grow in size to the `initialSize`. `SCREEN_INFO` already does something weird with `virtualBottom`, this might end up being similar. The `Terminal` layer would just keep reporting new buffer sizes until it hit the originally requested size.
* Allow the `TermControl` to fake this out on it's own as it's scrolling? So like, when the `Terminal` says that the scroll position changed, `TermControl` says "mhm sure" and actually just increases it's own height. This implementation was less brainstormed so might not work as well.
* The App layer needs to be able to listen to the size of the TermControl and resize the window to allow it to fit

I'm imagining you combine this with center on launch and with Focus Mode, and a global hotkey, now you've got a PowerToys Run-like box that appears in the center of the monitor, you run some command, and then you {do something to dismiss it. `closeOnFocusLost`?}


Refer also to: 
* #5094
  * Much more discussion here of "what do we do if a cmdline app wants a resize?". This is similar in the regards that "<someone> has asked the `TermControl` to be a different size, how should the `App` & `Window` respond to that"?
* #10660
  * But more aggressive. Close on focus lost. 
* #9992
  * For the sense of a `globalSummon` action to run `wt -w _run` that's got `{focus mode, launch centered, default profile, <this setting>}` all enabled.
Repository: storybook
Issue: [Feature Suggestion] Multiple wrapper divs instantiated for stories
Labels: feature request,needs triage

## Describe the problem

When creating a new Storybook Template & Story, two wrapper divs are created, making it more confusing to target the actual story using CSS. The output might look something like this:

```html
<div id="story--components-[[title]]--[[story]]">
  <div>
    <!-- story contents here -->
  </div>
</div>
```

With this current structure, the only way to target the contents container itself in Svelte is using a complicated selector like this:

```css
:global([id^="story--components-[[title]]--"] > div) selector {
  /* styles here */
}
```

## Proposed solution # 1

Removing the redundant empty div would be a breaking change, so instead, I propose to include a `[[title]]-[[story]]` ID and the classes `[[title]]-story` and `story` on the empty div below the `#story--components-[[title]]--[[story]]` element that allows developers to quickly target the story itself, like this:

```svelte
<script>
  import { Meta, Story, Template } from '@storybook/addon-svelte-csf';
  import MyComponent from './MyComponent.svelte';
</script>

<Meta title="Components/MyComponent" component={MyComponent} />

<Template let:args>
  <!-- story contents here -->
</Template>

<Story name="Standard" args={{}} />
<Story name="Variant" args={{ prop: true }} />

<style>
  :global(.story) selector {
    /* styles here */
  }
</style>
```

## Proposed solution # 2

Another possible solution without adding the additional ID and classes to this package directly would be to expose a config method for the developer to set any structure for an ID and/or classes on that empty div to use in their own implementation. While likely a bit more involved to set up for the end-developer, this would arguably be the most flexible solution and would not change the implementation of any already setup Storybook instances unless the developer adds the config option.

## Alternatives considered

The only feasible alternative I see is adding a unique class within the actual component itself that I am using in Storybook and referencing that. It's not a difficult workaround, but it forces the developer to shape how they develop their actual components around those components' Storybook implementation, which is awfully disruptive.

## Screenshot

![screenshot of the current output of a Storybook template, highlighting the empty div element](https://user-images.githubusercontent.com/5913254/163420394-2d229c35-8deb-4f6e-a2b4-c05c7fce2a4f.png)
Repository: godot
Issue: Changing language in the project manager doesn't work on Android
Labels: bug,platform:android,topic:editor,topic:porting,confirmed

### Godot version

4.0.alpha6, 3.5.beta4

### System information

OnePlus 6, Android 11 and Samsung Galaxy Fold2, Android 12

### Issue description

This was first reported in https://github.com/godotengine/godot/issues/60344, but I can confirm it on two separate devices on both 3.5beta4 and 4.0alpha6.

This is likely caused by `OS.set_restart_on_exit()` not being implemented on Android, along with configuration file saving routines not being called in time before Android ends the activity.

As a workaround, we could hide the language selection dropdown in the project manager, but it'd be better to implement the required functionality to make it work. Or, even better, we can implement switching languages without having to restart the project manager or editor.

In the meantime, switching the language after creating a project in the Editor Settings should work, as long as you manually exit the editor instead of using the **Save and Restart** button (which has the same problem).

### Steps to reproduce

- Download Android editor from the [3.5beta4 release announcement](https://godotengine.org/article/dev-snapshot-godot-3-5-beta-4).
- Open project manager on an Android device.
- Use the dropdown in the top-right corner to select another language.
- Tap **Save and Restart** in the confirmation dialog.

### Minimal reproduction project

N/A
Repository: terminal
Issue: Remove the `Feature_IsolatedMonarchMode` fix
Labels: Issue-Bug,Product-Terminal,Area-CodeHealth,Area-Remoting

See:
* MSFT:38540483
* #12774
* #12825
* #12856

in #12825 we tried out two fixes blindly to fix this crash. Turns out, neither was the real root cause. #12856 did fix it though. 

We should probably remove the "big hammer" fix of falling back to the isolated monarch, and just do the "little hammer" one. Or heck maybe even neither, since there seems to be no difference here.
Repository: go
Issue: net: TestConnClose failure with "connect: connection refused" on netbsd-arm-bsiegert
Labels: OS-NetBSD,NeedsInvestigation,arch-arm

```
--- FAIL: TestConnClose (0.00s)
    --- FAIL: TestConnClose/unix (0.37s)
        net_test.go:194: dial unix /var/gobuilder/buildlet/tmp/2224876548/sock: connect: connection refused
FAIL
FAIL	net	26.230s
```

`greplogs --dashboard -md -l -e 'FAIL: TestConnClose .*(?:\n    .*)* connect: connection refused'`

[2022-04-15T01:08:38-5a4f0b6/netbsd-arm-bsiegert](https://build.golang.org/log/b50a11fae9e4f0b1ddc5bdbe67f485fd4b3f93fb)
Repository: flutter
Issue: Tests of assertion errors seem to behave differently on the web
Labels: tool,platform-web,P2,team-web,triaged-web

I am attempting to write a test that exercises an assertion that would get thrown during paint, see https://github.com/flutter/flutter/pull/101952/commits/f1b701de0c272a6536bf27bfcd700ffd81e5065b

I've found that this test works fine on mobile/desktop, but when run on the web the assertion errors seem to be uncaught/uncatchable:

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8816572064274580753/+/u/run_test.dart_for_web_tests_shard_and_subshard_3/test_stdout

I cannot reproduce this locally, as the test times out when compiling after many minutes. Filing as an issue so these tests can be skipped
Repository: vscode
Issue: Show breadcrumbs whilst debugging
Labels: feature-request,breadcrumbs

I have breadcrumbs enabled but they do not show during debugging.


You can see here that the file I'm debugging (which is a third party library) does not have breadcrumbs. Files I open directly do have breadcrumbs:

![Recording 2022-04-18 at 12 26 31](https://user-images.githubusercontent.com/125105/163744886-ea71bedc-8cb7-4027-9995-3fb00dd4a2d3.gif)
Repository: rust
Issue: arithmetic_overflow diagnostic triggers when shifting u8 but not &u8
Labels: C-enhancement,A-lints,T-compiler,A-const-eval,L-arithmetic_overflow

```rs
fn main() {
    let x = 1u8;
    println!("{}", (x << 8) as i32);
}
```
This triggers an arithmetic_overflow diagnostic. However, changing `1u8` to `&1u8` will make it not trigger the diagnostic, even though it is still known statically to be a guaranteed overflow.
Repository: pytorch
Issue: API to determine if a torch.return_type is a "structseq"
Labels: feature,triaged

## Motivation

A "structseq" is this weird Python-C API thing used to create namedtuple-like types from C++.

https://github.com/pytorch/pytorch/pull/75915 introduces some logic that ideally would grab all "structseq" classes from torch.return_types and register them as PyTree nodes. However, we didn't know how to actually check if something is a structseq or not (the [documentation](https://docs.python.org/3/c-api/tuple.html?highlight=structseq#struct-sequence-objects) doesn't provide any helper functions for that).

If possible we should write an API that can check if a type is a "structseq" and then use it in https://github.com/pytorch/pytorch/pull/75915
Repository: flutter
Issue: Flutter Driver: add support of SelectableText in _getText method in handler_factory.dart
Labels: c: new feature,framework,t: flutter driver,c: proposal,P3,team-framework,triaged-framework


## Use case

I'm developing flutter tests using `flutter_driver` and I need to have possibility to get text from `SelectableText`.

Currently I get error message: 

```
Exception: DriverError: Error in Flutter application: Uncaught extension error while executing get_text: Unsupported operation: Type SelectableText is currently not supported by getText
#0      CommandHandlerFactory._getText (package:flutter_driver/src/common/handler_factory.dart:416:7)
```

## Proposal
Add support of `SelectableText` by adding two lines of code:

```
  Future<GetTextResult> _getText(Command command, CreateFinderFactory finderFactory) async {
    final GetText getTextCommand = command as GetText;
    final Finder target = await waitForElement(finderFactory.createFinder(getTextCommand.finder));

    final Widget widget = target.evaluate().single.widget;
    String? text;

    if (widget.runtimeType == Text) {
      text = (widget as Text).data;
    ...
    } else if (widget.runtimeType == SelectableText) {   //  < --- line to add
      text = (widget as SelectableText).data;                   //  < --- line to add
    }

    if (text == null) {
      throw UnsupportedError('Type ${widget.runtimeType.toString()} is currently not supported by getText');
    }

    return GetTextResult(text);
  }
```

Note: this solution worked for me.
Repository: rust
Issue: "meta-variable x repeats N times, but y repeats M times" error is confusing
Labels: A-diagnostics,T-compiler

<!--
Thank you for filing a bug report! 🐛 Please provide a short summary of the bug,
along with any information you feel relevant to replicating the bug.

If you cannot produce a minimal reproduction case (something that would work in
isolation), please provide the steps or even link to a repository that causes
the problematic output to occur.
-->

So, I ran into this when writing up a macro for a project. I'm not really sure what a minimal example would be, but here's some slightly-shorter-than-what-I-wrote code: [(playground link)](https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=67e182b39566a17be38fb35c7458d038)

```rust
macro_rules! test_cons {
    (
        $ty:ident {
            array: [$($arr:literal),*],
            $(
                $from:ident: $val:expr,
            )*
        }
    ) => {
        $(
            test_arrays! { ($ty::$from)($val) == [$($arr),*] }
        )*
    }
}

macro_rules! test_arrays {
    (($method:path)($val:expr) == [$($arr:literal),*]) => {
        {
            let x = $method($val);
            assert_eq!(x.to_array(), [$($arr),*], "{}({:?}).to_array() != {:?}", stringify!($method), $val, [$($arr),*]);
        }
    }
}

fn do_test() {
    test_cons! {
        MyTy {
            array: [1, 2, 3],
            from_array: [1, 2, 3],
            from_shorter_array: [1, 2],
        }
    }
}
```

In case it's not obvious what I'm trying to do here: I want to verify that `MyTy::from_array([1, 2, 3]).to_array() == [1, 2, 3]` and that `MyTy::from_shorter_array([1, 2]).to_array() == [1, 2, 3]`. This is shorter than the original macro I wrote, but should be enough to demonstrate the error.

The current output is:

```
error: meta-variable `from` repeats 2 times, but `arr` repeats 3 times
  [--> src/lib.rs:10:10
](https://play.rust-lang.org/#)   |
10 |           $(
   |  __________^
11 | |             test_arrays! { ($ty::$from)($val) == [$($arr),*] }
12 | |         )*
   | |_________^
```

That's it. No suggestions for what might be wrong, not even a link to an error code. Just saying that what I wrote is wrong. I tried messing around with metavar expressions as specified in #83527 but I don't know what exactly would would help here.

Basically, I have no idea what exactly the circumstances for this error are, or what I'm doing wrong here, but either way, this error is extremely confusing and could be improved to at least explain what the compiler thinks is happening, and what I could do to fix that.
Repository: pytorch
Issue: DISABLED test_zero_model_parallel_parameters_as_bucket_view_True (__main__.TestZeroRedundancyOptimizerDistributed)
Labels: oncall: distributed,module: rocm,skipped

Platforms: rocm

This test was disabled because it is failing flakily on master ([recent examples](http://torch-ci.com/failure/test_zero_model_parallel_parameters_as_bucket_view_True%2C%20TestZeroRedundancyOptimizerDistributed)).

Culprit could be related to https://github.com/pytorch/pytorch/pull/75753 @pritamdamania 

cc @pietern @mrshenli @pritamdamania87 @zhaojuanmao @satgera @rohan-varma @gqchen @aazzolini @osalpekar @jiayisuse @SciPioneer @H-Huang @jeffdaily @sunway513 @jithunnair-amd @ROCmSupport @KyleCZH
Repository: pytorch
Issue: gql_mocks.json has really long lines
Labels: triaged,better-engineering

### 🐛 Describe the bug

This file has really long lines, which means that whenever I `git grep` that hits this file it's very annoying to scroll through all the results. Can we somehow split it up?

### Versions

master
Repository: flutter
Issue: Add integration tests for IME input
Labels: a: tests,a: text input,engine,platform-mac,platform-windows,platform-linux,a: desktop,P2,team-text-input,triaged-text-input

Our text input integration testing doesn't cover IME-based input such as for Chinese, Japanese, and Korean. At the moment, this is covered by non-platform-specific unit tests.

We should include tests that:
1. Set the input method to an IME-based input method.
2. Send a sequence of key events such that are handled by the IME.
3. Verify the text editing contents, in particular, the composing region.

A few things to test:
* Ensure arrow cursor movement is restricted to the composing region when composing (in Chinese/Japanese)
* Test composing in Flutter, then switching to a non-Flutter textfield, composing there, and switching back to flutter. See https://github.com/flutter/engine/pull/31879.
* Ensure backspace handling is correct while composing.
* Ensure Escape key handling is correct.
* Verify keyboard navigation of candidates menu is possible (and not captured by Flutter).
Repository: flutter
Issue: Allow Render Objects to update the type of layer used for a repaint boundary
Labels: framework,c: performance,P2,team-framework,triaged-framework

To implement https://github.com/flutter/flutter/issues/101941 , I will change the Render object API so that a specified OffsetLayer or subtype can be used in place of the default OffsetLayer. This also provides an API that allows the render object to update its layer properties. This API does not allow the render object to change the type or instance of a layer after it has been created.

We could relax that, which would allow us to support things like the RenderTransform conditionally using a TransformLayer, OffsetLayer, or ImageFIlterLayer. To do so we'd need to identifythat the instance has changed and correctly re-parent all children if we are not already repainting them.

We should still assert when the instance is changed if the runtime type is the same, since that might indicated wasted work.
Repository: godot
Issue: `CubeMesh.create_convex_shape` cause to show assertion
Labels: bug,topic:thirdparty,crash,topic:3d

### Godot version

3.5 beta 5

### System information

Ubuntu 21.10, Intel HD 3000

### Issue description

```
	var temp_variable2387 = CubeMesh.new()
	temp_variable2387.set_size(Vector3(-3.867996, 0.904044, -NAN))
	temp_variable2387.create_convex_shape(false, true)
```
crashes with this info
```
godot: thirdparty/vhacd/inc/vhacdVolume.h:365: void VHACD::Volume::Voxelize(const T*, uint32_t, uint32_t, const int32_t*, uint32_t, uint32_t, size_t, const VHACD::Vec3<double>&, const double (&)[3][3]) [with T = float; uint32_t = unsigned int; int32_t = int; size_t = long unsigned int]: Assertion `i < m_dim[0] && i >= 0 && j < m_dim[1] && j >= 0 && k < m_dim[2] && k >= 0' failed.
```

### Steps to reproduce

Above

### Minimal reproduction project

_No response_
Repository: go
Issue: x/pkgsite: improve package notes headers
Labels: NeedsInvestigation,pkgsite,UX

<!--
Please answer these questions before submitting your issue. Thanks!
-->

### What is the URL of the page with the issue?
https://pkg.go.dev/sync/atomic


### What is your user agent?

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.4 Safari/605.1.15



### Screenshot

![image](https://user-images.githubusercontent.com/5411205/163880564-5bb310d8-12eb-4cc6-b668-7bc49b6873c9.png)


### What did you do?
Open document page


### What did you expect to see?

I expected to see separator and headers similar to "Package notes".
![image](https://user-images.githubusercontent.com/5411205/163880925-af32b512-5f16-4c13-bb17-f89bea3b7eb4.png)


### What did you see instead?

Now I see header "Notes" and my first thing about notes related to function "func (*Value) Swap" (not all package) and the Swap function has bug.
Repository: vscode
Issue: Treat numbers as separate word / parts, including decimal points
Labels: feature-request,editor-wordnav

<!-- ⚠️⚠️ 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. -->

Example use case is css, but really, this is widely applicable.

Examples of wanted behaviors, using pipe (`|`) as the cursor (caret) position:

Feature 1: Move by word or word part

- Move right from `|123rem` becomes `123|rem`
- Move left from `123rem|` becomes `123|rem`

Feature 2: Treat decimal points (single dot or comma character) as same word when surrounded by digits

- Move right by word (once) from `|1.23rem` becomes `1.23|rem`
- Move right by word part (thrice) from `|1.23rem` becomes `1|.23rem` `1.|23rem` `1.23|rem`

Obviously, extend this behavior to all respective functions: move, select, delete forward / backward.

Respective settings options:

Treat numbers as separate words (dropdown select)

1. Treat numbers as separate words and word parts (default)
2. Treat numbers as separate word parts
3. Off (current behavior)

Treat decimal points (single dot or comma character) as same word (checkbox), default on.
Repository: storybook
Issue: [@storybook/storybook-addon-a11y]: Add ability to remove More Info link from report
Labels: feature request,needs triage

## Problem
I am unable to hide the "More info..." link in the Info section of the Report. A client is concerned linking to external URLs that are not approved by their legal team, and I would like to have the ability to remove the link. 

<img width="899" alt="Screen Shot 2022-04-18 at 5 00 26 PM" src="https://user-images.githubusercontent.com/41208237/163884709-46fe2d4f-5a67-4763-899b-86cc767fca49.png">

## Solution
Add the ability to hide or remove the "More info..." link in the [Info component](https://github.com/storybookjs/storybook/blob/next/addons/a11y/src/components/Report/Info.tsx)

## Alternatives
I have considered using CSS to target the link to hide the links.
Repository: PowerToys
Issue: Alias any file type with plain text for developer preview
Labels: Idea-Enhancement,Product-Settings,Product-File Explorer

### Description of the new feature / enhancement

It would be nice to just be able to dynamically enter in a list of file extensions and have the preview pane render them in monaco, but as `plaintext`. This would by and large solve this issue of having a million different use-case-specific plain text files (i.e. *.service-x-log, .conf, .ini, .info, .log, etc.).

### Scenario when this would be used?

Any time I am looking at a plain text file/

### Supporting information

It looks like this should be possible in the code base without too much work (from a cursor glace at the source), but I don't know if preview association is possible after installation or if file types need to be baked into the installer. My hope would be that since the DLL is already there and signed that it's associations could be expanded, but my knowledge of this kind of win32 magic is minimal.
Repository: flutter
Issue: PlatformViewLink must not create a surface until the platform view is ready
Labels: customer: fuchsia,framework,a: platform-views,P2,team-framework,triaged-framework

Platforms like Fuchsia expect the surface call to be issued after the view has been created.
After the transition to texture layers on Android, this constraint forbids instantiating the view
because the desired size is unknown ahead of time.

PlatformViewLink didn't face this issue before because the size of the platform view was
determined in Flow during the paint traversal.

To workaround this issue, https://github.com/flutter/flutter/pull/101399 introduces an internal placeholder
widget that is responsible for figuring out the size of view from the layout information that the
framework manages.

This way, the texture can be created with the desired size, and the surface is created only after
the success reply (view created) has been received from the platform.
Repository: flutter
Issue: Can the "axe accessibility toolkit" be used to evaluate Flutter's accessibility?
Labels: framework,a: accessibility,P2,team-framework,triaged-framework

Other frameworks evaluate their accessibility with the help of the "axe accessibility toolkit" [1] and run it as part of their test suite. We should investigate, whether the toolkit could also be applied to Flutter and whether we can/should integrate this into our own CI.

[1] https://www.deque.com/axe/
Repository: pytorch
Issue: Build a default NVFuser comparison callback, e.g. for use with torchbench
Labels: triaged,module: nvfuser

### 🚀 The feature, motivation and pitch

A default comparison callback would make it a lot easier to start using the callback.

Callback functionality was added in https://github.com/pytorch/pytorch/pull/74361.

### Alternatives

_No response_

### Additional context

_No response_