Code Monkey home page Code Monkey logo

codemaker's Issues

java.lang.ExceptionInInitializerError

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

设置页打不开,Storage中的id属性没有了

运行后,CodeMaker设置页一直loading,出不来设置页面。
怀疑跟{@Storage(id = "app-default", file = "$APP_CONFIG$/CodeMaker-settings.xml")}有关,新的SDK中已经去掉了id字段,但我删除id还是不好用,求解

is there a way to add annotation for each property

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文件

您好,如果我想自己在源码里加入自定一的vm文件,使用没什么大问题,就是出现了一下问题,而且页面的插件设置面板打不开,中文乱码,你遇到过这种情况吗,可不可以帮忙看一下?

38355489be8a8971a7d9c49ff830d9d

b5ac01a68a944dfe82ca383e0aaddac

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)

刚接触idea插件,有些问题想请教下

如果我要开发一个插件,他的功能是选中某些文字,然后按快捷键就打开某个网页,同时会把那个选中的文字携带到这个打开的网页的搜索框中,这个怎么实现呢,或者说按快捷键打开网页这个动作怎么实现的,有什么api。这方面资料太少了百度了好久没找到

新建模板中含有中文会乱码?

idea和项目都设置为utf-8,下载此插件在新建的vm文件中有中文,结果生成的文件中文都变乱码,是哪里设置的不对吗?

找不到classNumber在哪

image
保存的时候提示我没有写classNumber,但是我在界面上没看到classNumber在哪填写。
版本用的最新的V1.4

Support for in-class templates?

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:

  1. Support adding arbitrary contents. (e.g. many fields/functions)
  2. Support the selection of members. (just like the default implementation for toString)
  3. Support overwriting existing methods/fields.

Ideally, the built-in getter/setter, toString, hashCode/equals could be replaced by CodeMaker.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.