-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Extension never loads on folder synced to GIT #3738
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I tried again this morning and I was able to get it enabled. Here's the log: Here is the error stack: Error: spawn EPERM |
So for full disclosure, I had switched over to a "user" installation and this all started happening. I uninstalled it and reinstalled the system-wide one and it works now. I had found that if I opened up a file in my users directory, it worked without an issue. Anything else outside my own directory would not activate the Python extension. |
It's back to not working in the system wide installation. Once I open up a folder that's outside of my user root, the Python extension never loads unless I run as admin. If I open a file directly it seems to work fine, but not when I open a folder. |
Interesting! So, are you in the I always put myself in the I can try and reproduce this on a VM next week and see if I can get a local reproduction. |
Sorry for the delay - just got back from vacation! I can see myself in the actual Administrators group. That being said, our machines are locked down with a lot of GPOs, so it's possible something else has been deployed to my machine that's actively preventing it from connecting. I have it set on auto-update - I can't recall this being an issue earlier, but unfortunately I can't pinpoint when it stopped working. |
After re-reading the conversation in this thread, I see some opportunities to help sort this out. 1. User folder doesn't contain the correct path to the typical location of the .vscode/extensions folder.I see from the logs above now that there are a lot of entries that look like so:
That looks incorrect! VS Code normally installs the extensions folder to this path on Windows:
Perhaps this is a glitch of some sort to do with log-sanitization for this issue, or maybe it's truly where things are located on your machine. Try uninstalling VS Code, then removing the 2. Permissions may actually be locked down outside of the user folder due to GPO.
and
Tells me that there may be a correlation here. Can you try this:
Then please do save the logs from both runs and report them here. |
It is actually installed in the correct directory and this was as a result of the bad find/replace to scrub my actual directory before posting here. Somehow I missed the forward slash - but it is in c:/users/<username/.vscode as it should be. I'll give #2 a shot today and see how things roll! Thanks for the help :) |
Awesome, looking forward to seeing the result - I hope we can sort out a way to better notify the user of an issue, if not provide a way to fix the problem altogether. |
Sorry for the delay - This is so across the board that I can't reliably even submit a debug log. I just upgraded to Windows 10 the other day and so far, it seems like it's working. I'm going to close this because it's so inconsistent, but I'm sure it's related to my particular setup here. Thank you for the help and I absolutely love the extension - top notch! |
Environment data
Expected behaviour
Open Python file and Python extension loads.
Actual behaviour
I am opening a Python file under a folder that is cloned from a Git repo. The "Python Extension Loading" message appears forever in the bottom. If I run as Administrator, it loads immediately. If I open a regular Python file that is not in the Git repo, it loads immediately. I'm using Git for Windows to do my cloning/checkouts.
Steps to reproduce:
Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)N/A - No output
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
)Here is the error stack: Error: spawn EPERM
at _errnoException (util.js:1024:11)
at ChildProcess.spawn (internal/child_process.js:323:11)
at exports.spawn (child_process.js:514:9)
at v.module.exports.v.keys (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:182883)
at module.exports.l.getKeys.Promise (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:227142)
at new Promise ()
at C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:227113
at Generator.next ()
at module.exports.i (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:226828)
at new Promise ()
at module.exports.i (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:226605)
at C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:227073
at l. (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:227251)
at Generator.next ()
at module.exports.i (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:226828)
at new Promise ()
at module.exports.i (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:226605)
at l.getKeys (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:227014)
at v. (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:555425)
at Generator.next ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:554302)
at new Promise ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:554079)
at v.getCompanies (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:555371)
at v. (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:554854)
at Generator.next ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:554302)
at new Promise ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:554079)
at v.getInterpretersFromRegistry (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:554757)
at v.getInterpretersImplementation (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:554690)
at v. (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:110539)
at Generator.next ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:109873)
at new Promise ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:109650)
at v.getInterpreters (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:1:110310)
at f. (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:524298)
at Generator.next ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:523721)
at new Promise ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:523498)
at module.exports.f.getInterpreters.t.getLocators.map.t (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:524256)
at Array.map ()
at f. (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:524249)
at Generator.next ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:523721)
at new Promise ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:523498)
at f.getInterpreters (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:524189)
at v. (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:517121)
at Generator.next ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:515818)
at new Promise ()
at module.exports.o (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:515595)
at v.getInterpreters (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:83:517061)
at C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:9:68009
at C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:9:68043
at Generator.next ()
at module.exports.r (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:9:65576)
at new Promise ()
at module.exports.r (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:9:65353)
at module.exports.t.activate (C:\Users\brodie11.vscode\extensions\ms-python.python-2018.12.1\out\client\extension.js:9:66372)
at Function.t._callActivateOptional (c:\Users\brodie11\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:759:329)
at Function.t._callActivate (c:\Users\brodie11\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:759:6)
at c:\Users\brodie11\AppData\Local\Programs\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:758:173
at
The text was updated successfully, but these errors were encountered: