-
Notifications
You must be signed in to change notification settings - Fork 95
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
In Intranet ,Custom postfix template stop IntelliJ #202
Comments
can fix it? |
I just tried to reproduce the bug in my local network by cutting the internet connection for some time. In my case IDEA did not hang at all, but the CPT plugin could not load the web templates from the internet. So I'm not sure why IDEA hangs in your case. Are you using a proxy or any kind of firewall which takes very long until a web request is either granted or rejected? That's the only thing I can image. For those cases I could add an option in the settings allowing you to deactivate the automatic web templates update at all. Would that be a solution? |
This button is very necessary. I also encountered such a situation. At first, I thought it was a problem for IntelliJ to respond. Ten minutes later, it still failed and I had to force IntelliJ to close. This is very frustrating. |
However, there is still room for improvement. Since usually most of the web templates do not change it's not necessary to download those. A simple header request and a check of the modification date would therefore reduce the traffic and increase the speed of the update process. I filed a new issue for this improvement under #226. |
However, first time users still have to wait until all web templates got updated. So the freeze problem still persists until the user was able to uncheck this check box. To avoid a freeze for minutes, I will add a timeout to the update process. Something around 5 seconds might be acceptable I think.? If the web templates did not get loaded within 5 seconds the update process is cancelled and the user should be offered to deactivate the automatic update. (#227) |
First, it's a good solution. However, if it is possible to not update any templates by default when the plugin is loaded for the first time, and it is up to the user to decide whether to use the network template, there may be a better user experience, which can be explained in the documentation. |
Well, I guess that only a few people will read the documentation before using the plugin. So far I thought the best user experience would be "install the plugin and you immediately have hundreds of useful templates at your disposal". |
Maybe I could reproduce the behavior with mitmproxy. 🤔 I will try that. |
In my company, computers can't access the Internet.
Each time you click Settings > editor > Custom postfix template, IntelliJ will pauses for a very long time.
version :
IntelliJ : 2021.1.2 Ultimate
Custom postfix template : 2.12.0.211
The text was updated successfully, but these errors were encountered: