sassoftware / sassoftware/sas-copilot
when doing multi step code generation: at some point(usually 3 or 4) the editor is losing the prompts and code that were generated by earlier steps.
@2TomLi is already working on this.
Since Apr 8, 2024.
- Dominant language
- TypeScript
- Stars
- 12
- Forks
- 1
- Avg merge
- 4m
- Merged PRs (30d)
- 1
Description
Describe the bug
when doing multi step code generation: at some point(usually 3 or 4) the editor is losing the prompts and code that were generated by earlier steps.
To Reproduce
- Start creating code in multiple steps as shown below.
/* create a data set dtemp1 with 4 column and 10 observations.
The columns are id of type char, x1,x2 and x3 of type double.
For each row, the values are initialized as follows:
the value of id is the formatted row no. x1 is row no *10. x2 is x1 + 200. x2 is x2 minus x1.
after creating the dataset, print it.
also get the details on the columns
*/
data dtemp1;
length id $10;
do i = 1 to 10;
id = put(i, 2.);
x1 = i * 10;
x2 = x1 + 200;
x3 = x2 - x1;
output;
end;
run;
proc print data=dtemp1;
run;
proc contents data=dtemp1;
run;
/* create a second table called userinput from dtemp1. Keep the first two rows.
add 1000 to x1.
print userinput
*/
data userinput;
set dtemp1 (obs=2);
x1 = x1 + 1000;
run;
proc print data=userinput;
run;
- Now add this prompt and generate code
/* update dtemp1 with the data from userinput. Use id as the by variable
print the final dtemp1 */
The resulting editor is this:
/* create a data set dtemp1 with 4 column and 10 observations.
The columns are id of type char, x1,x2 and x3 of type double.
For each row, the values are initialized as follows:
the value of id is the formatted row no. x1 is row no *10. x2 is x1 + 200. x2 is x2 minus x1.
after creating the dataset, print it.
also get the details on the columns
*/
data dtemp1;
update dtemp1 userinput;
by id;
run;
proc print data=dtemp1;
run;
Note that most of the previous prompts and generated code is wiped out.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
- OS: windows 11
- Version: 0,0.2
Reporter's Organization
Product Management
Additional context
Add any other context about the problem here.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.