CM: Problems with installing tools #3895

Closed
JakubValtar opened this Issue Sep 28, 2015 · 9 comments

Comments

Projects
None yet
3 participants
@JakubValtar
Contributor

JakubValtar commented Sep 28, 2015

I tried to install some tools today. This is how my manager looks:
err
Problems:

  • Installing SketchOutline just say "Could not find a tool in the downloaded file."
  • Tools which are grayed out say "<version nr.> installed" between install and update button
  • I get these in the console and they also print various ugly messages into console when I try to run them from the Tools menu.
"Color Selector Plus" is not compatible with this version of Processing
"GUI builder" is not compatible with this version of Processing
"Speed Tool" is not compatible with this version of Processing
"TabManager" is not compatible with this version of Processing
  • Getting this one sometimes when installing/uninstalling
Exception in thread "Contribution Uninstaller" java.lang.NullPointerException
    at processing.app.contrib.DetailPanel$12.cancelAction(DetailPanel.java:933)
    at processing.app.contrib.ContribProgressBar$2.run(ContribProgressBar.java:84)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301)
    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 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)
  • when installing or uninstalling, sometimes I get
Could not delete E:\Projekty\Processing3\modes\mode2519908654842808608tmp\AndroidMode\mode\AndroidMode.jar
Could not delete E:\Projekty\Processing3\modes\mode2519908654842808608tmp\AndroidMode\mode
Could not delete E:\Projekty\Processing3\modes\mode2519908654842808608tmp\AndroidMode
Could not delete E:\Projekty\Processing3\modes\mode2519908654842808608tmp\AndroidMode\mode\AndroidMode.jar
Could not delete E:\Projekty\Processing3\modes\mode2519908654842808608tmp\AndroidMode\mode
Could not delete E:\Projekty\Processing3\modes\mode2519908654842808608tmp\AndroidMode
Could not delete E:\Projekty\Processing3\modes\mode2519908654842808608tmp

@REAS

This comment has been minimized.

Show comment
Hide comment
@REAS

REAS Sep 28, 2015

Member

I think all of the Tools should be grayed out for the 3.0 launch -- none of them are compatible. I wrote to @prisonerjohn about this earlier today. That doesn't solve all of the problems, but it's some data for you.

Member

REAS commented Sep 28, 2015

I think all of the Tools should be grayed out for the 3.0 launch -- none of them are compatible. I wrote to @prisonerjohn about this earlier today. That doesn't solve all of the problems, but it's some data for you.

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Sep 28, 2015

Contributor

I fixed what I could here (installed message, NPE).

Contributor

JakubValtar commented Sep 28, 2015

I fixed what I could here (installed message, NPE).

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Sep 29, 2015

Contributor

Looks like the contributions refresh made all Tools incompatible, which solved it for now.

As for the cache folder deleting, this looks like something we can't affect for now (@benfry?).

Contributor

JakubValtar commented Sep 29, 2015

Looks like the contributions refresh made all Tools incompatible, which solved it for now.

As for the cache folder deleting, this looks like something we can't affect for now (@benfry?).

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 29, 2015

Member

Correct re: cache folder... I think the code is set up to delete those the next time that Processing starts, but double-check that. And if that's the case, we should put the note in the console that it'll be deleted later. i.e. instead of doing a bunch of "could not delete" messages, we say "such and such folder will be removed the next time Processing starts".

Though another alternative would be moving to the Recycle Bin, which can be done via platformDelete(). Though that may just have the same problem.

Member

benfry commented Sep 29, 2015

Correct re: cache folder... I think the code is set up to delete those the next time that Processing starts, but double-check that. And if that's the case, we should put the note in the console that it'll be deleted later. i.e. instead of doing a bunch of "could not delete" messages, we say "such and such folder will be removed the next time Processing starts".

Though another alternative would be moving to the Recycle Bin, which can be done via platformDelete(). Though that may just have the same problem.

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Sep 29, 2015

Contributor

If the file is locked Moving to bin won't work either.

How about using the system temp folder or make the folder hidden in the first place? I don't think a message about auto-created temp folder is useful to anybody.

That reminds me, Processing creates a new folder in temp every time you run a sketch and never deletes it, maybe we should start deleting them too. I also found a lot of ImageIO temporary files in my temp, which may be caused by "improper shutdown of the JVM".

Contributor

JakubValtar commented Sep 29, 2015

If the file is locked Moving to bin won't work either.

How about using the system temp folder or make the folder hidden in the first place? I don't think a message about auto-created temp folder is useful to anybody.

That reminds me, Processing creates a new folder in temp every time you run a sketch and never deletes it, maybe we should start deleting them too. I also found a lot of ImageIO temporary files in my temp, which may be caused by "improper shutdown of the JVM".

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 29, 2015

Member

You can't use temp because it may be on another drive or file system. This was a problem with earlier releases.

re: temp folders, please don't mix unrelated issues, that one is already here: #1896

Member

benfry commented Sep 29, 2015

You can't use temp because it may be on another drive or file system. This was a problem with earlier releases.

re: temp folders, please don't mix unrelated issues, that one is already here: #1896

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Sep 29, 2015

Contributor

Let's talk about it in person.

Contributor

JakubValtar commented Sep 29, 2015

Let's talk about it in person.

@JakubValtar

This comment has been minimized.

Show comment
Hide comment
@JakubValtar

JakubValtar Sep 29, 2015

Contributor

Temp folders are deleted on the startup, so I just suppressed the messages printed into console.

@benfry good to go?

Contributor

JakubValtar commented Sep 29, 2015

Temp folders are deleted on the startup, so I just suppressed the messages printed into console.

@benfry good to go?

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Sep 30, 2015

Member

All set.

Member

benfry commented Sep 30, 2015

All set.

@benfry benfry closed this Sep 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment