Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99677

Vscode can't use the function of go to defination and can not open file in PROBLEMS

$
0
0

I'm using VScode for my python project, but I cannot use the function of go to definition and can not open file in PROBLEMS.

For example: when I click go to definition , it raise a warning like this:

Unable to open 'spider.py': A system error occurred (ENOTDIR: not a directory, stat '/Users/gassy/Documents/python_spider/toutiao/spider.py/Users/gassy/Documents/python_spider/toutiao/spider.py').

Still, when I click a file in the PROBLEMS ,it don't work. enter image description here

It seems like a problem about path as it doubles the right path. Go to definition is work for global variable

System:macOS Mojave

Version: VScode 1.30.2

many thanks for your help


Viewing all articles
Browse latest Browse all 99677

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>