Aptana Studio 3 shows built-in functions as errors Python 2.7 PyDev - aptana

I recently upgraded Aptana Studio and now the editor shows built-in functions as errors. I set the interpreter to Python 2.7 (C:\Python27\python.exe). I mean basic built-in functions like 'len', 'str', 'range' etc. ...
The code runs just fine when started from Aptana Studio, it just shows tons of errors in the editor. I have been using Aptana Studio for years now and I was always really happy with it.

Related

Is there a way to view my active objects/files in Visual Studio Code similar to R Studio environment?

I recently started switching from R Studio to Visual Studio Code (I have a Mac). I am missing the R Studio environment where I can see what objections, functions, and files are loaded in and their dimensions. Is there anything similar in VSC? I know I can view my objects with 'View' and use 'ls' to see what is in active, but it is not the same as the quick reference like R Studio has in the environment.
Thanks!

Qt, Visual Studio 2017 and .vcxproj.user Files

I am using Visual Studio 15.9.14 and Qt 5.13.0 on multiple machines. When I check out my source from version control:
If I open the VS IDE to build my solutions, everything compiles and links correctly.
If I build the solutions from the command line using devenv.exe, there are multiple compile and link errors in the Qt projects.
The problem is that when building from the command line, the .vcxproj.user files are NOT generated, and therefore $QTDIR is not defined for use in my projects. The result is my automated/nightly builds fail.
I can build a tool to create the files and integrate it into my build process, but I shouldn't have to. This problem seems to be related to the VS/Qt integration. I have also encountered a similar problem in the IDE where I had to force the files to regenerate by touching the projects.
Any suggestions/help would be appreciated.

Can't make Qt Creator Work

I've downloaded and installed Qt Creator from its online installer and the latest version but when i try to create a Qt Console Application i get the following error. I haven't touched options. The picture is an error from when i tried to open a file from my professor but i get the same error when i try to create a new one. It could be pretty simple but its the 1st time im using this program as a student and have no idea whats going on. Thanks in regards for your timeenter image description here
If you are using Qt Creator with MSVC Compiler (Visual Studio), you need to also download the Visual Studio Compiler. Qt for MSVC doesn't come with a compiler.
It seems that you are trying to compile with VS 2017. You can Download Visual Studio 2017 from: https://www.visualstudio.com/es/downloads/
Express is free, the other two are paid, but don't download VS Code, it's for another purpose.
Alternatively, you can download only the compiler from: http://landinghub.visualstudio.com/visual-cpp-build-tools It's ligther but you don't get the IDE.
Also, for debugging, if you are on x86 or x64, download Windows CDB from: https://learn.microsoft.com/en-us/windows-hardware/drivers/debugger/debugger-download-tools
After you install this, you can reboot Qt and then it will show it has the appropiate compiler and debugger, like this (note that I use VS 2013):
There is another option if you don't want to download or use Visual Studio. Go to the Qt Maintenance Tool (uninstaller), Add or remove components, then install MinGW binaries of your favorite Qt Version, like this:
MinGW is free and it comes bundled with Qt, so you can build and run (and debug!) right away.

Building a Qt 4.8 application on Visual Studio

I'm working on building Open-Sankoré project (https://github.com/Sankore/Sankore-3.1) which is made by Qt 4.8-msvc compiler..
But, visual studio 2015 only works with Qt5 and doesn't accept Qt4 packages directly..
So my question is whether there's any walk-around that could be done to make visual studio build Qt 4.8 projects ?
You would have to compile Qt4.8 from source if you want to use Visual Studio 2015 with that exact version (4.8). There is no official release of Qt4.8 that was built using msvc2015.
If you are really tied to the Qt4.8 version, my suggestion would be to download and install lower version of Visual Studio and the corresponding compiler, e.g., msvc2008.
Although, before doing so, I would confirm if the project you are trying to build is really bounded to the Qt4.8 version. It might work as expected with the higher Qt version; or with some added modifications.
Sankore is a bit of a mess and is abandonware, but I've forked it and ported it to Qt 5 and it was not a big job. The build system is still iffy and I haven't tested it on anything but OS X.
It currently builds and functions from a stand-alone top project under Qt Creator, i.e. the dependencies (other than Phonon) get built alongside the rest of it.
Phonon builds under Qt 5 - see phonon4qt5. It needs cmake and may be a bit iffy. Only a few classes need phonon in Sankore, and thus require porting over to Qt Multimedia. That should be the first order of business if you wish to work on the code.
Check out the qt5-compat branch from these repositories:
https://github.com/KubaO/Sankore-3.1
https://github.com/KubaO/Sankore-ThirdParty
I'm accepting pull requests, of course.

How do I determine the cause of Qt's "*** is not a valid Qt plugin" error?

When I print the value of errorString from my QPluginLoader object, I get this:
The file 'C:/pyprojects/test/qsqlpsqld4.dll' is not a valid Qt plugin.
I would like to avoid some days worth of doing the time consuming "guess-and-check" methodology that my current internet searches reveal (so far none of them seem relevant anyways).
Is there a way for me to get the Qt library itself to tell me why it is refusing to load this plugin?
I don't want to guess; I want to know.
Context:
I am on Windows 7 running Qt 4.8.5 (32-bit, MinGW) and the qsqlpsqld4.dll file is also 32-bit and compiled with MinGW.
I am using PySide to interact with Qt.
It sounds like PySide wants the non-debug version of the library.
When you are in debug mode, it references libraries that end in d.dll or d4.dll. Try grabbing the plugin that does not have the d in the end of the dll name, and put it in the same spot.
I recently went through the throws of compiling one of the mysql qt plugins for 4.8.4 for visual studio 2010 and came out the victor.
Let me know if making that change fixes it or not. :)
Hope that helps.
PySide does not support MinGW. Official PySide distributions are compiled with Visual C++. You need to recompile your plugin with compatible Visual C++ version. By default PySide for Python 2.6, 2.7 and 3.2 is compiled with VC++ 2008. PySide for Python 3.3 is compiled with VC++ 2010 compiler.

Resources