How to? Frozen session tab with "ERROR: The file is either empty or does not contain the valid choices."

Jul 23, 2014
37
0
I've been seeing this error here and there, and I'm wondering if there's a way around it?

An example when compiling code with Ant (only the last line matters. The rest are just for context):

[javac] Compiling 31 source files to R:\jeffy\programming\build\CLASSES
[javac] R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\examples\com\github\aliteralmind\codelet\examples\for_testing_only\TestingFileSysPropFailure.java:36: error: class TestingFileSysPropSuccess is public, should be declared in a file named TestingFileSysPropSuccess.java
[javac] public class TestingFileSysPropSuccess {
[javac] ^
[javac] R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\examples\com\github\aliteralmind\codelet\examples\for_testing_only\TestingFileSysPropSuccess.java:36: error: duplicate class: com.github.aliteralmind.codelet.examples.for_testing_only.TestingFileSysPropSuccess
[javac] public class TestingFileSysPropSuccess {
[javac] ^
[javac] 2 errors
BUILD FAILED
R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\build.xml:112: The following error occurred while executing this line:
R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\build.xml:116: The following error occurred while executing this line:
R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\build.xml:122: The following error occurred while executing this line:R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\build.xml:127: The following error occurred while executing this line:
R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\z_build\ant_sub_files\compile_examples.xml:5: The following error occurred while executing this line:
R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\z_build\ant_sub_files\compile_examples.xml:9: The following error occurred while executing this line:
R:\jeffy\programming\sandbox\z__for_git_commit_only\codelet\z_build\ant_sub_files\compile_examples.xml:18: Compile failed; see the compiler error output for details.Total time: 13 seconds
ERROR: The file is either empty or does not contain the valid choices.

Whenever this "The file is either empty or does not contain the valid choices" error appears, the tab is frozen and you need to close the tab and reopen it. You can't cancel it with Ctrl+C

Take Command itself is not frozen, and restarting the tab is possible. I'm wondering if there is a way to prevent this, or to get around it.

Thank you!
 
Last edited:
May 20, 2008
11,414
99
Syracuse, NY, USA
Does the "ant" (or whatever it's called) program terminate (does the TCC prompt return)? If "no", I doubt TCC/TCMD can do anything about it.
 
Jul 23, 2014
37
0
I've run these tasks thousands of times in TCC/LE, and these tasks always exited.

In Take Command, they consistently freeze like this. I can't honestly say every time yet, but a lot.
 
Jul 23, 2014
37
0
Ok. I understand.

Is there any way beyond Ctrl+C, or closing the tab entirely, to unfreeze this, and get back to the command prompt?
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
So.... this program gorks with an error message in the full version of TCC, but works in TCC/LE...? That's very odd.

I'm not clear on what you're doing that produces this error. What is the last command that you type before seeing all this gribble? Does that command launch a program or a batch file? (The WHICH command will tell you.) If it's a batch file, are you able to post it here?
 
Jul 23, 2014
37
0
Okay. I can faithfully reproduce it, but unfortunately it requires that you install the JDK and Ant (http://ant.apache.org/).

Once Ant is installed, use the two files I pasted below. Save them in the same directory, and execute "ant" from that directory, via Take Command.

Watch this video for a demonstration: http://screencast.com/t/JgbWSFX31


Test.java

Code:
public class Test  {
    public static final void main(String[] ignored)  {
        x
    }
}

build.xml

HTML:
<project name="take_command_error_test" default="compile" basedir=".">
    <target name="compile" description="...">
        <javac srcdir="." destdir="." listfiles="true" includeantruntime="true"
            includes="Test.java"/>
    </target>
</project>
 
May 20, 2008
11,414
99
Syracuse, NY, USA
Ok. I understand.

Is there any way beyond Ctrl+C, or closing the tab entirely, to unfreeze this, and get back to the command prompt?
It would seem that the app in question (ant?) is hung ... won't exit. If it (the hung app) responds to Ctrl-C, that's the best scenario I can think of. Does Ctrl-C terminate the hung app and return the TCC prompt?
 
Jul 23, 2014
37
0
It works in Console2:
v8CTzVL.jpg


It works in PowerCommand:

ZraGSko.jpg


And, as I mentioned before, it's also worked in TCC/LE for years.
 

Charles Dye

Super Moderator
Staff member
May 20, 2008
4,466
88
Albuquerque, NM
prospero.unm.edu
I get the same results in every shell I've tried.

Code:
C:\Ant>ver /r

TCC  16.03.55  Windows XP [Version 5.1.2600]
TCC Build 55  Windows XP Build 2600  Service Pack 3
Registered to Charles Dye - 5 System License

C:\Ant>ant
Buildfile: C:\Ant\build.xml

compile:
  [javac] Compiling 1 source file to C:\Ant
  [javac] C:\Ant\Test.java
  [javac] C:\Ant\Test.java:3: error: not a statement
  [javac]  x
  [javac]  ^
  [javac] C:\Ant\Test.java:3: error: ';' expected
  [javac]  x
  [javac]  ^
  [javac] 2 errors

BUILD FAILED
C:\Ant\build.xml:4: Compile failed; see the compiler error output for details.

Total time: 1 second

C:\Ant>

Code:
C:\Ant>ver /r

TCC  15.01.58  Windows XP [Version 5.1.2600]
TCC Build 58  Windows XP Build 2600  Service Pack 3
Registered to Charles Dye - 5 System License

C:\Ant>ant
Buildfile: C:\Ant\build.xml

compile:
  [javac] Compiling 1 source file to C:\Ant
  [javac] C:\Ant\Test.java
  [javac] C:\Ant\Test.java:3: error: not a statement
  [javac]  x
  [javac]  ^
  [javac] C:\Ant\Test.java:3: error: ';' expected
  [javac]  x
  [javac]  ^
  [javac] 2 errors

BUILD FAILED
C:\Ant\build.xml:4: Compile failed; see the compiler error output for details.

Total time: 1 second

C:\Ant>

Code:
C:\Ant>ver /r

TCC LE  13.06.77  Windows XP [Version 5.1.2600]
TCC LE Build 77  Windows XP Build 2600  Service Pack 3

C:\Ant>ant
Buildfile: C:\Ant\build.xml

compile:
  [javac] Compiling 1 source file to C:\Ant
  [javac] C:\Ant\Test.java
  [javac] C:\Ant\Test.java:3: error: not a statement
  [javac]  x
  [javac]  ^
  [javac] C:\Ant\Test.java:3: error: ';' expected
  [javac]  x
  [javac]  ^
  [javac] 2 errors

BUILD FAILED
C:\Ant\build.xml:4: Compile failed; see the compiler error output for details.

Total time: 1 second

C:\Ant>

Code:
C:\Ant>ver

Microsoft Windows XP [Version 5.1.2600]

C:\Ant>ant
Buildfile: C:\Ant\build.xml

compile:
  [javac] Compiling 1 source file to C:\Ant
  [javac] C:\Ant\Test.java
  [javac] C:\Ant\Test.java:3: error: not a statement
  [javac]  x
  [javac]  ^
  [javac] C:\Ant\Test.java:3: error: ';' expected
  [javac]  x
  [javac]  ^
  [javac] 2 errors

BUILD FAILED
C:\Ant\build.xml:4: Compile failed; see the compiler error output for details.

Total time: 1 second

C:\Ant>

If you're seeing different results in standalone TCC versus TCC/LE, it is almost certainly because they are configured differently. Things to look for: different aliases, different environment variables, different special characters (SETDOS), and different .INI options such as CmdVariables, DelayedExpansion, DuplicateBugs, NoClobber, and PathExt.
 
Jul 23, 2014
37
0
I uninstalled, eliminated the AppData/Local/JPSoft directory and my TCSTART.bat file, restarted my computer, installed Take Command again, and the same thing is happening--frozen with "invalid choices". This happens both in a tab window, and in a "detached" window.

WHICH ANT responds with

ANT is a batch file : C:\applications\programming\apache-ant-1.8.1\bin\ANT.bat
:bawling:

I don't know if I've said this, but I'm on Windows 7, 32 bit.

Just for completeness sake, here are all my environment variables (output of "set"):


Code:
ALLUSERSPROFILE=C:\ProgramData
ANT_HOME=C:\applications\programming\apache-ant-1.8.1
APPDATA=C:\Users\jeffy\AppData\Roaming
APR_ICONV1_PATH=C:\applications\programming\collabnet_subversion_edge\bin\iconv\
asl.log=Destination=file;OnFirstLog=command,environment
CLASSPATH=.;C:\applications\programming\apache-ant-1.9.4\lib\apache-ant-1.9.4.jar;C:\applications\programming\commons-collections4-4.0\commons-collections4-4.0.jar;C:\applications\programming\commons-io-2.4\commons-io-2.4.jar;C:\applications\programming\commons-lang3-3.3.2\commons-lang3-3.3.2.jar;C:\applications\programming\guava-16.0.1.jar;C:\applications\programming\jdebugtool.jar;C:\applications\programming\jdk_7_51\lib\tools.jar;C:\applications\programming\junit-4.11\*;R:\jeffy\programming\build\CLASSES;R:\jeffy\programming\sandbox\notmine\dependency_jars\*;R:\jeffy\programming\sandbox\notmine\ez-vcard\target\classes;R:\jeffy\programming\sandbox\notmine\ez-vcard\target\test-classes;C:\applications\programming\maven-ant-tasks-2.1.3.jar
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=KERMIT-THE-FROG
ComSpec=C:\applications\utilities\take_command_16\TCC.EXE
CW_UPDATE=Y
DFSTRACINGON=FALSE
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Users\jeffy
JAVA_HOME=C:\applications\programming\jdk_7_51
LOCALAPPDATA=C:\Users\jeffy\AppData\Local
LOGONSERVER=\\KERMIT-THE-FROG
M2=C:\applications\programming\apache-maven-3.2.2\bin
M2_HOME=C:\applications\programming\apache-maven-3.2.2
MACRO_DIR=R:\jeffy\programming\sandbox\macros\macro_scheduler\
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=C:\applications\programming\;C:\applications\programming\python_341\Lib\;C:\applications\programming\python_341\;C:\applications\programming\python_341\Scripts\;C:\applications\programming\python_341\Scripts;C:\applications\programming\collabnet_subversion_edge\bin\;C:\applications\programming\collabnet_subversion_edge\Python25\;.;C:\Program Files\Common Files\ArcSoft\Bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\Windows Live\Shared;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\system32;C:\applications\audio\LilyPond\usr\bin;C:\applications\internet\LinkChecker;C:\applications\programming\DependencyFinder-1.2.1-beta4\bin;C:\applications\programming\apache-ant-1.8.1\bin;C:\applications\programming\apache-maven-3.1.1\bin;C:\applications\programming\gradle-1.9\bin;C:\applications\programming\jdk_7_51\bin;C:\applications\programming\unix_utils\usr\local\wbin\;C:\applications\utilities\tcc_le\;C:\applications\video\quicktime\QTSystem\;C:\Program Files\TortoiseSVN\bin;C:\applications\programming\apache-maven-3.2.2\bin;c:\applications\gnu_pg\pub
PATHEXT=.SCM;.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 23 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=1706
ProgramData=C:\ProgramData
ProgramFiles=C:\Program Files
PSModulePath=C:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
PYTHONHOME=C:\applications\programming\python_341
PYTHONPATH=.;C:\applications\programming\;C:\applications\programming\python_341\Lib\;C:\applications\programming\python_341\;C:\applications\programming\python_341\Scripts\;C:\applications\programming\python_341\Scripts;
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\Windows
TCMD=C:\applications\utilities\take_command_16\tcmd.exe
TCMDVER=16.03.55
TEMP=C:\Users\jeffy\AppData\Local\Temp
TMP=C:\Users\jeffy\AppData\Local\Temp
TRACE_FORMAT_SEARCH_PATH=\\NTREL202.ntdev.corp.microsoft.com\4F18C3A5-CA09-4DBD-B6FC-219FDD4C6BE0\TraceFormat
USERDOMAIN=kermit-the-frog
USERNAME=jeffy
USERPROFILE=C:\Users\jeffy
windir=C:\Windows

I just noticed that "C:\applications\utilities\tcc_le\" is in the path, but that directory is empty. I uninstalled TCC/LE entirely, as it was causing conflicts with Take Command.
 
Similar threads
Thread starter Title Forum Replies Date
S Debugging Session Hang Support 7
P Run as Admin tab in non-elevated Take Command session? Support 9
rps Unalias * hangs TCC session Support 2
vefatica TCC window caption in elevated session? Support 5
S TCC 14.0 disappears from RDP session Support 3
M How to? Run the control panel from a TCC session... Support 2
Mordachai How to capture all console output from a TCMD session? Support 4
vefatica BTM file hoses logon session Support 12
vefatica Elevated session and UpdateTitle? Support 3
M How to? Save the session log from a batch file? Support 5
A Redirecting TCC output to a different RDP Session Support 6
vefatica Tab (^t) in @FILEWRITE's text Support 2
D TCC tab detaching & restarting Support 3
Joe Caverly Changing the TAB key Support 10
fpefpe bash.exe as a tab Support 0
C How to? Mouse support in WSL when in Take Command Tab Support 2
P How to enable \ with tab completion Support 4
Joe Caverly DrawVLine results different in TCMD tab and detached TCC Support 11
Joe Caverly Tab from clipboard Support 6
Joe Caverly Clone a TCC Tab Support 9
R New Cloud Storage Tab in TCC options causing problems Support 0
CWBillow PowerShell tab as Admin Support 2
vefatica TYPE resets console tab settings Support 14
CWBillow TCMD PowerShell Tab elevated Support 6
CWBillow Take Command tab as PowerShell Support 3
Fross Tab Question Support 6
CWBillow TCMD Tab Defs Support 4
L WAD In console, tabs are rendered with non-uniform tab-stop spacing Support 16
Emilio III TCMD Tab titles on Insider Windows Support 2
CWBillow Powershell tab in TCMD? Support 2
Phileosophos Startup tab layout Support 2
M How to? How to set a default TITLE for newly opened tab? Support 2
R How to? Change TCMD tab font size in window menu Support 3
D Get tab position and size Support 6
C Running PowerShell_ISE in a Tab Support 7
D How cut in TCC tab window Support 5
C How to? run a BTM in elevated, inv tcc tab window Support 9
D Take Command tab only uses half of window Support 1
rps Tab clone problem Support 2
C MONITOR commands alter tab title when triggered Support 0
D Tab completion differences with cmd.exe Support 3
H lua Causes Take Command Tab to Exit Support 5
vefatica Tab completion? Support 4
D How to? How to show variables expanded in the log tab Support 3
I tab completion with directory commands Support 7
R Fixed v17.0.54 Tab->COMSPEC Dialog Box Issue Support 2
vefatica Fixed Crash removing toolbar tab Support 1
I v16 Spawning a PowerShell tab Support 3
Jay Sage Getting Quote Characters into a Toolbar Tab Support 12
Jay Sage "New Tab" Strangeness Support 2

Similar threads