New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Command failed: /bin/sh -c #25
Comments
Your classpath is probably now:
You should use * when you are looking for jar files, so try modifying it to:
And if it doesn't work, try moving your java package hierarchy to a separate src-directory so that java packages and jars files do not mix up in the classpath:
And finally, if nothing seems to work, try running the same on command line and then modify it to figure out, what is wrong with it:
|
Also check that class file for com.mobileagility.service.birt.filter.ReportFilter exists. It might be that compilation has failed and therefore ReportFilter.class does not exist at all. |
thanks for your quick response! my classpath is starred, though i'm not sure why the stars were omitted in the command. running the command as given just prints help
it's worth noting that this totally locked up my system a minute ago. i was unable to copy the final error message but it was the same command plus something about Java hotspot not having enough memory |
update |
Try running:
... and then figure out what is wrong with it. Scanning all classes and jar files can be a heavy and long running operation if you have many of them in your classpath, but I haven't had any problems though. But I noticed that your classpath contains the same directories multiple times. Try moving your classes to a separate subdirectory like below. Maybe it will help.
If it's still consuming too much memory, try disabling the "load class members" feature. And if you are using linter-javac, note that it currently does not work well on large projects. |
Or if you prefer keeping classes and java source files in separate directories like I do, then:
Or omit classes-directory altogether, if all your classes can be found in jars in the ./lib and ./build/libs directories:
|
I just read your update again. Yes, if you save a class during a build, the error is probably caused by a nonexisting class file. And the memory error might be caused by doing a build and a class scan at the same time. Try to avoid autocomplete-java refresh and java file save during build for now. I compile all my classes automatically on save during development, perhaps that's why I haven't run into any problems so far. |
I will add a setting for disabling the "refresh class on save" feature. Refreshing classes on save doesn't help you since you don't compile classes on save, and it only causes error messages if you save a class during a build. |
I released a new version. If you disable the 'refresh class on save' setting, you will get rid of those error messages during a build. And if you still have problems with java taking up all memory, try modifying your classpath as I suggested. And perhaps it is better to avoid running a build and a refresh at the same time. All working ok now? |
Did you try to restart atom after updating autocomplete-java? Perhaps new settings appear only after restart. You can also add setting manually to your config.cson:
Your other problems might be caused by multiple project folders. Currently plugin supports only one root folder, see issue #9. Perhaps now it tries to do refresh for all projects at the same time. What do you mean by lockup? a) Atom freezes for a couple of seconds? b) Atom hangs and has to be killed c) operating system freezes or hangs. |
Oh, you answered that in the earlier message... Atom crashes. Hopefully disabling the refreshClassOnSave helps a little bit. Unfortunately multiple project folders is not supported yet (might work ok but probably not). And running multiple projects as separate Atom windows might also cause some issues if many of them do a full refresh at the same time. |
And yes, possibly deleting class files during a refresh might cause problems. Disabling refreshClassOnSave might help since then you can control when the refresh is run (though the first full refresh happens automatically). |
oops, didn't restart atom after upgrading... my bad. option is there now. if thanks for all the support. hopefully i'll have some free time soon to dig around myself. |
Yes, you have to refresh manually using command palette or keyboard shortcut (ctrl-alt-shift-R). If you compile classes manually, you'll have to refresh manually even if the 'refresh class on save' is enabled. A 'watch changed classes' feature is on issue list (issue #19). |
Ubuntu 14.04, latest autocomplete-java update. this seems to be happening repeatedly for various classes in my project
The text was updated successfully, but these errors were encountered: