Coder Social home page Coder Social logo

Comments (3)

gencay avatar gencay commented on August 20, 2024

@salomartin thanks for the suggestion. In order to send a natural language prompt, initially you need to identify where the culprit is in your code if there is a compilation issue. In that case you can use, ChatGPT: Find problems to ask it to analyze and find the issue.

Are you thinking more of an automated way of doing it? If so, could you elaborate a little bit more on this? I like the idea of enriching our feature set but just want to understand more on your scenario

from vscode-chatgpt.

salomartin avatar salomartin commented on August 20, 2024

In this case I executed python code that gpt had suggested with the vscode run command and got this output in the python debug console. In this case, i just then manually copy-pasted this over to gpt and asked how to fix this issue. It took a few iterations to get it right. If the question to suggest a fix was sent to gpt automatically after running code, it could reduce the iteration time. Of course we could go on from here and get it to apply the fix too, but that'd be a new suggestion already :-)

Output from the debug-console:
Traceback (most recent call last):
File "code_suggested_by_gpt.py", line 34, in
print(extras.Json(results).dumps(indent=2, schema=True))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

from vscode-chatgpt.

flutterrausch avatar flutterrausch commented on August 20, 2024

Runtime errors are maybe a bit too language/version specific?

Maybe compiler errors have a better internal interface in vscode. While programming flutter/Dart, I often get suggestions from before breaking changes. When I insert that code, I get errors in the "problems" tab (bottom) after a second (some dart tooling is used there). Maybe it's similar for other languages/frameworks.

It would be cool, if those error descriptions get feed back directly into a prompt "Repair this problem", or something.

from vscode-chatgpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.