Skip to content
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

Include sources into p2-repository #215

Merged
merged 1 commit into from
Jan 23, 2015
Merged

Include sources into p2-repository #215

merged 1 commit into from
Jan 23, 2015

Conversation

dgolovin
Copy link
Contributor

No description provided.

@paulvi
Copy link
Contributor

paulvi commented Dec 24, 2014

👍

This paves road for making tern.java extensions, is it so?

@angelozerr
Copy link
Owner

@pascalleclercq could you please check this PR. Thanks!

@dgolovin
Copy link
Contributor Author

It makes developing tern.java extensions easier. When tern IUs declared in .target file eclipse can find sources and that lets debug/browse term.java sources without having them available in eclipse workspace.

@dgolovin
Copy link
Contributor Author

minimal-json has no sources and build fails to generate sources if it is included into feature.xml. I was able to workaround it by converting plug-in into requirement and including it directly into category.xml file.

I did some tests with .target files using my local repo and tern.java IDE seems to work the same after installation.

Would be good if someone would check it to confirm I didn't break something :)

@angelozerr
Copy link
Owner

@dgolovin it means that when you install tern ide, you install too tern java sources? If it that I think it's shame to install tern sources too although users want sto just to use tern.

To get sources, perhaps we should add link in the MANIFESTMF to the github. And after you do "Import" to download tern sources. What do you think about that?

@dgolovin
Copy link
Contributor Author

Sources are not installed by default unless you want them. They are separate features in "Tern Tooling Development Resources" category. They even can be uncategorized to draw less attention.

We should add link to the git hub in manifests, but that different use case, when you use PDE Wizard to get sources from SCM.

Including sources into p2-repository allows to use target platform definition and to have sources for debugging without any additional efforts, it just a matter to includeSources="true" attribute in . When source features installed it is possible to import sources into workspace offline with PDE "Import Plug-ins and Fragments" dialog when working offline.

@paulvi
Copy link
Contributor

paulvi commented Dec 25, 2014

@angelozerr What about create wiki page "Developing tern.java" and add some compilation from here ?

@angelozerr
Copy link
Owner

What about create wiki page "Developing tern.java" and add some compilation from here ?

I have created the page at https://github.com/angelozerr/tern.java/wiki/Tern-Toolings-Development-Resources

@paulvi
Copy link
Contributor

paulvi commented Dec 31, 2014

I have extended https://github.com/angelozerr/tern.java/wiki/Tern-Toolings-Development-Resources and tried to summarize.
However I have not used such approach before.

@dgolovin Could you please extend wiki, add some links

and tell more e.g. about

PDE Wizard to get sources from SCM.

@dgolovin
Copy link
Contributor Author

@paulvi I added some info to article. There is no way to send PR for wiki, so I mirrored it and here is the link which compares latest revision in original wiki with my commit.

https://github.com/dgolovin/tern.java-wiki/compare/2a3572d...master

@angelozerr
Copy link
Owner

There is no way to send PR for wiki

You cannot modify wiki pag eas you wish? @paulvi is able to change wiki pages.

angelozerr added a commit that referenced this pull request Jan 23, 2015
Include sources into p2-repository
@angelozerr angelozerr merged commit 261f125 into angelozerr:master Jan 23, 2015
@angelozerr
Copy link
Owner

This PR breaks now the build https://travis-ci.org/angelozerr/tern.java/builds/48020724

@dgolovin could you see the problem please. Do you think it's possible to see the problem quickly, because I would like to commit other features like ecma6.

Thanks for your help.

@angelozerr
Copy link
Owner

@dgolovin I'm waiting for your answer today. If I have not answer from you I will revert your PR.

I will commit soon several features (like ecma6 support) and I would like to provide it quickly. Hoep you will understand.

Thanks for your help!

@dgolovin
Copy link
Contributor Author

@angelozerr this build failure seems to be related to broken zip in local repository.

[ERROR] Internal error: org.eclipse.tycho.core.osgitools.OsgiManifestParserException: Exception parsing OSGi MANIFEST /home/travis/.m2/repository/p2/osgi/bundle/org.mozilla.javascript/1.7.4.v201209142200/org.mozilla.javascript-1.7.4.v201209142200.jar: error in opening zip file

It also marked with green check in PR closed PR list as 'Success: The Travis CI build passed'.

@angelozerr
Copy link
Owner

It also marked with green check in PR closed PR list as 'Success: The Travis CI build passed'.

Yes it's stange, but if you go at https://github.com/angelozerr/tern.java yopu will see that build icon travis is error. Have you an idea how to fix that?

@dgolovin
Copy link
Contributor Author

Last build is good :)

@angelozerr
Copy link
Owner

Last build is good :)

Cool! Sorry for the noise.

@dgolovin dgolovin deleted the include-sources branch January 23, 2015 20:20
@angelozerr
Copy link
Owner

@dgolovin minimal-json appears now inside uncategorized category. I think it should be better that it appears inside Tern IDE category. What do you think? Could you change that please?

@angelozerr
Copy link
Owner

@dgolovin we have released tern.java + AngularJS Eclipse, but I have a problem when I try to update marketplace https://marketplace.eclipse.org/content/tern-eclipse-ide with minimal-json.

Now minimal-json is not a feature bu a bundle. I can add features in marketplace but not bundle. So marketplace doesn't work -(

Do you know how I could fix that please? Thanks!

@gamerson
Copy link
Contributor

Can you not just add the minimal-json bundle into one of your feature.xml
files? Just add it as another <plugin.../>

On Wed, Jan 28, 2015 at 4:37 PM, Angelo notifications@github.com wrote:

@dgolovin https://github.com/dgolovin we have released tern.java +
AngularJS Eclipse, but I have a problem when I try to update marketplace
https://marketplace.eclipse.org/content/tern-eclipse-ide with
minimal-json.

Now minimal-json is not a feature bu a bundle. I can add features in
marketplace but not bundle. So marketplace doesn't work -(

Do you know how I could fix that please? Thanks!


Reply to this email directly or view it on GitHub
#215 (comment).

Greg Amerson
Liferay Developer Tools
Liferay, Inc. www.liferay.com

@paulvi
Copy link
Contributor

paulvi commented Jan 28, 2015

Yes, minimal-json should be just a dependency of some feature and Eclipse will resolve to get it.

Having it as separate item that user has to select is error prone.

@angelozerr
Copy link
Owner

Ok problem is now fixed. Problem cames from that bundle of minimal-json was not included in the update site. @pascalleclercq has fixed the problem and release for 0.8.0 works great now.

Thanks @pascalleclercq !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants