WAD IDE /C does not accept truename of future file

May 20, 2008
3,515
4
Elkridge, MD, USA
On my system %LOC is the directory where batch files not necessarily portable to other systems live. I normally make the directory where my .INI files are the default before I start IDE. The command below
IDE /c %loc\newfile.btm
results in IDE error pop-up: "C:\JPSOFT\%loc\newfile.btm contains an incorrect path".
OTOH expanding %LOC (using the command editing keystroke) results in proper operation.
If I interpret it correctly, all the parser needs to do is variable expansion before passing the command line to IDE, same as it does for any other executable
 
May 20, 2008
11,378
98
Syracuse, NY, USA
On my system %LOC is the directory where batch files not necessarily portable to other systems live. I normally make the directory where my .INI files are the default before I start IDE. The command below
IDE /c %loc\newfile.btm
results in IDE error pop-up: "C:\JPSOFT\%loc\newfile.btm contains an incorrect path".
OTOH expanding %LOC (using the command editing keystroke) results in proper operation.
If I interpret it correctly, all the parser needs to do is variable expansion before passing the command line to IDE, same as it does for any other executable
IDE is an internal command. But I'd still expect its command line to undergo normal parsing. I can confirm your observations. One ramification is that if you

set newtbm=v:\new.btm
ide /c %newbtm

you get a file named "%newbtm" (ouch!)
 
May 20, 2008
11,378
98
Syracuse, NY, USA
IDE is an internal command. But I'd still expect its command line to undergo normal parsing. I can confirm your observations. One ramification is that if you

set newtbm=v:\new.btm
ide /c %newbtm

you get a file named "%newbtm" (ouch!)
And BDEBUGGER acts badly but not quite the same. If I

set newbtm=v:\new.btm
bdebugger /c %newbtm

I get a file named "%newbtm.cmd" (double whammy!).
Code:
v:\> set newbtm=v:\new.btm
 
v:\> bdebugger /c %newbtm
 
v:\> dir /k /m *.cmd
2013-05-30  15:50              0  %newbtm.cmd
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
On my system %LOC is the directory where batch files not necessarily portable to other systems live. I normally make the directory where my .INI files are the default before I start IDE. The command below
IDE /c %loc\newfile.btm
results in IDE error pop-up: "C:\JPSOFT\%loc\newfile.btm contains an incorrect path".
OTOH expanding %LOC (using the command editing keystroke) results in proper operation.
If I interpret it correctly, all the parser needs to do is variable expansion before passing the command line to IDE, same as it does for any other executable


WAD - IDE (and BDEBUGGER) do not expand variables (and never have). Like the other delayed processing commands (DO, FOR, etc.) they pass the command line as-is, and it is up to the batch file to do the parsing & expansion.
 
May 20, 2008
11,378
98
Syracuse, NY, USA
IDE is an external command. But like a number of internal commands, it does not expand variables.
On the contrary!
Code:
v:\> which ide
ide is an internal command
And, for IDE.EXE, TCC expands the command line as it always does for externals.
Code:
g:\tc15> set newbtm=v:\new.btm
 
g:\tc15> del %newbtm
Deleting V:\new.btm
    1 file deleted
 
g:\tc15> ide.exe /c %newbtm
 
g:\tc15> dir /k /m v:\new*
2013-05-30  19:55              0  new.btm
Why must the internal version of the command (BDEBUGGER, too) be lame?
 
May 20, 2008
3,515
4
Elkridge, MD, USA
And in the case of IDE, there is no meaningful 2nd parameter - editing multiple files concurrently with IDE you can see only one at a time, and switching between them is difficult. Regardless, using the hint of invoking the IDE.EXE external directly I executed

alias ide=%@quote[%@path[%_cmdspec]ide.exe]

and now the command which originally was not executed as I thought it would be behaves as I expect it.
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
On the contrary!
Code:
v:\> which ide
ide is an internal command

No! The internal IDE just calls the external IDE.EXE in the TCMD installation directory.

