Latest version -> Cannot create new Lua file for the project (Mac)

Always fail to create new Lua file: File -> New File… -> Empty Lua file.

The version is 2.2.1 described in “Whats New”.

No problem for the last version:

A java error was reported as follows:

java.lang.ClassCastException: org.netbeans.editor.BaseDocument cannot be cast to javax.swing.text.StyledDocument

at com.MYDevelopers.LuaSupport.Formatter.LuaFormatter.reformat(LuaFormatter.java:43)

at org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:120)

at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:557)

at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:316)

at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:365)

at org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:154)

at org.netbeans.modules.editor.indent.IndentScriptEngineHack.eval(IndentScriptEngineHack.java:96)

at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:264)

at org.netbeans.modules.editor.indent.IndentScriptEngineHack.eval(IndentScriptEngineHack.java:125)

at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)

at org.netbeans.api.templates.CreateFromTemplateImpl.defaultCreate(CreateFromTemplateImpl.java:287)

at org.netbeans.api.templates.CreateFromTemplateImpl.build(CreateFromTemplateImpl.java:130)

at org.netbeans.api.templates.CreateFromTemplateImpl.build(CreateFromTemplateImpl.java:92)

at org.netbeans.api.templates.FileBuilder.build(FileBuilder.java:250)

at org.netbeans.api.templates.FileBuilder.createFromTemplate(FileBuilder.java:351)

at org.openide.loaders.FileEntry.createFromTemplate(FileEntry.java:155)

at org.openide.loaders.MultiDataObject.handleCreateFromTemplate(MultiDataObject.java:881)

at org.openide.loaders.DataObject$CreateAction.run(DataObject.java:1597)

at org.openide.loaders.DataObjectPool$1WrapAtomicAction.run(DataObjectPool.java:261)

at org.openide.filesystems.EventControl.runAtomicAction(EventControl.java:127)

at org.openide.filesystems.FileSystem.runAtomicAction(FileSystem.java:519)

at org.openide.loaders.DataObjectPool.runAtomicAction(DataObjectPool.java:286)

at org.openide.loaders.DataObject.invokeAtomicAction(DataObject.java:1051)

at org.openide.loaders.DataObject.createFromTemplate(DataObject.java:983)

at org.openide.loaders.TemplateWizard$DefaultIterator.instantiate(TemplateWizard.java:919)

at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:605)

at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:439)

at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:248)

at org.openide.loaders.TemplateWizardIteratorWrapper.instantiate(TemplateWizardIteratorWrapper.java:160)

at org.openide.WizardDescriptor.callInstantiateOpen(WizardDescriptor.java:1629)

at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1570)

at org.openide.WizardDescriptor.access$2300(WizardDescriptor.java:92)

[catch] at org.openide.WizardDescriptor$Listener$2$1.run(WizardDescriptor.java:2257)

at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)

at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)

at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)

at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)

Any update on this issue?  I hope this editor is still being supported.  Thanks.

Same problem here.

For now i duplicate a random file and rename/empty/move it

Is this product still being supported?

simply create a file with “other” -> “basic” -> “file” and name it filename.lua

Any update on this issue?  I hope this editor is still being supported.  Thanks.

Same problem here.

For now i duplicate a random file and rename/empty/move it

Is this product still being supported?

simply create a file with “other” -> “basic” -> “file” and name it filename.lua