Open ejrejr opened 5 years ago
How was pygame installed? pip? Something else?
I'm noticing that it's an egg file that's listed in the imports, which are newly supported (but not the most tested feature).
Good question - I didn't even know I had pygame until the household started a project on the Raspberry Pi and I was developing a copy of it on my Win10 box.
I did pip uninstall and then a pip install of pygame -> the same issue is still there (ends up an older version got installed). Output from that:
`C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>pip uninstall pygame Uninstalling pygame-2.0.0.dev3: Would remove: c:\python\python36\lib\site-packages\pygame-2.0.0.dev3-py3.6-win-amd64.egg Proceed (y/n)? y Successfully uninstalled pygame-2.0.0.dev3
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC>pip install pygame Collecting pygame Downloading https://files.pythonhosted.org/packages/79/b0/2fec9a5d9151c8f8e20721349950c1bde2d02b331c19e178c3d76876a218/pygame-1.9.6-cp36-cp36m-win_amd64.whl (4.3MB) |████████████████████████████████| 4.3MB 3.2MB/s Installing collected packages: pygame Successfully installed pygame-1.9.6`
@CTrando would know more about the internals of the egg file and why it'd potentially not work. Egg files in the search path list should be working, right? Or are they just used if they are inside of another search path?
Hi, sorry for being so late I never saw this. Anyways, @ejrejr I took some time to diagnose this. So when you said that you were surprised you had pygame installed, its probably the case whoever installed it before you built pygame from source. That's why the pygame-2.0.0.dev3-py3.6-win-amd64.egg
file was there. I mimicked this but was surprised to notice that pygame-2.0.0.dev3-py3.6-win-amd64.egg
was a directory, not a file. My implementation of egg files incorrectly handled it and I will resolve it.
I'm not sure about the second part of what you described. When I uninstalled the egg file and then reinstalled, mine works correctly. There is a bit of lag however as the language server analyzes pygame so for maybe 10 seconds it seems like there has been no change. But then I get completions as expected. Sorry again for missing it and have a happy holiday!
Environment data
Expected behaviour
import pygame use pygame methods and constants look at syntax decorations and intellisense - they all work for working code
Actual behaviour
Any method or constant from pygame is flagged as an error No intellisense
Logs
Code Snippet / Additional lnformation