Closed MichaelCombs28 closed 5 years ago
I guess you have some conditions that give this issue. Can you create test project for me to reproduce it?
So I created a basic project using maven
mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DarchetypeVersion=1.4 -DinteractiveMode=false
I realized I made a mistake and kept recreating it. If current buffer is not a java file it raises said error.
So, this mean that jc2 plugin is not yet loaded, I guess. Not sure if we can do something here. Or, what if you let jc2 load for every file type in you bundle manager?
I'm a bit new to vimscript, I would assume some commands could be exposed to the global scope without the need to load the entire plugin. Potentially commands such as create class but if opened in a non java buffer would require users to enter the package string.
I honestly think this is more a non issue and more of a feature request, please feel free to close this issue.
Class generation heavy depends on relative relation to other java files. If you trying to start new project you should open empty java
file in vim, and run JCclassInFile
. Than, you can relatively create classes with JCclassNew
.
You can reopen this issue later, after some use of jc2
, when you can shape you feature request better.
Actual behavior (Required!)
Expected behavior (Required!)
A new class file.
The steps to reproduce actual behavior (Required!)
Environment (Required!)