sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: ollama
Issue: [prompt] add ollama configuration file
Labels: feature request

I think we can now try eating our own dog food, and let LLM write the code to solve [second most voted](https://github.com/ollama/ollama/issues?q=config+file+is%3Aopen+sort%3Areactions-%2B1-desc) issue "Please don't clutter the user home directory" (https://github.com/ollama/ollama/issues/228).

Here is my try at prompting.

---

Please write the code to add config file to `ollama` project. The config provides lookup values for `envconfig` variables. The file should be in standard OS location, which is `~/.config/ollama/config.toml` on Linux.

The code should be commented, and variable lookup order printed in debug mode.

An example config file should be included with all variables commented, and set to their default values.

---
Repository: deno
Issue: Better DX by referring URL link for common or known errors in the terminal
Labels: docs,suggestion

## Issue
I have the following code,

```ts
import data from './data.json'

console.log(data);
```

And I get following error as output in the terminal

```bash

> deno main.ts

error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import attribute with the type of "json".

Specifier: file:///<path>/data.json
    at file:///<path>/main.ts:1:18
```

## Requested change

I had to search to find the link which shows the solution with an example, https://docs.deno.com/examples/importing-json/ which I expect to be part of the error output in the terminal. 

```bash
> deno main.ts

error: Expected a JavaScript or TypeScript module, but identified a Json module. Consider importing Json modules with an import attribute with the type of "json".

Refer: https://docs.deno.com/examples/importing-json/

Specifier: file:///<path>/data.json
    at file:///<path>/main.ts:1:18
```

Could something like this be added for all known errors/warnings. Thanks.
Repository: TypeScript
Issue: ScriptKind.Deferred treated as LanguageVariant.Standard
Labels: Suggestion,Experimentation Needed

### 🔎 Search Terms

Deferred ScriptKind TSX
Deferred ScriptKind Standard

Vue, eslint, tsx parser error

### 🕗 Version & Regression Information

Currently looking at TypeScript 5.5+ likely affects most versions of typescript.

### ⏯ Playground Link

_No response_

### 💻 Code

Not specific to TS code but compiler and parsing. 

### 🙁 Actual behavior

When using typescript-eslint with there new projectSettings option, along side vue with tsx. The file fails to parse

```
Component.vue
41:8  error  Parsing error: '>' expected
```

Deferred ScriptKinds are treated as `LanguageVariant.Standard` rather than `LanguageVariant.JSX`

https://github.com/microsoft/TypeScript/blob/main/src/compiler/parser.ts#L1746
https://github.com/microsoft/TypeScript/blob/main/src/compiler/utilities.ts#L8832


### 🙂 Expected behavior

Under the assumption that ScriptKind.Deferred could be treated as `LanguageVariant.JSX` then this resolves `typescript-eslints` issue with parsing extraFileExtensions such as `vue` files. 

I'm unsure what the consequences and other use cases of `ScriptKind.Deferred` are so it could be as simple as adjusting `getLanguageVariant`.

### Additional information about the issue

https://github.com/typescript-eslint/typescript-eslint/issues/9934
Repository: flutter
Issue: [iOS] Running async dart code as part of `applicationWillTerminate`
Labels: c: new feature,platform-ios,framework,engine,c: proposal,P2,team-ios,triaged-ios

### Use case

According to this document: https://developer.apple.com/documentation/uikit/uiapplicationdelegate/1623111-applicationwillterminate
We could have a function that takes up to five seconds during the `applicationWillTerminate` callback. I agree that doing complicated things there should be wrong but I think having the ability to do something is reasonable. 
For exmaple, one might want to schedule a notification when a app is closed during a critical process (I believe the teala app will send a notification on close if the app is used as key). 

In flutter, there is [notification_when_app_is_killed](https://pub.dev/packages/notification_when_app_is_killed) which can achieve this. However, I think its implementation is not ideal, it basically implemented eveything in swift: Overriding the `applicationWillTerminate` callback and send a notification when it is called. It is weird becuae it is not generic, also we have nice binding of notification in dart but writing swift seems defeat the point of using flutter. I think ideally, `applicationWillTerminate` should trigger a dart async function and wait for it. Then we could send notification or do other things in that function. 

I found this issue: https://github.com/flutter/flutter/issues/96779, I think the idea there kinda work but does not really.
It is possible to use `FlutterMethodChannel` to call a dart function when `applicationWillTerminate` is called. However, I can't block the `applicationWillTerminate` and wait for that dart invocation to be finished. If my understanding is correct, doing so will block the main thread and `FlutterMethodChannel` requires main thread?

### Proposal

I naively think, `WidgetBindingObserver` should support this, `applicationWillTerminate` should trigger a change in the life cycle and `applicationWillTerminate` should be blocked until all `WidgetBindingObserver` callbacks are finished.
Repository: angular
Issue: Provide example in documentation about ngComponentOutletContent
Labels: help wanted,good first issue,area: docs

### Describe the problem that you experienced

There are no example about ngComponentOutletContent property, please provide in documenatation !

### Enter the URL of the topic with the problem

_No response_

### Describe what you were looking for in the documentation

_No response_

### Describe the actions that led you to experience the problem

_No response_

### Describe what you want to experience that would fix the problem

_No response_

### Add a screenshot if that helps illustrate the problem

_No response_

### If this problem caused an exception or error, please paste it here

_No response_

### If the problem is browser-specific, please specify the device, OS, browser, and version

_No response_

### Provide any additional information here in as much as detail as you can

_No response_
Repository: godot
Issue: TLS handshake error in AssetLib
Labels: bug,topic:editor,confirmed,topic:assetlib,needs testing

### Tested versions

- Reproducible in v4.4.dev2.official [97ef3c837], v4.4.dev3.official [f4af8201b] and later. (error -110 and -28928)
- In v4.3.stable.official [77dcf97d8], v4.4.dev1.official [28a72fa43]. It gives different error. (error -9984)

### System information

Godot v4.4.dev2 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (NVIDIA; 31.0.15.3623) - AMD Ryzen 5 5600X 6-Core Processor (12 Threads)

### Issue description

When change pages in Asset Store, it will sometimes give TLS handshake error.

![TLS error](https://github.com/user-attachments/assets/6585c487-6179-40db-a167-63d8e7a1757e)

~And sometimes the editor will crash.~ (This is unrelated and have been fixed)

Computer network connection is fine and no proxy used.

Probably related to #79162 .

### Steps to reproduce

- Create an empty project.
- Click AssetLib
- (Change pages)
- wait some time

### Minimal reproduction project (MRP)

N/A
Repository: deno
Issue: Shebangs fail to parse in `deno test --doc`
Labels: bug,testing

This should not result in a syntax error:

```ts
/**
 * Documentation of my function.
 *
 * @example Usage
 * ```ts
 * #!/usr/bin/env -S deno run --allow-read
 * foo("bar")
 * ```
 */
export function foo(s:string) {
  return Deno.readTextFileSync(import.meta.filename!)
}
```
Repository: opencv
Issue: ts: ROI cases are not being covered by ArrayTest
Labels: test

`ArrayTest` class have two storages for arrays: `vector<vector<void*>> test_array` for old functions and `vector<vector<Mat>> test_mat` for new functions. The first one is being filled with data and the second one is copied from the first:
https://github.com/opencv/opencv/blob/783fe72756a5ff6041c446599a96a766a0681d06/modules/ts/src/ts_arrtest.cpp#L210-L222

However, the function `cvarrToMat` being used to convert old array to `Mat` clears the ROI indicator and creates plain object instead (`data == datastart`, `dataend` unset or at the end). Example for `IplImage`: https://github.com/opencv/opencv/blob/783fe72756a5ff6041c446599a96a766a0681d06/modules/core/src/matrix_c.cpp#L109-L129

Thus all ArrayTest-based tests using `test_mat` and new functions will effectively miss ROI case. For example `Core_MulSpectrums.accuracy`. Here neither of `src1`, `src2` or `dst` will be ROI Mat in any case: https://github.com/opencv/opencv/blob/783fe72756a5ff6041c446599a96a766a0681d06/modules/core/test/test_dxt.cpp#L822
Repository: transformers
Issue: How to implement weight decay towards the pre-trained model?
Labels: Usage,Feature request

Hello, let me one question.

If using HF Trainer for supervised fune-tuning, how do I implement penalizing the distance between starting and current weights? This was shown to be effective in https://arxiv.org/abs/1706.03610
Repository: godot
Issue: window ignores min_size set from DisplayServer if wrap_content is set and scaling not 1
Labels: bug,documentation,topic:gui

### Tested versions

Reproducible in 4.3-stable

### System information

Godot v4.3.stable - Pop!_OS 22.04 LTS - X11 - Vulkan (Forward+) - dedicated AMD Radeon RX 580 Series (RADV POLARIS10) - AMD Ryzen 7 7700X 8-Core Processor (16 Threads)

### Issue description

There are several inconsistencies and bugs with the way godot determines the minimum and current window size.
Here, a scaling factor of 2 causes godot to discard the values set from DisplayServer.window_set_min_size, as soon as wrap_content is set to true.

This issue only exists when a scaling factor is set in the project settings (or gdscript i guess)

### Steps to reproduce

1. Move the Slider labeled `DisplayServer.window_set_min_size` all the way to the right.
2. Toggle the `wrap_controls` button
3. Observe as the window size snaps to the smaller size

(if testing  in 4.3, ignore the presence of #91960)

### Minimal reproduction project (MRP)

[resize_mwe.zip](https://github.com/user-attachments/files/17243436/resize_mwe.zip)
Repository: flutter
Issue: [two_dimensional_scrollables] Support scaling like InteractiveViewer does.
Labels: c: new feature,framework,f: scrolling,package,c: proposal,P3,team-framework,triaged-framework,p: two_dimensional_scrollables

### Use case

In large tables there could be a need to zoom out a bit
There is an example for interactive viewer builder with similar functionality
https://codebrowser.dev/flutter/flutter/examples/api/lib/widgets/interactive_viewer/interactive_viewer.builder.0.dart.html

The only thing is to have it working I would have to reimplement almost all feature from `two_dimensional_scrollables` to make it usable.

@Piinks is there any chance to add scaling feature to `two_dimensional_scrollables`

### Proposal

Add scaling feature to `two_dimensional_scrollables` similar to interactive viewer.
Repository: deno
Issue: Implement `node:fs`'s `lchmod`
Labels: feat,node compat

And also the sync version.
Repository: rust
Issue: Improve test output separation between failed test (better visual anchoring)
Labels: C-enhancement,T-compiler,T-bootstrap,A-compiletest

Currently test output upon failure seems to be a bit mushed together and it can be very difficult to tell which stdout/stderr belongs to which test failure. We might be able to improve visual anchor to help contributors navigate the sections.
Repository: rust
Issue: Tracking issue for release notes of #125175: Tracking Issue for PanicHookInfo::payload_as_str()
Labels: T-libs-api,relnotes,A-panic,relnotes-tracking-issue


This issue tracks the release notes text for #125175.

### Steps

- [ ] Proposed text is drafted by PR author (or team) making the noteworthy change.
- [ ] Issue is nominated for release team review of clarity for wider audience.
- [ ] Release team includes text in release notes/blog posts.

### Release notes text

The responsible team for the underlying change should edit this section to replace the automatically generated link with a succinct description of what changed, drawing upon text proposed by the author (either in discussion or through direct editing).

```markdown
# Category (e.g. Language, Compiler, Libraries, Compatibility notes, ...)
- [Tracking Issue for PanicHookInfo::payload_as_str()](https://github.com/rust-lang/rust/issues/125175)
```

> [!TIP]
> Use the [previous releases](https://doc.rust-lang.org/nightly/releases.html) categories to help choose which one(s) to use.
> The category will be de-duplicated with all the other ones by the release team.
>
> *More than one section can be included if needed.*

### Release blog section

If the change is notable enough for inclusion in the blog post, the responsible team should add content to this section.
*Otherwise leave it empty.*

```markdown
```

cc @m-ou-se -- origin issue/PR authors and assignees for starting to draft text
Repository: excalidraw
Issue: Request to Add "ə" Character Support in Excalifont
Labels: font

Hello,
I'm using the Excalidraw plugin in Obsidian and have noticed that the Excalifont does not support the "ə" character. This character is important for accurately representing certain words in my notes. Could it be possible to include it in an upcoming update?

Thank you for considering this request and for your ongoing support of the Excalidraw community.

![Image](https://github.com/user-attachments/assets/a98b707f-05e6-408b-a1d9-b64333153396)
Repository: godot
Issue: DirectoryCreateDialog needs to be renamed
Labels: enhancement,topic:editor,topic:codestyle

### Tested versions

4.4 0f1c7e6

### Issue description

After #80473, DirectoryCreateDialog became a universal dialog for creating/duplication files and directories. It needs to be renamed to something different. Proposed names include:
-  EditorCopyMoveDialog
- ???

Suggestions welcome.

### Steps to reproduce

https://github.com/godotengine/godot/blob/0f1c7e6b24deb67117010017671844831bc24858/editor/directory_create_dialog.h#L40
Repository: transformers
Issue: [Modular Transformers] Request for comments
Labels: WIP,Modular

Hello :wave: 

Over the past few weeks, we've been merging PRs related to "Modular Transformers".

We explain why we chose to go that way in this [tweet](https://x.com/LysandreJik/status/1841505287879958730) and this [YouTube video](https://youtu.be/P-asaQVmA3o?si=aZIsaRCpGQYdS05L) at the PyTorch Conference by @ArthurZucker.

We detail how to use it, and have started putting in examples, in this [documentation page](https://huggingface.co/docs/transformers/modular_transformers). Finally, some models, like [GLM, are being contributed](https://github.com/huggingface/transformers/pull/33823) (by @Cyrilvallez) using the modular file.

We'd be eager to hear about your experience using the tool. This is very much experimental, it is brittle, but we'll work on having it be more flexible, and usable in a myriad of situations. Please do share your experience (positive or negative), thoughts, comments, we'd be eager to hear what could be improved in order to lower even more the bar to contributing new models.
Repository: opencv
Issue: Test_Model.TextDetectionByDB test fails after new dnn engine integration
Labels: bug,category: dnn

### System Information

Platform: any
Reference: https://github.com/opencv/opencv/pull/26056

### Detailed description

New DNN engine brings dedicated MatShape structure. Zero value in the new MatShape indicates empty shape independently from size and other values. The old ONNX parser sets zero values for symbolic shape with a hope to resolve it later. The logic is broken now and should be fixed with the new symbolic shape inference support.

### Steps to reproduce

-

### Issue submission checklist

- [X] I report the issue, it's not a question
- [X] I checked the problem with documentation, FAQ, open issues, forum.opencv.org, Stack Overflow, etc and have not found any solution
- [X] I updated to the latest OpenCV version and the issue is still there
- [X] There is reproducer code and related data files (videos, images, onnx, etc)
Repository: rust
Issue: Tracking issue for RFC 3695: Allow boolean literals as cfg predicates
Labels: B-RFC-approved,T-lang,B-RFC-implemented,C-tracking-issue

This is a tracking issue for the RFC "Allow boolean literals as cfg predicates" ([rust-lang/rfcs/#3695](https://github.com/rust-lang/rfcs/pull/3695)).
The feature gate for the issue is `#![feature(cfg_boolean_literals)]`.

### About tracking issues

Tracking issues are used to record the overall progress of implementation.
They are also used as hubs connecting to other relevant issues, e.g., bugs or open design questions.
A tracking issue is however *not* meant for large scale discussion, questions, or bug reports about a feature.
Instead, open a dedicated issue for the specific matter and add the relevant feature gate label.
Discussion comments will get marked as off-topic or deleted.
Repeated discussions on the tracking issue may lead to the tracking issue getting locked.

### Steps

- [x] Accept an RFC.
  - https://github.com/rust-lang/rfcs/pull/3695
- [x] Implement in nightly.
  - https://github.com/rust-lang/rust/pull/131034
- [ ] Add documentation to the [reference][].
  - See the [instructions][reference-instructions].
- [ ] Stabilize.
  - See the [instructions][stabilization-instructions].

[dev guide]: https://github.com/rust-lang/rustc-dev-guide
[doc-guide]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#documentation-prs
[edition guide]: https://github.com/rust-lang/edition-guide
[nightly style procedure]: https://github.com/rust-lang/style-team/blob/master/nightly-style-procedure.md
[reference]: https://github.com/rust-lang/reference
[reference-instructions]: https://github.com/rust-lang/reference/blob/master/CONTRIBUTING.md
[stabilization-instructions]: https://rustc-dev-guide.rust-lang.org/stabilization_guide.html#stabilization-pr
[style guide]: https://github.com/rust-lang/rust/tree/master/src/doc/style-guide

### Unresolved Questions

None.

### Related

- https://github.com/rust-lang/rust/pull/131034
Repository: react
Issue: Bug: re-rendering order of onBlur and onClick inconsistent between desktop and mobile browsers
Labels: Status: Unconfirmed

<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

React version: 18.3.1

## Steps To Reproduce

1. Open https://stackblitz.com/edit/react-onblur-onclick-re-rendering
2. Click on the input field to focus on it
3. Change the value in the input field (e.g. press 3)
4. Input must be still have focus, then press the "Click Me" button

<!--
  Your bug will get fixed much faster if we can run your code and it doesn't
  have dependencies other than React. Issues without reproduction steps or
  code examples may be immediately closed as not actionable.
-->

Link to code example:
https://stackblitz.com/edit/react-onblur-onclick-re-rendering

<!--
  Please provide a CodeSandbox (https://codesandbox.io/s/new), a link to a
  repository on GitHub, or provide a minimal code example that reproduces the
  problem. You may provide a screenshot of the application if you think it is
  relevant to your bug report. Here are some tips for providing a minimal
  example: https://stackoverflow.com/help/mcve.
-->

## The current behavior
On desktop the log looks like:
```
onChange
onBlur 
updateState to 2 
render App 
render App 
onClick 2 
```
but on mobile:
```
[Log] onChange
[Log] onBlur
[Log] updateState to – "2" 
[Log] onClick – 1 
[Log] render App 
[Log] render App 
```

This issue is reproducible on an iPad Air (4th generation) with iOS 17.5.

## The expected behavior

On both desktop and mobile, clicking the button while focus is still on the input should trigger a re-render before onClick event.
Repository: PowerToys
Issue: New+ Dated Folders and Text Files
Labels: Idea-New PowerToy,Needs-Triage,Product-New+

### Description of the new feature / enhancement

Enhance the New+ tool as follows:
If we create a template folder or file with a name that includes e.g. yyyy_mm_dd then this will be replaced with the current date.
If we create a template text file containing e.g. dd/mm/yyyy then this is replaced with the current date in the file.
Other tags for time, etc.

### Scenario when this would be used?

It would make the already useful New+ much more powerful

### Supporting information

_No response_
Repository: PowerToys
Issue: Korean Translation issue on What's new menu
Labels: Issue-Bug,Area-Localization,Needs-Triage,Issue-Translation

### Microsoft PowerToys version

0.85.0

### Utility with translation issue

Welcome / PowerToys Tour window

### 🌐 Language affected

Korean

### ❌ Actual phrase(s)

GitHub 리포지토리에 대한 자세한 릴리스 정보 보기

### ✔️ Expected phrase(s)

 GitHub에서 자세한 릴리즈 노트 보기

### ℹ Why is the current translation wrong

It's original english phrase is See more detailed release notes on GitHub (In What's new menu)
The translation of actual phrase back into English is 'See more detailed information about a GitHub repository'.