Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Today's Messages (on)  | Unanswered Messages (off)

Forum: Gemini
 Topic: Gemini JPA principle questions
Re: Gemini JPA principle questions [message #1739252 is a reply to message #1739100] Fri, 29 July 2016 02:28
Michael Keith is currently offline Michael KeithFriend
Messages: 239
Registered: July 2009
Senior Member
Have a look at:

https://wiki.eclipse.org/Gemini/JPA/Documentation/JPAServices

You can look up EMFs for any of the persistence units that are defined in the persistence xml file. If you need to use the properties with the builder then you can get the EMF for a given persistence unit as shown in the example in that doc.

-Mike
Re: Gemini JPA principle questions [message #1739253 is a reply to message #1739252] Fri, 29 July 2016 03:17
Pavel No is currently offline Pavel NoFriend
Messages: 32
Registered: May 2016
Member
Thank you very much. This is what I was looking for. Can you answer to the first question? I need to know exactly what does gemini jpa, what does eclipselink. As I understand factorybuilder and factory services are provided by gemini jpa. Please, help.
Forum: EGit / JGit
 Topic: URI not supported cloning repository
Re: URI not supported cloning repository [message #1739258 is a reply to message #1739246] Fri, 29 July 2016 06:16
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 207
Registered: July 2009
Senior Member
Are you sure you don't have anything weird in your global config? What is the output in a bash of 'git -C / config -l' (please make sure there are no secrets in the output before you post it).

Ciao
Chris
Re: URI not supported cloning repository [message #1739260 is a reply to message #1739258] Fri, 29 July 2016 06:58
paolo di tommaso is currently offline paolo di tommasoFriend
Messages: 22
Registered: July 2009
Junior Member
Interesting, this is what I've found

$ git config -l
url.ssh://git@github.com:.insteadof=https://github.com


JGit uses this information and replaces https with ssh?
Re: URI not supported cloning repository [message #1739262 is a reply to message #1739260] Fri, 29 July 2016 07:07
Christian Halstrick is currently offline Christian HalstrickFriend
Messages: 207
Registered: July 2009
Senior Member
Yes. As described in https://www.kernel.org/pub/software/scm/git/docs/git-config.html#_variables when you search for "url.<base>.insteadOf" git and JGit use this parameter to replace URIs

Ciao
Chris
Re: URI not supported cloning repository [message #1739263 is a reply to message #1739260] Fri, 29 July 2016 07:17
paolo di tommaso is currently offline paolo di tommasoFriend
Messages: 22
Registered: July 2009
Junior Member
Yes, removing the .gitconfig file solve the problem.

Thanks for the support.

Cheers,
Paolo
Forum: M2T (model-to-text transformation)
 Topic: How Does Acceleo Know to Regenerate EMTL files?
Re: How Does Acceleo Know to Regenerate EMTL files? [message #1739264 is a reply to message #1739173] Fri, 29 July 2016 07:28
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1729
Registered: July 2009
Senior Member
Hi,

There is no incremental compiler in standalone, you'll have to compile the whole project when using it. If your question was that you do not know yet how to use the standalone compiler, you might want to look at the maven builder.

Laurent Goubet
Obeo
Forum: SWTBot
 Topic: Headless Test with Maven/Tycho
Re: Headless Test with Maven/Tycho [message #1739267 is a reply to message #1739008] Fri, 29 July 2016 08:28
Lorenzo Bettini is currently offline Lorenzo BettiniFriend
Messages: 1694
Registered: July 2009
Senior Member
On 26/07/2016 20:28, Vivek Veera wrote:
> Thank you Lorenzo for the response.

Hi

comments inline

>
> Yes, all my Tests are named as XXXTest.java and placed them under
> src/test/java inside my Test plugin. I have mentioned packaging type for
> test plugin as 'eclipse-test-plugin'
>
> I tried running build with 'mvn clean test' command initially but Tests
> are not run with this and build completes with SUCCESS.
>
> I think Tycho surefire plugin executes tests in 'integration-test' phase
> therefore it does not pick SWTBot tests in 'test' phase. But I get

that's right: you need to run

mvn clean verify

> below dependency error when I use 'mvn clean integration-test' or 'mvn
> clean verify' commands. I doubt if this is the correct command to use
> for executing my SWTBot tests using Tycho surefire plugin.
>
> I need some help in getting the correct configuration and maven build
> commands for running my SWTBot tests using Tycho surefire plugin.
>
> Here is the error it throws for my test plugin (com.foo.bar.tests)

well you need that in your target platform.

Are you using a target platform in your eclipse workspace?

cheers
Lorenzo

>
> [INFO] --- tycho-surefire-plugin:0.24.0:test (default-test) @
> com.foo.bar.tests ---
> [INFO] {osgi.ws=gtk, osgi.os=linux, osgi.arch=x86,
> org.eclipse.update.install.features=true}
> [ERROR] Cannot resolve project dependencies:
> [ERROR] You requested to install 'bundle
> org.eclipse.ui.ide.application 0.0.0' but it could not be found
> [ERROR]
> [ERROR] See
> http://wiki.eclipse.org/Tycho/Dependency_Resolution_Troubleshooting for
> help.
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
>
>


--
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
HOME: http://www.lorenzobettini.it
Xtext Book:
http://www.packtpub.com/implementing-domain-specific-languages-with-xtext-and-xtend/book
Forum: EMF
 Topic: Is it possible to store generated EMF model directly to CDO?
Is it possible to store generated EMF model directly to CDO? [message #1739272] Fri, 29 July 2016 08:52
Prashanth Parameshwara is currently offline Prashanth ParameshwaraFriend
Messages: 1
Registered: July 2016
Junior Member
From the document that I have followed, I understood that every element in EMF model to extend CDOObject. Is this mandatory to extend CDOObject? If yes, then I have an EMF model which is actually developed from other team and don't have permission to extend model class CDOObject. Is there any alternative solution in such case?? otherwise I would request them to update this changes particularly for me.

I have tried to save model elements without extending them to CDOObject, I have been getting Stackoverflow error. I want to be sure this is because of the code modification is required.
 Topic: difference between "eContents" and "eAllContents"
difference between "eContents" and "eAllContents" [message #1739285] Fri, 29 July 2016 11:06
aurel pestell is currently offline aurel pestellFriend
Messages: 83
Registered: October 2013
Location: Sweden
Member
Hi,

I looked at the documentation but still wondering how "EObject.eContents()" and "EObject.eAllContents()" compare.
I analyzed a random EObject instance and "EObject.eContents()" return something when "EObject.eAllContents()" returns nothing.

Thanks.

[Updated on: Fri, 29 July 2016 11:07]

Report message to a moderator

Forum: EMF "Technology" (Ecore Tools, EMFatic, etc)
 Topic: Ecore model support for .net
Re: Ecore model support for .net [message #1739259 is a reply to message #1739182] Fri, 29 July 2016 06:24
naveen ramesh is currently offline naveen rameshFriend
Messages: 50
Registered: May 2016
Member
The project EMF4NET is withdrawn .So is there any better way to use Eclipse plugins(Around 400+)(Complete Eclipse IDE Should be brought into C#) in C#.So if any one has worked on it.
please let me know or if it is not possible what can be the valid reason and why EMF4NET project was withdrawn ?what was the drawback of it?
Re: Ecore model support for .net [message #1739261 is a reply to message #1739259] Fri, 29 July 2016 07:02
Ed Merks is currently offline Ed MerksFriend
Messages: 27714
Registered: July 2009
Senior Member
You want the complete IDE translated to and running in C#. That's even
broader than what EMF4Net was trying to do. I don't believe such a
thing exists. The company funding EMF4Net changed its priorities and
stopped working on it.

On 29.07.2016 08:24, naveen ramesh wrote:
> The project EMF4NET is withdrawn .So is there any better way to use
> Eclipse plugins(Around 400+)(Complete Eclipse IDE Should be brought
> into C#) in C#.So if any one has worked on it.
> please let me know or if it is not possible what can be the valid
> reason and why EMF4NET project was withdrawn ?what was the drawback of
> it?
Re: Ecore model support for .net [message #1739275 is a reply to message #1739261] Fri, 29 July 2016 09:01
naveen ramesh is currently offline naveen rameshFriend
Messages: 50
Registered: May 2016
Member
Ok we understand it.But I have defined the ecore model and generated the plugins for my model and written some additional plugins to it.So we want the same design to be ported to C#. Is this can be done.Because my plugins are internally related to EMF plugins so if I try to bring my plugins to C# we should also bring EMF plugins which internally will be related to some other Eclipse plugins.So can this design be portable to other platform or it is built only for eclipse and not for other platform?
If no why can't it be possible.
Please provide the solution for this

[Updated on: Fri, 29 July 2016 09:05]

Report message to a moderator

Re: Ecore model support for .net [message #1739281 is a reply to message #1739275] Fri, 29 July 2016 09:30
Ed Willink is currently offline Ed WillinkFriend
Messages: 4859
Registered: July 2009
Senior Member
Hi

Eclipse may appear to provide lots of wonderful things for free. It
doesn't. Behind the scenes, someone pays for it all.

a) companies may see an advantage in sharing their code and so setting a
standard
b) companies may avoid a hazard of dependening on in house develpments
c) enthusiasts may just do it anyway

None of these have promoted C# which is hindered by its strong
perception as a proprietary technology. I think many Eclipse users would
just advise against using C#. cf the troubles Microsoft users are now
having in escaping from COM.

If you want C# support, I suggest that you or your company provide it to
the community.

Regards

Ed Willink




On 29/07/2016 10:01, naveen ramesh wrote:
> Ok i understand it.But i have defined the ecore model and generated the
> plugins for my model and written some additional plugins to it.So i want
> the same design to be ported to C#.Is this can be done.
> If no can we get the valid reason


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Forum: Eclipse SmartHome
 Topic: EnOcean Binding
Re: EnOcean Binding [message #1739287 is a reply to message #1709019] Fri, 29 July 2016 11:29
Joachim Hansen is currently offline Joachim HansenFriend
Messages: 1
Registered: July 2016
Junior Member
Hi Oliver

Do you have anny news/progress with the EnOcean IP-Representation? I would love to see EnOcean capability in my favorite home automation program but as long as a memberhip in EnOcean Alliance is required this will not happen do to the cost.

Joachim
Forum: e(fx)clipse
 Topic: Where to get standard Eclipse bundles (e.g. bundle for BundleActivator)
Where to get standard Eclipse bundles (e.g. bundle for BundleActivator) [message #1739283] Fri, 29 July 2016 10:44
Onno Kouwenberg is currently offline Onno KouwenbergFriend
Messages: 10
Registered: January 2015
Junior Member
I'm used to do doing my JavaFX OSGi development with Apache Felix and Gradle, but I'm hoping to do a different app with the benifits of the Eclipse platform, especially the e(fx)clipse bundle.

Until now I find it a bit daunting, even though I've created some Eclipse IDE plugins in the past for a customized build environment. Then again, there the target platform was the same as the IDE itself so all things were present.

I've setup my environment with the e(fx)clipse target platform, and a local library folder for some additional libraries. I'd like to create a BundleActivator, but it seems to be not included in an exported bundle. Therefore I either have to mark it somewhere as exported or have the dependency downloaded. I just don't know where.

I guess I need to add an update site, select the right bundle. How to know which bundle? Is there some way to find out?

Regards,
Onno.
Re: Where to get standard Eclipse bundles (e.g. bundle for BundleActivator) [message #1739289 is a reply to message #1739283] Fri, 29 July 2016 11:59
Christoph Keimel is currently offline Christoph KeimelFriend
Messages: 459
Registered: December 2010
Location: Germany
Senior Member
Hi Onno,

The BundleActivator interface is in the bundle org.eclipse.osgi. This bundle is included in the e(fx)clipse target platform.

You can use the view "Target Platform State" to see which bundles are loaded as part of the current target platform. Is the bundle org.eclipse.osgi listed here?
Maybe your target platform definition is flawed. What does it look like?

Christoph
Re: Where to get standard Eclipse bundles (e.g. bundle for BundleActivator) [message #1739292 is a reply to message #1739289] Fri, 29 July 2016 12:19
Onno Kouwenberg is currently offline Onno KouwenbergFriend
Messages: 10
Registered: January 2015
Junior Member
I removed the project and started it all over again. Now the BundleActivator can be found in the right bundle, and the target platform does contain it.
Forum: Epsilon
 Topic: Eunit JunitClasses missing in jars?
Re: Eunit JunitClasses missing in jars? [message #1739284 is a reply to message #1735331] Fri, 29 July 2016 10:47
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 424
Registered: January 2010
Senior Member
Sorry for the delay: I didn't receive any notifications regarding your edit :-/.

You can call this operation from anywhere in the EOL file: see all the "transform();" calls in the .eunit file?

Essentially, operation contributors allow you to add methods to an object through Java reflection. If you always return true in the contributesTo, you'll add the method to anything, including the special EolNoType value that is used for context-less calls (e.g. "transform();" is contextless, "a.transform();" is not).

Re: Eunit JunitClasses missing in jars? [message #1739293 is a reply to message #1739284] Fri, 29 July 2016 12:43
Antonio Garcia-Dominguez is currently offline Antonio Garcia-DominguezFriend
Messages: 424
Registered: January 2010
Senior Member
By the way, the split is now complete, so you can use EUnitTestRunner from the core .jar [1]. The Eclipse-specific bit is in the EclipseEUnitTestRunner, not part of the standalone distro.

[1]: https://bugs.eclipse.org/bugs/show_bug.cgi?id=498879
Forum: NatTable
 Topic: Tree full CSS styling of tree status column
Tree full CSS styling of tree status column [message #1739297] Fri, 29 July 2016 13:07
Lothar L. is currently offline Lothar L.Friend
Messages: 1
Registered: July 2016
Junior Member
Tree full styling of tree status column

I am trying to apply styling to the most left column which holds the tree status (expanded, not expanded).

Specifically I would like to use "text-align: right" and to change the padding. However, while I can set the color or the cell-background-color I cannot change the alignment nor the padding via CSS. Furthermore I would like to show icons left of the tree status.

Looking at the examples provided with NatTable I am unable to find any clues on how to go about this. Using the tree-structure-painter attribute one can apply the values background, padding and tree:
- padding: allows to enable or disable padding but I can set a specific value.
- tree: switch between plus/minus or arrow pointing to the right/down to visualize status of tree
- background: enabled or disable that background of part holing the symbol is rendered as the rest of the cell

Does somebody have any hits or clues on how to go about this?
Forum: Plugin Development Environment (PDE)
 Topic: PDE Headless build with Eclipse 4.6 missing laucher
icon5.gif  PDE Headless build with Eclipse 4.6 missing laucher [message #1739288] Fri, 29 July 2016 11:31
Thomas Oettl is currently offline Thomas OettlFriend
Messages: 2
Registered: May 2015
Junior Member
We use the pde headless build, called by an ant script, to build an RCP Client on Windows and Linux.
Using the GUI export in the produc file resulting in an crrect Client (including the native launcher with configured icon and name).
But using the headless build the navtive laucher files are not build. Not the .exe file in windos build and not the natvie launcher in the linux Client. Does anyone know how to get a Client build headless including these natvie Launchers ?

Thanks for all hints!
 Topic: Where are the additional plugin dependencies coming from?
icon5.gif  Where are the additional plugin dependencies coming from? [message #1739306] Fri, 29 July 2016 13:59
Mark Drei is currently offline Mark DreiFriend
Messages: 12
Registered: April 2016
Junior Member
The Plug-in Dependencies view shows dependencies (on the first level) which are not specified in the "Required Plug-in" or the "Imported Packages" section. I can't see the dependency in the Build Path either.
Where else can they come from? Even with grep I don't find the dependency.

This might be related: The strange dependency has a symbol that I do not recognize:
index.php/fa/26614/0/

Background:
I am trying to resolve a dependency cycle in a plugin hierarchy. Compilation actually works fine, and the "Look for cycles in the dependency graph" functionality does not find any cycles. But when I try to perform Build All for an Update Site I get the following error:
'Build Site' has encountered a problem.

A cycle was detected when generating the classpath ...

When unrolling the dependencies in the Plug-in Dependencies view I can see the cycle.
  • Attachment: plugin.png
    (Size: 10.40KB, Downloaded 7 times)
Forum: Eclipse Process Manager (Stardust)
 Topic: Call stored procedure using Camel End Point Application
Re: Call stored procedure using Camel End Point Application [message #1739311 is a reply to message #1738484] Fri, 29 July 2016 14:19
Prerna AD is currently offline Prerna ADFriend
Messages: 2
Registered: July 2016
Junior Member
Thank you Ashish!
Forum: Eclipse 4
 Topic: v4.6.0: Unable to 'register' a context menu more than once in a part (on 2 different widgets)
v4.6.0: Unable to 'register' a context menu more than once in a part (on 2 different widgets) [message #1739312] Fri, 29 July 2016 14:21
Denis Forveille is currently offline Denis ForveilleFriend
Messages: 1
Registered: July 2016
Junior Member
Hi,
In short, with eclipse v4.5.2, it is possible to attach the same popupmenu to more than one component/widget in the same "part" by using EMenuService.registerContextMenu() without problem

This does not work anymore with v4.6.0. With v4.6.0, the popupmenu only appears on the first registered component

This is described in bug #496695

This forbids me to upgrade my eclipse-rcp application to v4.6.0

Q:
- Am I the only one hit by this bug ?
- Is there a workaround?
- Was it "legal" to register the same popupmenu multiple time on different widget (in my case different "Table"s from multiple "TableViewer"s present in the part?). If not how to do it the "legal way"?
Thx
Forum: Model Driven Health Tools
 Topic: How can I start MDHT project?
Re: How can I start MDHT project? [message #1739313 is a reply to message #1738891] Fri, 29 July 2016 14:24
pans pan is currently offline pans panFriend
Messages: 2
Registered: July 2016
Junior Member
Dear Sean:
I so sorry trouble you again.
where is the git/CDA?
Is it in https://hudson.eclipse.org/mdht/job/MDHT-mars/lastSuccessfulBuild/artifact/repository/plugins/?
Is it in "https://github.com/mdht/mdht-models"?
Is it in "https://sourceforge.net/projects/oht-modeling/files/"?
I found http://www.cdatools.com/docs/developeruserguide/org.openhealthtools.mdht.cda.doc.developerguide/topics/topic_Developers_Guide.html
But only win32 version, And can not download.
I also found "MDHT Modeling Style Guide for CDA", but not a user manual.
I uses Mac.
Thank you very much.

Forum: Remote Application Platform (RAP)
 Topic: how to share the plugins lib or third part jar libaries for multiple rap applications in one tomcat?
how to share the plugins lib or third part jar libaries for multiple rap applications in one tomcat? [message #1739254] Fri, 29 July 2016 03:34
David Song is currently offline David SongFriend
Messages: 201
Registered: April 2011
Senior Member
hi all,

I want to deploy multiple rap applications in virtual hosts in one tomcat , and many of the same plugins libaries and the third part libaried are used the projects, and we know that tomcat loads all the libaried for every webapp apps, but if we can make them share the the same plugin libs or the third parts libs? copy the libs into the lib folder of tomcat? or anybody know how to share the plugins lib or third part jar libaries for multiple rap applications in one tomcat?

btw. I configure the virtual hosts by add the host tags in tomcat server.xml file.

Thanks in advance.

Regards
David

[Updated on: Fri, 29 July 2016 03:47]

Report message to a moderator

 Topic: RAP e4 3.1
RAP e4 3.1 [message #1739266] Fri, 29 July 2016 08:12
Fabrice Koenigsbuch is currently offline Fabrice KoenigsbuchFriend
Messages: 1
Registered: July 2016
Junior Member
Hello,

I am using RAP e4 to build an application. I upgraded my target platform with RAP 3.1 and latest RAP e4 code from git. I noticed however that RAP e4 is not aligned with the latest code from RCP e4 NEON: I had to replace some classes with the one from RCP e4 to take advantage of the latest bug fixes ( such as org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerHideProcessor for bug 472654).

Is there any plan to upgrade e4 incubator to RAP main stream and / or get an RAP 3.1 compatible version, aligned with the latest RCP e4 developments?

Thank you!

Fabrice
Re: RAP e4 3.1 [message #1739319 is a reply to message #1739266] Fri, 29 July 2016 14:51
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6207
Registered: July 2009
Senior Member
Hi,

Yes it is on my todo list to sync back but I'm under heavy work load so
i can't give you a concrete date.

All I can say is that our company (some other devs) is currently also
building a product based on RAP / e4 and before we release that we'll
have things synced back.

Tom

On 29.07.16 15:28, Fabrice Koenigsbuch wrote:
> Hello,
>
> I am using RAP e4 to build an application. I upgraded my target platform
> with RAP 3.1 and latest RAP e4 code from git. I noticed however that RAP
> e4 is not aligned with the latest code from RCP e4 NEON: I had to
> replace some classes with the one from RCP e4 to take advantage of the
> latest bug fixes ( such as
> org.eclipse.e4.ui.workbench.renderers.swt.MenuManagerHideProcessor for
> bug 472654).
>
> Is there any plan to upgrade e4 incubator to RAP main stream and / or
> get an RAP 3.1 compatible version, aligned with the latest RCP e4
> developments?
>
> Thank you!
>
> Fabrice
Forum: Kura
 Topic: Kura 2.0 web ui
Kura 2.0 web ui [message #1739286] Fri, 29 July 2016 11:16
Bruno Portaluri is currently offline Bruno PortaluriFriend
Messages: 1
Registered: May 2016
Junior Member
It seems that Web UI is not working as expected in Kura 2.0.
I was previously using kura_1.4.0_raspberry-pi-2-nn_installer.deb without problems.
Now I have reinstalled latest Raspbian on a Raspberry PI 3 and installed kura_2.0.0_raspberry-pi-2-nn_installer.deb package

Kura seems to start correctly. This is what I see in the logs.
pi@raspberrypi:~ $ cat /var/log/kura.log
2016-07-29 13:12:30,483 [UdevHotplugThread] INFO  o.e.k.l.u.LinuxUdevNative - Starting LinuxUdevNative Thread ...
2016-07-29 13:12:30,519 [Component Resolve Thread (Bundle 6)] INFO  o.e.k.c.c.CertificatesManager - Bundle org.eclipse.kura.core.certificates.CertificatesManager has started!
2016-07-29 13:12:30,565 [Component Resolve Thread (Bundle 6)] INFO  o.e.k.l.b.BluetoothServiceImpl - Activating Bluetooth Service...
2016-07-29 13:12:30,795 [Start Level Event Dispatcher] INFO  o.e.j.s.Server - jetty-8.1.3.v20120522
2016-07-29 13:12:30,965 [Start Level Event Dispatcher] INFO  o.e.j.s.AbstractConnector - Started SelectChannelConnector@0.0.0.0:80



However I cannot access the http://localhost/kura
See the attached screenshot.

icon8.gif  Re: Kura 2.0 web ui [message #1739320 is a reply to message #1739286] Fri, 29 July 2016 15:20
Fabrizio Mazzurana is currently offline Fabrizio MazzuranaFriend
Messages: 3
Registered: July 2016
Junior Member
I get the same problem.
I have a VM running ubuntu 16.04.1 x32 with java7 installed on.
I did a Kura 2.0.0 fresh installation on it.
I deployed Kura on the same machine; when I start Kura I get:

/var/log/kura.log:
2016-07-29 16:59:44,027 [UdevHotplugThread] INFO  o.e.k.l.u.LinuxUdevNative - Starting LinuxUdevNative Thread ...
2016-07-29 16:59:44,064 [Component Resolve Thread (Bundle 6)] INFO  o.e.k.c.c.CertificatesManager - Bundle org.eclipse.kura.core.certificates.CertificatesManager has started!
2016-07-29 16:59:44,106 [Component Resolve Thread (Bundle 6)] INFO  o.e.k.l.b.BluetoothServiceImpl - Activating Bluetooth Service...
2016-07-29 16:59:44,251 [Start Level Event Dispatcher] INFO  o.e.j.s.Server - jetty-8.1.3.v20120522
2016-07-29 16:59:44,423 [Start Level Event Dispatcher] INFO  o.e.j.s.AbstractConnector - Started SelectChannelConnector@0.0.0.0:80


console:
osgi> ss
"Framework is launched."


id	State       Bundle
0	ACTIVE      org.eclipse.osgi_3.8.1.v20120830-144521
1	ACTIVE      org.eclipse.equinox.cm_1.0.400.v20120522-1841
2	ACTIVE      org.eclipse.equinox.common_3.6.100.v20120522-1841
3	ACTIVE      org.eclipse.equinox.registry_3.5.200.v20120522-1841
4	ACTIVE      org.eclipse.equinox.http.registry_1.1.200.v20120522-2049
5	ACTIVE      org.eclipse.equinox.console_1.0.0.v20120522-1841
6	ACTIVE      org.eclipse.equinox.ds_1.4.0.v20120522-1841
7	ACTIVE      org.eclipse.equinox.event_1.2.200.v20120522-2049
8	ACTIVE      org.eclipse.equinox.io_1.0.400.v20120522-2049
9	ACTIVE      org.eclipse.equinox.metatype_1.2.0.v20120522-1841
10	ACTIVE      org.eclipse.equinox.util_1.0.400.v20120522-2049
11	ACTIVE      org.eclipse.osgi.services_3.3.100.v20120522-1822
12	ACTIVE      org.eclipse.osgi.util_3.2.300.v20120522-1822
13	ACTIVE      org.apache.felix.gogo.command_0.8.0.v201108120515
14	ACTIVE      org.apache.felix.gogo.runtime_0.8.0.v201108120515
15	ACTIVE      org.apache.felix.gogo.shell_0.8.0.v201110170705
16	ACTIVE      org.knowhowlab.osgi.monitoradmin_1.0.2
17	ACTIVE      org.apache.felix.dependencymanager_3.0.0
18	ACTIVE      org.apache.felix.deploymentadmin_0.9.5
19	ACTIVE      osgi.cmpn_4.3.0.201111022214
20	ACTIVE      org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841
21	ACTIVE      org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841
22	ACTIVE      org.eclipse.jetty.continuation_8.1.3.v20120522
23	ACTIVE      org.eclipse.jetty.http_8.1.3.v20120522
24	ACTIVE      org.eclipse.jetty.io_8.1.3.v20120522
25	ACTIVE      org.eclipse.jetty.security_8.1.3.v20120522
26	ACTIVE      org.eclipse.jetty.server_8.1.3.v20120522
27	ACTIVE      org.eclipse.jetty.servlet_8.1.3.v20120522
28	ACTIVE      org.eclipse.jetty.util_8.1.3.v20120522
29	ACTIVE      javax.servlet_3.0.0.v201112011016
30	ACTIVE      org.apache.commons.fileupload_1.2.2.v20111214-1400
31	ACTIVE      org.apache.commons.io_2.4.0
32	ACTIVE      slf4j.api_1.6.4
	            Fragments=33
33	RESOLVED    slf4j.log4j12_1.6.0
	            Master=32
34	RESOLVED    log4j_1.2.17
	            Fragments=35
35	RESOLVED    log4j.apache-log4j-extras_1.1.0
	            Master=34
36	ACTIVE      org.json_1.0.0.v201011060100
37	ACTIVE      org.hsqldb.hsqldb_2.3.0
38	ACTIVE      com.codeminders.hidapi_1.1.1
39	ACTIVE      org.eclipse.soda.dk.comm_1.2.1
40	ACTIVE      org.apache.commons.lang3_3.4.0
41	ACTIVE      org.usb4java_1.0.0
42	ACTIVE      usb4java-javax_1.0.0
43	RESOLVED    jdk.dio_1.0.4
44	ACTIVE      org.apache.commons.net_3.1.0.v201205071737
45	ACTIVE      org.eclipse.kura.api_1.0.8
46	ACTIVE      org.eclipse.kura.core_1.0.8
47	ACTIVE      org.eclipse.kura.core.certificates_1.0.2
48	ACTIVE      org.eclipse.kura.core.cloud_1.0.8
49	ACTIVE      org.eclipse.kura.core.comm_1.0.2
50	ACTIVE      org.eclipse.kura.core.configuration_1.0.7
51	ACTIVE      org.eclipse.kura.core.crypto_1.0.3
52	ACTIVE      org.eclipse.kura.core.deployment_1.1.1
53	ACTIVE      org.eclipse.kura.core.log_1.0.1
54	ACTIVE      org.eclipse.kura.core.net_1.0.8
55	STARTING    org.eclipse.kura.core.status_1.0.1
56	ACTIVE      org.eclipse.kura.deployment.agent_1.0.6
57	STARTING    org.eclipse.kura.linux.clock_1.0.6
58	STARTING    org.eclipse.kura.linux.command_1.0.4
59	STARTING    org.eclipse.kura.linux.position_1.0.6
60	ACTIVE      org.eclipse.kura.linux.usb_1.0.7
61	ACTIVE      org.eclipse.kura.linux.bluetooth_1.0.4
62	STARTING    org.eclipse.kura.linux.watchdog_1.0.5
63	RESOLVED    org.apache.camel.camel-core_2.16.0
64	RESOLVED    org.apache.camel.camel-core-osgi_2.16.0
65	RESOLVED    org.apache.camel.camel-kura_2.16.0
66	ACTIVE      org.eclipse.kura.camel_1.0.0
67	RESOLVED    com.gwt.user_1.0.0
68	ACTIVE      org.eclipse.kura.web_2.0.0
69	ACTIVE      org.eclipse.kura.linux.gpio_1.0.1
70	INSTALLED   org.eclipse.kura.emulator.net_1.0.1
71	ACTIVE      org.tigris.mtoolkit.iagent.rpc_3.0.0.20110411-0918
osgi> 


The web UI is not accessible as mentioned by Bruno.
Please see the STARTING status of the bundles 55, 57, 58, 59, 62.

Tnx all.
Forum: Eclipse Foundation
 Topic: Neon T-shirt
Re: Neon T-shirt [message #1739322 is a reply to message #1735627] Fri, 29 July 2016 15:22
Roxanne Joncas is currently offline Roxanne JoncasFriend
Messages: 10
Registered: January 2014
Junior Member
Here is a photo of the Neon t-shirt. Please note that there are no XL's left.
  • Attachment: Neon T.png
    (Size: 51.38KB, Downloaded 2 times)
Forum: Vorto
 Topic: Java Build Error
Re: Java Build Error [message #1739251 is a reply to message #1739158] Fri, 29 July 2016 00:32
Alexander Edelmann is currently offline Alexander EdelmannFriend
Messages: 22
Registered: January 2015
Junior Member
Hi Frank,

the web ui generator is depending on the output of the vorto javabean generator. Please invoke that as well and it should resolve your problem.

Thanks for this input. We will add this into the documentation of the web ui generator.

Alex
Re: Java Build Error [message #1739268 is a reply to message #1739251] Fri, 29 July 2016 08:30
Frank Blau is currently offline Frank BlauFriend
Messages: 4
Registered: July 2016
Junior Member
Thanks... that seems to move it forward... but when I try and do a Maven Build with a jetty:run goal, I get:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Sample project generated from WeatherStation 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.3.11.v20160721:run (default-cli) > test-compile @ weatherstation-webapp >>>
[WARNING] The POM for java.example:java.example.model:jar:1.0.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.408 s
[INFO] Finished at: 2016-07-29T10:27:48+02:00
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project weatherstation-webapp: Could not resolve dependencies for project org.eclipse.vorto.examples:weatherstation-webapp:war:1.0.0: Could not find artifact java.example:java.example.model:jar:1.0.0-SNAPSHOT -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Re: Java Build Error [message #1739274 is a reply to message #1739268] Fri, 29 July 2016 08:57
Frank Blau is currently offline Frank BlauFriend
Messages: 4
Registered: July 2016
Junior Member
Also this error in the debug:

Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default-cli of goal org.eclipse.jetty:jetty-maven-plugin:9.3.11.v20160721:run failed: A required class was missing while executing org.eclipse.jetty:jetty-maven-plugin:9.3.11.v20160721:run: org/apache/jasper/servlet/JasperInitializer


I am guessing this all has to with Jetty not being installed/configured correctly... But it does show as installed.
Re: Java Build Error [message #1739323 is a reply to message #1739274] Fri, 29 July 2016 16:15
Frank Blau is currently offline Frank BlauFriend
Messages: 4
Registered: July 2016
Junior Member
Here is the full error:

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Sample project generated from WeatherStation 1.0.0
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.3.11.v20160721:run (default-cli) > test-compile @ weatherstation-webapp >>>
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ weatherstation-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 6 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ weatherstation-webapp ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 6 source files to /Users/frankblau/Documents/workspace/webdevice.example/target/classes
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ weatherstation-webapp ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/frankblau/Documents/workspace/webdevice.example/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ weatherstation-webapp ---
[INFO] No sources to compile
[INFO]
[INFO] <<< jetty-maven-plugin:9.3.11.v20160721:run (default-cli) < test-compile @ weatherstation-webapp <<<
[INFO]
[INFO] --- jetty-maven-plugin:9.3.11.v20160721:run (default-cli) @ weatherstation-webapp ---
[INFO] Configuring Jetty for project: Sample project generated from WeatherStation
[INFO] webAppSourceDirectory not set. Trying src/main/webapp
[INFO] webAppSourceDirectory /Users/frankblau/Documents/workspace/webdevice.example/src/main/webapp does not exist. Trying /Users/frankblau/Documents/workspace/webdevice.example/target/webapp-tmp
[INFO] Reload Mechanic: automatic
[INFO] Classes = /Users/frankblau/Documents/workspace/webdevice.example/target/classes
[INFO] Logging initialized @2412ms
[INFO] Context path = /
[INFO] Tmp directory = /Users/frankblau/Documents/workspace/webdevice.example/target/tmp
[INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml
[INFO] Web overrides = none
[INFO] web.xml file = null
[INFO] Webapp directory = /Users/frankblau/Documents/workspace/webdevice.example/target/webapp-tmp
[INFO] jetty-9.3.11.v20160721
[INFO] Jetty server exiting.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.827 s
[INFO] Finished at: 2016-07-29T18:12:21+02:00
[INFO] Final Memory: 27M/273M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.jetty:jetty-maven-plugin:9.3.11.v20160721:run (default-cli) on project weatherstation-webapp: Failure: Multiple exceptions: org/apache/jasper/servlet/JasperInitializer: org.apache.jasper.servlet.JasperInitializer -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Forum: TMF (Xtext)
 Topic: Xtend Code generation for RichStrings (FIXED)
Re: Xtend Code generation for RichStrings (FIXED) [message #1739255 is a reply to message #1739081] Fri, 29 July 2016 03:46
Neeraj Bhusare is currently offline Neeraj BhusareFriend
Messages: 104
Registered: July 2009
Location: India
Senior Member
I could fix the issue. The solution was to - A) Override the "XLiteral" rule. This made sure the "XStringLiteral" rule from my language got called, B) Fix some inconsistencies in the terminal rules for Rich text.



Best regards, Neeraj

[Updated on: Fri, 29 July 2016 03:47]

Report message to a moderator

 Topic: [SOLVED] Could we generate code for existing resources without xtext.builder.participant?
[SOLVED] Could we generate code for existing resources without xtext.builder.participant? [message #1739269] Fri, 29 July 2016 08:35
Belqassim Djafer is currently offline Belqassim DjaferFriend
Messages: 10
Registered: August 2014
Junior Member
Hello everyone,

I have some issues when I try to launch the xtend generator through a main class for existing resources (.extlibrary). It works fine by activating the xtext.builder.participant.

This existing ressources can't be opened with the both of editors (library editor and MyDslEditor), here is the error : mismatched input '<' expecting 'Library'.

FYI: I haven't this kind of issue with the newly created resources which are parsed correctly.

Attached the use case, to reproduce :
1- Import .library, library.edit, library.editor, library.mydsl, library.mydsl.ide and library.mydsl.ui projects in the workspace.
2- Ensure that the line 16 in org.eclipse.emf.examples.library.ui.handlers.XtendGenHandler is not commented in contrast to the line 18.
3- Launch a runtime.
4- Import the LibraryExample project and open My.extlibrary model.
5- Click the green button (xTend generator) in the toolbar.
6- KO: the generator is not started.

You can repeat the above steps to run the generator on the newly created resource (New.extlibrary), comment the line 16 instead 18 in XtendGenHandler class.

Best regards,
Belqassim.

[Updated on: Fri, 29 July 2016 13:42]

Report message to a moderator

Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739271 is a reply to message #1739269] Fri, 29 July 2016 08:41
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
is it intended that you use the same file extension for both?
if yes where is your customization for content types ? (content describer etc?)


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com

[Updated on: Fri, 29 July 2016 08:41]

Report message to a moderator

Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739273 is a reply to message #1739271] Fri, 29 July 2016 08:54
Belqassim Djafer is currently offline Belqassim DjaferFriend
Messages: 10
Registered: August 2014
Junior Member
Hi Christian,

Thank you for the quick reply.
Yes I'm using the same extension "extlibrary" for the both of editors, but I can disable the xText editor if this could be problematic.

Here is my ContentTypes configuration

<extension
         point="org.eclipse.core.contenttype.contentTypes">
      <content-type
            base-type="org.eclipse.emf.ecore.xmi"
            file-extensions="extlibrary"
            id="extendedLibrary"
            name="%_UI_EXTLibrary_content_type"
            priority="normal">
         <describer class="org.eclipse.emf.ecore.xmi.impl.RootXMLContentHandlerImpl$Describer">
            <parameter name="namespace" value="http:///org/eclipse/emf/examples/library/extlibrary.ecore/1.0.0"/>
            <parameter name="kind" value="xmi"/>
         </describer>
      </content-type>
   </extension>
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739276 is a reply to message #1739273] Fri, 29 July 2016 09:06
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
no i mean:

if you use a contenttype for the xmi version, you should use it for the xtext version too.
but you dont. see plugin.xml of yourdsl.ui


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739277 is a reply to message #1739276] Fri, 29 July 2016 09:09
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
another problem: never never ever call standalonesetup from eclipse

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739279 is a reply to message #1739277] Fri, 29 July 2016 09:13
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
use val injector = IResourceServiceProvider.Registry.INSTANCE.getResourceServiceProvider(URI.createURI("dummy.extlibrary")).get(Injector)

or inject all the chain to plugin.xml using

<extension
point="org.eclipse.ui.handlers">
<handler
commandId="org.eclipse.emf.examples.library.ui.commands.xtendgenCommand"
class="org.eclipse.emf.examples.library.ui.MyDslExecutableExtensionFactory:org.eclipse.emf.examples.library.ui.handlers.XtendGenHandler">
</handler>
</extension>


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739280 is a reply to message #1739277] Fri, 29 July 2016 09:15
Belqassim Djafer is currently offline Belqassim DjaferFriend
Messages: 10
Registered: August 2014
Junior Member
Thank you

[Updated on: Fri, 29 July 2016 09:16]

Report message to a moderator

Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739295 is a reply to message #1739279] Fri, 29 July 2016 12:51
Belqassim Djafer is currently offline Belqassim DjaferFriend
Messages: 10
Registered: August 2014
Junior Member
I added the contentType to the xtext version too, at the runtime start, I have the following message : Both 'org.eclipse.emf.examples.library' and 'org.eclipse.emf.examples.library.mydsl.ui' register a content parser for 'extendedLibrary'. So the contentType is used for the both of resources.

I use also val injector = IResourceServiceProvider.Registry.INSTANCE.getResourceServiceProvider(URI.createURI("dummy.extlibrary")).get(Injector) instead MyDslStandaloneSetup.

def static main(String[] args, String sourceDirectory) {
		if (args.empty) {
			System::err.println('Aborting: no path to EMF resource provided!')
			return
		}
		val uri = URI.createURI("/LibraryExample/model/My.extlibrary")
		val injector = IResourceServiceProvider.Registry.INSTANCE.getResourceServiceProvider(uri).get(Injector)
		
		val main = injector.getInstance(Main)
		main.runGenerator(args.get(0), sourceDirectory)
	}

	@Inject Provider<ResourceSet> resourceSetProvider

	@Inject IResourceValidator validator

	@Inject GeneratorDelegate generator

	@Inject JavaIoFileSystemAccess fileAccess

	def protected runGenerator(String string, String sourceDirectory) {
		// Load the resource
		val set = resourceSetProvider.get
		val resource = set.getResource(URI.createURI(string), true)

		// Validate the resource
		val issues = validator.validate(resource, CheckMode.ALL, CancelIndicator.NullImpl)
		if (!issues.empty) {
			issues.forEach[System.err.println(it)]
			return
		}

		// Configure and start the generator
		fileAccess.outputPath = sourceDirectory
		val context = new GeneratorContext => [
			cancelIndicator = CancelIndicator.NullImpl
		]
		generator.generate(resource, fileAccess, context)
		System.out.println('Code generation finished.')
	}


But I still have the same error (mismatched input '<' expecting 'Library') and my resource is not parsed.

Do you have some example or documentation for more details please?
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739300 is a reply to message #1739295] Fri, 29 July 2016 13:33
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
i am not that deep into content types. maybe ed merks can help. i meant something like

<extension
         point="org.eclipse.core.contenttype.contentTypes">
      <content-type
            base-type="org.eclipse.emf.ecore.xmi"
            file-extensions="extlibrary"
            id="extendedLibrary"
            name="%_UI_EXTLibrary_content_type"
            priority="normal">
         <describer class="org.eclipse.emf.examples.library.ui.MyDslContentDescriber">
         </describer>
      </content-type>
   </extension>


	<extension
		point="org.eclipse.ui.editors">
		<editor
			class="org.eclipse.emf.examples.library.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.editor.XtextEditor"
			contributorClass="org.eclipse.ui.editors.text.TextEditorActionContributor"
			default="true"
			id="org.eclipse.emf.examples.library.MyDsl"
			name="MyDsl Editor">
			 <contentTypeBinding contentTypeId="org.eclipse.emf.examples.library.mydsl.ui.extendedLibrary"/>
			
		</editor>
	</extension>

<!-- replaces exsting file ext parser -->
	 <extension point="org.eclipse.emf.ecore.content_parser">
      <parser
            contentTypeIdentifier="extendedLibrary"
            class="org.eclipse.emf.examples.library.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.resource.IResourceFactory"/>
   </extension>


you know there is a URI.createURI(string, contenttype) as well?


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739301 is a reply to message #1739300] Fri, 29 July 2016 13:35
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
and no i dont have any docs or samples on that.

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739302 is a reply to message #1739301] Fri, 29 July 2016 13:41
Belqassim Djafer is currently offline Belqassim DjaferFriend
Messages: 10
Registered: August 2014
Junior Member
I have commented the extension point "org.eclipse.emf.ecore.extension_parser" in my ui/plugin.xml and it works now Smile

Thank you again
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739304 is a reply to message #1739301] Fri, 29 July 2016 13:52
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
and i missed this one

<!-- replaces existing -->
<extension point="org.eclipse.xtext.content_resourceServiceProvider">
	    <resourceServiceProvider
	        class="org.eclipse.emf.examples.library.ui.MyDslExecutableExtensionFactory:org.eclipse.xtext.ui.resource.IResourceUIServiceProvider"
	     contentTypeIdentifier="extendedLibrary">
	    </resourceServiceProvider>
	</extension>


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739305 is a reply to message #1739304] Fri, 29 July 2016 13:53
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
(am not quite sure when to qualify the contentTypeIdentifier and when not

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Could we generate code for existing resources without xtext.builder.participant? [message #1739315 is a reply to message #1739305] Fri, 29 July 2016 14:35
Belqassim Djafer is currently offline Belqassim DjaferFriend
Messages: 10
Registered: August 2014
Junior Member
It works fine with my actual configuration and I hope I'll not need to change the file once again Wink

When I added this attribute in extension_resourceServiceProvider, the Plugin editor wasn't happy and I have this error "Illegal attribute 'contentTypeIdentifier'", so I left it as it is.

The important thing for me is that my generator works thanks to your help.
 Topic: Does it possible to control the highlighting ?
Does it possible to control the highlighting ? [message #1739303] Fri, 29 July 2016 13:46
Faiez Za is currently offline Faiez ZaFriend
Messages: 151
Registered: March 2010
Senior Member
Hi

Usually, when we define a highlighter for a DSL (based on Xtext),
the highlight works automatically when we create or edit the dsl model.

Does it possible to control the highlight with an action or an event (using popup menu for example) ?

It means that when I press such command, the highlight works. otherwise, the highlight is disable.


best regards

Re: Does it possible to control the highlighting ? [message #1739308 is a reply to message #1739303] Fri, 29 July 2016 14:07
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
do you mean lexical highlighting or sematic highlighting?
there is nothing out of the box.
i guess you can always use eclipse preferences to do something else and not to do something inside your impls of ISemanticHighlightingCalculator.

or do you want to disable lexical highlighting? that is in the deps of jface, but i guess you can adapt DefaultAntlrTokenToAttributeIdMapper or the tokenization TerminalsTokenTypeToPartitionMapper (i dont know if these are cached though)


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Does it possible to control the highlighting ? [message #1739321 is a reply to message #1739308] Fri, 29 July 2016 15:20
Faiez Za is currently offline Faiez ZaFriend
Messages: 151
Registered: March 2010
Senior Member
Hi christian
I mean semantic highlighting.
In fact, the semantic highlighting works automatically (for example, when we run the second eclipse and we define a dsl model that contains highlightable elements, these elements will be highlighted automatically).
what I'm trying to do is to control the highlight out of xtext mechanic (for exemple using a popup menu with right click on dsl model and click on "highlight" label or with a command)

best regards
Re: Does it possible to control the highlighting ? [message #1739324 is a reply to message #1739321] Fri, 29 July 2016 16:31
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 9347
Registered: July 2009
Senior Member
no this is lexical highlighting. for semantic highlighting you have to provide an impl explicitely to enable it.
thus digg at the classes i mentioned (but as said before: there is nothing out of the box)


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
 Topic: eGit problems in Eclipse Mars - empty src and xtend-src
Re: eGit problems in Eclipse Mars - empty src and xtend-src [message #1739326 is a reply to message #1739238] Fri, 29 July 2016 17:19
Gary Worsham is currently offline Gary WorshamFriend
Messages: 176
Registered: September 2013
Senior Member
Thanks Ed, putting blank .gitignore into the folders seems to have solved this for now. Eclipse is so complicated that I'm sure I could devote much of my bandwidth to figuring it out better, at the expense of getting anything accomplished with it.
Re: eGit problems in Eclipse Mars - empty src and xtend-src [message #1739328 is a reply to message #1739326] Fri, 29 July 2016 17:57
Ed Merks is currently offline Ed MerksFriend
Messages: 27714
Registered: July 2009
Senior Member
Gary,

It's always the case that new unfamiliar things seem complicated while
old familiar things seem intuitive. I also don't like investing effort
to learn tools, unless I'm convinced I'll be using them for a long time,
in which case the investment will pay off. Certainly Git is much more
powerful and hence way less simple than CVS, yet the investment to learn
it well pays off in the long term. Of course for the first weeks it
just seemed like a pointless battle that interfered with doing my real
work...


On 29.07.2016 19:19, Gary Worsham wrote:
> Thanks Ed, putting blank .gitignore into the folders seems to have
> solved this for now. Eclipse is so complicated that I'm sure I could
> devote much of my bandwidth to figuring it out better, at the expense
> of getting anything accomplished with it.
Forum: EclipseLink
 Topic: merge not updating pk IDs
Re: merge not updating pk IDs [message #1739318 is a reply to message #667535] Fri, 29 July 2016 14:53
Guilherme Domingues is currently offline Guilherme DominguesFriend
Messages: 2
Registered: July 2016
Junior Member
Hello guys! I'm having the same problem decribed above, but no solution found. Can anyone help me, please?
Re: merge not updating pk IDs [message #1739329 is a reply to message #548990] Fri, 29 July 2016 18:37
Guilherme Domingues is currently offline Guilherme DominguesFriend
Messages: 2
Registered: July 2016
Junior Member
Can you help me?
Forum: Newcomers
 Topic: Python plugin - not available
Python plugin - not available [message #1739290] Fri, 29 July 2016 12:02
Steve Wall is currently offline Steve WallFriend
Messages: 1
Registered: July 2016
Junior Member
Can anyone help?

I have installed several different versions on Eclipse and then installed the Python plugin, which installs without any errors but when I run Eclipse and select "Windows" and "Preferences" the Python plugin is not available?

I have tried this on a Windows 7 x64 and Windows 10 x86 versions and get the same result can anyone please provide some advise?

Thanks in-advance.
Steve
 Topic: Eclipse crashes when attempting to load Lynda's exercise files
Re: Eclipse crashes when attempting to load Lynda's exercise files [message #1739265 is a reply to message #1739249] Fri, 29 July 2016 07:28
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2703
Registered: July 2009
Senior Member

Kepler is 3 releases back; I thought Lynda was renowned for keeping current. The equivalent Neon package from http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/neonr should work similarly.

Nitin Dahyabhai
Eclipse WTP
IBM Emerging Technologies

[Updated on: Fri, 29 July 2016 07:29]

Report message to a moderator

Re: Eclipse crashes when attempting to load Lynda's exercise files [message #1739299 is a reply to message #1739265] Fri, 29 July 2016 13:31
Roy Keret is currently offline Roy KeretFriend
Messages: 2
Registered: July 2016
Junior Member
Nitin Dahyabhai wrote on Fri, 29 July 2016 07:28
Kepler is 3 releases back; I thought Lynda was renowned for keeping current.


Yeah..that's actually my fault, I've followed the first Google result for "Eclipse IDE for Java Developers", which points to Kepler. Smile

Anyways, seems it's not a version issue, I've now installed Neon (at a different directory) and the behavior remains the same..
 Topic: Hyperlink Navigation on MAC Using CTRL Key
Hyperlink Navigation on MAC Using CTRL Key [message #1739314] Fri, 29 July 2016 14:33
Tony Chester is currently offline Tony ChesterFriend
Messages: 1
Registered: July 2016
Junior Member
I have a problem using the Eclipse PHP IDE (Neon) on a MAC.

The default modifier for hyperlink style navigation is "Control" which doesn't work well on MacOS X because here the Control modifier is used to simulate a right-click (opening the context menu).
The consequence of this is that if control is pressed the users gets the underlined text style when hovering, but I cannot follow the link because a click results in opening the context menu.

I found a really old bug on bugzilla (Bug 31249) which highlighted this exact problem, but I don't know how to use the fix.

Can I change the modifier in any preferences, or do I need to build Eclipse myself with the changed modifier.

Any suggestions gratefully received.

 Topic: Eclipse doubts
Eclipse doubts [message #1739325] Fri, 29 July 2016 17:01
sanman Kelkar is currently offline sanman KelkarFriend
Messages: 1
Registered: July 2016
Junior Member
Hello Experts,

I have attached a detailed file with all the screenshots. Does the problem lies with version I downloaded or am I missing something ?

Please Help Sad

Sanman
Re: Eclipse doubts [message #1739327 is a reply to message #1739325] Fri, 29 July 2016 17:58
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 2703
Registered: July 2009
Senior Member

Images should generally be attached directly, rather than embedded in a proprietary document format.

Can you explain which ones aren't available that should be, as well as exactly what you downloaded?


Nitin Dahyabhai
Eclipse WTP
IBM Emerging Technologies
Re: Eclipse doubts [message #1739330 is a reply to message #1739327] Fri, 29 July 2016 18:37
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 248
Registered: August 2014
Senior Member
I dug out the pictures.

The OP's problem may be that Juno is quite old, even obsolete.

Due to the picture limit, the PNG's are in two messages.

index.php/fa/26618/0/
index.php/fa/26619/0/
index.php/fa/26620/0/
index.php/fa/26621/0/
index.php/fa/26622/0/
  • Attachment: Pic1.png
    (Size: 188.74KB, Downloaded 13 times)
  • Attachment: Pic2.png
    (Size: 88.63KB, Downloaded 13 times)
  • Attachment: Pic3.png
    (Size: 175.18KB, Downloaded 13 times)
  • Attachment: Pic4.png
    (Size: 41.15KB, Downloaded 13 times)
  • Attachment: Pic5.png
    (Size: 52.20KB, Downloaded 13 times)


--

Tauno Voipio
Re: Eclipse doubts [message #1739331 is a reply to message #1739330] Fri, 29 July 2016 18:39
Tauno Voipio is currently offline Tauno VoipioFriend
Messages: 248
Registered: August 2014
Senior Member
Remainder of the pictures.

Maybe the problem did not need such many of them ...

  • Attachment: Pic6.png
    (Size: 116.12KB, Downloaded 1 time)
  • Attachment: Pic7.png
    (Size: 140.65KB, Downloaded 1 time)
  • Attachment: Pic8.png
    (Size: 95.84KB, Downloaded 1 time)
  • Attachment: Pic9.png
    (Size: 97.02KB, Downloaded 1 time)


--

Tauno Voipio
Forum: Java Development Tools (JDT)
 Topic: Can't Open Files In Editor Anymore
icon8.gif  Can't Open Files In Editor Anymore [message #1739291] Fri, 29 July 2016 12:10
al co is currently offline al coFriend
Messages: 5
Registered: April 2015
Junior Member
For some reason, I can no longer display files in the PackageExplorer in the Java Editor when double clicking them. They are not visible.
They show in the File MRU list but not in the editor.

I can back to and forward to them , they highlight in the Package Explorer but do not display in the editor.

I have tried right click "Open With" and right click "Open" but neither displays a file , any of them.

I am wondering if I have an open hidden pane but can't figure out how to display that either. I have now spent hours trying to figure this out.
Re: Can't Open Files In Editor Anymore [message #1739294 is a reply to message #1739291] Fri, 29 July 2016 12:48
Ed Willink is currently offline Ed WillinkFriend
Messages: 4859
Registered: July 2009
Senior Member
Hi

Have you tried restarting Eclipse? This kind of magic often just goes away.

Regards

Ed Willink


On 29/07/2016 13:10, al co wrote:
> For some reason, I can no longer display files in the PackageExplorer in
> the Java Editor when double clicking them. They are not visible.
> They show in the File MRU list but not in the editor.
> I can back to and forward to them , they highlight in the Package
> Explorer but do not display in the editor.
> I have tried right click "Open With" and right click "Open" but neither
> displays a file , any of them.
> I am wondering if I have an open hidden pane but can't figure out how to
> display that either. I have now spent hours trying to figure this out.


---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Re: Can't Open Files In Editor Anymore [message #1739296 is a reply to message #1739294] Fri, 29 July 2016 13:00
al co is currently offline al coFriend
Messages: 5
Registered: April 2015
Junior Member
Ed Willink wrote on Fri, 29 July 2016 12:48
Hi

Have you tried restarting Eclipse? This kind of magic often just goes away.

Regards

Ed Willink

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


Yes , that didn't fix it.
I finally had to open a new window and reset perspective and then close old one.
I lost some of my perspective settings.
Not sure what happened but that's what I did to get it back.

[Updated on: Fri, 29 July 2016 13:00]

Report message to a moderator

Re: Can't Open Files In Editor Anymore [message #1739307 is a reply to message #1739296] Fri, 29 July 2016 14:04
Erick Hagstrom is currently offline Erick HagstromFriend
Messages: 103
Registered: April 2014
Location: USA
Senior Member
That happened to me once. It was a while ago, but that sounds like the fix.
 Topic: Converting ASTNode to code
Converting ASTNode to code [message #1739333] Fri, 29 July 2016 21:22
Aljoscha Meyer is currently offline Aljoscha MeyerFriend
Messages: 5
Registered: February 2016
Junior Member
What is the intended way to turn an ASTNode into valid source code, i.e. a CharSequence? The Javadoc of the toString() method states that it should be used for debugging only.
 Topic: Eclipse not writing to Console tab
Re: Eclipse not writing to Console tab [message #1739334 is a reply to message #1738492] Fri, 29 July 2016 21:33
Rob Wynne is currently offline Rob WynneFriend
Messages: 9
Registered: June 2016
Junior Member
Bump.

I've been able to get this working on Windows 10, Linux, but not in my Windows 7 environment (that is on government furnished equipment).

Do previous builds of Eclipse exist that include Java? I'm convinced there may be an environmental issue specific to my government furnished equipment, but can't pin it down.

Thanks,
Rob
Re: Eclipse not writing to Console tab [message #1739335 is a reply to message #1739334] Fri, 29 July 2016 21:38
Rob Wynne is currently offline Rob WynneFriend
Messages: 9
Registered: June 2016
Junior Member
Just to add, programs requiring keyboard input (simple menus) also do not function in the tab. They operate fine in the command window.

[Updated on: Fri, 29 July 2016 21:38]

Report message to a moderator

Forum: scout
 Topic: Multiple instances found error..
Multiple instances found error.. [message #1739332] Fri, 29 July 2016 20:49
Luka Cavic is currently offline Luka CavicFriend
Messages: 15
Registered: August 2014
Junior Member
Hi I have this error, data from database is not showing..

Etc. I have UsersService that implements IUsersService

I have added that UsersService extens PostgreSqlService and that service is extending main AbstractPostgreSqlService from Maven...

For some time that was working, but now not. The same error is when fetching table data and inserting and selecting...

This is error:

2016-07-29 22:43:37,637 ERROR [qtp731395981-16] org.eclipse.scout.rt.platform.exception.ExceptionHandler.handlePlatformException(ExceptionHandler.java:110) - - MDC[principal=Luka, cid=HQ5SC8zb6Yu/4]
org.eclipse.scout.rt.platform.util.Assertions$AssertionException: Assertion error: multiple instances found for query: interface org.eclipse.scout.rt.server.jdbc.ISqlService [IBean[@ApplicationScoped com.rinels.epodrska.server.settings.UsersService], IBean[@ApplicationScoped com.rinels.epodrska.server.settings.UsersTituleService]] [user=Luka, service.name=com.rinels.epodrska.shared.settings.IUsersService, service.operation=getUsersTableData]
at org.eclipse.scout.rt.platform.util.Assertions.fail(Assertions.java:580)
at org.eclipse.scout.rt.platform.internal.BeanManagerImplementor.optBean(BeanManagerImplementor.java:222)
at org.eclipse.scout.rt.platform.BEANS.opt(BEANS.java:55)
at org.eclipse.scout.rt.platform.BEANS.get(BEANS.java:41)
at org.eclipse.scout.rt.server.jdbc.SQL.selectInto(SQL.java:109)
at com.rinels.epodrska.server.settings.UsersService.getUsersTableData(UsersService.java:26)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.scout.rt.shared.servicetunnel.ServiceUtility.invoke(ServiceUtility.java:54)
at org.eclipse.scout.rt.server.ServiceOperationInvoker.invokeInternal(ServiceOperationInvoker.java:101)
at org.eclipse.scout.rt.server.ServiceOperationInvoker$1.call(ServiceOperationInvoker.java:62)
at org.eclipse.scout.rt.server.ServiceOperationInvoker$1.call(ServiceOperationInvoker.java:1)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:185)
at org.eclipse.scout.rt.server.context.TransactionProcessor.runTxRequiresNew(TransactionProcessor.java:80)
at org.eclipse.scout.rt.server.context.TransactionProcessor.intercept(TransactionProcessor.java:55)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:180)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:135)
at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:121)
at org.eclipse.scout.rt.server.ServiceOperationInvoker.invoke(ServiceOperationInvoker.java:58)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.invokeService(ServiceTunnelServlet.java:193)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.doPost(ServiceTunnelServlet.java:149)
at org.eclipse.scout.rt.server.ServiceTunnelServlet$2.run(ServiceTunnelServlet.java:117)
at org.eclipse.scout.rt.platform.util.concurrent.Callables$1.call(Callables.java:37)
at org.eclipse.scout.rt.platform.util.concurrent.Callables$1.call(Callables.java:1)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain$Chain.continueChain(CallableChain.java:185)
at org.eclipse.scout.rt.platform.chain.callable.CallableChain.call(CallableChain.java:135)
at org.eclipse.scout.rt.platform.context.RunContext.call(RunContext.java:121)
at org.eclipse.scout.rt.platform.context.RunContext.run(RunContext.java:87)
at org.eclipse.scout.rt.server.ServiceTunnelServlet.doPost(ServiceTunnelServlet.java:113)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:808)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)
at org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper$1.run(ServletFilterHelper.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Unknown Source)
at org.eclipse.scout.rt.server.commons.authentication.ServletFilterHelper.continueChainAsSubject(ServletFilterHelper.java:155)
at org.eclipse.scout.rt.server.commons.authentication.ServiceTunnelAccessTokenAccessController.handle(ServiceTunnelAccessTokenAccessController.java:90)
at com.rinels.epodrska.server.ServerServletFilter.doFilter(ServerServletFilter.java:50)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:499)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
at java.lang.Thread.run(Unknown Source)
Re: Multiple instances found error.. [message #1739336 is a reply to message #1739332] Fri, 29 July 2016 21:51
Luka Cavic is currently offline Luka CavicFriend
Messages: 15
Registered: August 2014
Junior Member
solved it...
added @Order(1000) below service..
Forum: C / C++ IDE (CDT)
 Topic: Makefile - generate invalid path
Re: Makefile - generate invalid path [message #1739270 is a reply to message #1739242] Fri, 29 July 2016 08:37
Tom Jan is currently offline Tom JanFriend
Messages: 2
Registered: July 2016
Junior Member
Hello David

I have project like this:
http://i64.tinypic.com/fdg5jt.png

My Default/makefile:
-include ../makefile.init

RM := del

# All of the sources participating in the build are defined here
-include sources.mk
-include src/subdir.mk
-include subdir.mk
-include objects.mk
(...)


file Default/sources.mk:
S79_SRCS := 
S_SRCS := 
ASM_UPPER_SRCS := 
MSA_UPPER_SRCS := 
ASM_SRCS := 
C_SRCS := 
S79_UPPER_SRCS := 
S_UPPER_SRCS := 
MSA_SRCS := 
ASM_UPPER_DEPS := 
MSA_UPPER_DEPS := 
OBJS := 
ASM_DEPS := 
S79_DEPS := 
S_DEPS := 
S_UPPER_DEPS := 
MSA_DEPS := 
C_DEPS := 
S79_UPPER_DEPS := 

# Every subdirectory with source files must be described here
SUBDIRS := \
src \


file Default/src/subdir.mk:
# Add inputs and outputs from these tool invocations to the build variables 
C_SRCS += \
../src/main.c 

C_DEPS += \
./src/main.d 


# Each subdirectory must supply rules for building sources it contributes
src/main.o: ../src/main.c
	@echo 'Building file: $<'
	@echo 'Invoking: IAR C/C++ Compiler for ARM'
iccarm "$<" -o "$@" --no_wrap_diagnostics -e --cpu ARM7TDMI --fpu None --dlib_config "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.5/arm/inc/c/DLib_Config_Normal.h" --endian little --interwork --cpu_mode arm -On --no_cse--no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --dependencies=m $(basename $(notdir $<)).d
	@echo 'Finished building: $<'
	@echo ' '


Here is my log:
d:\projects\project3\Default>make all
make: *** No rule to make target 'project3', needed by 'all'.  Stop.

d:\projects\project3\Default>make
process_begin: CreateProcess(NULL, echo "Building file: ../src/main.c", ...) failed.
make (e=2): the system cannot find the file specified
src/subdir.mk:15: recipe for target 'src/main.o' failed
make: *** [src/main.o] Error 2


d:\projects\project3\Default>iccarm -v

   IAR ANSI C/C++ Compiler V7.70.1.11437/W32 for ARM
   Copyright 1999-2016 IAR Systems AB.


d:\projects\project3\Default>more src\subdir.mk
################################################################################
# Automatically-generated file. Do not edit!
################################################################################

# Add inputs and outputs from these tool invocations to the build variables
C_SRCS += \
../src/main.c

C_DEPS += \
./src/main.d


# Each subdirectory must supply rules for building sources it contributes
src/main.o: ../src/main.c
        @echo 'Building file: $<'
        @echo 'Invoking: IAR C/C++ Compiler for ARM'
        iccarm "$<" -o "$@" --no_wrap_diagnostics -e --cpu ARM7TDMI --fpu None --dlib_config "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.5/arm/inc/c/DLib_Config_Normal.h" --endian little --interwork --cpu_mode arm -On --no_cse--no_unroll --no_inline --no_code_motion --no_tbaa --no_clustering --no_scheduling --dependencies=m $(basename $(notdir $<)).d
        @echo 'Finished building: $<'
        @echo ' '



d:\projects\project3\Default>more ..\src\main.c
int main(void)
{
  while (1) {
  }
}


Do you see mistake ?
  • Attachment: project3.png
    (Size: 4.66KB, Downloaded 4 times)
Re: Makefile - generate invalid path [message #1739278 is a reply to message #1739270] Fri, 29 July 2016 09:11
David Vavra is currently offline David VavraFriend
Messages: 326
Registered: October 2012
Senior Member
My apologies. I missed the implication in your first post.
What that message means is that make couldn't find the program it's trying to run when executing the recipe. In this case, it appears to be the shell. You are going to have to find out why on your own.

Eclipse seems to be working fine.

This may help you fix your problem
http://stackoverflow.com/questions/33674973/makefile-error-make-e-2-the-system-cannot-find-the-file-specified

There are others. Google: CreateProcess(NULL, echo Building file: ../src/main.c, ...) failed. make (e=2): the system cannot find the file specified

[Updated on: Fri, 29 July 2016 09:36]

Report message to a moderator

 Topic: Preserve whitespace between code and comment doesn't?
Preserve whitespace between code and comment doesn't? [message #1739298] Fri, 29 July 2016 13:28
Will Lyons is currently offline Will LyonsFriend
Messages: 6
Registered: July 2014
Junior Member
Like the subject says, I have the "Windows->Preferences->C/C++->Code Style->Formatter->Comments->Preserve white space between code and line comments if possible" checkbox selected, but when I use Ctrl-Shift-F to run the formatter it shoves the comments right back against the code. I really love the auto-formatter correction, but this is enough of an issue that I'll have to stop using it entirely. Sad Is there some other option buried somewhere I need to configure to get this to actually work as advertised?

Eclipse Neon 4.6.0 CDT build id 20160613-18000
Using IAR SDK for ARM plugin 7.20.0.201605111150
Re: Preserve whitespace between code and comment doesn't? [message #1739309 is a reply to message #1739298] Fri, 29 July 2016 14:08
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 101
Registered: June 2014
Senior Member
Hi Will,

I suspect you have some unfortunate interaction between multiple formatting options. I have tried a few things and I cannot reproduce. Can you please provide more example of what fails? Perhaps with that I can reproduce and resolve the issue.

Thanks
Jonah
Re: Preserve whitespace between code and comment doesn't? [message #1739310 is a reply to message #1739309] Fri, 29 July 2016 14:18
Will Lyons is currently offline Will LyonsFriend
Messages: 6
Registered: July 2014
Junior Member
Jonah:

typedef struct aglorithm1_storage_t
{
    float result[MAX_SIZE + 1]; //!< this is a comment! It explains what the variable is used for
    float epsilon;              //!< this is also a comment! Not quite as flashy but still important
    int32_t counter;            //!< me too! er, 3, oh whatever.  I'm important darnit
    float buffer[MAX_SIZE + 1]; //!< guess what I am... another unique snowflake, just like all the others
} aglorithm1_storage_t;


I'm thinking it has something to do with the print margin, because when I make that much bigger suddenly it doesn't move the comments. I thought somewhere there was an option to wrap comments to multiple lines but maybe I'm thinking of the Java version of Eclipse (which I use more often).
Re: Preserve whitespace between code and comment doesn't? [message #1739316 is a reply to message #1739310] Fri, 29 July 2016 14:39
Will Lyons is currently offline Will LyonsFriend
Messages: 6
Registered: July 2014
Junior Member
Further investigation:
static const int32_t abcde = 100;       //!< this is some dummy text that
                                        //!< approximates the comment I used
gets the second line shoved to column 1... What the heck? Both lines are well within my print margin (set to 80) but I cannot get the second line not to move. And yet if I surround the declaration with curly braces then it preserves the second line's indentation. Of course I need the variable to have file scope, so this isn't an option, but another data point...
Re: Preserve whitespace between code and comment doesn't? [message #1739317 is a reply to message #1739316] Fri, 29 July 2016 14:45
Jonah Graham is currently offline Jonah GrahamFriend
Messages: 101
Registered: June 2014
Senior Member
Great, I can reproduce the problem with the last code sample in a file by itself. Now lets see if I can figure out why!
 Topic: Indexer Problems openjdk8 / Ubuntu 16
Re: Indexer Problems openjdk8 / Ubuntu 16 [message #1739337 is a reply to message #1739239] Fri, 29 July 2016 22:37
Philipp Koch is currently offline Philipp KochFriend
Messages: 2
Registered: July 2016
Junior Member
Thank you very much for your reply. Using gtk2 instead of 3 actually improved eclipse a lot. While I was testing your solution, I found the real reason for the problems. If the headers of pcl1.7 are included in the paths and symbols, the described behaviour appears. It might result from a double include from pcl and ros-pcl, but I am not sure yet.



Current Time: Fri Jul 29 23:56:20 GMT 2016

Powered by FUDForum. Page generated in 0.13816 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software