Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lua Development Tools » Error when saving files(When saving files the Script Builder fails)
Error when saving files [message #851648] Sat, 21 April 2012 06:24 Go to next message
John Paquin is currently offline John PaquinFriend
Messages: 6
Registered: April 2012
Junior Member
Hey guys.

Thank you so much for writing this, it's excellent and sorely needed!

I'm running LDT with Eclipse Indigo under Mac Lion. I made a lua project from an existing directory tree. The files are all read only because they're under source control.

I check out a file and modify it, but when I save it I get a "problem occured" box that says:

Building Workspace has encountered a problem.
Errors occured during the build.

And after clicking "details" it says the following:

Errors occurred during the build.
Errors running builder 'Script Builder' on project 'LuaGameDev'.
com/naef/jnlua/LuaException

I assume this is because Script Builder is crashing, but I don't know why or what to do about it (other than turning off the builder). Is it maybe something to do with the files being read only?

I've gotten local debugging working, so I'm pretty sure most of it is set up okay.

Thanks for any help.
Re: Error when saving files [message #851688 is a reply to message #851648] Sat, 21 April 2012 07:25 Go to previous messageGo to next message
Benjamin Cabé is currently offline Benjamin CabéFriend
Messages: 156
Registered: July 2009
Location: Toulouse, France
Senior Member

Hi John!

I am not sure I see what you mean by: " The files are all read only because they're under source control."?

Any chance you can share the file? That would help reproducing the problem.
Also, you should be able to get more details regarding the exception (e.g a stack trace) if you go in the Error Log views (assuming you have a regular Eclipse install), orin the .metadata/.log file of your workspace.

Benjamin.
Re: Error when saving files [message #853094 is a reply to message #851688] Sun, 22 April 2012 17:56 Go to previous messageGo to next message
John Paquin is currently offline John PaquinFriend
Messages: 6
Registered: April 2012
Junior Member
I just meant to highlight that all the .lua files in the project are read-only. I didn't know if that might have something to do with the Script Builder failing.

As far as providing the file it fails on, it fails on every file I try to save.

I found the error in the Error Log, but I don't know what the fix would be. I'm going to paste in the log entry below.

Thanks for your help, this is a great plugin!


eclipse.buildId=M20120208-0800
java.version=1.6.0_31
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86, WS=cocoa, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product -keyring /Users/jpaquin.eclipse_keyring -showlocation
Command-line arguments: -os macosx -ws cocoa -arch x86 -product org.eclipse.epp.package.jee.product -keyring /Users/jpaquin/.eclipse_keyring -showlocation

Error
Sun Apr 22 10:50:19 PDT 2012
Errors running builder 'Script Builder' on project 'LuaGameDev'.

java.lang.NoClassDefFoundError: com/naef/jnlua/LuaException
at org.eclipse.koneki.ldt.parser.LuaSourceParserFactory.createSourceParser(LuaSourceParserFactory.java:29)
at org.eclipse.dltk.ast.parser.SourceParserManager$SourceParserContribution.getSourceParser(SourceParserManager.java:106)
at org.eclipse.dltk.ast.parser.SourceParserManager.getSourceParser(SourceParserManager.java:83)
at org.eclipse.dltk.core.DLTKLanguageManager.getSourceParser(DLTKLanguageManager.java:280)
at org.eclipse.dltk.core.builder.ParserBuildParticipantFactory.createBuildParticipant(ParserBuildParticipantFactory.java:35)
at org.eclipse.dltk.internal.core.builder.BuildParticipantManager.createParticipants(BuildParticipantManager.java:124)
at org.eclipse.dltk.internal.core.builder.BuildParticipantManager.getBuildParticipants(BuildParticipantManager.java:107)
at org.eclipse.dltk.internal.core.builder.StandardScriptBuilder.initialize(StandardScriptBuilder.java:307)
at org.eclipse.dltk.internal.core.builder.ScriptBuilder.getScriptBuilders(ScriptBuilder.java:649)
at org.eclipse.dltk.internal.core.builder.ScriptBuilder.incrementalBuild(ScriptBuilder.java:498)
at org.eclipse.dltk.internal.core.builder.ScriptBuilder.build(ScriptBuilder.java:171)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:728)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:199)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:239)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:292)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:295)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:351)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:374)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:143)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:241)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter$TerminatingClassNotFoundException: An error occurred while automatically activating bundle com.naef.jnlua (1180).
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:122)
at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java:463)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoader.java:216)
at org.eclipse.osgi.internal.loader.BundleLoader.findLocalClass(BundleLoader.java:400)
at org.eclipse.osgi.internal.loader.SingleSourcePackage.loadClass(SingleSourcePackage.java:35)
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:473)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 23 more
Caused by: org.osgi.framework.BundleException: Exception in com.naef.jnlua.Activator.start() of bundle com.naef.jnlua.
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:734)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:683)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:299)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:268)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
... 32 more
Caused by: java.lang.UnsatisfiedLinkError: no lua5.1 in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1758)
at java.lang.Runtime.loadLibrary0(Runtime.java:823)
at java.lang.System.loadLibrary(System.java:1045)
at com.naef.jnlua.Activator.start(Activator.java:37)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:711)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:702)
... 38 more
Re: Error when saving files [message #853098 is a reply to message #853094] Sun, 22 April 2012 17:59 Go to previous messageGo to next message
Benjamin Cabé is currently offline Benjamin CabéFriend
Messages: 156
Registered: July 2009
Location: Toulouse, France
Senior Member

Oh shoot... You are running on an x86 machine, right? Lua Development Tools is unfortunately not supported on this target...
Re: Error when saving files [message #853102 is a reply to message #853098] Sun, 22 April 2012 18:07 Go to previous message
John Paquin is currently offline John PaquinFriend
Messages: 6
Registered: April 2012
Junior Member
Ahhh, ok. My machine is wonky. It's a macbook4,1 core 2 duo that can run lion, but isn't fully x64 enabled.

I'll just turn off the Script Builder then. The debugging and syntax coloring work which is 99% of what I wanted this for.

Thanks a lot!

Previous Topic:Some questions of LDT on MacOSX
Next Topic:Debugging not working
Goto Forum:
  


Current Time: Tue Dec 23 02:16:49 GMT 2014

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

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