Home Download Buy Blog Forum Support

SublimeREPL

Re: SublimeREPL

Postby havri on Tue Feb 14, 2012 7:00 pm

wuub wrote:Add "-u" to options:
Code: Select all
"cmd": ["python", "-i", "-u"]


It works, thank You!
havri
 
Posts: 6
Joined: Sat Feb 11, 2012 2:40 pm

Re: SublimeREPL

Postby wuub on Wed Feb 15, 2012 11:25 am

Sublime REPL 1.0.7 was posted today:
- Shell repls (cmd.exe & bash) enabled again (very very simple, try limiting its usage to compile, rename, etc...)
- Python PDB repl Image
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby wuub on Tue Feb 21, 2012 9:57 pm

SublimeREPL 1.0.10 is out:

- Scala, Groovy and R were added
- extend_env can now use env variables "PATH": "{PATH}:/like/this"
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby linkey11 on Thu Feb 23, 2012 1:58 am

Whenever I try to run my Python Interpreter (or any other that are available) I get the error code "[Error 2] The system cannot find the file specified" it works perfectly on my Windows Vista machine however (I'm running Windows 7) any suggestions on how to go about fixing this?
linkey11
 
Posts: 6
Joined: Sun Feb 19, 2012 7:47 pm

Re: SublimeREPL

Postby wuub on Thu Feb 23, 2012 9:16 am

linkey11 wrote:any suggestions on how to go about fixing this?


Answered in the other thread: viewtopic.php?f=3&t=5410&p=24247#p24301
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby wuub on Thu Feb 23, 2012 9:15 pm

1.0.14 is out:

- Command Palette for each and every OOTB repl.
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby wuub on Mon Feb 27, 2012 9:31 am

1.0.16 is out
- persistent history for repls (yup!)
- fix for localized windows and non-unicode/non-ascii environment variables
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby Naatan on Mon Feb 27, 2012 3:20 pm

Can't for the life of me get it working with phpsh.

My config:

Code: Select all
[
     {
        "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"
                    }
                }
            ]   
        }]
    }
]



Output with SublimeREPL:

Code: Select all
echo 'test'
exit
Starting php
type 'h' or 'help' to see instructions & features
php> test
php>

***Repl Closed***


Output from command line:

Code: Select all
> phpsh
Starting php
type 'h' or 'help' to see instructions & features
php> echo 'test'
test
php> exit


Any idea how I could get this working? Thanks!
Naatan
 
Posts: 20
Joined: Tue Feb 01, 2011 4:27 pm

Re: SublimeREPL

Postby wuub on Mon Feb 27, 2012 3:57 pm

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.
SublimeREPL via Package Control & SublimePTY dev/pre-alpha. Donations are appreciated, but not required :) Twitter: @wuub
wuub
 
Posts: 218
Joined: Wed Aug 10, 2011 8:16 am
Location: Poland

Re: SublimeREPL

Postby Naatan on Mon Feb 27, 2012 4:10 pm

wuub 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.


Perfect! That worked like a charm, thanks!
Naatan
 
Posts: 20
Joined: Tue Feb 01, 2011 4:27 pm

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 13 guests