-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
small issue within dent on python #30
Comments
Here's the whole class and I'm trying to paste the class and the MODAL but leave the invoke function and it's indenting the class and the MODAL in this instance this is another test I did not the above one
` |
Yeah I'm not really sure uh I could send you a screen video if it would help |
The main thing is it doesn't really work right when you're pasting a different sections of an operator with you know MODAL and execute and I invoke it it should work in every instance no matter what you come across otherwise it's kind of a confusing hindrance he should put it through GPT and just you know spend a day tackling it this really is a gift to the world I appreciate your stab at it and stuff so far I know you could probably do it just ask GPT to sync outside of the box you know like come up with a tell it specifically come up with other ways we could approach how I'm doing this I really appreciate you providing it though that gives me a starting point let me know if you need help i'll I'll help you tackle it |
If you want, sure. It sounds like those issues above, though. In short, this extension's indentation algorithm is just looking to see if you pasted above an "ending block" (like a closing } or something). If you did, it indents a level deeper than that. Otherwise it indents on the same level as the next line. Python doesn't have those at all, though, so it's always indenting to the same level as the next line. You'd need a full-blown Python language server for it to be more intelligent. Maybe give those issues a read and see if that makes more sense. |
Oh Karen busy today trying to figure out a blender operator but I'll go ahead and uh see what I could come up with tomorrow as far as some new ideas I'm usually pretty good at figuring out workarounds you can always put a note 2 on your front page saying hey this isn't perfect if another programmer wants to get involved in developing this because you know this is a really important thing that really sucks having to indent code every time you paste.. |
should've been O K I don't know why it said O Karen... |
Yeah there's a note about this under "Limitations" in the readme... |
Yeah do you know how to use GPT 4 it's great at coming up with new angles on thing and logic you should really throw it in there and see if there's a way you could get around limitations |
ChatGPT isn't going to give you a good solution to this because it's not really a solvable problem. Not in this context, at least. You're looking for a Python language server that can format your code. You're welcome to "throw it in there" and see what it gives you, though. PRs welcome ;) |
Yeah, I work with GPT all the time. Building up my blender add_on. It's one
of the biggest in the world and has some genius things so I definitely know
it could figure out even the toughest issues. So I'll try that and see what
I come up with and see if I could help you figure out a game plan. Because
indent on paste, one of the most important automations ever.... Thanks for
caring about your product I really appreciate that.
…On Wed, Sep 27, 2023, 12:34 PM Ken ***@***.***> wrote:
ChatGPT isn't going to give you a good solution to this because it's not
really a solvable problem. Not in this context, at least. You're looking
for a Python language server that can format your code. You're welcome to
"throw it in there" and see what it gives you, though. PRs welcome ;)
—
Reply to this email directly, view it on GitHub
<#30 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWFQGIKW4H2XQMJND2I3T5TX4R5TXANCNFSM6AAAAAA5IOQFYQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
this python code isn't pasting right all the way just a very top line of the if statement is indented I have to put my mouse cursor next to the I and if and press shifting tab to indent it after pasting otherwise it works perfectly just an idea you know if you're not going to do it I'll do it later or something but I was thinking you could put it in GPT 4 and have it help you design this better for Python it shouldn't take that long if you're a really good programmer but GPT 4 because you have a easier time
The text was updated successfully, but these errors were encountered: