evgraph / CheckIOPyCharmPlugin

13 stars 2 forks source link

Pluggin Raising "No Internet Connection Error", possibly version related. #72

Open aggerdom opened 8 years ago

aggerdom commented 8 years ago

Hey, Thanks for all the great work you're doing with the pluggin. I've been using the pluggin for awhile, but after installing an update for Pycharm Edu 2.0.2 to 2.0.3. The newer version of the pluggin gets a "This pluggin is not compatible with this release" error when attempting to install. An old version will install fine, but is unable to connect when attempting to create a project. I assume its raising an verify my checkio credentials with a popup:

Title: "No internet connection" Message: "CheckiO Is Unavailable"

I assume this is the relevant error.

https://github.com/evgraph/CheckIOPyCharmPlugin/blob/master/src/com/jetbrains/checkio/courseGeneration/CheckIOProjectGenerator.java

  @Nullable
  @Override
  public BooleanFunction<PythonProjectGenerator> beforeProjectGenerated(@Nullable final Sdk sdk) {
    if (sdk == null) return generator -> false;
    final ProgressManager progressManager = ProgressManager.getInstance();
    final Project project = ProjectManager.getInstance().getDefaultProject();
    if (!CheckIOUtils.checkConnection()) {
      Messages.showWarningDialog("No internet connection", "CheckiO Is Unavailable");
      return generator -> false;
    }
    }

Do you: (A) plan on releasing an update to support the newer version or (B) know if there is a download page for past releases of pycharm edu?

evgraph commented 8 years ago

Hi @aggerdom! Thank you for your detailed feedback!

Could you please check the number of the newer version you've tried to install. For PyCharm Edu 2.0.3 it should be 1.0.7, you could find it in our plugins repository. Please, try to install it, I think it'll solve your problem. If it won't do it, feel free to contact me and, please, send me your log files (Help -> Show Log).

P.S. We don't have a page with previous PyCharm Edu releases, but we'll definitely release a plugin update if needed.

aggerdom commented 8 years ago

Thanks for the quick response, it does look like something is going on, but here's what I found.

  1. Though I previously reported that I was using PyCharm Edu 2.0.3, it turns out I'm actually on 2.0.4 (I was looking at the link in the start menu rather than in the program.)
  2. Installation of 1.0.7 from the link you provided worked without a hitch.

I then attempted to replicate the problem:

  1. I uninstalled the 1.0.7 pluggin that had worked successfully, exited and then reopened PyCharm
  2. I went to the github pages site for the pluggin (http://evgraph.github.io/CheckIOPyCharmPlugin/) and followed the download link at the top of the page, which took me to (https://github.com/evgraph/CheckIOPyCharmPlugin/blob/master/CheckIOPyCharmPlugin.zip). Using the download button at that last link, I downloaded a fresh copy of CheckIOPyCharmPlugin.zip to a separate folder.
  3. I attempted to install that fresh version of the pluggin, and recieved an Error popup with the message "Plugin 'CheckiO plugin for PyCharm Edu' is incompatible with this installation"
  4. I then reinstalled the version of the pluggin that worked previously without issue.
  5. I then created a fresh CheckiO project without issue.

So from what I can tell, it looks like the 1.0.7 pluggin on the JetBrains page is fine, and the issue is with the download from the master branch of the GitHub repository.

aggerdom commented 8 years ago

Also here's my log files in case they might help.

idea_updater.txt idea.txt

evgraph commented 8 years ago

Thanks a lot for the precise problem description! The problem is that now we have two version of the plugin, that do almost the same, but one is for PyCharm Edu and another for PyCharm Community/Professional. Now we have version for PyCharm on github page and it's incompatible with PyCharm Edu, and that's a little bit confusing. So I'll think how to solve this problem.