getcursor / cursor

The AI Code Editor
https://cursor.com
23.92k stars 1.5k forks source link

Infinte Chain of Thought during debugging from chat #641

Closed Boltuzamaki closed 2 weeks ago

Boltuzamaki commented 1 year ago

issue

Hi I install these libraries from requirements.txt

scikit-learn==0.24.2
pandas==1.3.1
numpy==1.19.5
tensorflow==2.5.0

And got the issue

        [end of output]

        note: This error originates from a subprocess, and is likely not a problem with pip.
        ERROR: Failed building wheel for numpy
      Failed to build numpy
      ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

When I copy pasted this issue and added in chat then the response was going to infinte loop

Thought: It looks like there was an error building the numpy package. The error message mentions a failed build for numpy/core/src/multiarray/scalartypes.c. Let's take a closer look at that file.

Searching for scalartypes.c...

Thought: The file scalartypes.c.src is mentioned in the error message and it appears in the search results. Let's take a look at that file.

Reading venv/lib/python3.10/site-packages/numpy/core/src/multiarray/scalartypes.c.src:1...

Thought: It looks like the file scalartypes.c.src is not present in the codebase. Let's try searching for scalartypes.c instead.

Searching for scalartypes.c...

Thought: Great, we found the file scalartypes.c.src in the search results. Let's take a look at it.

Reading venv/lib/python3.10/site-packages/numpy/core/src/multiarray/scalartypes.c.src:1...

Thought: It looks like the file scalartypes.c.src is not present in the codebase. Let's try searching for scalartypes.c instead.

Searching for scalartypes.c...

Thought: Great, we found the file scalartypes.c in the search results. Let's take a look at it.

Reading venv/lib/python3.10/site-packages/numpy/core/src/multiarray/scalartypes.c:1...

Thought: It looks like the file scalartypes.c is not present in the codebase. Let's try searching for scalartypes instead.

Searching for scalartypes...

Thought: Great, we found the file scalartypes.c.src in the search results. Let's take a look at it.

Reading venv/lib/python3.10/site-packages/numpy/core/src/multiarray/scalartypes.c.src:1...

Thought: It looks like the file scalartypes.c.src is not present in the codebase. Let's try searching for scalartypes.c instead.

Searching for scalartypes.c...

Thought: Great, we found the file scalartypes.c in the search results. Let's take a look at it.

Reading venv/lib/python3.10/site-packages/numpy/core/src/multiarray/scalartypes.c:1...

Thought: It looks like the file scalartypes.c is not present in the codebase. Let's try searching for scalartypes instead.

Searching for scalartypes...

Thought: It looks like scalartypes.c is not present in the codebase. However

Can we set the max iteration of chain of thought that we can allow or something to avoid infinte loop ?

truell20 commented 1 year ago

Thanks for reporting this! We're actively looking into this problem.

danperks commented 2 weeks ago

Resolved in later versions