Grails plugins

All

when i run my grails app it installs all the plugins i need.  fine.  intellij puts a folder in the project view for the plugins.  the activity spinner is constantly working; it never stops.

what is going on?

Something might be related -- when i try to grails clean from the command line there is an error in that it cannot remove some of the plugin jars.  that corrupts everything (plugin index or whatever) and the only way to recover is to remove the plugin dirs manually from the CL and and restart the app.

thanx

13 comments

Does IDE respond to your actions in such moments? Could you please
capture CPU snapshots and some thread dumps as described in
http://www.jetbrains.net/devnet/docs/DOC-192 ?

0

thanx for the reply.  It is not stalling on analyzing the plugins; that issue has resolved itself.

I have 2 more questions.

1.  I get a lot of validation errors

cannot resolve symbol validate, save, log...etc...

its kind of annoying.  Is there anything special  I need to do to get grails to know about the stuff that grails dynamically injects into models/services?

2. I shutdown intellij and still could not run grails clean.  It still cant remove a jar in  a plugin.  I dont understand why clean is removing the plugins but whatever, it is a windows issue...


edit:

im attaching my iml file

Im pretty sure I have the grails project set up correctly -- I can use intellij to go into grails view and also can create models/services etc from context menus.

this seems pretty strange...



Attachment(s):
tabulae-tool-trunk.iml.zip
module settings.PNG
grails setting.PNG
0

I have 2 more questions.

1.  I get a lot of validation errors

cannot resolve symbol validate, save, log...etc...


Where do you get those errors: in the editor, in the compiler, at the
application runtime?

its kind of annoying.  Is there anything special  I need to do to get grails to know about the stuff that grails dynamically injects into models/services?

2. I shutdown intellij and still could not run grails clean.  It still cant remove a jar in  a plugin.  I dont understand why clean is removing the plugins but whatever, it is a windows issue...


You might want to use something like Process Explorer
(http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx) or
Process Monitor
(http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) to see
which process keeps the plugin jars open.

0

the warnings are in the editor, part of the inspections.

edit -- using proc explorer, nothing is locking the file, and I still cant clean...'Unable to delete file [path to a plugin jar]'

0

Could you attach a screenshot?

0

screenshot of the intellij warnings or the grails clean error?

0

Of the editor warnings. A for 'clean' errors, you should find the
process that locks the jars by some tools, for example the ones I
pointed out.

0

right, and what I am saying is that those tools are not reporting any thing locking the jars in the plugins' lib dirs.

as for the inspection warnings, its basically a ton of cant resolve symbol x where x are things that grails automatically injects, like a log property, and id property, etc...i have an 800 line file with 450 warnings, most of which are cannot find symbols.  It is finding things like String and whatnot.

0

right, and what I am saying is that those tools are not reporting any thing locking the jars in the plugins' lib dirs.

If I understand correctly, IDEA is not running in such moments. Then
there must be some other process. A file manager, for example. Or the
application may be deployed on the server and running.

as for the inspection warnings, its basically a ton of cant resolve symbol x where x are things that grails automatically injects, like a log property, and id property, etc...i have an 800 line file with 450 warnings, most of which are cannot find symbols.  It is finding things like String and whatnot.

There are some things that IDEA doesn't know of. But it knows of 'log'
and 'id', and it shouldn't highlight them as yellow warning. Which
inspection is it (you can press Alt+Enter and Right arrow to see that).

0

its access to unresolved expression.

yes the clean issue is not intellij related

0

heres a question: most of the code developed so far uses 'def' declarations for vars, not the actual types.  Is intellij smart enough to get around that?

could that be why intellij is giving so many warnings?

0

You can just turn it off. It's off anyway by default.

0

Yes, it may be the cause. If the variable initializer can be resolved
and its type can be determined, then the code assistance will be
available for that variable. Otherwise, alas.

0

Please sign in to leave a comment.