emacs+ update site gone away, how to fix current code and build local update site?

133 views
Skip to first unread message

David Karr

unread,
Sep 16, 2023, 7:47:52 PM9/16/23
to Emacs+ plugin discussion
So I see that the emacs+ update site is gone. I'm still hoping that's temporary, but I have a feeling it's not.

Years ago I believe I figured out how to build the code locally and set up a local update site, or perhaps Mark or someone told me how. I guess I'm going to need to figure that out again. I could use some help with that.

I see in the current code in master, when I import it into a 2023-09 "eclipse committers" distro, it has a compile error in the following:

public SelectionDialog(Shell parent, ISelectExecute mini, ITextEditor editor) {

// Europa compatible constructor

super((Shell) null, PopupDialog.HOVER_SHELLSTYLE, false, false, false, false, null, null);

this.editor = editor;

this.minibuffer = mini;

}

This is in "com.mulgasoft.emacsplus.execute.SelectionDialog".  The error message says this:
The constructor PopupDialog(Shell, int, boolean, boolean, boolean, boolean, null, null) is undefined

It appears this constructor now requires five booleans. I could just add another "false", but it would be good if I could understand if there are consequences of that.

David Karr

unread,
Sep 19, 2023, 4:18:02 PM9/19/23
to Emacs+ plugin discussion
I managed to figure out how to build the update site. It's as simple as opening the "site.xml" file and clicking "Build All" and then pointing another eclipse at the local "site.xml" file.

Concerning the PopupDialog error, I just added the extra "false" and I'll see if it works.

Message has been deleted
Message has been deleted

Bill Carpenter

unread,
Sep 26, 2023, 3:35:06 PM9/26/23
to Emacs+ plugin discussion
I'm glad you  figured it out, though I can't quite follow how you built it. Do I need a special eclipse environment of some kind?

David Karr

unread,
Sep 26, 2023, 5:53:36 PM9/26/23
to Emacs+ plugin discussion
Ok, well, hard to say what "special" means. You need to install the Eclipse variant sometimes called "Plugin Development Environment". I think it's possible to set up a "regular" Eclipse installation to also work on plugins, but as the vast majority of my work is NOT on plugins, I'm more comfortable having a separate install of the PDE.

After starting up the generic installer, on the page where the first choice is "Eclipse IDE for Java Developers", scroll down in that list until you get to "Eclipse IDE for Eclipse Committers" (someone should mention that that name probably scares away some people, if developing Eclipse plugins isn't hard enough).  Select that and complete the install.

Clone the entire Emacs+ github repo to your box, and then within Eclipse, import from that directory.  It will create several projects. One of them is called "Emacs+Update". In that project, open up the "site.xml" file. That presents a form editor titled "Update Site Map". Click on "Build All".  That will build all the required projects. If you get no errors, now you can open up your "regular" Eclipse installation and select "Install New Software" from the Help menu.

When that appears, click on "Add..." next to the field after the "Work with:" label. In that little dialog, click "Local.." and navigate to the "Emacs+Update" directory in your workspace. Click "Select Folder", and that will let you install the plugin from your local update site.

Note that on the "Build All" step, if you're cloning directly from the original source, and you do this today, you'll likely get that compile error I mentioned earlier. Just add an additional ", false" to the four that are there now, and that likely will be fine.

Bill Carpenter

unread,
Oct 5, 2023, 8:50:17 PM10/5/23
to emac...@googlegroups.com
Thanks for going to the trouble of detailing those steps. I don't know that I would have figured it out on my own (even though, like you, I use eclipse for a lot of things *other than* plugin development).

--
--
You received this message because you are subscribed to the Google
Groups "Emacs+ Eclipse Discussion" group.
To post to this group, send email to emac...@googlegroups.com
To unsubscribe from this group, send email to
emacsplus+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/emacsplus?hl=en?hl=en
 
Support Emacs+ by marking it as a 'favorite' at the Eclipse Marketplace: http://marketplace.eclipse.org/content/emacs.

---
You received this message because you are subscribed to a topic in the Google Groups "Emacs+ plugin discussion" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/emacsplus/-yEznw2RSQ0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to emacsplus+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/emacsplus/95f4af3d-270b-44db-861d-db75ab5d3fe9n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages