-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Refactor failed with error: Syntax error in file <proprietary/umd/gtesting/scenarios/vmpsum/ic/vmpsum.py> line <27>, VSCode python Rope installed well, #12782
Comments
@MiryamBlo CAn you confirm that there is no syntax error at line 27 in |
I see I do have syntax error at line 27 in vmpsum.py, I fixed it but still,
I get:
Refactoring library rope is not installed. Install? When I press Yes, I
get: Requirement already up-to-date: rope in
/homes/miryamb/.local/lib/python3.7/site-packages (0.17.0)
… |
|
@MiryamBlo Can you share the entire log? Also, can you check if |
That is all what I have in bin folder:
(venv) miryamb@melab0001[.../users/miryamb/ws1/venv/bin]$ ls
__pycache__ aexpect-helper f2py get_objgraph
jsonpath.py miniterm.pyc pip3 pytest skivi undill
activate chardetect f2py3 imageio_download_bin jsonschema
pasteurize pip3.7 python tabulate unidecode
activate.csh easy_install f2py3.7 imageio_remove_bin lsm2bin
pbr py.test python3 tifffile wheel
activate.fish easy_install-3.7 futurize jirashell
miniterm.py pip pyjwt python3.7 tqdm
How can I know if it has rope installed?
|
What do you mean entire log?
יום טוב!
מימי
בתאריך יום ב׳, 13 ביולי 2020 ב-8:50 מאת Karthik Nadig <
notifications@github.com>:
… Can you share the contest of the logs under "Output" >"Python" ?
[image: image]
<https://user-images.githubusercontent.com/3840081/87274996-07010c80-c492-11ea-8a79-5f9b91f61c20.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12782 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APWMWKPDZKAPNP7G4YINYU3R3KOCJANCNFSM4OSP6MYQ>
.
|
I will need all of the content from "Output" > "Python" panel from the screen shot above. To test if you have |
I ran this command but till failed
Full output:
(venv) (venv) miryamb@melab0001[/localdrive/users/miryamb/ws1/validation]$
/usr/bin/python3.7
/homes/miryamb/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/pyvsc-run-isolated.py
pip install -U rope --user
Looking in indexes: http://pypi-repo.iil.intel.com/+simple/
Requirement already up-to-date: rope in
/homes/miryamb/.local/lib/python3.7/site-packages (0.17.0)
|
When I ran the command you sent I got:
[image: image.png]
|
Hi,
I ran the command you had been sent, and still have the same issue:
(venv) (venv) miryamb@melab0001[/localdrive/users/miryamb/ws1/validation]$
/usr/bin/python3.7
/homes/miryamb/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/pyvsc-run-isolated.py
pip install -U rope --user
Looking in indexes: http://pypi-repo.iil.intel.com/+simple/
Requirement already up-to-date: rope in
/homes/miryamb/.local/lib/python3.7/site-packages (0.17.0)
I do have it the setting:
[image: image.png]
יום טוב!
מימי
בתאריך יום ד׳, 15 ביולי 2020 ב-10:14 מאת Karthik Nadig <
notifications@github.com>:
… Looks like it is getting installed in the wrong python, it installed using
/usr/bin/python3.7. When it should have installed using
/localdrive/users/miryamb/ws1/venv/bin/python. Can you try installing rope
using this command?
/localdrive/users/miryamb/ws1/venv/bin/python -m pip install rope
Can you check your settings, to see if "Activate Environment" is set?
[image: image]
<https://user-images.githubusercontent.com/3840081/87515020-07370e80-c630-11ea-8168-0f5a7c0ac486.png>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12782 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APWMWKOUFDRLEZIN2KREU3LR3VJNJANCNFSM4OSP6MYQ>
.
|
@MiryamBlo From your response it looks like you used |
The install passed
When I connect to WS, when I am trying to select python interapture, I get:
Failed to set 'pythonPath'. Error: Unable to write file
'vscode-remote://ssh-remote+
10.155.210.29/localdrive/users/miryamb/ws2/.vscode/settings.json'
(NoPermissions (FileSystemError): Error: EACCES: permission denied, mkdir
'/localdrive/users/miryamb/ws2/.vscode')
|
Can you check and see if you have read write permissions on that directory? Look in https://github.com/Microsoft/vscode-remote-release for potential solutions for the permissions issue when using remote SSH extension. |
No ./vscode directory under:
/localdrive/users/miryamb/ws2
… |
@MiryamBlo I see. Let get the |
How can I verify it?
… |
Ho, Rope - refactor, of course I know how to verify...
I get:
Cannot perform refactoring using selected element(s). (spawn
C:\Users\miryamb1\AppData\Local\Programs\Python\Python38-32\python.exe
ENOENT)
|
@MiryamBlo |
I am also have this error because there is python syntax error in my code. Basically if you want to refactor, make sure your syntax is entirely correct. |
Thanks for you comment, but I don't have any syntax errors...
בתאריך שבת, 31 באוק׳ 2020 ב-21:35 מאת Achmad Fathoni <
notifications@github.com>:
… I am also have this error because there is python syntax error in my code.
Basically if you want to refactor, make sure your syntax is entirely
correct.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#12782 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APWMWKLM6N6B6ZCCBTVBY7TSNRRGRANCNFSM4OSP6MYQ>
.
|
@MiryamBlo Can you copy your source code here? The entire file. |
hello,I have a question. I have a project which has many independent derectory. Now i open the root directory and i rename a symbol in one of the child directory. It seems the plugin search the whole diectory. is it right? |
@worstkid92 That is expected behavior from |
|
VSCode python,
Rope installed well,
Refactoring failed with the following error:
The text was updated successfully, but these errors were encountered: