mode properties are not properly downloaded by the CM #3492

Closed
codeanticode opened this Issue Jul 20, 2015 · 10 comments

Comments

Projects
None yet
5 participants
@codeanticode
Member

codeanticode commented Jul 20, 2015

When trying to install the latest release of the Android mode using the CM in 3.0 alpha 11, I get the following message

"This item is not compatible with this version of Processing"

after downloading, so the mode does not get installed. f you download the mode package manually you can see that the properties file reads:

name = Android Mode
authorList = [The Processing Foundation](http://android.processing.org/)
url = https://github.com/processing/processing-android
sentence = Create projects with Processing for Android devices
paragraph = This version of the Android Mode is for Processing 3.0a11+
imports=processing.mode.java.JavaMode
version = 239
prettyVersion = 3alpha
minRevision = 237
maxRevision = 0

However, the mode files left in a temporary subfolder after the failed installation contains a slightly different properties file:

name=Android Mode
category=Unknown
authors=[The Processing Foundation](http://android.processing.org/)
url=https://github.com/processing/processing-android
sentence=Create projects with Processing for Android devices
paragraph=This version of the Android Mode is for Processing 3.0a11+
version=239
prettyVersion=3alpha
lastUpdated=0
minRevision=237
maxRevision=0

In particular, the imports field is missing.

@alignedleft

This comment has been minimized.

Show comment
Hide comment
@alignedleft

alignedleft Jul 20, 2015

Member

@Akarshit can you look at this?

Member

alignedleft commented Jul 20, 2015

@Akarshit can you look at this?

@Akarshit

This comment has been minimized.

Show comment
Hide comment
@Akarshit

Akarshit Jul 20, 2015

Member

@alignedleft looking into it

Member

Akarshit commented Jul 20, 2015

@alignedleft looking into it

@Akarshit

This comment has been minimized.

Show comment
Hide comment
@Akarshit

Akarshit Jul 20, 2015

Member

The properties file doesn't contain the imports because of this. It looks like this is by design so mabe @benfry can help me with this.
Regarding why installation is not working i am still working on it.

Member

Akarshit commented Jul 20, 2015

The properties file doesn't contain the imports because of this. It looks like this is by design so mabe @benfry can help me with this.
Regarding why installation is not working i am still working on it.

@Akarshit

This comment has been minimized.

Show comment
Hide comment
@Akarshit

Akarshit Jul 20, 2015

Member

There is a NoClassDefFoundException getting thrown here. The problem is that the mode wants to import processing.mode.java.JavaMode and is searching this file within the AndroidMode.jar file. I am not completely familiar with the implementation of this so if @benfry could help me in this before i chance something, I would be really grateful.

Member

Akarshit commented Jul 20, 2015

There is a NoClassDefFoundException getting thrown here. The problem is that the mode wants to import processing.mode.java.JavaMode and is searching this file within the AndroidMode.jar file. I am not completely familiar with the implementation of this so if @benfry could help me in this before i chance something, I would be really grateful.

@codeanticode

This comment has been minimized.

Show comment
Hide comment
@codeanticode

codeanticode Jul 21, 2015

Member

@Akarshit we faced a similar problem when the PDE tried to load the mode (once it was already installed). See this PR for the details.

Member

codeanticode commented Jul 21, 2015

@Akarshit we faced a similar problem when the PDE tried to load the mode (once it was already installed). See this PR for the details.

@kreidler

This comment has been minimized.

Show comment
Hide comment
@kreidler

kreidler Jul 25, 2015

I do have the same issue on W7Pro 32. Not only Android mode gets "This item is not compatible with this version of Processing", Any new mode fails to be installed.

workaround for Android for adding the mode manually: Download the latest Android mode: https://github.com/processing/processing-android/releases/download/latest/AndroidMode.zip
Unzip in the folder where the modes are located following partly http://forum.processing.org/two/discussion/comment/25645#Comment_25645
Start P3.

So, I assume that there differences between the downloaded files which the CM is using. Adding tools etc works fine.

I do have the same issue on W7Pro 32. Not only Android mode gets "This item is not compatible with this version of Processing", Any new mode fails to be installed.

workaround for Android for adding the mode manually: Download the latest Android mode: https://github.com/processing/processing-android/releases/download/latest/AndroidMode.zip
Unzip in the folder where the modes are located following partly http://forum.processing.org/two/discussion/comment/25645#Comment_25645
Start P3.

So, I assume that there differences between the downloaded files which the CM is using. Adding tools etc works fine.

@kreidler

This comment has been minimized.

Show comment
Hide comment
@kreidler

kreidler Jul 26, 2015

ADD: In 3.0 alpha 10 AndroidMode is greyed out and not accessible either.

ADD: In 3.0 alpha 10 AndroidMode is greyed out and not accessible either.

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jul 27, 2015

Member

@Akarshit is this fixed with #3499?

Member

benfry commented Jul 27, 2015

@Akarshit is this fixed with #3499?

@Akarshit

This comment has been minimized.

Show comment
Hide comment
@Akarshit

Akarshit Jul 27, 2015

Member

@benfry Yes this is fixed with #3499

Member

Akarshit commented Jul 27, 2015

@benfry Yes this is fixed with #3499

@benfry

This comment has been minimized.

Show comment
Hide comment
@benfry

benfry Jul 27, 2015

Member

Great, thanks.

Member

benfry commented Jul 27, 2015

Great, thanks.

@benfry benfry closed this Jul 27, 2015

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