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.

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

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

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

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
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

ChrisHemedinger
Community Manager

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

Chris

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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
  • 1208 views
  • 0 likes
  • 2 in conversation