sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: pytorch
Issue: Error: unknown architecture `armv7-a;' and Error: selected processor does not support `command' in ARM mode
Labels: oncall: quantization,low priority,triaged,module: arm,topic: build

### 🐛 Describe the bug

I'm trying to build PyTorch on OprangePi PC (H3 Quad-core Cortex-A7) but for some reason I get 
```
Error: unknown architecture `armv7-a;'
```
is that semicolon in a wrong place ? The actual -march is:
```
$:> gcc -c -Q -march=native --help=target | grep march
  -march=                               armv7ve+simd
```
After which I get about a thousand similar errors like this: Error: selected processor does not support 'command' in ARM mode'
Is there a way to force/change -march or is it a bug in the auto-detecting code of `setup.py` / cmake(s) ?
```
/rstorage/pytorch_install/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S: Assembler messages:
/rstorage/drone/pytorch_install/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S:471: Error: unknown architecture `armv7-a;'
/rstorage/pytorch_install/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S:471: Error: selected processor does not support `vpush {d8-d15}' in ARM mode
/rstorage/pytorch_install/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S:471: Error: selected processor does not support `vld1.8 {d16[]},[r7]' in ARM mode
/rstorage/pytorch_install/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S:471: Error: selected processor does not support `veor q10,q10,q10' in ARM mode
/rstorage/pytorch_install/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S:471: Error: selected processor does not support `vld1.8 {d17[]},[r4]!' in ARM mode
/rstorage/pytorch_install/pytorch/aten/src/ATen/native/quantized/cpu/qnnpack/src/q8gemm_sparse/4x8c1x4-dq-packedA-aarch32-neon.S:471: Error: selected processor does not support `vld1.8 {d0},[r6]!' in ARM mode

```

### Versions

Collecting environment information...
PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A
ROCM used to build PyTorch: N/A

OS: Ubuntu 22.04.1 LTS (armv7l)
GCC version: (Ubuntu 11.2.0-19ubuntu1) 11.2.0
Clang version: Could not collect
CMake version: version 3.22.1
Libc version: glibc-2.35

Python version: 3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0] (32-bit runtime)
Python platform: Linux-5.15.72-sunxi-armv7l-with-glibc2.35
Is CUDA available: N/A
CUDA runtime version: Could not collect
CUDA_MODULE_LOADING set to: N/A
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect
HIP runtime version: N/A
MIOpen runtime version: N/A
Is XNNPACK available: N/A

Versions of relevant libraries:
[pip3] numpy==1.21.5
[conda] Could not collect


cc @jerryzh168 @jianyuh @raghuramank100 @jamesr66a @vkuzo @jgong5 @Xia-Weiwen @leslie-fang-intel @malfet @snadampal
Repository: TypeScript
Issue: Type confusion when function returns a union
Labels: Bug

# Bug Report

### 🔎 Search Terms

union return type

### 🕗 Version & Regression Information

- This changed between versions 3.3.3333 and 3.5.1

The same bug happens every version newer than 3.3.3 that I tried, including 4.8.4 and nightly.

### ⏯ Playground Link

[Playground link with relevant code](https://www.typescriptlang.org/play?ts=4.8.4#code/JYOwLgpgTgZghgYwgAgCoQM5lQTwA4QA8ACgHzIDeAsAFDLJ5QD2eAXMsQNy0C+ttoSLEQoAymCigA5rgLIIAD0ggAJhjSZs+Ilkkgp5CnxoDw0eEmQA5AK4BbAEbRZKRcrUasLwiHtOohsamQhYoAKogANYgTADuIC7yShCq6uhe2oQ2UTHxgfw0guYiyABKmDYANmAA8iBEAOJJ7uoR0XEJ2oa09GDa7ABETPUD3HTIAG5wlTYQ7A0A2gOMLAMAumNBhWbCluUYVdixTIRNbikebbmdBN3jfQSDYMejPchMYAAW0PNLK3jrTYFGDZBBgYDDZAIaaVByISKnZoXVo5DouUgACgAlOx9oc6o1yAAfMoVaqoY6nO70BDDLDIFRgXFk2r1QjiPQyLrIAC8lDevX6yCGIwANALJtNZoM4A4EANxeMeGM3lAIGAbFAQAywJxkAB6fXIL7AdQYT5MKoqZAxMDIJzIGFxCAqUXIRYAcn+HrWyFNNo+yHa8WNTHtKDgyF00l4BVpIHpYHpfOhlVh8MItkczi62LG8fp5stlRUACEIFn-OxfNmoLzjVgAHQPFA8tvC4YQAbIAD8DbAjamMxQ7CTA4+3ygKpoBaYlQgjcqTCkGLeRat5cr0EVgoITBgUYtG4rfm3bw9hAAtMbPv71yWo3AcMKa-4Bh7aFixkA)

### 💻 Code

```ts
interface TestType<P> {
  prop: P;
}

