Skip to content
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

After the SAS code is run, the actual number of lines of code corresponding to the console identifying the code problem is incorrect. #1347

Open
zby909 opened this issue Jan 3, 2025 · 0 comments
Assignees

Comments

@zby909
Copy link

zby909 commented Jan 3, 2025

Describe the bug
When I use %INC to introduce other SAS files in the SAS code I write, if there is an error in the running result, the location of the error is incorrect.

Steps to reproduce
Steps to reproduce the behavior:

It can be guaranteed: aaa.sas does not actually exist, but f.sas does exist

image
image

Expected behavior
Hope to achieve: When the file introduced by %include takes effect, if other errors occur, the error line can be correctly located.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment (please complete the following information):
Client OS: [e.g. Windows 10]
Extension version: [v1.13.0]
SAS version: [sas9.4 com]

Additional context
this log:
3 SAS 系统 2025年 1月 3日 星期五 下午05时37分00秒
23 /** LOG_START_INDICATOR **/
24 title;footnote;ods all close;
25 ods graphics on;
26 ods html5(id=vscode) path="C:\Users\BAOYI~1.ZHA\AppData\Local\Temp\SAS Temporary Files_TD61056_JANUS-GZ-150_\Prc2"
26 ! style=Ignite options(bitmap_mode='inline' svg_mode='inline') body="cc7d145d-7c55-44d7-86a4-dc6f6ded737f.htm";
WARNING: 没有找到样式“IGNITE”;将改用样式“HTMLBlue”。
NOTE: 正在写入 HTML5(VSCODE) Body(主体)文件: cc7d145d-7c55-44d7-86a4-dc6f6ded737f.htm
27 %let _SASPROGRAMFILE = %nrquote(%nrstr(d:\code\data\vscodedata\test.sas));
28 %INC "f.sas";
Current Program File: d:\code\data\vscodedata\test.sas
Current Program File: d:\code\data\vscodedata\test.sas
NOTE: 数据集 WORK.A 有 1 个观测和 0 个变量。
NOTE: “DATA 语句”所用时间(总处理时间):
实际时间 0.00 秒
CPU 时间 0.00 秒

33
34 data bbb;
35 a='hello wordbbb123';
36 b='hello wordbbb123';
37 run;
NOTE: 数据集 WORK.BBB 有 1 个观测和 2 个变量。
NOTE: “DATA 语句”所用时间(总处理时间):
实际时间 0.00 秒
CPU 时间 0.00 秒

38
39 %INC "aaa.sas";
WARNING: 物理文件“C:\Windows\system32\aaa.sas”不存在。
ERROR: 无法打开 %INCLUDE 文件 aaa.sas。
40
41 data aaa;
42 a='hello wordbbb123';
43 b='hello wordbbb123';
44 run;
NOTE: 数据集 WORK.AAA 有 1 个观测和 2 个变量。
NOTE: “DATA 语句”所用时间(总处理时间):
实际时间 0.00 秒
CPU 时间 0.01 秒

45
46 ;';";*/;run;quit;ods html5(id=vscode) close;
47
48 %put --vscode-sas-extension-submit-end--;

@zby909 zby909 added the bug label Jan 3, 2025
@scnwwu scnwwu removed the bug label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants