continue
continue copied to clipboard
getting started tutorial (continue_tutorial.py) leaves me clueless
Before submitting your bug report
- [X] I believe this is a bug. I'll try to join the Continue Discord for questions
- [X] I'm not able to find an open issue that reports the same bug
- [X] I've seen the troubleshooting guide on the Continue Docs
Relevant environment info
- OS: Ubuntu Linux 22.04
- Continue: 0.0.37
- IDE: PyCharm
Description
Step 2 of the tutorial says
"Use the keyboard shortcut [ ⌃ J ] to select the code..."
but when I t press ^ and j (or shift-j because the text shows the letter in caps) i only get a dialog asking me if i want to edit a non project file and if I accept with ok i just get a ĵ
I also tried to replace the "^" with a shift, clearly I can not double shift then to press shift and J in CAPS as the text says.
Looking at the keymap in settings there is actually no shortcut for anything in continue starting with "^" but some seems to start with CTRL.
But also when i try to enter CTRL-J instead of "^ J" I dont get any further.
I get a tab where I can enter question, but then I get only the reply "I'm sorry, but you haven't provided any code for me to analyze. Please provide the code you're referring to and I'll be happy to help you understand what it does."
The tutorial says in step 1 "highlight the function..." - but it's not clear if I should just set the cursor on the function name - which highlights it - or if i should "select the whole code of the function" which is something different.
It doesn't get clearer when in Step2 it's said that pressing "^ J" will "select" the text.
But in any case I tried both - just setting the cursor onto the function name so PyCharm highlights it and then pressing ctrl-j - and i treid selecting the whole text of the function and press ctrl-j.
In both cases I only get the above reply. No result because
To reproduce
- start the idea the first time after installing the plugin
- see the continue_tutorial.py in the editor which appears tp be autokmatically loaded
- follow the instructions in Step 1
- press "^" and "j"
Log output
No response
Additional Info:
maybe the ^ vs CTRL confusion has something to do with the fact that I have a german keyboard, so it's really possible for me to press ^ and j at the same time without using shift - because on an american keyboard has the ^ at SHIFT-6 - but even after getting around this, I cannot get continue to do something for me in step 3.
I kept trying out some more things.
It seems like the problem that even after having found out that I must press CTRL-j seems to be caused by the fact that continue_dev does not update the context information in the tool window while the tool window is opened, even if i try to restart with "New session" and a new empty prompt appears, pressing nof CTRL-j in the editor view, with code selected does not hand that code over to the continue_dev tool window / context.
Only after I code the tool window completely once, and then do the select text, ctrl-j process again, the code gets handed over to continue_Dev and the tools window.
So eventually I got that tutorial running, but I think the wording could be much clearer, and maybe there is also a bug in how continue_dev communicates with the IDE / editor window.
the wording should say ctrl-j instead of "^ J " and it should say "select the whole code of the function" in Step 1 and should use a different word than "select" in step 2 - because we already selected the code, what happens there is not a text selection in the usual UI sense, it's chosing the selected text/code to be handed over to continue_dev as context for analysis. Maybe in short it could say just "chose".
At least for me with this changed wording, I could have completed the tutorial parts 1 and 2 in 3 minutes - now I have been busy with figuring things out for half an hour.