It works, thank You!

linkey11 wrote:any suggestions on how to go about fixing this?
[
{
"id": "tools",
"children":
[{
"caption": "SublimeREPL",
"mnemonic": "r",
"id": "SublimeREPL",
"children":
[
{"command": "repl_open",
"caption": "PHP",
"mnemonic": "p",
"args": {
"type": "subprocess",
"encoding": "utf8",
"cmd": ["phpsh", "-A", "-C", "-M", "-T"],
"cwd": "$file_path",
"syntax": "Packages/PHP/PHP.tmLanguage",
"external_id": "phpsh"
}
}
]
}]
}
]
echo 'test'
exit
Starting php
type 'h' or 'help' to see instructions & features
php> test
php>
***Repl Closed***
> phpsh
Starting php
type 'h' or 'help' to see instructions & features
php> echo 'test'
test
php> exit
"args": {
(...)
"extend_env": {"PYTHONUNBUFFERED": "yesyesyes"}
}
#!/usr/bin/python#!/usr/bin/python -uwuub wrote:Looks like python output buffering?
Add:
- Code: Select all
"args": {
(...)
"extend_env": {"PYTHONUNBUFFERED": "yesyesyes"}
}
Or change first line in phpsh (e.g. /usr/local/bin/phpsh) from
- Code: Select all
#!/usr/bin/python
to
- Code: Select all
#!/usr/bin/python -u
It should do exactly the same thing.
Return to Plugin Announcements
Users browsing this forum: Google [Bot] and 8 guests