-
Notifications
You must be signed in to change notification settings - Fork 5
Add traceback to help debug "Arguments are not sufficiently instantiated" error from functor/2 from bad markup #6
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,7 @@ | |
| op(100, fx, #) | ||
| ]). | ||
| :- use_module(library(debug),[debug/3]). | ||
| :- use_module(library(prolog_stack)). % For catch_with_backtrace | ||
| :- autoload(library(apply),[maplist/3]). | ||
| :- autoload(library(backcomp),[convert_time/8]). | ||
| :- autoload(library(ctypes), | ||
|
|
@@ -3224,6 +3225,16 @@ | |
| :- initialization(main, main). | ||
|
|
||
| main(Argv) :- | ||
| catch_with_backtrace(main0(Argv), | ||
| Error, | ||
| ( set_prolog_flag(backtrace_goal_depth, 20), | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These 2 This is what I got when running from cmake: but when I ran it by hand (calling which helped me figure out where the bad markup was. |
||
| set_prolog_flag(debugger_write_options, [quoted(true), portray(true), max_depth(20), attributes(portray)]), | ||
| set_prolog_flag(answer_write_options, [quoted(true), portray(true), max_depth(200), attributes(portray)]), | ||
| print_message(error, Error), | ||
| halt(1) | ||
| )). | ||
|
|
||
| main0(Argv) :- | ||
| argv_options(Argv, Files, Options), | ||
| set_debugging(Options), | ||
| set_quiet(Options), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ordering of this
use_moduleseems to be important.