Hi All,
I just noticed having an odd problem with EG code autocomplete. It seems to be off by one.
So if I type &file and hit space, it selects &extension, and replaces it.
If I start to type &method , after I have typed &me it guesses I'm typing &just
Any idea what could be going wrong? I have quit and restarted EG. And turned autocomplete off and on. Seems to be happening only in one program in the project.
Thanks,
--Q.
Hi Quentin,
It looks like you have some "interesting" macro variables at least as far as EG detects (with "Fileref|Filename|Filepath"). Still could be an off-by-one issue in the editor, but perhaps only with your "special mix" of macro variables?
Chris
Hi Quentin,
It looks like you have some "interesting" macro variables at least as far as EG detects (with "Fileref|Filename|Filepath"). Still could be an off-by-one issue in the editor, but perhaps only with your "special mix" of macro variables?
Chris
You are right Chris. I should have paused to guess at why the autocomplete thought there were some odd macro vars. I'm in the habit of commenting my macro variables as below:
%global file /* Fileref|Filename|Filepath/filename */ method ;
While SAS respects those comments, looks like EG autocomplete word scanner (?) thinks everything before the semicolon is the name of a macro var, as in below simple example.
Guess some of that junk was tripping up how it autcompletes, causing the off-by-one (not shown below). When I took out the comments, it started working again.
Thanks much!
Thanks for confirming. I'll pass that on the EG development team so they can investigate.
Chris
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.