{"action":"created","issue":{"url":"https://api.github.com/repos/evoldoers/biomake/issues/31","repository_url":"https://api.github.com/repos/evoldoers/biomake","labels_url":"https://api.github.com/repos/evoldoers/biomake/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/evoldoers/biomake/issues/31/comments","events_url":"https://api.github.com/repos/evoldoers/biomake/issues/31/events","html_url":"https://github.com/evoldoers/biomake/issues/31","id":197299335,"number":31,"title":"Prevent \"no matching debug topic (yet)\" messages","user":{"login":"ihh","id":54113,"avatar_url":"https://avatars.githubusercontent.com/u/54113?v=3","gravatar_id":"","url":"https://api.github.com/users/ihh","html_url":"https://github.com/ihh","followers_url":"https://api.github.com/users/ihh/followers","following_url":"https://api.github.com/users/ihh/following{/other_user}","gists_url":"https://api.github.com/users/ihh/gists{/gist_id}","starred_url":"https://api.github.com/users/ihh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ihh/subscriptions","organizations_url":"https://api.github.com/users/ihh/orgs","repos_url":"https://api.github.com/users/ihh/repos","events_url":"https://api.github.com/users/ihh/events{/privacy}","received_events_url":"https://api.github.com/users/ihh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"cmungall","id":50745,"avatar_url":"https://avatars.githubusercontent.com/u/50745?v=3","gravatar_id":"","url":"https://api.github.com/users/cmungall","html_url":"https://github.com/cmungall","followers_url":"https://api.github.com/users/cmungall/followers","following_url":"https://api.github.com/users/cmungall/following{/other_user}","gists_url":"https://api.github.com/users/cmungall/gists{/gist_id}","starred_url":"https://api.github.com/users/cmungall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmungall/subscriptions","organizations_url":"https://api.github.com/users/cmungall/orgs","repos_url":"https://api.github.com/users/cmungall/repos","events_url":"https://api.github.com/users/cmungall/events{/privacy}","received_events_url":"https://api.github.com/users/cmungall/received_events","type":"User","site_admin":false},"assignees":[{"login":"cmungall","id":50745,"avatar_url":"https://avatars.githubusercontent.com/u/50745?v=3","gravatar_id":"","url":"https://api.github.com/users/cmungall","html_url":"https://github.com/cmungall","followers_url":"https://api.github.com/users/cmungall/followers","following_url":"https://api.github.com/users/cmungall/following{/other_user}","gists_url":"https://api.github.com/users/cmungall/gists{/gist_id}","starred_url":"https://api.github.com/users/cmungall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmungall/subscriptions","organizations_url":"https://api.github.com/users/cmungall/orgs","repos_url":"https://api.github.com/users/cmungall/repos","events_url":"https://api.github.com/users/cmungall/events{/privacy}","received_events_url":"https://api.github.com/users/cmungall/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-12-23T01:30:33Z","updated_at":"2016-12-29T21:20:40Z","closed_at":null,"body":"e.g. running `biomake -d` in a directory without a Makefile gives \r\n\r\n~~~~\r\nWarning: verbose: no matching debug topic (yet)\r\nWarning: build: no matching debug topic (yet)\r\nNo Makefile found\r\n~~~~\r\n\r\nLooking at the source for `debug/1`, linked below, it seems like it's always going to print a message. Guess we could write our own version of `debug`.\r\n\r\nhttp://www.swi-prolog.org/pldoc/doc/swi/library/debug.pl?show=raw"},"comment":{"url":"https://api.github.com/repos/evoldoers/biomake/issues/comments/269695281","html_url":"https://github.com/evoldoers/biomake/issues/31#issuecomment-269695281","issue_url":"https://api.github.com/repos/evoldoers/biomake/issues/31","id":269695281,"user":{"login":"cmungall","id":50745,"avatar_url":"https://avatars.githubusercontent.com/u/50745?v=3","gravatar_id":"","url":"https://api.github.com/users/cmungall","html_url":"https://github.com/cmungall","followers_url":"https://api.github.com/users/cmungall/followers","following_url":"https://api.github.com/users/cmungall/following{/other_user}","gists_url":"https://api.github.com/users/cmungall/gists{/gist_id}","starred_url":"https://api.github.com/users/cmungall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cmungall/subscriptions","organizations_url":"https://api.github.com/users/cmungall/orgs","repos_url":"https://api.github.com/users/cmungall/repos","events_url":"https://api.github.com/users/cmungall/events{/privacy}","received_events_url":"https://api.github.com/users/cmungall/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T21:20:40Z","updated_at":"2016-12-29T21:20:40Z","body":"It would be a shame to write our own; even though it would be simple, it's nice having a unified mechanism for the case where we may want to combine external prolog programs with debug directives into the rulebase for a makefile.\r\n\r\nThere are a few things we can try. It should be possible to intercept messages. But first have a look at the PR I'm about to do that 'declares' debug topics as a top-level directive. See also my comments here: http://eu.swi-prolog.org/pldoc/man?predicate=debug/1\r\n\r\nFor this strategy we have an option of doing this modularly, with each topic declared in the relevant module. I opted for this. The annoying exception is for the md5 topic, this module is loaded dynamically at runtime, so we need to make sure the topic is declared in advance.\r\n\r\nIt may be simpler to simply aggregate all nodebug/1 directives in cli.pl or biomake.pl. Or even a separate debug_topics.pl module. YMMV."}}
{"actor":{"display_login":"cmungall"}}