editor showing errors with Aptana Studio 3 after update - python

I have used Aptana Studio 3 for the programming of python for quite a while and never had problems. But after the update today (the version now is 3.5.0.201401092130-09012014213131), the editor stopped recognizing a lot of code (it marks functions like len, int, float and even things like None or True as errors).
I still can run all my programs without any problems so i figured that this must be an issue with an editor. Any ideas what the problem might be?

Not really a solution, but this workaround worked for me. After reverting to a previous version (3.4.1 in my case), the behavior I described above still persisted. But after I switched between the PyDev and the Web perspective a couple times, the editor went back to the normal behavior (the perspective switching didn't do the trick for version 3.5).
When I talk about version reverting, I don't mean the build in option (I tried it, but it just showed an error). I deleted the Aptana Studio 3 installation folder and downloaded the 3.4.1 version from this website.

Related

Wrong conda python environment version showing on visual studio code

(Running this on Windows 11) I'm not sure if it's a bug or something I did wrong when updating python, but after updating Python to version 3.9.15 from the conda terminal, VSCode seems to not recognize it at least in the environments tab and when I do Shift+Ctrl+P.
What's weirder is that whenever I close and reopen VSCode, it shows the correct version for 5 seconds top-right before suddenly switching back to the older version. This isn't really a major issue since I know I'm using the up-to-date version, just a UI thing I noticed and wanted to see if there's a quick fix.

IntelliSense tooltip always shows the same three top hits (even w/o relation)

I am using VS Code for Python development. But with any Python file I edit, I always experience the same issue: the IntelliSense tooltip always shows the same 2-3 suggestions on top, regardless of what I am writing. Here are some examples:
I am using the Microsoft Python language server and IntelliCode, but I experienced the same issue also before enabling IntelliCode. Do you have any ideas what might cause this behaviour?
For the records:
As it turned out and discussed in this GitHub issue thread the problem comes from the "Python Extended" extension for VS Code. Uninstalling it solved the issue for me.

Visual Studio 2017 not recognising errors in code

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?

How can I get auto-indentation to work with Python 2.7 on Xcode 7.3?

I've used this guide to set up Xcode to build Python scripts. When I press return, the cursor always goes back to the beginning of the new line, even though automatic indenting based on syntax is turned on in the preferences menu. It's frustrating to have to press the space key eight times to get two blocks in indenting in every time. Is there something I haven't installed correctly? I have Anaconda installed and as my build tool if that helps.
I would suggest running Python on something else imho. Something like PyCharm or IPython. The problem with Xcode is that Python is not one of the native languages for it. So Xcode doesn't know the proper formatting for Pythons syntax.
Not to mention that debugging and other features might not work well on Xcode.

STILL: PyCharm can not resolve PyGObject 3.0, but code runs fine

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

Categories

Resources