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.

The Boston Area SAS Users Group is hosting free webinars!

Register now at 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

Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!

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

Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!
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

The Boston Area SAS Users Group is hosting free webinars!

Register now at 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

Become an Explorer! Join SAS Analytics Explorers to learn and complete challenges that earn rewards!

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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