Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Mylyn Intent » Kepler M6, Intent 0.8 - Editor won't save
Kepler M6, Intent 0.8 - Editor won't save [message #1037295] Tue, 09 April 2013 11:42 Go to next message
Carl Stainton is currently offline Carl StaintonFriend
Messages: 6
Registered: April 2013
Junior Member
Hi,

I'm testing out the java code referencing in the most recent stable Intent (0.Cool on Kepler M6. I'm finding that after minimal use of the editor the intent document can't be saved. The normal save menu doesn't action the save, and on closure of the document the "save changes" dialogue also fails to action the save of the file, resulting in lost work. I had this behaviour on Kepler M5 too. Anyone else seen this ?

Thanks,
Carl
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1037370 is a reply to message #1037295] Tue, 09 April 2013 13:17 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi Carl,

first of all, thanks a lot for giving Intent a try!

I'm unfortunatelly not available today, but I'll try to fix this issue
during the week.

Never had such an issue though, what is your environment (Eclipse
version, OS...)? Is your error log empty?

This may be related to the version of EMFCompare you are using.

Best regards, and deeply sorry for the inconvenience,
Alex

Le 09/04/2013 15:05, Carl Stainton a écrit :
> Hi,
>
> I'm testing out the java code referencing in the most recent stable
> Intent (0.8) on Kepler M6. I'm finding that after minimal use of the
> editor the intent document can't be saved. The normal save menu doesn't
> action the save, and on closure of the document the "save changes"
> dialogue also fails to action the save of the file, resulting in lost
> work. I had this behaviour on Kepler M5 too. Anyone else seen this ?
>
> Thanks,
> Carl
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1037536 is a reply to message #1037370] Tue, 09 April 2013 17:22 Go to previous messageGo to next message
Carl Stainton is currently offline Carl StaintonFriend
Messages: 6
Registered: April 2013
Junior Member
Hi Alex,

No problem thanks for responding - it isn't mission critical and is part of an exploratory dig around improving and optimising the maintenance of code related documentation. If it is any consolation I got further with intent than I did with the XDoc plugin. Smile

I'm on OSX Mountain Lion. I have attached my Eclipse configuration and the log from .plugins/org.eclipse.ui.workbench last modified today. If there's something else you need let me know I'll be happy to oblige. It was a minimal install of Eclipse Kepler M6 with the last stable Intent. I couldn't see a reference to EMFCompare in the .plugins directory ... so it may be completely missing.


Cheers,
Carl
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1038827 is a reply to message #1037370] Thu, 11 April 2013 11:45 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi Carl,

I just downloaded a brand new Eclipse Kepler M6 (Modeling) and installed
the Intent M6 from the kepler update site.

I'm able to drop java files in my Intent document, add some
documentation and save (I did not push the test further).

Could you enlight me about what you did to have save exceptions ?
Is your error log empty ?

Best regards,
Alex
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1038878 is a reply to message #1038827] Thu, 11 April 2013 13:12 Go to previous messageGo to next message
Carl Stainton is currently offline Carl StaintonFriend
Messages: 6
Registered: April 2013
Junior Member
Hi Alex,

The error shown below is present in the log from when the save action started to fail. This error below was captured after re-opening the same project then making changes against the last saved state.

I notice that this doesn't occur immediately. It takes a few edits and perhaps a bit of typing, additional sections etc. I can't say it was linked to the drag and drop of java resources either.

Cheers,
Carl

java.lang.NoClassDefFoundError: org/eclipse/pde/core/plugin/PluginRegistry
at org.eclipse.acceleo.common.internal.utils.workspace.AcceleoWorkspaceUtil$WorkspaceResourcesListener.processBuildEvent(AcceleoWorkspaceUtil.java:1114)
at org.eclipse.acceleo.common.internal.utils.workspace.AcceleoWorkspaceUtil$WorkspaceResourcesListener.resourceChanged(AcceleoWorkspaceUtil.java:1080)
at org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
at org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:382)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:146)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1038888 is a reply to message #1038878] Thu, 11 April 2013 13:26 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi Carl, thank you so much for your fast answer.

I just love this kind of non-reproducible bugs :)

Did this issue happened after having exported the documentation? The
stacks seems to indicate that Acceleo has installed a workspace resource
listener. I'll check this one with the Acceleo team.

Thanks a lot for having raised this issue, I'm currently working on
stability and some prety exciting features...

Cheers,
Alex



Le 11/04/2013 15:12, Carl Stainton a écrit :
> Hi Alex,
>
> The error shown below is present in the log from when the save action
> started to fail. This error below was captured after re-opening the same
> project then making changes against the last saved state.
>
> I notice that this doesn't occur immediately. It takes a few edits and
> perhaps a bit of typing, additional sections etc. I can't say it was
> linked to the drag and drop of java resources either.
>
> Cheers,
> Carl
>
> java.lang.NoClassDefFoundError: org/eclipse/pde/core/plugin/PluginRegistry
> at
> org.eclipse.acceleo.common.internal.utils.workspace.AcceleoWorkspaceUtil$WorkspaceResourcesListener.processBuildEvent(AcceleoWorkspaceUtil.java:1114)
>
> at
> org.eclipse.acceleo.common.internal.utils.workspace.AcceleoWorkspaceUtil$WorkspaceResourcesListener.resourceChanged(AcceleoWorkspaceUtil.java:1080)
>
> at
> org.eclipse.core.internal.events.NotificationManager$1.run(NotificationManager.java:291)
>
> at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
> at
> org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:285)
>
> at
> org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:149)
>
> at
> org.eclipse.core.internal.resources.Workspace.broadcastBuildEvent(Workspace.java:382)
>
> at
> org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:146)
>
> at
> org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1038900 is a reply to message #1038888] Thu, 11 April 2013 13:40 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi Carl,

