Skip to content
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

Contributions manager fails to complete install of PythonMode when no windows open #446

Closed
processing-bot opened this issue Nov 16, 2017 · 7 comments

Comments

@processing-bot
Copy link
Collaborator

Created by: jdf

Here at a school lab. OS X.

New mode downoads as expected into modes/tmp8238273827323/PythonMode or whatever, then does not move into place as PythonMode in the modes folder. Failure is reported. Manually moving PythonMode is an ok workaround.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

No stack trace or error message?

@processing-bot
Copy link
Collaborator Author

Created by: jdf

Sorry; the dialog just says something like "Installation failed", and doesn't show a stack trace or anything. Where might we find a log?

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Hm… If no trace then it probably isn't recorded elsewhere. Though the exact wording of the error could help me find the place where it's dying.

Most common issue is that the modes folder isn't writable by that user (i.e. if 'modes' are stored in a central location for the school computer), but if it didn't complain when you moved manually, that's less likely to be the issue.

@processing-bot
Copy link
Collaborator Author

Created by: jdf

From my contact at the school:

I was able to recreate an error updating Python Mode, but only when no Editor windows were open.

If I run the update with an editor window open and Java mode selected, the Python Mode update is successful.

If I run the update with an editor window open and Python Mode selected, a Mode Manager dialogue box pops up stating "Please save your Sketch and change the Mode of all Editor windows that have Python Mode for Processing 3 as the active Mode." And the update is not run.

If I run the the update with all Editor windows closed, regardless of whether the last open Editor had Java or Python mode selected, the update appears to move the old Python mode into a folder called old, but the update never completes. If I try to install it again it downloads it into a tmp folder but the install doesn't succeed and I get the error message:

"Error during download and install of Python Mode for Processing 3"

If I then open an Editor window (and select Java mode) and run the update again it will succeed.

Hope that helps.

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Thanks, that's helpful. It's probably firing an event to update the currently open windows, and that's not properly handling the case of no windows open (or there's a stale reference around somewhere).

@processing-bot
Copy link
Collaborator Author

Created by: benfry

Finally(!) ran into this one today; same underlying problem as #445 (another oldie moved over from the 3.x repo). That's now fixed for 4.0 beta 8.

Now looking into a fix so that you don't have to change Modes in order to update the current Mode.

@processing-bot
Copy link
Collaborator Author

Created by: github-actions[bot]

This issue has been automatically locked. To avoid confusion with reports that have already been resolved, closed issues are automatically locked 30 days after the last comment. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant