Clearing plugins-sandbox automatically

Hi. I got quite frustrated yesterday trying to figure out why changes in my source code were not being reflected in the running IDEA/plugin, which I'm launching from my ultimate edition 12.0.4.  I finally wiped out the plugins-sandbox dir and gee it all of a sudden sees my changes. Shouldn't Intellij automatically wipe the sandbox if it's going to launch another IDE with an updated plug-in? I see no option to have it automatically wiped out or sensitive to build changes. Obviously I'm doing something stupid. can somebody clue me in?  [community edition 132, jdk 7]

thanks!
Ter

9 comments

Hmm...might not be the source updates. Maybe it was my icons that didn't show up. Nobody else has seen this?  I have a nack for finding weird issues i guess.

0

No, this happens to me also. I just got into the habbit of deleting the ${idea}\system\plugins-sandbox\plugins folder on each restart to circumvent any stale state issues.
I believe you could automatically delete this folder by creating a Before Launch run configuration to clear down the plugins folder appropriately however.

0

Hi Alan, glad it's not just me. ;)  I just noticed it happen again when I removed a library and a few classes that were no longer needed (I replaced jflex lexer with a handbuilt version). Running the plug-in starts up without the splash screen and immediately terminates. I'm like what???!! I wiped out the sandbox and it works again. not the end of the world, but without a lot of programming experience that would've been a roadblock (w/o response from jetbrains).

0

You can be building more than one plugin. I think that might be part of the reason the plugins directory is not just wiped out each time. Also, when deployed automatically the deployment can differ from your jar file deployment, ie there may be other directories you want there that aren't built as part of the IDEA make or are in different locations etc.

9-24-2013 9-14-37 PM.jpg

9-24-2013 9-14-19 PM.jpg

I have never used it - but you could also try: https://github.com/syllant/idea-plugin-remotesynchronizer

0

thanks. I'll pay attention to plugin jar vs running from IDEA.
Ter
PS I have an ANTLR v4 adaptor now more or less working in intellij. I'll make a plugin from antlr grammar generator tool. fun!

0

I'll be very interested in seeing it. I know when I first started - they specifically mentioned that doing a plugin using a parser generator would be a real challenge.

0

Works great including PSI building and error handling. shows up as red squiggles etc... Took me a few days to read their source. good stuff actually. About to post question though ;)
Ter

0

parrt wrote:

Works great including PSI building and error handling. shows up as red squiggles etc... Took me a few days to read their source. good stuff actually. About to post question though ;)
Ter


sounds very interesting ;-)
do you have  any parsing perfomance nr/indicators?

cheers

0

Not yet but antlr v4 outside of IDEA goes pretty fast. 6.9s to parse all of jdk 7 lib; 7400 files. about 325k lines/sec. that includes JIT time and load of files from SSD drive. Parsing 2nd time is like 3s as antlr v4 is much faster on same input by a memoizing like mechanism.

Ter

0

Please sign in to leave a comment.