1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why doesn't "IDE %_ININAME" work?

Discussion in 'Support' started by vefatica, Mar 25, 2014.

  1. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    When I
    Code:
    v:\> ide %_ininame
    IDE gives me a message box saying it can't find "v:\%_ininame".
    Why doesn't IDE expand variables on its command line? (BDEBUGGER does, TCC does when it passes arguments to every other "generic file editor" I know of).
     
  2. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    WAD. If you're debugging or editing batch files, you should be using BDEBUGGER. IDE is intended for other types of scripts (Python, Lua, REXX, etc.) where you probably don't want to treat a % as a TCC variable, or to expand variables prematurely.

    If you're trying to edit an .INI file, there's no reason to be doing it in IDE (or BDEBUGGER). You can't use the syntax coloring, and you can't debug it. But if you're *really* determined to do it:

    Code:
    call ide %_ininame
     
  3. vefatica

    Joined:
    May 20, 2008
    Messages:
    7,959
    Likes Received:
    30
    That doesn't make any sense to me. The help says "The IDE command is intended as a generic file editor". Wouldn't you expand variables on the command line of ANY OTHER GENERIC FILE EDITOR? What do you mean by "expand variables prematurely" when you're talking about the names of "other types of scripts (Python, Lua, REXX, etc.)"? We're talking about the names of files (which can be in variables everywhere else in TCC). It would make more sense if BDEBUGGER didn't expand variables on its command line and IDE did (but it's the opposite).

    If a file name is in %VAR, it's expanded in all these cases.
    What's gained by IDE not doing the same? Please give an example.
     
  4. AlterGeek

    Joined:
    Oct 12, 2008
    Messages:
    7
    Likes Received:
    0
    Variable expansion also seems to be treated differently by TCC/LE than by TCC. In the latter, via options cmd, TCSTART / TCEXIT Path can be set to: %localappdata%\JPSoft\ (which is where the TCMD.ini file is by default). However, TCC/LE will Not expand the variable. Granted, it is possible that Win versions are implicated. TCC/LE 13 is running under Win7SP1, and TCC 15 is running under Win8.1
     
  5. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,860
    Likes Received:
    83
    That feature was added to a later version of TCC. New TCC features are not back-ported to TCC/LE.
     

Share This Page