x-hansong / codemaker Goto Github PK
View Code? Open in Web Editor NEWA idea-plugin for Java/Scala, support custom code template.
License: Apache License 2.0
A idea-plugin for Java/Scala, support custom code template.
License: Apache License 2.0
java.lang.ExceptionInInitializerError
at com.xiaohansong.codemaker.action.CodeMakerAction.actionPerformed(CodeMakerAction.java:74)
at com.intellij.openapi.actionSystem.ex.ActionUtil$1.run(ActionUtil.java:197)
at com.intellij.openapi.application.TransactionGuardImpl.a(TransactionGuardImpl.java:88)
at com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait(TransactionGuardImpl.java:156)
at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:211)
at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep.performAction(PopupFactoryImpl.java:875)
at com.intellij.ui.popup.PopupFactoryImpl$ActionPopupStep.a(PopupFactoryImpl.java:863)
at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:199)
at com.intellij.ui.popup.AbstractPopup.a(AbstractPopup.java:1390)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.f(IdeEventQueue.java:863)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:699)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:385)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Caused by: org.apache.velocity.exception.VelocityException: Error initializing log: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration.
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:875)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:262)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:93)
at com.xiaohansong.codemaker.util.VelocityUtil.(VelocityUtil.java:19)
... 26 more
Caused by: org.apache.velocity.exception.VelocityException: Failed to initialize an instance of org.apache.velocity.runtime.log.Log4JLogChute with the current runtime configuration.
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:220)
at org.apache.velocity.runtime.log.LogManager.updateLog(LogManager.java:269)
at org.apache.velocity.runtime.RuntimeInstance.initializeLog(RuntimeInstance.java:871)
... 29 more
Caused by: java.lang.RuntimeException: Error configuring Log4JLogChute :
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.velocity.util.ExceptionUtils.createWithCause(ExceptionUtils.java:67)
at org.apache.velocity.util.ExceptionUtils.createRuntimeException(ExceptionUtils.java:45)
at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:133)
at org.apache.velocity.runtime.log.Log4JLogChute.init(Log4JLogChute.java:85)
at org.apache.velocity.runtime.log.LogManager.createLogChute(LogManager.java:157)
... 31 more
Caused by: java.io.FileNotFoundException: velocity.log (拒绝访问。)
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:133)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
at org.apache.log4j.FileAppender.(FileAppender.java:110)
at org.apache.log4j.RollingFileAppender.(RollingFileAppender.java:79)
at org.apache.velocity.runtime.log.Log4JLogChute.initAppender(Log4JLogChute.java:118)
... 33 more
运行后,CodeMaker设置页一直loading,出不来设置页面。
怀疑跟{@Storage(id = "app-default", file = "$APP_CONFIG$/CodeMaker-settings.xml")}有关,新的SDK中已经去掉了id字段,但我删除id还是不好用,求解
etc:
public calss SomeClass{
private String code;
private String msg;
}
auto generate to
public class SomeClass{
@NotNull
private String code;
@NotNull
private String msg;
}
if there are popmenu for user to chosen which property need to be modify , it's better
thanks..
您好,如果我想自己在源码里加入自定一的vm文件,使用没什么大问题,就是出现了一下问题,而且页面的插件设置面板打不开,中文乱码,你遇到过这种情况吗,可不可以帮忙看一下?
java.lang.NoSuchMethodError: com.intellij.ui.components.JBTabbedPane.setTabComponentInsets(Ljava/awt/Insets;)V
at com.xiaohansong.codemaker.ui.CodeMakerConfiguration.$$$setupUI$$$(CodeMakerConfiguration.java)
at com.xiaohansong.codemaker.ui.CodeMakerConfiguration.(CodeMakerConfiguration.java:26)
at com.xiaohansong.codemaker.ui.CodeMakerConfigurable.createComponent(CodeMakerConfigurable.java:58)
at com.intellij.openapi.options.ex.ConfigurableWrapper.createComponent(ConfigurableWrapper.java:163)
at com.intellij.openapi.options.ex.ConfigurableCardPanel.lambda$createConfigurableComponent$0(ConfigurableCardPanel.java:73)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:973)
Originally posted by @oaichina in #22 (comment)
如果我要开发一个插件,他的功能是选中某些文字,然后按快捷键就打开某个网页,同时会把那个选中的文字携带到这个打开的网页的搜索框中,这个怎么实现呢,或者说按快捷键打开网页这个动作怎么实现的,有什么api。这方面资料太少了百度了好久没找到
Ro对象中,包含如 @NotNull 注解的属性,在converter时,没有赋值,注释掉后就有了,希望这个问题下个版本中能解决一下。支持作者。
idea和项目都设置为utf-8,下载此插件在新建的vm文件中有中文,结果生成的文件中文都变乱码,是哪里设置的不对吗?
I don't find a License in the project, i want add some feature, can i fork it and modify it?
It seems that currently CodeMaker supports only the creation of new classes, any thoughts on supporting in-class templates just like toString
or equals
?
So that we could customize templates for adding any codes to an existing class? More specifically:
toString
)Ideally, the built-in getter/setter
, toString
, hashCode/equals
could be replaced by CodeMaker.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.