-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doc: contributors guide, how to set up plugin development environment #60
Comments
@atsu85 to be honnest with you my time is very limitated and I have not time to explain how to configure Eclipse env for developping plug, etc Contribution are really welcome, but I prefer having PR from guys who have skills about Eclipse plugins, because review code is easy for me (I trust the guy who has done the PR). I'm working like this for https://github.com/angelozerr/tern.java where I have the luck to have PR from impressive guys coming from MyEclipse, IBM, RedHat, Liferay IDE, Zend Studio. Hope you will understand. |
Hi @angelozerr, after commit f2982c9 there are some new dependencies (Eclipse features/plugins) that I can't trace. FYI, this is what I am currently installing to work on 1.2.0 (I mostly reverse-engineered it myself).
I'm asking here because this is somewhat related to the future contributor's guide. |
typescript.java now support CodeLens #181 (comment). For the moment I have copied/pasted Eclipse CodeLens support from https://github.com/angelozerr/codelens-eclipse to typescript.java so you should not have some troubles. Have you some troubles? Please give me feedback with CodeLens. Thanks! |
Thanks for the quick response: you were so quick that you probably missed the list that I updated into the previous comment. Sorry about that. I tried again and now it is much better. The last time I probably forgot to import some new project from Git into the workspace. I had to create some missing empty
My version of |
I'm using Neon 3 for dev, but CodeLens should work with older JFace text. Try to remove |
If you install Eclipse JEE distribution you will the whole plugins where typescript.java depends on (except for tm4e). |
Removing the However, I also now noticed these problems.
I did not see them before because I'm used to ignore another problem on
Nice to know: maybe I will try this. |
The
Problem comes from tm4e update site which cannot be updated eclipse-tm4e/tm4e#111 Please be patient. |
@lorenzodallavecchia and soon you will perhaps having a depdnency to egit (orjgit only) to support Git CodeLens. |
Ok, I'll try your suggestions soon and let you know. EGit should not be a problem: I use that every day in all workspaces. |
@Springrbua you can remove from your workspace "parent" projects like codelens, core, eclipse, embed, jsdt, json, etc It's better to use Import as Maven project because it will download the dependency like tm4e. @lorenzodallavecchia please note that if you use Oxygen you will not have the problem error with Is it ok for you now @Springrbua ? |
@angelozerr I'll try to import using maven as soon as I find time. If that works I'll probably create an entry in the Wiki if thats okay for you? |
Thanks for the updates @angelozerr: I will try with Oxygen. About importing projects, I used to do that by importing as @Springrbua did and removing "parent" folders that are not real projects. I have a Team Project Set file with only the correct projects and also some working sets to separate them. @Springrbua I have been using the Eclipse [built-in] style and the resulting formatting is usually identical to the one checked out. Note however that I have auto-format active only on modified lines to avoid unexpected changes in parts of the files that I am not looking at. Also, while we are on it, I have found that files use inconsistent line endings, probably because of misconfigured Git on Windows. The guide should probably include the recommended Git line ending configuration. |
Oh lord! I am not able to setup this. I imported the projects as maven projects but it keeps showing lot of errors like:
|
It is pretty frustrating. I am new to maven/tycho, but I really want to contribute with this project. I think @angelozerr that more love for the build guide will be good for your project, since not advanced users could contribute too, in simple tasks like better icons or adding some GUI. |
@boniatillo-com if you import codelens, tm4e and typescript.java projects as maven projects, it should work. You can ignore maven errors. |
Hi @angelozerr yes it is a good idea, at least to make it to run inside Eclipse.
Compile errors:
|
By the way, I see in the Target Platforms there are two options:
I selected the first one, let's see if it downloads all dependencies. |
Use Eclipse JEE Distribution.
Import https://github.com/angelozerr/codelens-eclipse/tree/master/javassist in your workspace. |
I added TM and JSDT to the target platform.
|
Where have you that? |
|
Done
I do not find the way to add it to the target platform. |
Import https://github.com/angelozerr/typescript.java/tree/master/thirdparties/minimal-json |
Ok, I did, but it is not a maven project so I had to import it as a common project. I had to add a
I guess a Now the problem I have is:
|
Ignore this error. It's for Generic Editor but you don't use it. |
Ok, I will ignore it for the moment but I guess if I want to contribute to the lsp4e integration I will need right? |
Not directly. Language configuration is used to manage auto close, indentation etc by using a simple JSON file configuration. It is not linked to lsp4e. |
Yes true, is generic editor. Anyway, I see it is an extension point arrived now on 4.8-m1. |
Great, it is working now. |
@boniatillo-com Is it possible for you to sum up what you had to do to make it work? |
Sure I can do it!!! I guess it should be a temporal guide because it is full of workarounds, yet I need to understand how Maven works because that's the tooling promoted by Eclipse and this project. |
I added a new wiki page with a resume of the steps: |
@boniatillo-com thank you very much. |
Thanks @boniatillo-com ! |
@boniatillo-com that's great news. |
Hi, I want to use the Typescript.java as a dependency to my project so that I can enable TS editing in the workspace. I am not able to do so even after including the packages as a jar file to the classpath of the plugin I am creating. Oh, and by the way, I am creating a plugin for a perspective for study purposes. Any info on the same will be helpful. Thanks. |
To encourage other developers
(who might not know anything about Eclipse plugin development)
to contribute to this project
(either pull requests or by helping to debug issues),
it would help a lot if there was a guide to set up typescript.java plugin development environment.
Things to consider
I'm adding bellow few things You might want to consider. I'm neither asking to cover everything I mention bellow or to write everything from scratch. Add links to other resources when applicable and leave out things You don't consider important:
Running the plugin in development environment
Contribution guides
Other instructions
The text was updated successfully, but these errors were encountered: