Comments (3)
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.
There 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
For 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.
It 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.
from biomake.
this works for me
from biomake.
The rationale is that, as the code is compiled, debug/3 calls in the code register the topic. This requires
library(debug)
to be loaded before loading code that uses debug/3. Now you get warnings if you use
?- debug(topic)
from the command line. Not if you put it at the start of your source file.
I don't know what is going wrong here, but one option is to add the line below, which will silence
the warning.
user:message_hook(debug_no_topic(_Topic), _Type, _Lines).
from biomake.
Related Issues (20)
- Welcome message should draw version number from pack.pl
- SnakeMake parser HOT 6
- Add biomake to bioconda
- More Prolog recipes for extending rules
- Biomake macro for MD5 hash of a file
- Mirror S3 bucket using aws s3 sync
- Consider eliminating the -l option HOT 1
- Refactor the README into readthedocs
- Question about job submissions on PBS using biomake HOT 2
- Problem with swi-prolog 8? HOT 3
- Dependency paths longer than 2 nodes unsupported? HOT 3
- Build failure should result in the deletion of unbuilt targets
- Multiple outputs - correct pattern HOT 1
- Target-specific variables unsupported or broken HOT 3
- If a deep dependency fails with "no way to make", only a direct dependency of the main goal is mentioned
- Silently unsupported GNU Make feature: Rules with Grouped Targets
- Cannot specify multiple targets using a variable
- Meta issue: how much hope should I place in biomake, realistically? HOT 3
- Recent SWI Prolog breaks DCG test?
- Incorrect expansion of $(foreach...) variable inside nested $(addsuffix...)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biomake.