interface StringType extends TestType<string> {}

interface NumberType extends TestType<number> {}

interface UnknownType extends TestType<unknown> {}

interface ResultOne<G extends UnknownType> {
  type: "one";
  value: G["prop"];
}

interface ResultTwo<G extends UnknownType> {
  type: "two";
  other: G["prop"];
}

function callback<G extends UnknownType>(): ResultOne<G> | ResultTwo<G> {
  const dt: ResultOne<StringType> = {
    type: "one",
    value: "abc",
  };

  return dt; // this should not be allowed, G['prop'] is not known to be a string
}

const tst = callback<NumberType>();
const shouldBeNumber: number = tst.type === "one" ? tst.value : tst.other;

console.log(
  shouldBeNumber,
  typeof shouldBeNumber,
  '<- this should say "number"'
);
```

### 🙁 Actual behavior

The callback happily returns the value, although its type does not match the declared return type. None of the other type annotations complain, either, but the program typing is clearly wrong. The log at the end makes it clear that the behavior does not match the declared types.

### 🙂 Expected behavior

The line that says `return dt;` should have a type error, because `ResultOne<StringType>` is not a valid match for the return type of the function.

Interestingly, v3.3.3 in Playground does report the correct error exactly on that line:

```
const dt: ResultOne<StringType>
Type 'ResultOne<StringType>' is not assignable to type 'ResultOne<G> | ResultTwo<G>'.
  Type 'ResultOne<StringType>' is not assignable to type 'ResultOne<G>'.
    Type 'StringType' is not assignable to type 'G'.
```
Repository: stable-diffusion-webui
Issue: Integrate Tracery as script
Labels: enhancement

[Tracery](https://tracery.io/) is a great tool for generating text. I think it would work great as a prompt generator. 

The scripting section of txt2img could be extended to include a "Tracery" option, with two controls:

1. A textbox to enter the tracery script
2. A textbox to specify the number of prompts to extract from tracery.

When this option is used, the tracery script is used the specified number of times and the extracted prompts are then used like the "prompts for file or textbox" prompts.
Repository: godot
Issue: Cannot cross-compile anything to windows from the latest OSX: Invalid target platform "windows"
Labels: platform:windows,platform:macos,topic:buildsystem

### Godot version

4.0.beta3

### System information

Apple M1, MacOS 12.6

### Issue description

Following the doc, I should be able to cross compile export templates from Mac OS to windows?
Here is what I get:
```
scons: Reading SConscript files ...
Invalid target platform "windows".
The following platforms were detected:

	ios
	macos
	web

Please run SCons again and select a valid platform: platform=<string>
```

### Steps to reproduce

Follow the doc to install MINGW.
Run:
`scons platform=windows`
or
`scons platform=windows tools=yes target=template_release bits=64"`
And then you get got it.
It is the same if you run it for 32 bits.

### Minimal reproduction project