Why must the internal version of the command (BDEBUGGER, too) be lame?

For the same reason you wouldn't want the parser to expand variables in DO or FOR before calling the command.

This is absolutely, positively, NOT going to change -- you're 10+ years too late to alter this syntax.
 
May 20, 2008
3,515
4
Elkridge, MD, USA
Something was wrong in my previous tests, neither ctrl-tab, nor alt-tab had worked. I have not used IDE before this week, had been happy with my 16-b editor... I still like it, but cannot use it on this system. Is there a way to set IDE to indent a new line identically to the one above?
 
  • Like
Reactions: forbin
Dec 29, 2009
32
0
Atlanta, GA
Something was wrong in my previous tests, neither ctrl-tab, nor alt-tab had worked. I have not used IDE before this week, had been happy with my 16-b editor... I still like it, but cannot use it on this system. Is there a way to set IDE to indent a new line identically to the one above?
16 bit editor? And I thought I was old-school!

Still using Brief perhaps?
 
Similar threads
Thread starter Title Forum Replies Date
vefatica What environment variables does IDE need? Support 3
P BDEBUGGER/IDE does not honour VariableExclude Support 2
Kachupp IDE watch references Support 11
T Thanks for the assistance with IDE vs Bdebugger Support 3
vefatica IDE external command syntax color? Support 1
K_Meinhard Small problem in german IDE 26 Support 3
vefatica IDE - when breakpoint is on a blank line? Support 3
Peter Murschall IDE: After undocking the command expansion Window is offended Support 2
Peter Murschall IDE: Ctrl-W is a Harakiri Command ! Support 23
Kachupp ide/bdebugger Support 17
rps IDE/BDEBUGGER ? Support 1
vefatica IDE.EXE's command line? Support 19
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
Peter Murschall v24 IDE/BDEBUGGER won't start Support 9
vefatica IDE stuck on "Insert tabs as spaces" Support 0
Peter Murschall IDE/BDEBUUGER in TCC 22 didn't run Support 7
T Fixed Problem with use of Batch parameters in the IDE Support 1
T Fixed IDE locks up if edit window for running batch is closed Support 6
Peter Murschall IDE destroys Text on Ctrl-U/Ctrl-Shift-U Support 12
C BDEBUGGER/IDE crashing Support 1
vefatica Monospace font in IDE? Support 3
vefatica IDE crashes every time Support 6
R TCC IDE Tabs - inactive tabs hard to see Support 14
vefatica IDE crashing Support 11
vefatica Why doesn't "IDE %_ININAME" work? Support 4
vefatica IDE's dynamic help ... Support 0
vefatica Contuing IDE gripes Support 11
vefatica WAD IDE, output window to foreground Support 3
vefatica Fixed IDE weirdness Support 3
vefatica IDE double-click select? Support 29
vefatica Doesn't IDE auto-indent? Support 3
T bdebugger / ide usage confusion Support 14
vefatica Fixed Font corruption in IDE Support 3
vefatica IDE status bar row/column? Support 0
vefatica An IDE anomaly Support 2
T Associating BTM files with IDE results in DOS box Support 33
S How to? Is it possible for the IDE to start without plugins? Support 3
S Documentation "HELP IDE" - missing reference Support 0
Mordachai Fixed Closing TCMD while IDE + Help Open = Crash Support 7
jwiede ide.exe not launching? Support 13
F No ide.exe or tcmd.exe files - Win7 64bit Support 5
T Syntax highlighting in the IDE Support 8
Frank watch an array variable in ide/bdebugger Support 2
Peter Murschall Is IDE forbidden in TCSTART.BTM ? Support 4
rfaquino TCMD 14.0 IDE Crash Support 7
epement differences in IDE/debugger between v12 and v14 Support 1
Alan Strader Take Command IDE/Debugger has stopped working Support 5
J Fixed IDE search keys don't work in TCMD 13.01.32 Support 3
vefatica IDE watch window Support 1
Stefano Piccardi IDE unexpectedly exits inside this batch file Support 17

Similar threads