I have a problem with one of the build-in python extensions.
After closing Visual Studio Code a new task starts, which takes up a considerable amount of processing power.
I have confirmed it to be related with the python vscode extension, as the problem does not occur after I uninstall it.
According to the info found in the official vscode-python repository it is a recent feature.
Has someone encountered a similar problem or could someone give me a hint on how to further inspect this problem ?
Related
I am trying to run an embedded python application which runs well on desktop computers but on a laptop it is giving errors.
Initial error was:
The program can't start because api-ms-win-core-timezone-l1-1-0.dll is
missing from your computer.
On installing above, it gives error that api-ms-win-core-file-l2-1-0.dll is missing.
How far this will go? What is the problem and how can this be solved? Thanks for your help.
The problem is that the developers have used some version of C++ to create their programs and the programs require some runtime files (Dynamic Linked Libraries) to be present in order to install/run and the developers do not include those files with their installation (why not?) and the websites for the programs often do not list the prerequisites and requirements of what you need to have installed for their programs to work.
Read more here:
https://answers.microsoft.com/en-us/windows/forum/windows_7-performance/missing-api-ms-win-core-timezone-i1-1-0dll/3754703c-241c-451a-a9b6-e690399fc83e
Try installing the missing files.
https://www.microsoft.com/en-us/download/details.aspx?id=48145
https://support.microsoft.com/en-us/help/2999226/update-for-universal-c-runtime-in-windows
I have recently updated the Requests package for Python (I also installed WireShark around the same time, but I'm not sure if that's relevant). Since doing this, whenever I try and execute a Python file from the command line that imports the Requests library, I receive a pop up on screen stating:
"Cannot locate the Microsoft Visual FoxPro support library".
If I click OK on the prompt, the file executes as normal. I suspect that this is causing problems for my scheduled tasks that import Requests, as they have stopped running to completion since this issue has come about.
I used to have a FoxPro database installed on the machine; that's the only time I've ever even heard of Visual FoxPro. Apart from that, I have no idea why this has started showing up. If anybody knows why this might be happening and/or how I can get it to stop, it would be great to hear some suggestions. I'm happy to provide more details if necessary. Thank you.
EDIT: I've been able to stop the pop up message from appearing and get my scheduled tasks working by rolling back Requests to an older version. It would still be ideal if anyone could suggest what might be going on with the latest version that would cause the behavior that I described.
The message above is caused by a Foxpro application not being able to locate its correct runtime libraries.
The below link will provide an installer for all of the Visual Foxpro runtime libraries. Just download the correct runtime installer and install the files to your PC to correct the problem.
http://www.foxpert.com/download/runtime.html
I just installed the Python development workload for VS 2017 but the editor shows none of the red squiggly underlining for syntax errors that I'm used to seeing with C# on VS, nor any entries in the error list. If I try to run the code with errors, it warns me there are errors in the code but does not specify what they until exceptions are thrown from running.
I've tried reinstalling the workload and looked through every available option under the Tools/Options tab but can find nothing about syntax errors. Any fixes detailed for earlier versions of VS no longer seem to apply, what am I missing?
I had exactly the same problem using the simplest project from the VS Python tutorial.
The fix was to upgrade from VS 15.4.1 to 15.5.
Walt
I have had the same thing happen to me. Though this was actually with a C# application. I noticed Visual Studios stopped detecting the errors after adding a few NuGet references and doing some manual modifications of the project files. I noticed that this was only happening on this one project. All the other projects I worked on did not seem to have the same issue.
I was able to get it to start working again by creating a new project, moving my code over, and adding the references back one by one. For this situation, it looked as if a corrupt project file or bad reference was to blame even though the project would compile and run correctly.
Does this issue exist in other programming languages/projects?
This question has been asked before [here]. At the time, it was a bug, and a feature has been requested, later on it was fixed and supposedly it should work.
but in my case it still isn't.
I have been trying and googling for about a week, yet still, I couldn't get it to work
My system is:
Arch Linux
Pycharm 3.1.1 Build #PC-133.881
Python 3.3.4
pygobject 3.10.2
Is there something I'm missing or is it a bug ??
It seems to be a new bug in PyCharm. Forcing skeleton generation should resolve the problem until you run the program, but at least in my case is not working.
Follow PY-13505 for more info.
The generation of the Gtk.py stub by PyCharm fails because of default IDE file size limit. I changed the config value "idea.max.intellisense.filesize" in idea.properties from 2500 to 10000. The stub generation takes some time but finishes now.
I think this might solve your issue developing Gtk3 applications with PyCharm to get features like autocompletion and integrated API-documentation.
This was also my answer to a very similar question: PyCharm - autocomplete for Gtk3 magically stops working
Im using PTVS (Python Tools for Visual Studio). In my project, I use an external library, OpenCV, (referenced locally, not using pip/easy_install). Autocomplete/intellisense on this library only always displays nonsense characters (e.g. "Àt4èÚ" or "ÇEüÿÿÿÿè").
Everything else is fine, I can run my code and I can autocomplete other libraries/functions. What is causing this, and how can I fix it?
Thanks in advance
It sounds like you're using PTVS 2.0 beta, and are hitting this bug (note the last comment to it). The problem is basically that Intellisense for interpreter-wide libraries is driven by a database, and the utility that is used to build that database has a bug in 2.0 beta that prevents it from working correctly with binary Python modules (.pyd).
The bug has been fixed, and if you download and build the most recent source code for PTVS from CodePlex, you will get the fix. It will, of course, be included in the next release. Using the stable version (PTVS 1.5) will also deal with this issue, though, of course, you will not get all the new features in 2.0.