None
Repository: flutter
Issue: Fix wrong `VSYNC` event
Labels: engine,P3,team-engine,triaged-engine

Please see https://github.com/flutter/engine/pull/36775 for details

<!-- Thank you for using Flutter!

     If you are looking for support, please check out our documentation
     or consider asking a question on Stack Overflow:
      * https://flutter.dev/
      * https://api.flutter.dev/
      * https://stackoverflow.com/questions/tagged/flutter?sort=frequent

     If you have found a bug or if our documentation doesn't have an answer
     to what you're looking for, then fill out the template below. Please read
     our guide to filing a bug first: https://flutter.dev/docs/resources/bug-reports
-->

## Steps to Reproduce

<!-- Please include full steps to reproduce so that we can reproduce the problem. -->

1. Execute `flutter run` on the code sample <!-- (see "Code sample" section below) -->
2. ... <!-- describe steps to demonstrate bug -->
3. ... <!-- for example "Tap on X and see a crash" -->

**Expected results:** <!-- what did you want to see? -->

**Actual results:** <!-- what did you see? -->

<details>
<summary>Code sample</summary>

<!--
      Please create a minimal reproducible sample that shows the problem
      and attach it below between the lines with the backticks.

      To create it you can use `flutter create bug` command and update the `main.dart` file.

      Alternatively, you can use https://dartpad.dev/
      which is capable of creating and running small Flutter apps.

      Without this we will unlikely be able to progress on the issue, and because of that
      we regretfully will have to close it.
-->

```dart
```

</details>

<details>
  <summary>Logs</summary>

<!--
      Run your application with `flutter run --verbose` and attach all the
      log output below between the lines with the backticks. If there is an
      exception, please see if the error message includes enough information
      to explain how to solve the issue. If there is a crash, please include
      the entirety of the crash log including the backtrace.
-->

```
```

<!--
     Run `flutter analyze` and attach any output of that command below.
     If there are any analysis errors, try resolving them before filing this issue.
-->

```
```

<!-- Finally, paste the output of running `flutter doctor -v` here. -->

```
```

</details>


<!--
      Consider also attaching screenshots and/or videos to better
      illustrate the issue.

      You can upload them directly on GitHub.
      Beware that video file size is limited to 10MB.
-->
Repository: create-react-app
Issue: Contraseña
Labels: needs triage

If you have a general question about Create React App or about building an app with Create React App we encourage you to post in GitHub Discussions instead of this issue tracker. The maintainers and other community members can provide help and answer your questions there: https://github.com/facebook/create-react-app/discussions

If you're looking for general information on using React, the React docs have a list of resources: https://reactjs.org/community/support.html

If you've discovered a bug or would like to propose a change please use one of the other issue templates.

Thanks!
Repository: HelloGitHub
Issue: 【开源自荐】stokado 借助 proxy，更好地更方便地管理 storage，实现了相关语法糖、序列化、监听订阅、设置过期、一次性取值等功能
Labels: JavaScript 项目

## 推荐项目

- 项目地址：https://github.com/KID-joker/stokado

- 类别：JS

- 项目标题：使用proxy封装localStorage、sessionStorage

- 项目描述：借助 proxy，更好地更方便地管理 storage，实现了相关语法糖、序列化、监听订阅、设置过期、一次性取值等功能

- 亮点：
1. 保存到sotrage里的值，取值时类型不会改变，存值前的类型为`number`，取值后的类型也是`number`。
2. 可以像正常对象数组类型一样，直接操作对象和数组，不用再JSON解压。
3. 监听数据变化。对于对象数组，还支持二级监听，即`obj.a`和`list[0]`，以及数组长度的监听。
4. 设置过期时间，轻松实现指定时间过期的逻辑。
5. 一次性取值。

