Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[minor] digger crashes when you view the usage instructions #39

Closed
Cauterite opened this issue Aug 26, 2016 · 5 comments
Closed

[minor] digger crashes when you view the usage instructions #39

Cauterite opened this issue Aug 26, 2016 · 5 comments

Comments

@Cauterite
Copy link

c:\digger> digger.exe
Digger v2.4 - a D source code buil...
...
std.getopt.GetOptException@ae\utils\funopt.d(293): No action specified
----------------
0x0047058E
...

So it does its job of printing the usage instructions, but also dumps an ugly stack trace at the end of the output. Not a major problem, but it is a little confusing initially (notice stack trace -> assume something's gone wrong).

@CyberShadow
Copy link
Owner

It only does that if you compile with -debug, so I think we're all good here.

@Cauterite
Copy link
Author

Then we are blocked by #37 ;P

@CyberShadow
Copy link
Owner

Closing as this one is not really actionable.

@timotheecour
Copy link

how about:
in ./ae/utils/main.d

debug return run(args);
=>

auto fun(){
try return run(args);
catch(...){...}
}
version(workaround_issue_37) return fun(args);
else debug return run(args);
else return fun(args);

and then in instructions in README: write:
rdmd --build-only -debug -version=workaround_issue_37 digger

@CyberShadow
Copy link
Owner

Not a fan of temporary workarounds for bugs in other projects, especially for cosmetic issues. It would be more effective to complain to get the underlying DMD regression fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants