-- Are you using the
latest source or the last release (0.8)?
-- It would be highly unusual for -v:3 not to show additional output. Also, it would be unusual for -reveal-internal-exceptions to leave the message as "COBRA INTERNAL ERROR / Argument Exception / ..." instead of dumping the exception stack to the console. Consider this program:
class X
def main is shared
pass
%% throw
When run from the command line as:
cobra -v:3 -reveal-internal-exceptions internal-error.cobra > r 2>&1
The output captured in r is:
Cobra Command Line 0.8.0 post-release
Copyright (C) 2003-2008 by Cobra Language LLC.
OS Version: Microsoft Windows NT 5.1.2600 Service Pack 2
CLR Platform: .NET
CLR Version: 2.0.50727.3053
Current Directory: C:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source
Current Exe: C:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\cobra.exe
Option Dictionary:
reveal-internal-exceptions: true
verbosity: 3
contracts: 'inline'
correct-source: Set<of String>['none']
debugging-tips: true
embed-run-time: false
include-asserts: true
include-nil-checks: true
include-tests: true
include-traces: true
number: 'decimal'
Paths:
internal-error.cobra
Adding reference to Cobra.Lang.dll
Reading assembly: mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 at C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll
Reading assembly: System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 at C:\WINDOWS\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll
Final assembly reference list:
0. Cobra.Lang.dll
Loading reference: Cobra.Lang.dll
Reading assembly: Cobra.Lang, Version=0.8.0.1, Culture=neutral, PublicKeyToken=null at C:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\Cobra.Lang.dll
Noting C:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CobraInfo.cs
Parsing internal-error.cobra
Unhandled Exception: Cobra.Lang_ert_bdc3941bd5a2d15da53a1dea2c6c8319.AssertException:
sourceSite = C:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CobraParser.cobra:577 in Parser.compilerDirective for object Parser
info = IdentifierExpr-de(5365, didBindInh=false, didBindInt=false, didBindImp=false, token=Token(THROW, 'throw', 'throw', ln 5, col 4, internal-error.cobra), name=throw, type=nil, 5365)
this = Parser
at Parser.CompilerDirective() in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CobraParser.cobra:line 577
at Parser._parseTokens() in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CobraParser.cobra:line 528
at Parser.ParseSource(String fileName, String source) in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CobraParser.cobra:line 196
at Parser.ParseFileNamed(String fileName) in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CobraParser.cobra:line 179
at Compiler.ParseFilesNamed(IList`1 filenames) in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\Compiler.cobra:line 432
at Compiler._compileFilesNamed(IList`1 paths, Boolean writeTestInvocation, Boolean stopAfterBindInt) in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\Compiler.cobra:line 297
at Compiler.CompileFilesNamed(IList`1 paths, Boolean writeTestInvocation, Boolean stopAfterBindInt) in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\Compiler.cobra:line 264
at CommandLine.DoCompile(List`1 paths, Boolean willPrintSuccessMsg, Boolean writeTestInvocation, Boolean stopAfterBindInt) in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CommandLine.cobra:line 570
at CommandLine.DoRun(List`1 paths) in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CommandLine.cobra:line 646
at CommandLine.Run(List`1 args) in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CommandLine.cobra:line 543
at CommandLine.Run() in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\CommandLine.cobra:line 485
at CobraMain.Main() in c:\Documents and Settings\Chuck\My Documents\Projects\Cobra\Workspace-New\Source\cobra.cobra:line 13
I would like to know your output for:
cobra -v:3 -reveal-internal-exceptions internal-error.cobra (YOUR-ARGS) > r 2>&1
Also, please attach r instead of pasting here as I did for illustrative purposes.
Thanks,
Chuck