Giter Site home page Giter Site logo

Comments (13)

ruspl-afed avatar ruspl-afed commented on June 1, 2024

@ilg-ul do you think org.eclipse.embedcdt.core bundle could be good new home for GnuMcuPropertyTester to fix the reported problem?

from eclipse-plugins.

ilg-ul avatar ilg-ul commented on June 1, 2024

You mean to relocate the definition of isGnuMcu

	<extension point="org.eclipse.core.expressions.propertyTesters">
		<propertyTester
			class="org.eclipse.embedcdt.managedbuild.cross.core.GnuMcuPropertyTester"
			id="org.eclipse.embedcdt.managedbuild.cross.core.propertyTester"
			namespace="org.eclipse.embedcdt.managedbuild.cross.core"
			properties="isGnuMcu"
			type="java.lang.Object">
		</propertyTester>
	</extension>

from org.eclipse.embedcdt.managedbuild.cross.core to org.eclipse.embedcdt.core?

I guess we can do this. Are there any compatibility issues?

from eclipse-plugins.

ilg-ul avatar ilg-ul commented on June 1, 2024

I took a second look, and apparently the reason behind this tester is to enable the properties pages only for GNU MCU projects. It checks some substrings in options ids.

If these checks run the same when invoked from org.eclipse.embedcdt.core, instead of relocating the definition, probably a better idea would be to add a new property tester (like isEmbeddedCdt), and update the references in the debug plug-ins.

I'm a bit rusty on these details, so any suggestions are welcome.

from eclipse-plugins.

jantje avatar jantje commented on June 1, 2024

My 2 cent
It is probably lots easier to use/create a GNU MCU projects nature (which is dependent on the org.eclipse.cdt.core.cnature)
and filter on the GNU MCU projects nature instead of org.eclipse.cdt.core.cnature and remove the enabled when

from eclipse-plugins.

ruspl-afed avatar ruspl-afed commented on June 1, 2024

It is probably lots easier to use/create a GNU MCU projects nature (which is dependent on the org.eclipse.cdt.core.cnature)

It would be easier in the beginning, now it is harder, since people already have a lot of existing projects that don't have this nature and adding a nature now will add even more problems to solve.

from eclipse-plugins.

jantje avatar jantje commented on June 1, 2024

It would be easier in the beginning, now it is harder, since people already have a lot of existing projects that don't have this nature and adding a nature now will add even more problems to solve.

I'm not fully agreeing here. Adding a nature is not that hard and as you can verify whether a project is a gnu mcu project you can create a listener and add the nature at project open if it is missing.

from eclipse-plugins.

jonahgraham avatar jonahgraham commented on June 1, 2024

Adding a nature is not that hard

IIUC the issue is not adding a nature for new projects, but that we still need the other version as all user's existing projects won't have the nature. Is that what you were referring to @ruspl-afed?

from eclipse-plugins.

ruspl-afed avatar ruspl-afed commented on June 1, 2024

If you need to have both nature-independent check with listener and nature-based processing you pay twice for the same functionality, isn't it?
Please don't get me wrong, personally I prefer natures, but this functionality is for Embedded Developers who will hardly value Eclipse-style design but will be very frustrated because of any change on their data (and .project that holds natures is a part of user data).

as all user's existing projects won't have the nature. Is that what you were referring to @ruspl-afed?

exactly @jonahgraham

from eclipse-plugins.

ilg-ul avatar ilg-ul commented on June 1, 2024

Any suggestion on how to proceed with this issue?

Would adding a new tester like isEmbeddedCdt to the core plug-in and leaving the current tester as deprecated be acceptable?

from eclipse-plugins.

jantje avatar jantje commented on June 1, 2024

Would adding a new tester like isEmbeddedCdt to the core plug-in and leaving the current tester as deprecated be acceptable?

If openocd plugin would reference isEmbeddedCdt tester; to me that would be fine as IMHO openocd plugin has a dependency on core plugin in the manifest file.

from eclipse-plugins.

ilg-ul avatar ilg-ul commented on June 1, 2024

Fixed on 2023-07-24.

from eclipse-plugins.

ilg-ul avatar ilg-ul commented on June 1, 2024

Fixed on 2023-07-24.

from eclipse-plugins.

jantje avatar jantje commented on June 1, 2024

Thanks

from eclipse-plugins.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.