- 示例代码：
```js
import { local, session } from 'stokado';

local.test = 'Hello stokado'; // works
delete local.test; // works

// number
local.test = 0;
local.test === 0; // true

// boolean
local.test = false;
local.test === false; // true

// undefined
local.test = undefined;
local.test === undefined; // true

// null
local.test = null;
local.test === null; // true

// object
local.test = { hello: 'world' };
local.test.hello = 'stokado'; // works

// array
local.test = ['hello'];
local.test.push('stokado'); // works
local.test.length // 2

// Date
local.test = new Date('2000-01-01T00:00:00.000Z');
local.test.getTime() === 946684800000; // true

// RegExp
local.test = /d(b+)d/g;
local.test.test("cdbbdbsbz"); // true

// function
local.test = function() {
  return 'Hello stokado!';
};
local.test() === 'Hello stokado!'; // true

/******************** Subscribe ********************/
local.on('test', function(newVal, oldVal) {
  console.log('test', newVal, oldVal);
});
local.on('test.a', function(newVal, oldVal) {
  console.log('test.a', newVal, oldVal);
});

local.test = {};
// test {} undefined

local.test.a = 1;
// test.a 1 undefined

/******************** Expired ********************/
local.setItem('test', 'hello stokado', { expires: Date.now() + 10000 })
// local.test = 'hello stokado'
// local.setExpires('test', Date.now() + 10000)

// within 10's
local.test // 'hello stokado'

// after 10's
local.test // undefined

/******************** Disposable ********************/
local.setItem('test', 'hello stokado', { disposable: true })
// local.test = 'hello stokado'
// local.setDisposable('test')

local.test // 'hello stokado'
local.test // undefined
```

- 后续更新计划：
1. 完善项目发布流程
Repository: godot
Issue: when i am clicking ctrl and click on mouse left click then the engine is gonna frreze everytime
Labels: bug,platform:linuxbsd,needs testing,topic:input

### Godot version

4.0 beta 3

### System information

Zorin OS,GLES3, intel i3 5005U

### Issue description

when i am using godot beta 2 i was facing that same issue of stuck while clicking ctrl + mouse left click , and i am facing now with godot 4.0 beta 3

### Steps to reproduce

when i am using godot beta 2 i was facing that same issue of stuck while clicking ctrl + mouse left click .

### Minimal reproduction project

