You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the "Add Comment" feature on highlighted SAS code, the comments are added but the original SAS code highlighted is also changed at the same time the comments are added.
To Reproduce
Steps to reproduce the behavior:
I generated SAS code from comments using the following comments - /* sashelp.class table printed and sorted by age */
Accepted the option that gave me this output:
data class_sorted;
set sashelp.class;
proc sort data=class_sorted;
by age;
run;
proc print data=class_sorted;
run;
Highlighted the above code and selected "Add Comments"
The result was a new version of the code with comments. You can see that the code has been re-structured.
/* Sort the class dataset by Age */
data class_sorted;
set sashelp.class;
run;
/* Sort class_sorted dataset by Age */
proc sort data=class_sorted;
by age;
run;
/* Print the class_sorted dataset */
proc print data=class_sorted;
run;
Expected behavior
I wouldn't expect the code structure to be changed. If this is expected, using this feature on tested code would require additional testing if code is to be changed and would create more effort when building SAS programs.
Desktop (please complete the following information):
I had a similar issue. I asked for comments on this data step:
data testset;
set sashelp.class;
rename name = var1
age = var2
height = var3;
/* weight = var4
sex = var5 */
run;
and got this back:
/* Renaming variables and excluding weight and sex variables */
data testset;
set sashelp.class(rename=(name=var1 age=var2 height=var3));
/* weight = var4
sex = var5 */
run;
It didn't consistently give this result, but after trying it quite a few times, it seemed that most of the responses had problems.
Describe the bug
When using the "Add Comment" feature on highlighted SAS code, the comments are added but the original SAS code highlighted is also changed at the same time the comments are added.
To Reproduce
Steps to reproduce the behavior:
I generated SAS code from comments using the following comments
- /* sashelp.class table printed and sorted by age */
Accepted the option that gave me this output:
Highlighted the above code and selected "Add Comments"
The result was a new version of the code with comments. You can see that the code has been re-structured.
Expected behavior
I wouldn't expect the code structure to be changed. If this is expected, using this feature on tested code would require additional testing if code is to be changed and would create more effort when building SAS programs.
Desktop (please complete the following information):
Version: 1.88.0 (system setup)
Commit: 5c3e652f63e798a5ac2f31ffd0d863669328dc4c
Date: 2024-04-03T13:26:18.741Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.19045
The text was updated successfully, but these errors were encountered: