Giter Club home page Giter Club logo

Comments (7)

wuub avatar wuub commented on July 17, 2024

OK. I was able to reproduce this problem. Basically it seems that non admin accounts on Win7 are unable to launch any repl. For now please use 1.0.20.zip from here https://github.com/wuub/SublimeREPL/tags and I'll try to fix it ASAP.

from sublimerepl.

bhadra avatar bhadra commented on July 17, 2024

Thank you for your support. For now, I am using SublimeREPL 1.0.20. I look forward to your fix.

from sublimerepl.

wuub avatar wuub commented on July 17, 2024

1.0.32 should show up in Package Control very soon.

Keep in mind that what this fix also reintroduces runaway process problem for non-admin users on Windows. If you're using Python or Node, you're OK, but anyone launching REPLs that use *.bat files (irb, clojure, ...) should try to get admin rights instead.

from sublimerepl.

bhadra avatar bhadra commented on July 17, 2024

should try to get admin rights instead.

Which folders should have admin rights? For example, should the corresponding Python or Clojure installation folder have admin rights?

from sublimerepl.

wuub avatar wuub commented on July 17, 2024

I was able to reproduce this problem when ST2 was started in the context of non Administrator user (Shift, RightClick -> Run as user...). But willy1234x1 is reporting, that user with administrator rights can experiencing similar problem, so it might not be the main reason.

from sublimerepl.

bhadra avatar bhadra commented on July 17, 2024

I guess that you may be right. Does killableprocess require only administrative rights? Otherwise, why do you require that ST2 should be started as an Administrative user?

from sublimerepl.

wuub avatar wuub commented on July 17, 2024

Does killableprocess require only administrative rights?

To be honest, I'm not sure. On Linux/OSX killableprocess uses process groups and then issues .killpg() instead of simple .kill() w/o any additional rights required. On windows things looks a bit different, you have to create a Job object and assign processes to it to kill them reliably.

why do you require that ST2 should be started as an Administrative user

It seems that for some users (right now my best bet is that it's connected with being local admin) creating a job (windll.kernel32.CreateJobObjectW()) fails with WindowsError(5, 'Access is denied.').

FWIW 1.0.32 doesn't require any additional rights, killable process first checks if it will be able to create Job object and fallbacks to a simpler version instead of dying with WindowsError. It's not ideal but at least it works.

from sublimerepl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.