[Runner Game.zip](https://github.com/godotengine/godot/files/9791091/Runner.Game.zip)
Repository: bitcoin
Issue: avoid_reuse=true is incorrectly skipping one of my UXTOs
Labels: Bug,Wallet

I noticed that the sum of my unspent outputs is greater than my balance.

Upon investigating it turns out that this is because one of my outputs is marked as "used", even though it hasn't been.

Tracing through the execution I see that `CWallet::IsSpentKey()` is returning here:

    if (IsAddressUsed(dest)) {
        return true;
    }

and `IsAddressUsed()` is looking for key `used` in the address book for that address, and presumably finding it.

The address of the UTXO in question only has a single transaction, creating my UTXO. The address isn't reused, and no other address with the same public key is used either.

The UTXO was created in Feb 2020 and I've used many different versions of Bitcoin Core since then, so I don't know when or why the UTXO's address was marked as "used".

Could it be that I made a transaction that spent that UTXO but the transaction never confirmed and I later "zapped" it? Or RBF'ed it, causing different inputs to be used?
Repository: godot
Issue: Input mapping defaults to "MediaPrevious" or "Unknown (Physical)", only changes for a split second
Labels: bug,topic:editor,topic:input

### Godot version

3.4.4 and 3.5.1

### System information

Windows 11, 64-bit

### Issue description

In previous versions of godot, I would use the input map to set actions (eg. up, down, left, right). Now, when I try to do this, the input defaults to "MediaPrevious" when selecting the "Key" event, and "Unknown (Physical" when selecting the "Physical Key" event. When pressing a key, it shows the key i pressed for a few frames and quickly switches back to the default.

https://user-images.githubusercontent.com/94807731/195968798-86859afd-f4e8-46c2-9e25-19c6409ddba0.mp4

### Steps to reproduce

Enter Project > Project Settings > Input Map

Type in an action name and click "Add"
Click "Add Event" button next to the action
Select either "Physical Key" or "Key"
Press a key on your keyboard

### Minimal reproduction project

_No response_
Repository: PowerToys
Issue: Keyboard Manager doesn't work properly through remote desktop
Labels: Issue-Bug,Product-Keyboard Shortcut Manager

### Microsoft PowerToys version

"0.63.0"

### Running as admin

- [ ] Yes

### Area(s) with issue?

Keyboard Manager

### Steps to reproduce

1. Swap the keys "ESC" and "Caps Lock"
2. Connect to a remote desktop through "Remote Desktop Connection"
3. Press the physical key "Caps Lock", it will have the effect of pressing ESC and Caps Lock at the same time.

### ✔️ Expected Behavior

Only have the effect of mapped key, namely "ESC".

### ❌ Actual Behavior

It has the effect as both ESC and Caps Lock are pressed.

### Other Software

Use the "Remote Desktop Connection" from Windows.
OS Info:
Edition	Windows 10 Pro
Version	21H2
Installed on	‎6/‎28/‎2022
OS build	19044.2130
Experience	Windows Feature Experience Pack 120.2212.4180.0
Repository: stable-diffusion-webui
Issue: Feature Request: Allow resizing UI
Labels: enhancement

**Is your feature request related to a problem? Please describe.**
is it me or it looks really widy, like why?

**Describe the solution you'd like**
Add switch which will disable this mode and return old sizes.

**Describe alternatives you've considered**
Delete wide mode it entairly or make it more proportional

**Additional context**
wtf?
![image](https://user-images.githubusercontent.com/97038786/195978308-030578b4-081b-495a-b01d-8e9cae2f7edc.png)
Repository: create-react-app
Issue: VS code not autocomplete .env
Labels: needs triage

VS code not autocomplete variables starting with REACT_APP in the process.env of create react app. Any suggestions?

I created a .env in the root of my project as below: 


<img width="362" alt="Schermata 2022-10-15 alle 11 24 12" src="https://user-images.githubusercontent.com/8181631/195979208-b71e0321-aad3-43a4-ace2-b92762698f72.png">

<img width="500" alt="Schermata 2022-10-15 alle 11 24 29" src="https://user-images.githubusercontent.com/8181631/195979214-35fe7fae-1ab3-4a5f-8b65-efc1ce329993.png">

<img width="445" alt="Schermata 2022-10-15 alle 11 25 12" src="https://user-images.githubusercontent.com/8181631/195979235-cf258454-ef13-4b7e-8ec8-cfccb1f65925.png">
Repository: neovim
Issue: TUI: remove vtpcon (Windows 8)
Labels: refactor,platform:windows



suggested by @erw7 in https://github.com/neovim/neovim/pull/20634#issuecomment-1279701733 : 

> `vtpcon` has lost its usefulness because of the implementation of many features of `xterm` in `conpty`. In addition, Windows 8.1 will be EOL on 1/10/2023. Therefore, `windows.ti` and all changes related to it should be removed in 0.9.
Repository: neovim
Issue: cmdheight=0 makes the lowest line of the screen invisible
Labels: bug,ui

### Neovim version (nvim -v)

v0.9.0-dev

### Vim (not Nvim) behaves the same?

no, because they don't have this feature

### Operating system/version

Linux Mint 20.3

### Terminal name/version

terminator 1.91

### $TERM environment variable

xterm-256color

### Installation

Official dev PPA + apt

### How to reproduce the issue

1. Open Neovim
2. `:set cmdheight=0`
3. Go to insert mode
4. Go back to normal mode, **notice the lowest line disappearing**
5. Go back to insert mode, **notice the "-- INSERT --" text appearing**
6. To bring back the lowest line of the terminal, do something that redraws it, e.g. type a colon and press backspace

### Expected behavior

Nothing should happen to the lowest line of the terminal

### Actual behavior

Lowest line of the terminal is either blank (in normal mode; you can still interact with characters) or contains a mode name (in insert mode), making it impossible to be read.
Repository: rust
Issue: Fix formmating in `src/test/ui`
Labels: C-cleanup,A-testsuite

Many tests in `src/test/ui` are not formatted using `rustfmt`. I observed this while working on #100316. This caused a lot of noise in the PR since I had autoformatting enabled by default.

So I was wondering if not conforming to proper formatting was intentional or not? If it isn't, then I think this should be fixed.
Repository: PowerToys
Issue: Keyboard shortcuts in English keyboard layout for any language
Labels: Issue-Bug,Product-Settings,Needs-Triage

### Microsoft PowerToys version

0.63.0

### Utility with translation issue

Settings

### 🌐 Language affected

Russian (any I suppose)

### ❌ Actual phrase(s)

Any menu items with keybopard shortcuts looks localized when i open it with native keyboard layout. Guyz wut?
For i.e. I open Text extractor menu in with English keyboard layout and i see expected keyboard shortcut for it Win+Shit+T.
But if I open it with Russian active keyboard layout I see Win+Shit+Е (Russian letter Е)! Guyz cmon wut?

### ✔️ Expected phrase(s)

It must be in English in any keyboard layout. Only.

### ℹ Why is the current translation wrong

Just because its so natural.
Repository: storybook
Issue: Use only actions, but disable all controls
Labels: feature request,needs triage

**Is your feature request related to a problem? Please describe**
I would like to disable all controls for certain stories (based on their `context`), but still be able to use the "Actions" tab.
The idea is to statically set my properties, remove all the props from controls, but still see all triggered events in the Storybook UI.

**Describe the solution you'd like**
Dynamically adjust `context.parameters` in (global) decorators.
Not sure if this is the best solution, tho.

**Describe alternatives you've considered**
I got it working like this on a "per story" base:

```ts
interface IContentSwitcherProps {
  size: 'S' | 'M' | 'L';
  variant: 'filled' | 'text' | 'outlined';
  color?: 'Default' | 'Yellow';
  value: string;
  options: {
    label: string;
    value: string;
  }[];
  onChange(value: string): void;
}

export const Showcase = (args: IContentSwitcherProps) => (
  <>
    <ContentSwitcher
      {...args}
      variant="filled"
      size="L"
      color="Yellow"
      options={[
        { label: 'Option 1', value: 'one' },
        { label: 'Option 2', value: 'two' },
        { label: 'Option 3', value: 'three' },
      ]}
      value="one"
    />
    <ContentSwitcher
      {...args}
      variant="outlined"
      size="S"
      color="Default"
      options={[
        { label: 'Option 1', value: 'one' },
        { label: 'Option 2', value: 'two' },
        { label: 'Option 3', value: 'three' },
      ]}
      value="three"
      onChange={() => undefined}
    />
    <ContentSwitcher
      {...args}
      variant="text"
      size="M"
      color="Yellow"
      options={[
        { label: 'Option 1', value: 'one' },
        { label: 'Option 2', value: 'two' },
        { label: 'Option 3', value: 'three' },
      ]}
      value="two"
      onChange={() => undefined}
    />
  </>
);
Showcase.parameters = {
  controls: {
    exclude: /^(?!on[A-Z])\w+/g,
  },
};
```

But I want to avoid to set `Showcase.parameters.controls.exclude` for each component, so I tried to do this: 
```ts
export const decorators = [
  (Story, context) => {
    if (context.name === 'Showcase') {
      context.parameters = {
        controls: {
          exclude: /^(?!on[A-Z])\w+/g,
        },
      };
    }
    return <Story />;
  },
];
```
...which causes an error as `context.parameters` is read-only

**Are you able to assist to bring the feature to reality?**
happy to help

**Additional context**