Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[debug] add --exit-on-error and --debug flags. (0.0.13)
* add TROUBLESHOOTING * update README and EXAMPLES
- Loading branch information
okay
committed
Jan 12, 2018
1 parent
381e63b
commit 2be7091
Showing
7 changed files
with
126 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## debugging | ||
|
||
debug output can be sent to stderr by using the `--debug` flag or by setting | ||
`DEBUG=1` as an environment variable. | ||
|
||
adding `--exit-on-error` will cause plait.py to end early when errors occur | ||
during field generation. | ||
|
||
### static field is missing or misdefined | ||
|
||
To see how the static fields are setup in a template, turn on debugging and | ||
redirect stdout to /dev/null. The command output will show what the definition | ||
for each static variable is. | ||
|
||
### template returns None | ||
|
||
If a template is not returning any results (f.e. [this | ||
issue](https://github.com/plaitpy/plaitpy/issues/3), turn on debugging | ||
to get more details. If that doesn't work, open an issue. | ||
|
||
## misc | ||
|
||
### using custom imports | ||
|
||
Remember to add the `imports` field to your template with the module that is | ||
being imported, like so: | ||
|
||
fields: | ||
foo: | ||
lambda: datetime.datetime() | ||
|
||
imports: | ||
- datetime | ||
|
||
## still having trouble? | ||
|
||
please open an issue! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION="0.0.12" | ||
VERSION="0.0.13" | ||
|
||
if __name__ == "__main__": | ||
print(VERSION) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters