Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Advanced Scripting Environment (EASE) » Scripting CDT
Scripting CDT [message #1738748] Fri, 22 July 2016 20:42 Go to next message
Tim Westbrook is currently offline Tim WestbrookFriend
Messages: 5
Registered: October 2013
Junior Member
Running

org.eclipse.cdt.core.CCorePlugin.getDefault()

in the shell gives

Traceback (most recent call last):
File "(none)", line 1, in <module>
TypeError: 'javapackage' object is not callable

Oddly enough I had similar problems with Py4J which had to be fixed by adding a special reflection callback. I am now able to access this plugin via Py4J in this eclipse instance (which of course has the CDT installed)

I see this error in js and in python.

Do you know what the issue might be?

I was attempting to follow the example at https://github.com/jonahkichwacoders/EASE-Python-Examples/blob/master/Utilities/create5javaprojects.py

But for CDT instead of JDT. As I said, I have this working for Py4J but not without some special plugin magic.



Re: Scripting CDT [message #1739450 is a reply to message #1738748] Mon, 01 August 2016 17:18 Go to previous messageGo to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
Trying with JS does not show this error:
org.eclipse.cdt.core.CCorePlugin.getDefault()
	org.eclipse.cdt.core
org.eclipse.cdt.core.CCorePlugin
	JavaClassStatics[org.eclipse.cdt.core.CCorePlugin]


Either your CDT plugin is not available in your runtime or it might be python related. Could you check that a) the corresponding CDT plugin is loaded and b) if it works in JS?
Re: Scripting CDT [message #1739557 is a reply to message #1739450] Tue, 02 August 2016 22:04 Go to previous messageGo to next message
Tim Westbrook is currently offline Tim WestbrookFriend
Messages: 5
Registered: October 2013
Junior Member
Thanks for your reply.

As I mentioned, it doesn't work for JS either

I'm not super familiar with Java/Eclipse plugin system but the following screencap shows that the core plugin is installed.

capture.png

The second capture just shows the state of my Jython scripting view.

capture2.png

sounds like it works for you. so probably something wrong on my end. Odd that it works for py4j though.

  • Attachment: capture.png
    (Size: 71.90KB, Downloaded 173 times)
  • Attachment: capture2.png
    (Size: 126.74KB, Downloaded 194 times)
Re: Scripting CDT [message #1739576 is a reply to message #1739557] Wed, 03 August 2016 06:16 Go to previous messageGo to next message
Christian Pontesegger is currently offline Christian PonteseggerFriend
Messages: 250
Registered: July 2009
Location: Graz, Austria
Senior Member
Tried again today and interestingly it works from my development IDE, but not from a productive installation. Behavior is like the packages were not exported at all, which is obviously not the case when looking at the manifest. Currently I do not have the time to dig into this. Please raise a bug, although it may take a while to look at it.

Christian
Re: Scripting CDT [message #1739663 is a reply to message #1739576] Wed, 03 August 2016 15:05 Go to previous message
Tim Westbrook is currently offline Tim WestbrookFriend
Messages: 5
Registered: October 2013
Junior Member
Interesting, I noticed that as well, although this is my dev ide.

I had trouble , even with py4j calling into the CCplugin when I was running from a CDT eclipse installation distributed by/for CDT.

Thanks for your help, I will enter a bug report for this.
Previous Topic:Support for Bean Shell
Next Topic:Configuring PyDev
Goto Forum:
  


Current Time: Fri Apr 19 03:59:39 GMT 2024

Powered by FUDForum. Page generated in 0.02170 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top