just got more information on the issue, I know this is easy to say but
this time Intent is not involved :)

Actually, Acceleo has two runtime modes :
- Stand-alone
- inside Eclipse

If it's in Eclipse-mode, it requires PDE. However, they had to define
this dependency as optional, otherwise the stand-alone mode would not be
standalone.

So to fix your issue, you have to install PDE.

I'll update the Intent FAQ right away, thanks again for noticing.

Please let me know if I was not clear, and do not hesitate to spam me
with bugs and feature requests :)

Bets regards,
Alex
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1038915 is a reply to message #1038900] Thu, 11 April 2013 13:58 Go to previous messageGo to next message
Carl Stainton is currently offline Carl StaintonFriend
Messages: 6
Registered: April 2013
Junior Member
Hi Alex,

Thanks I'll give that a try in a bit.

In the meantime I have a dream (slightly more than a feature request!) ...

I'm coming at this from the point of view of someone trying to write and maintain documentation against a codebase where the api may be changing subtly or even moving through versions. My "dream" use case is for the documentation project to be authored in Eclipse and to be treated like a Java Project, with a build path assigned to it, referencing either projects in Eclipse, Maven managed artifacts, or external jars. The code snippets and samples would be sectioned off within the document (a la Intents Modelling Unit section) and could then be compiled/validated in the background and annotated with errors just like code in a referenced project's Eclipse managed source. In this way we'd have instant feedback on where code and documentation are starting to drift. A quick win I suppose would leverage eclipses snippet compiler against these sections ...

Cheers,
Carl
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1038951 is a reply to message #1038915] Thu, 11 April 2013 14:43 Go to previous messageGo to next message
Carl Stainton is currently offline Carl StaintonFriend
Messages: 6
Registered: April 2013
Junior Member
Hi,

I just installed PDE 3.9.0.v20130314 but the same behaviour occurs ( without the acceleo related errors in the error log ). I did notice now that I couldn't save when I had an error on a modelling unit section. Without the offending section I could save.

Cheers,
Carl
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1038978 is a reply to message #1038951] Thu, 11 April 2013 15:11 Go to previous messageGo to next message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Yes it is true, you cannot save an Intent editor if you have SYNTAX
errors on it (however, validation or synchronization issues do not
prevent from saving).

The reason for that is that when you save your Intent editor, we parse
the text and get a model out of it, and it is this model that we store.
This model-based storage allow us to do cool things, like store it
inside a database and provide real-time updates thanks to CDO
(http://www.eclipse.org/intent/pages/transcripts/2012_EclipseConEurope/Intent_EConEurope2012.html#24
and next slide for demo).

The drawback of that approach is that if you have SYNTAX issues inside
your Intent editor you will not be able to save it. The editor will stay
dirty and a syntax error issue will be displayed until you fix it.

If this is indeed your issue, then from now on I would not consider it
as a bug, but more as a feature request.

I have though about a mechanism that would make a textual storage if the
editor contains syntax issue, so that you never loose your content.
I've just created the following bugzilla issue
https://bugs.eclipse.org/bugs/show_bug.cgi?id=405482 to track this idea,
however I don't think I will have time to fix it for the Kepler release.

I hope I answered your question,
Alex

Le 11/04/2013 16:43, Carl Stainton a écrit :
> Hi,
>
> I just installed PDE 3.9.0.v20130314 but the same behaviour occurs (
> without the acceleo related errors in the error log ). I did notice now
> that I couldn't save when I had an error on a modelling unit section.
> Without the offending section I could save.
>
> Cheers,
> Carl
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1042396 is a reply to message #1038978] Tue, 16 April 2013 11:28 Go to previous messageGo to next message
Carl Stainton is currently offline Carl StaintonFriend
Messages: 6
Registered: April 2013
Junior Member
Thanks Alex, sorry for the delay - work took over. Yes it seems to be working as you describe and the question is answered.

Cheers,
Carl
Re: Kepler M6, Intent 0.8 - Editor won't save [message #1042431 is a reply to message #1042396] Tue, 16 April 2013 12:27 Go to previous message
Alex Lagarde is currently offline Alex LagardeFriend
Messages: 193
Registered: May 2010
Senior Member

Hi Carl,

ok great. The eclipse's hudson instance is currently broken, but as soon
as it is fixed I will promote a new nightly version with some
interesting new features, an improved syntax highlithing and completion
and some bugfixes :)

Cheers,
Alex

Le 16/04/2013 13:28, Carl Stainton a écrit :
> Thanks Alex, sorry for the delay - work took over. Yes it seems to be
> working as you describe and the question is answered.
> Cheers,
> Carl
Previous Topic:Intents breaking JDT code coloring?
Next Topic:How to introduce Intent in development process
Goto Forum:
  


Current Time: Tue Mar 19 05:51:25 GMT 2024

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

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

Back to the top