BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.

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.

file.jpg

If I start to type &method , after I have typed &me it guesses I'm typing &just

method.jpg

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.

BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

View solution in original post

3 REPLIES 3
ChrisHemedinger
Community Manager

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

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.
Quentin
Super User

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!autcomplete.jpg

BASUG is hosting free webinars Next up: Mike Sale presenting Data Warehousing with SAS April 10 at noon ET. Register now at the Boston Area SAS Users Group event page: https://www.basug.org/events.
ChrisHemedinger
Community Manager

Thanks for confirming.  I'll pass that on the EG development team so they can investigate.

Chris

It's time to register for SAS Innovate! Join your SAS user peers in Las Vegas on April 16-19 2024.

sas-innovate-2024.png

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.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 745 views
  • 0 likes
  • 2 in conversation