sharjeelyunus/github-issues-dataset huggingface dataset:
Repository: go
Issue: x/website: mod tidy -diff flag missing from https://go.dev/ref/mod#go-mod-tidy
Labels: help wanted,NeedsFix,website

### Go version

go version go1.23.2 darwin/arm64

### Output of `go env` in your module/workspace:

```shell
N/A
```


### What did you do?

I happened to know that `go mod tidy -diff` was [added in 1.23](https://github.com/golang/go/issues/27005) 🎉 , but a quick web search for `go mod tidy` returned https://go.dev/ref/mod#go-mod-tidy, which does not list the new `-diff` flag. It is correctly shown in `cmd/go` help text:

```console
$ go mod tidy -help
usage: go mod tidy [-e] [-v] [-x] [-diff] [-go=version] [-compat=version]
Run 'go help mod tidy' for details.
$ go help mod tidy
usage: go mod tidy [-e] [-v] [-x] [-diff] [-go=version] [-compat=version]

Tidy makes sure go.mod matches the source code in the module.
It adds any missing modules necessary to build the current module's
packages and dependencies, and it removes unused modules that
don't provide any relevant packages. It also adds any missing entries
to go.sum and removes any unnecessary ones.

The -v flag causes tidy to print information about removed modules
to standard error.

The -e flag causes tidy to attempt to proceed despite errors
encountered while loading packages.

The -diff flag causes tidy not to modify go.mod or go.sum but
instead print the necessary changes as a unified diff. It exits
with a non-zero code if the diff is not empty.

The -go flag causes tidy to update the 'go' directive in the go.mod
file to the given version, which may change which module dependencies
are retained as explicit requirements in the go.mod file.
(Go versions 1.17 and higher retain more requirements in order to
support lazy module loading.)

The -compat flag preserves any additional checksums needed for the
'go' command from the indicated major Go release to successfully load
the module graph, and causes tidy to error out if that version of the
'go' command would load any imported package from a different module
version. By default, tidy acts as if the -compat flag were set to the
version prior to the one indicated by the 'go' directive in the go.mod
file.

The -x flag causes tidy to print the commands download executes.

See https://golang.org/ref/mod#go-mod-tidy for more about 'go mod tidy'.
```


### What did you see happen?

The command help also points to the website, which doesn't list the flag.

### What did you expect to see?

`-diff` flag documentation added on the website. 😄 Apologies if this isn't the correct place to file this sort of issue (was just following the directions at the bottom of https://github.com/golang/website/blob/master/README.md#report-issues--send-patches).
Repository: rust
Issue: regression: ArArchiveBuilder can no longer handle output to temporary files managed by Python
Labels: C-discussion

<!--
Thank you for filing a regression report! 🐛 A regression is something that changed between versions of Rust but was not supposed to.

Please provide a short summary of the regression, along with any information you feel is relevant to replicate it.
-->

### Code

I tried this code:

```python
x = ['rustc.EXE', '--print=native-static-libs', '--target', 'x86_64-pc-windows-msvc', '--crate-type', 'staticlib', 'nul', '-o']                                                                    
from tempfile import TemporaryFile()
y = TemporaryFile()  
x += [y.name]
import subprocess 
subprocess.run(x, check=True, text=True)
```

I expected to see this happen: 

```
note: Link against the following native artifacts when linking against this static library. The order and any duplication can be significant on some platforms.

note: native-static-libs: kernel32.lib advapi32.lib ntdll.lib userenv.lib ws2_32.lib dbghelp.lib /defaultlib:msvcrt
```

Instead, this happened: 

```
error: failed to build archive at `C:\Users\Amalia\AppData\Local\Temp\tmpk51p4sru`: failed to rename archive file: Acceso denegado. (os error 5)

error: aborting due to 1 previous error

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Program Files\Python310\lib\subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['rustc.EXE', '--print=native-static-libs', '--target', 'x86_64-pc-windows-msvc', '--crate-type', 'staticlib', 'nul', '-o', 'C:\\Users\\Amalia\\AppData\\Local\\Temp\\tmpk51p4sru']' returned non-zero exit status 1.
```

This breaks librsvg building on MSVC, because I use this technique to [query the `native-static-libs` for the Meson dependency setup](https://gitlab.gnome.org/GNOME/librsvg/-/blob/main/meson/query-rustc.py?ref_type=heads#L67).

I traced the issue to the following pull request: https://github.com/rust-lang/rust/pull/122723

### Version it worked on

It most recently worked on: 1.77.2

### Version with regression

`rustc --version --verbose`:
```
rustc 1.82.0 (f6e511eec 2024-10-15)
binary: rustc
commit-hash: f6e511eec7342f59a25f7c0534f1dbea00d01b14
commit-date: 2024-10-15
host: x86_64-pc-windows-msvc
release: 1.82.0
LLVM version: 19.1.1
```

<!--
Did the compiler crash? If so, please provide a backtrace.
-->

### Backtrace

N/A

<!--
If you know when this regression occurred, please add a line like below, replacing `{channel}` with one of stable, beta, or nightly.


-->

@rustbot modify labels: +regression-from-stable-to-stable -regression-untriaged
cc @sdroege @nirbheek @federicomenaquintero
Repository: angular
Issue: Using a track function directly in the new @for loop is not supported nor compiled
Labels: area: core,P3,bug,core: control flow

### Which @angular/* package(s) are the source of the bug?

core

### Is this a regression?

No

### Description

The following code

```
@for (a of b; track method) {}
```

and having
```
method = (index, item) => { return index }
```

The method is actually not called.

It comes to a surprise because the language service will link properly and everything but it doesn't actually run the tracking method.
For someone who comes from an `*ngFor`, they will blindly switch this `trackBy` to `track` and things will start failing at runtime.

If this is the "norm" then maybe the documentation should be reflected that you have to call `method($index, a)`, but this is not obvious

### Please provide a link to a minimal reproduction of the bug

https://angular-e967ee.stackblitz.io

### Please provide the exception or error you saw

_No response_

### Please provide the environment you discovered this bug in (run `ng version`)

Angular CLI: 17.3.2
Node: 20.11.1
Package Manager: npm 8.5.5
OS: win32 x64

Angular: 17.3.2
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, google-maps, language-service, localize, material
... platform-browser, platform-browser-dynamic, platform-server
... router, ssr

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1703.2
@angular-devkit/build-angular   17.3.2
@angular-devkit/core            17.3.2
@angular-devkit/schematics      17.3.2
@schematics/angular             17.3.2
rxjs                            7.8.1
typescript                      5.2.2
zone.js                         0.14.4

### Anything else?

_No response_
Repository: langchain
Issue: include_raw=True disable streaming
Labels: 🤖:bug

### Checked other resources

- [X] I added a very descriptive title to this issue.
- [X] I searched the LangChain documentation with the integrated search.
- [X] I used the GitHub search to find a similar question and didn't find it.
- [X] I am sure that this is a bug in LangChain rather than my code.
- [X] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).

### Example Code

Hello, there is no way to retrieve the tokens used (usage) with Azure when using streaming and structured_output.

```python
structured_llm = llm.with_structured_output(Joke, include_raw=True)

for chunk in structured_llm.stream("Tell me a joke about cats")
    print(chunk)
```
https://python.langchain.com/docs/how_to/structured_output/



### Error Message and Stack Trace (if applicable)

_No response_

### Description

This code disables streaming. We have to wait for the complete generation to get a response.

Expected behavior: We should be able to use streaming and retrieve the usage metadata at the end.

### System Info

System Information
------------------
> OS:  Linux
> OS Version:  #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct  2 16:16:55 UTC 2
> Python Version:  3.11.10 | packaged by conda-forge | (main, Sep 22 2024, 14:10:38) [GCC 13.3.0]

Package Information
-------------------
> langchain_core: 0.3.12
> langchain: 0.3.3
> langsmith: 0.1.128
> langchain_openai: 0.2.2
> langchain_text_splitters: 0.3.0

Optional packages not installed
-------------------------------
> langgraph
> langserve

Other Dependencies
------------------
> aiohttp: 3.9.5
> async-timeout: Installed. No version info available.
> httpx: 0.27.0
> jsonpatch: 1.33
> numpy: 1.26.4
> openai: 1.52.0
> orjson: 3.10.5
> packaging: 24.1
> pydantic: 2.7.4
> PyYAML: 6.0.1
> requests: 2.32.3
> SQLAlchemy: 2.0.35
> tenacity: 8.5.0
> tiktoken: 0.7.0
> typing-extensions: 4.12.2
Repository: ollama
Issue: Support directly running GGUF files without importing
Labels: feature request

In llama.cpp we can directly run models with `llama-cli -m your_model.gguf ` without having to import the model, It would be great if we can do the same with ollama.
Repository: deno
Issue: VSCode diagnostics for auto-detected JS do not disappear when explicitly correcting the language mode to "JSON"
Labels: needs investigation,lsp

Version: Deno 2.0.0

In VSCode, I hit Ctrl+N to open a new unsaved buffer, then paste some JSON.  VSCode autodetects the language as Javascript, so Deno generates diagnostics about missing semicolons, etc.  Then I manually set language mode to JSON to fix syntax highlighting, yet the Deno diagnostics do not disappear.

Not sure if this is a VSCode bug for still asking Deno for diagnostics when it shouldn't.  Or if it's a Deno bug where it does not remove the old diagnostics once VSCode changes the language mode.

The images below show my editor buffer, my problems pane, and the language mode, plus you can see the tooltip showing that VSCode auto-detected the language as Javascript.

![image](https://github.com/user-attachments/assets/1dc835d7-d50f-47b1-a44e-9a0f841f8061)
![image](https://github.com/user-attachments/assets/a0758fc0-db37-4e8b-97fb-ace99699e6a6)
![image](https://github.com/user-attachments/assets/cf73b794-659f-4983-ae09-8913e32311b8)

Language server init w/version #
```
Starting Deno language server...
  version: 2.0.0 (release, x86_64-pc-windows-msvc)
  executable: C:\Users\abradley\AppData\Local\Microsoft\WinGet\Links\deno.EXE
Connected to "Visual Studio Code" 1.94.2
```
Repository: flutter
Issue: rrect paths draw rects when their width or height is zero
Labels: P2,e: impeller,team-engine,triaged-engine

## reproduction
```c++
TEST_P(AiksTest, NoDimplesInRRectPath) {
  Scalar width = 200.f;
  Scalar height = 60.f;
  Scalar corner = 1.f;
  auto callback = [&]() -> sk_sp<DisplayList> {
    if (AiksTest::ImGuiBegin("Controls", nullptr,
                             ImGuiWindowFlags_AlwaysAutoResize)) {
      ImGui::SliderFloat("width", &width, 0, 200);
      ImGui::SliderFloat("height", &height, 0, 200);
      ImGui::SliderFloat("corner", &corner, 0, 1);
      ImGui::End();
    }

    DisplayListBuilder builder;
    builder.Scale(GetContentScale().x, GetContentScale().y);

    DlPaint background_paint;
    background_paint.setColor(DlColor(1, 0.1, 0.1, 0.1, DlColorSpace::kSRGB));
    builder.DrawPaint(background_paint);

    std::vector<DlColor> colors = {DlColor::kRed(), DlColor::kBlue()};
    std::vector<Scalar> stops = {0.0, 1.0};

    DlPaint paint;
    auto gradient = DlColorSource::MakeLinear(
        {0, 0}, {200, 200}, 2, colors.data(), stops.data(), DlTileMode::kClamp);
    paint.setColorSource(gradient);
    paint.setColor(DlColor::kWhite());
    paint.setDrawStyle(DlDrawStyle::kStroke);
    paint.setStrokeWidth(20);

    builder.Save();
    builder.Translate(100, 100);

    Scalar corner_x = ((1 - corner) * 50) + 50;
    Scalar corner_y = corner * 50 + 50;
    SkRRect rrect = SkRRect::MakeRectXY(SkRect::MakeXYWH(0, 0, width, height),
                                        corner_x, corner_y);
    builder.DrawRRect(rrect, paint);
    builder.Restore();
    return builder.Build();
  };
  ASSERT_TRUE(OpenPlaygroundHere(callback));
}
```

## seen
<img width="721" alt="Screenshot 2024-10-18 at 9 51 44 AM" src="https://github.com/user-attachments/assets/536f18c5-3b4b-4dd1-b0ee-905cfa78a67f">

## expected

<img width="732" alt="Screenshot 2024-10-18 at 9 51 53 AM" src="https://github.com/user-attachments/assets/8e297758-c114-44e3-89b6-d5bb72ad2be6">
Repository: ollama
Issue: Last character being truncated by stop sequence
Labels: bug,needs more info

### What is the issue?

When running inference in raw mode with '\n\n' as a stop sequence, it seems like punctuation is being removed with the stop sequence. I assume this is because of a bug with how partial stop sequences are handled.

### OS

Linux

### GPU

Other

### CPU

AMD

### Ollama version

0.3.11
Repository: ollama
Issue: Return Triggered Stop Sequence
Labels: feature request,api

It would be extremely useful if the API response contained *which* stop sequence was triggered if there are multiple listed. For example, if you have the model's default stop sequence and a custom one which you want to trigger an action, you currently need to carefully choose the text leading up to it so you can determine if it was the custom stop sequence or not. It would be way easier to do this sort of thing if the api simply told you which stop sequence was triggered instead of `"done_reason": "stop"`.
Repository: Python
Issue: there is no recursion folder 
Labels: enhancement

### Feature description

there is no recursion related problems and there is no separate folder.
Repository: electron
Issue: calling setJumpList/setUserTasks silently fails AFTER window creation unless at least one valid call was made BEFORE window creation
Labels: platform/windows,bug :beetle:,has-repro-gist,stale,31-x-y

### Preflight Checklist

- [x] I have read the [Contributing Guidelines](https://github.com/electron/electron/blob/main/CONTRIBUTING.md) for this project.
- [x] I agree to follow the [Code of Conduct](https://github.com/electron/electron/blob/main/CODE_OF_CONDUCT.md) that this project adheres to.
- [x] I have searched the [issue tracker](https://www.github.com/electron/electron/issues) for a bug report that matches the one I want to file, without success.

### Electron Version

31.0.0

### What operating system(s) are you using?

Windows

### Operating System Version

Windows 11 Pro Version	10.0.22631 Build 22631

### What arch are you using?

x64

### Last Known Working Electron version

N/A

### Expected Behavior

`setUserTasks`/`setJumpList` functions can update the Windows jump list with a single call after the BrowserWindow is instantiated

### Actual Behavior

`setUserTasks`/`setJumpList` functions must be called at least once before the BrowserWindow is instantiated, then called a second time afterwards.

### Testcase Gist URL

https://gist.github.com/slyboots/5b3a46ff41f0894e13bac4187b068a90

### Additional Information

There are a few other closed issues concerning similar behavior as this issue (setJumpList/setUserTasks not working), however this is distinctly concerned with the inconsistent behavior of those functions when called based on the timing/number of calls made prior in the application lifecycle.

### Edit:

additional note: the reproduction gist was made using Electron Fiddle to make reproducing on y'alls end easier.
Repository: deno
Issue: Issue with node:readline and/or incompatibility between Deno 2 and Inquirer
Labels: bug,node compat

Hi, sorry to open a vague issue (but there's somewhat of a code repro.) With Deno 2 announcement, devs expect packages targeting Node to work inside Deno. So I received this bug report on Inquirer's repo https://github.com/SBoudrias/Inquirer.js/issues/1574

The repro code is about (minus I think the import which I'm not sure how it'd translate for Deno.)

```js
import { select, confirm } from '@inquirer/prompts';
const answer = await select<string>({
  message: 'Which type of project?',
  choices: ['Docker', 'PHP', 'Laravel', 'Laravel Sail', 'Java', 'Python', 'React', 'Flutter', 'Custom'],
});

console.log(answer); // Docker

const shouldProceed = await confirm({ message: "Do you want to proceed?" }); // Here it ask double Enter to take the confirm answer
console.log("Should proceed?", shouldProceed);
```

And the dev included that screencast

[Screencast from 2024-10-05 23-49-18.webm](https://github.com/user-attachments/assets/6388aff2-1a6d-4da8-ae3b-674842782fd9)

So, to me it looks like a potential issue when readlines run one after the other 🤷🏻 Happy to provide further help, but I understand if it's hard to troubleshoot an underspecified problem (like I have no idea which version of Deno this ran into.) Figure it was still worth a shoutout here in case you're unaware of some node compatibility issues remaining.
Repository: deno
Issue: [nodemon] Internal watch failed: Cannot convert a BigInt value to a number
Labels: bug,node compat

## Version 

```bash
deno --version
deno 2.0.2 (stable, release, x86_64-unknown-linux-gnu)
v8 12.9.202.13-rusty
typescript 5.6.2
```

## My Issue

Ok, i installed Deno today and I opened one of my projects and run `deno task dev`
but I cross with this error from `nodemon`

`[nodemon] Internal watch failed: Cannot convert a BigInt value to a number`

## Screenshot

also I try to run `bun dev` and it worked, but it failed with `deno task dev`

![image](https://github.com/user-attachments/assets/a88a267a-07be-4a4e-b25c-dd8ffdf966ed)

## package.json

```json
  // ...
  
  "scripts": {
    "start": "node app.js",
    "dev": "nodemon app.js",
    "build": "node build.js"
  },

  // ...

  "devDependencies": {
    "nodemon": "^2.0.15"
  },
  "engines": {
    "node": "18.7.0",
    "npm": "8.15.0"
  }
 ```
 
 ## nodemon.json

```json 
{
    "verbose": true,
    "ignore": ["*.test.js", "node_modules"],
    "watch": ["src"],
    "ext": "js json md pug"
}
```
Repository: react
Issue: [Compiler Bug]: Memoizing a debounced function complains about ref access
Labels: Type: Bug,Component: Optimizing Compiler

### What kind of issue is this?

- [ ] React Compiler core (the JS output is incorrect, or your app works incorrectly after optimization)
- [ ] babel-plugin-react-compiler (build issue installing or using the Babel plugin)
- [X] eslint-plugin-react-compiler (build issue installing or using the eslint plugin)
- [ ] react-compiler-healthcheck (build issue installing or using the healthcheck script)

### Link to repro

https://playground.react.dev/#N4Igzg9grgTgxgUxALhAgHgBwjALgAgBMEAzAQygBsCSoA7OXASwjvwFkBPAQU0wAoAlPmAAdNvjiswBQhAC2AUUoAlUvgC8+NWUYA6KGARqSQ8fknSClJjIDyUXAhgnN2hLtwGjJsxPOWdDL4APpgcDAQlJQAKhAAQhC4uApuhggAwmTRAEa6ANb8QpoAfCIBFnJKqqR6cLAwCHRe4ZHRcfxiEhYWKZjI+Db2js4mdQ1NLRFRlAASCEwA5gAWuAA0FT05CMtkAG4sMAOi4PIQScsnG934AL6CANwBt2v4ANoAuo8BUkEErTM4olkqktOl2AgzvxNsUNGViDloAwEPwwtN2gkkil5K8AIwABnxgmuPXeaLasUxIPkHxJ+G+dHEAUauFgbAAPIQmHsSvNohB8AB1HCUQjsgD0XJ5Tzot3EIFuQA

### Repro steps

Attempting to memoize a debounced function that access a ref gives me this react compiler lint violation:
> Ref values (the `current` property) may not be accessed during render. 

However, the underlying function isn't called during render, it's simply referenced, and only called when the memoized, debounced function is called. In my case, it's called in an event handler, which is safe.

### How often does this bug happen?

Every time

### What version of React are you using?

18.3.1
Repository: kubernetes
Issue: [FG:InPlacePodVerticalScaling] Improve allocated resources checkpointing
Labels: sig/node,kind/feature,priority/important-longterm,triage/accepted

There is some low-hanging fruit for improving the checkpointing of allocated resources:

1. When the pod allocation is updated, the Kubelet always calls set allocation at the pod level, but the status manager sets it for each container, calling through to the checkpoint state. This causes the checkpoint file to be written in quick succession for each container in the pod. It would be better to just update the checkpoint once per-pod.
    - set pod allocation for each container https://github.com/kubernetes/kubernetes/blob/e8b59afec65762ec33c683f376d5a1e5959476c2/pkg/kubelet/status/status_manager.go#L254
    - write the checkpoint for each container: https://github.com/kubernetes/kubernetes/blob/master/pkg/kubelet/status/state/state_checkpoint.go#L138
2. Failure to write the checkpoint should be logged, but not block the resize from proceeding with the in-memory cache. The checkpoint is only used on kubelet restart, and the failure state for that looks the same whether or not syncing the pod proceeds. Better to treat the checkpointing as best effort.

/kind feature
/sig node
/priority important-longterm
Repository: transformers
Issue: Add support for Janus model from DeepSeek AI
Labels: New model

### Model description

Janus is an autoregressive framework that unifies multimodal understanding and generation. Unlike previous approaches that use a single visual encoder for both tasks, Janus decouples visual encoding into separate pathways while utilizing a unified transformer architecture for processing. This decoupling addresses the conflict between visual encoder roles in understanding and generation, enhancing flexibility and performance.

Key features:

- Unified framework for multimodal understanding and generation
- Decoupled visual encoding pathways
- Single, unified transformer architecture for processing
- Improved performance in multimodal understanding tasks
- Flexibility to select optimal encoding methods for each component

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

The Janus model is developed by DeepSeek AI. Here are the relevant links for implementation:

Paper: [Janus: Bridging the Gap Between Multimodal Understanding and Generation](https://arxiv.org/pdf/2410.13848)
GitHub repository: [deepseek-ai/Janus](https://github.com/deepseek-ai/Janus)
Repository: flutter
Issue: Audit GN flags that are not used in any checked-in CI configuration
Labels: P3,c: tech-debt,team-engine,triaged-engine,e: engine-tool

Forked from https://github.com/flutter/flutter/issues/156909.

Today, we have _many_ GN flags across the project. Some are load-bearing, some are debug only, some are likely unused.

We should audit what flags are invoked by CI configurations checked into [`engine/ci/builders`](https://github.com/flutter/engine/tree/main/ci/builders). @zanderso mentioned that [`engine_build_configs/bin/check.dart`](https://github.com/flutter/engine/blob/main/tools/pkg/engine_build_configs/bin/check.dart) might be a starting point (not where the code would live, but as an example) for building such a diagnostic tool.

I'd also be supportive as adding it as a (hidden by default) `et audit` command FWIW.