News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Python Code Completion

Started by dmoore, October 06, 2012, 06:13:10 PM

Previous topic - Next topic

MortenMacFly

Quote from: darmar on November 03, 2012, 05:17:05 PM
I have attached a patch for codecompletion.cpp. I have deleted calls to 'IsFileExtRegistered' in this patch also.
So - this seems pretty much complete and does what I should do. @dmoore: are you happy with his, too? It looks fine here, after a few hours of testing... Looks like the "least common denominator" we were looking for... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dmoore

I haven't had time to look, but everything darmar said sounds good to me, so commit away unless you want me to test.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

MortenMacFly

Quote from: dmoore on November 07, 2012, 01:11:03 PM
I haven't had time to look, but everything darmar said sounds good to me, so commit away unless you want me to test.
Committed with credits. Whats missing are the adjustments to the Fortran project plugin - darmar will take case I guess... ;D
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dmoore

Now working nicely with PythonCodeCompletion plugin.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

MortenMacFly

Quote from: dmoore on November 09, 2012, 10:47:21 PM
Now working nicely with PythonCodeCompletion plugin.
Well done then. :-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

darmar

The functions "RegisterCCFileExts" and "IsFileExtRegistered" are left still in "src/sdk/pluginmanager.cpp". They are unused any more and can be deleted, I think.

MortenMacFly

Quote from: darmar on November 24, 2012, 10:00:27 AM
They are unused any more and can be deleted, I think.
Done in trunk. Thank you!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

dmoore

Update: Now using the jedi library to complete python code. Works a little better than rope and is more actively developed.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

oBFusCATed

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

dmoore

Quote from: oBFusCATed on October 29, 2013, 05:56:49 PM
dmoore: Do you follow Alpha's changes to the CC in this branch https://github.com/alpha0010/codeblocks_sf/compare/cc_interface?

Not closely (i.e. I read the occasional post in the related thread), but I might soon. Is there enough ready to be able to do anything with it yet? Testing out his work with Python would obviously be a good test.
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]

Alpha

Quote from: dmoore on October 29, 2013, 06:14:30 PM
Is there enough ready to be able to do anything with it yet? Testing out his work with Python would obviously be a good test.
I think so.  API for auto-complete popups, documentation popups, tooltips, and calltips are present and (mostly) functional.  These subsystems still contain some hardcoded defaults, but other than that, I believe it is ready for a test with Python.  (Be prepared for uncaught bugs and frequent API breaks though ::).)

dmoore

Quote from: Alpha on October 30, 2013, 12:52:38 AM
I think so.  API for auto-complete popups, documentation popups, tooltips, and calltips are present and (mostly) functional.  These subsystems still contain some hardcoded defaults, but other than that, I believe it is ready for a test with Python.  (Be prepared for uncaught bugs and frequent API breaks though ::).)

I will take a look soon (if for no other reason than I want to use the docstring UI rather than roll my own). Some hints (e.g. doc strings) on how to use the plugin virtuals (i.e. what the plugin is supposed to do with each one) and what events are available and need to be used would be extremely helpful! Looks like a fairly extensive overhaul of the existing interface. (Well done!)
Python plugins: [url="https://github.com/spillz/codeblocks-python"]https://github.com/spillz/codeblocks-python[/url]
Code::Blocks Daily Builds -- Ubuntu PPA: [url="https://launchpad.net/~damien-moore/+archive/codeblocks"]https://launchpad.net/~damien-moore/+archive/codeblocks[/url]