Registered Member
|
I mentioned in another thread that I was having trouble finding out how to get the kdev-python plugin. Searching for python in this forum only turned up 4 results.
I found that the sig of scummos points to https://projects.kde.org/projects/playg ... dev-python but this is a dead link. Instead I looked at his profile, found his blog, and from there found http://scummos.blogspot.com/2012/11/kde ... eased.html. I haven't followed the directions to compile yet. Wish this was available from the package repos; why not add a ubuntu ppa or something? Also, why is it not in https://projects.kde.org/projects/playg ... ls/plugins anymore? |
Global Moderator
|
Hello,
kdev-python is currently pending review and thus the path changed. I'll correct my signature in a moment, sorry. You can get the sourcecode by git clone git://anongit.kde.org/kdev-python. Ubuntu packages are a task for the ubuntu people and I have nothing to do with that. Some distributions reportedly already provide packages, I know for sure that OpenSuSE and Arch Linux do. Greetings, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
I'm having some trouble compiling the plugin.
OK, so as I've posted this I figured out my initial problem. First problem was dependencies. Milian Wolff's website (http://milianw.de/blog/building-kdevpla ... n-from-git) has some of the dependencies I needed listed (kdelibs5-dev, kdebase-workspace-dev, and libqt4-dev). Then I had a problem with not having KDevPlatformConfig.cmake in my usr/share/kd4/apps/cmake/modules folder. Turns out that was a dependency which was missing. However, now that I've installed it, I'm getting the following problem:
I looked at the kdevplatform packages using Muon and they don't say there's anything newer. I guess https://projects.kde.org/projects/extra ... evplatform is the true home but I don't see much to help me there. OK, it looks like I can change the CMakeLists.txt - but should I have to? I did that, onto the next issue with not having KDevelop-PG-Qt. Seems to be compiling now. ---- initial problems I figured out I tried to the instructions in the install textfile. I also looked at http://techbase.kde.org/Projects/KDevel ... ptional.29 and tried to follow those directions, but I'm confused and they didn't seem to help. I just get the following at the "cmake .." step:
Also found http://flowersopenlab.weebly.com/4/post ... velop.html which says you need to add some things to the cmake file but not sure if it is necessary. |
Global Moderator
|
Are you building kdev-python from git? If yes, then please use the v1.4.1 tag when compiling against kdevelop stable. To do that, type:
in the kdev-python source directory. The master branch compiles only against the master branch of kdevplatform, which has not been released yet. Greetings
I'm working on the KDevelop IDE.
|
Registered Member
|
OK, I got errors previously but after switching to 1.4.1 it seems to have compiled successfully. But how do I get the python features to show up in kdevelop? Well it seems like the highlighting and autocompletion are working. Nevermind I think it's working; I'll review http://scummos.blogspot.de/2012/11/kdev ... eased.html closer and see how it goes.
Thanks a ton for the work! Should get a flattr account so I could conveniently give you a tip. |
Global Moderator
|
Highlighting and autocompletion are the features, also quickopen support, classbrowser support, ...
There's also a debugger. What else are you missing? Cheers, Sven
I'm working on the KDevelop IDE.
|
Registered Member
|
Well, I'm still not getting the python plugin showing up in my Loaded Plugins list. I'm completely new to KDevelop. From the directions on your blog:
I can't find "Script Application"? I'm pretty familiar with Notepad++ which lets me select a language. I guess this one just automatically does it according to the file extension? |
Global Moderator
|
Yes, it determines the language based on the mine type (usually the extension). If the plugin doesn't show up in the list, then it's not installed properly and you don't get any of the features.
Where did you install the python plugin? When e.g. /usr/local (replace this with the right path!) is your install path, try this:
Greetings
I'm working on the KDevelop IDE.
|
Registered Member
|
Well, I did seem to get a function like enumerate to autocomplete and I seem to get decent syntax highlighting.
When you talk about the path, do you mean to include the kdev-python folder? In my case, /home/ben or /home/ben/kdev-python. Anyway, I tried both and it didn't work. I get the following errors:
|
Global Moderator
|
Please, first of all, make a screenshot of one of your python files so I can tell you whether the plugin actually works or not.
Then, did you run "make install"? You'll have to do that. If you want to install into your home folder, you could set it up like this:
If you want to install it system-wide, specify another install prefix (like /usr) and run make install as root.
I'm working on the KDevelop IDE.
|
Registered Member
|
FIrst of all, thanks so much for making this plugin, it looks awesome. I've gotten it to build and show up in my KDevelop, but I can't configure the launch settings. When I go to Run -> Configure Launches, I don't see any left-pane options for a script interpreter like in the instructions on http://scummos.blogspot.com/2012/11/kdev-python-14-stable-released.html. Here's a screenshot of what I see:
The instructions from the link I posted above read:
Maybe I have the new kdevelop master and these steps are no longer relevant? When I go to Help -> About KDE, my KDE Platfrom version says 4.9.4, even though the Ubuntu repository I installed from says it's 4.4.1. I appreciate any help! Thanks |
Global Moderator
|
In the left tree view, note the scrollbar at the bottom!
No worries, nobody gets this one, it's totally unfindable. It's already fixed and waiting for a release.
I'm working on the KDevelop IDE.
|
Registered Member
|
I'm trying to revive this. It seems that my KDE 4.5 is working fine, but I can't get the kdev-python to install. I downloaded the latest version from https://projects.kde.org/projects/extra ... repository and then I used git checkout to switch to v1.5.0. I get the following error:
|
Global Moderator
|
You need the kdev-pg-qt (or kdevelop-pg-qt) package, any version should work.
Maybe I should really strip this dependency by just copying the header I need
I'm working on the KDevelop IDE.
|
Registered Member
|
I finally got around to finishing this. Still running into issues.
When I tried running kbuildsycoca4, I got the following:
What I see when I open some Python code is below. The Loaded Plugins doesn't show any plugins. Also I can't do any Launch configurations; pressing the "Add New" button doesn't do anything except depress the icon. |
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]