goclipse

Eclipse IDE for the Go programming language:

  • 所有者: GoClipse/goclipse
  • 平台:
  • 许可证: Eclipse Public License 1.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Project website: http://goclipse.github.io/

As of 2017, Goclipse is no longer actively maintained, see this blog post for more information. If you are interested in contributing, you can for now fork the project - and there should be enough information here detailing how to build, test, release, etc.

--

Build Status
Gitter

Developers Guide

Building the IDE:

You will need Maven for building Goclipse.

  • To build, run mvn clean verify at the root of the repository. This will run the test suite, and afterwards produce a p2 repository (an Eclipse Software Site) at bin-maven/features.repository/repository.
  • To just build without running tests, invoke mvn clean package.

Setting up a development environment:

  • You need Eclipse PDE to develop Eclipse plugins. Download and start it.
  • Clone the Git repository.
  • In Eclipse, click "File / Import... ", and then "General / Existing projects into workspace". Select the Git repository folder as the "root directory", enable "Search for nested projects", and select all the Eclipse projects that show up. Click finish to import those projects.

Running the tests in Eclipse:

  • In releng/launches there is one or several Eclipse launch files for running the tests, so if this project is added to your Eclipse workspace, the launches will show up automatically in Run Configurations..., as "JUnit Plug-in Tests".

Creating and deploying a new release:

A release is a web site with an Eclipse p2 update site. The website may contain no web pages at all, rather it can be just the p2 site. To create and deploy a new release:

  1. Ensure the version numbers of all plugins/features/etc. are properly updated, if they haven't been already.
  2. Run mvn clean verify to perform the Tycho build (see section above). Ensure all tests pass.
  • To create a signed release the sign-build Maven profile must be activated, and the required properties set.
  1. Create and push a new release tag for the current release commit.
  2. Go to the Github releases page and edit the newly present release. Add the corresponding (ChangeLog.md) entries to the release notes.
  3. Locally, run ant -f releng/ CreateProjectSite. This last step will prepare the project web site under bin-maven/ProjectSite.
  4. To actually publish the project site, run ant -f releng/ PublishProjectSite -DreleaseTag=<tagName>. What happens here is that the whole project site will be pushed into a Git repository, to then be served in some way (for example Github Pages). If projectSiteGitURL is not specified, the default value in releng-build.properties will be used.
  • For more info on the Release Engineering script, run ant -f releng/, this will print the help.
  1. A branch or tag named latest should also be created in Github, pointing to the latest release commit. The previous latest tag can be deleted/overwritten. The documentation pages use this tag/branch in their links.

Project design info and notes

LangEclipseIDE

This project uses the LangEclipseIDE framework, which is designed to have its source embedded in the host IDE.
See this section for more info on how this should be managed.

Extensive Compile-Time type and contract checking

See https://github.com/bruno-medeiros/MelnormeEclipse/wiki/Extensive-Compile-Time-Checking for more info on this principle.

Code style:

  • Indent with tabs (tab size is 4 spaces)
  • Max line width: 120
  • Block style:
    if(foo.blah()) {
        doThis();
    }
  • Indentation for function arguments: 1 indent unit (= 1 tab):
    foo(one, two, three,
        four, five, six);

There is also an Eclipse formatter profile settings file you can use, although you are not obliged to format with all rules of that formatter settings. If you make a minor source change, don't format the whole file, but only around the changes you are contributing.

Unit tests double-method wrapper:

This code idiom is often used in this project's JUnit tests:

@Test
public void testXXX() throws Exception { testXXX$(); }
public void testXXX$() throws Exception {

This is donely solely as an aid when debugging code, so that the "Drop to frame" functionality can be used on the unit-test method. It seems the Eclipse debugger (or the JVM) cannot drop-to-frame to a method that is invoked dynamically (such as the unit-test method). So we wrap the unit-test method on another one. So while we now cannot drop-to-frame in testXXX, we can do it in testXXX$, which basically allows us to restart the unit-test.

TODO: investigate if there is an alternate way to achieve the same. I haven't actually checked that.

主要指标

概览
名称与所有者GoClipse/goclipse
主编程语言Java
编程语言Java (语言数: 4)
平台
许可证Eclipse Public License 1.0
所有者活动
创建于2013-11-19 03:41:13
推送于2017-08-25 16:53:24
最后一次提交2017-08-25 17:53:24
发布数18
最新版本名称v0.16.1 (发布于 2016-07-06 20:00:38)
第一版名称0.8.0_RC (发布于 )
用户参与
星数841
关注者数115
派生数287
提交数2.9k
已启用问题?
问题数228
打开的问题数47
拉请求数15
打开的拉请求数1
关闭的拉请求数16
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?