Skip to content
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

Error value error stat path too long for Windows display in terminal window #970

Closed
DonJayamanne opened this issue Mar 6, 2018 · 5 comments
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@DonJayamanne
Copy link

DonJayamanne commented Mar 6, 2018

Error message value error stat path to long for Windows is display in the terminal window when hovering over python in line 30 the above error is displayed in the terminal window.
Upstream issue microsoft/ptvsd#119

@DonJayamanne DonJayamanne added bug Issue identified by VS Code Team member as probable bug needs verification area-debugging labels Mar 6, 2018
@DonJayamanne DonJayamanne added this to the March 2018 milestone Mar 6, 2018
@brettcannon
Copy link
Member

What line 23? What error?

@DonJayamanne DonJayamanne changed the title Experimental debugger - value error stat path to long for Windows Error value error stat path to long for Windows display in terminal window Mar 7, 2018
@qubitron
Copy link

qubitron commented Mar 7, 2018

The code for this is here:
https://github.com/qubitron/hello-stackoverflow/blob/master/stackoverflow.py

I set a breakpoint on line 19 and start stepping around and looking at variables. The error is:

Traceback (most recent call last):
  File "C:\demo\hello-stackoverflow\env\lib\site-packages\ptvsd\wrapper.py", line 505, in done
    fut.result()
  File "C:\demo\hello-stackoverflow\env\lib\site-packages\ptvsd\futures.py", line 39, in result
    reraise(self._exc_info)
  File "C:\demo\hello-stackoverflow\env\lib\site-packages\ptvsd\reraise3.py", line 11, in reraise
    raise exc_info[1].with_traceback(exc_info[2])
  File "C:\demo\hello-stackoverflow\env\lib\site-packages\ptvsd\futures.py", line 154, in callback
    x = it.send(fut.result())
  File "C:\demo\hello-stackoverflow\env\lib\site-packages\ptvsd\wrapper.py", line 721, in on_variables
    xml = untangle.parse(resp_args).xml
  File "C:\demo\hello-stackoverflow\env\lib\site-packages\ptvsd\untangle.py", line 188, in parse
    if is_string(filename) and (os.path.exists(filename) or is_url(filename)):
  File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\lib\genericpath.py", line 19, in exists
    os.stat(path)
ValueError: stat: path too long for Windows

@brettcannon
Copy link
Member

Did you install Python with the max path length restriction turned off?

@qubitron
Copy link

qubitron commented Mar 8, 2018

@brettcannon Python was installed by Visual Studio, so whatever Visual Studio does. Based on the error, it looks like max path is turned on. I can try to install a new version of python with max_path off.

@brettcannon brettcannon modified the milestones: March 2018, April 2018 Mar 12, 2018
@brettcannon brettcannon changed the title Error value error stat path to long for Windows display in terminal window Error value error stat path too long for Windows display in terminal window Mar 12, 2018
@DonJayamanne DonJayamanne self-assigned this Mar 12, 2018
@DonJayamanne
Copy link
Author

Closing as the issue has been resolved upstream.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 11, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-debugging bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

3 participants