如何控制“更新骨骼” PyCharm 中 IronPython 解释器的后台任务?

发布于 2024-12-10 23:32:14 字数 162 浏览 1 评论 0原文

有没有办法抑制、停止或以其他方式控制 PyCharm 中后台任务的设置或显示?选择 IronPython 解释器会导致它每次选择解释器时都会更新框架,通常需要 20-30 分钟才能完成,导致 IDE 几乎无法使用。大多数时候,我什至无法继续正常工作,因为大多数上下文菜单在操作过程中都被禁用。

Is there a way to suppress, stop or, otherwise, control the settings for, or display of, background tasks in PyCharm? Selecting the IronPython interpreter causes it to update skeletons (seemingly) every time the interpreter is selected and usually takes 20-30 minutes to complete, rendering the IDE nearly unusable. Most times, I can't even carry on with normal work as most of the context menus are disabled during the operation.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

生生漫 2024-12-17 23:32:14

因为今天 2013 年 11 月 14 日星期四,你的 bug 已经过去 2 年了,而且没有其他人抱怨 pycharm(现在 3.0)的问题,我相信这实际上可能是 Mac OSX 的问题。我的全新 10.8.5 机器上的许多程序运行速度都超过 100%。 Pycharm 更新骨骼只占用了 330%,让我的粉丝疯狂旋转。

从之前的大量谷歌搜索中,我发现了一个可以暂时解决问题的小脚本;
http://www.willnolan.com/cputhrottle/cputhrottle.html
像这样运行它;

sudo CpuThrottle xxx 25

其中 xxx = 每个活动监视器的进程 ID,25 = 您希望将其限制为的任何 %cpu。单击 return 后,只有不单击 ctrl-c 时,它才会持续。我在 mac 板上读到关于代码中的一个错误,它会寻求使用所有可用资源来寻找系统更新,就像这件事所做的一样。所以我想,唉,我们必须忍受它。至少我们有这个小工具。叹。

Because today 2013-11-14Thu, it's 2 years after your bug and no other people are complaining about the pycharm, now 3.0, problem, I believe it is actually probably a Mac OSX issue. Numerous programs on my brand new 10.8.5 machine run way way over 100%. Pycharm updating skeletons was just taking 330% and making my fan spin crazily.

From lots of previous googling I found a little script that can temporarily fix the problem;
http://www.willnolan.com/cputhrottle/cputhrottle.html
Run it as so;

sudo CpuThrottle xxx 25

where xxx = your process ID per Activity Monitor, and 25 = whatever %cpu you wish to limit it to. Upon clicking return, it will only last as long as one does not click ctrl-c. I read on the mac boards about a bug in the code where it would seek to use all available resources in looking for system updates, the same as this thing is doing. So I guess, alas we have to live with it. At least we have the little tool. Sigh.

静待花开 2024-12-17 23:32:14

这给我带来了问题,因为当这个进程运行时,Jupyter-in-Intellij 不会显示可以打印内容的侧面板。所以它几乎是一个阻碍者。

我做了几件事共同解决了这个问题:

  • 我通过“检查更新...”更新了 Intellij 并更新了呈现的所有内容
  • 我在更新后重新启动了 Intellij
  • 我从我的项目中删除了一个大型(20,000 行)示例 JSON 文件,如下所示Intellij 论坛上这篇文章的建议提到排除或删除项目不需要的文件,因为骨架任务将在这些文件上运行不幸

的是,我不能 100% 确定什么修复了这个问题,因为我的 IDE 恢复后就删除了该文件。希望这个答案能对将来的人有所帮助,因为 Intellij/PyCharm 中的 Jupyter 服务器非常棒!

This was causing me problems because while this process is running, Jupyter-in-Intellij doesn't display the side panel where you can print things out. So it's pretty much a blocker.

I did several things which together resolved the problem:

  • I updated Intellij via "Check for updates..." and updating everything that was presented
  • I restarted Intellij after the update
  • I deleted a large (20,000 lines) sample JSON file from my project following the advice of this post on the Intellij forum that mentioned excluding or deleting files that weren't necessary to the project because the skeletons task would run on those

Unfortunately, I am not 100% certain what fixed it because I deleted the file as soon as my IDE came back up. Hopefully this answer will help someone in the future because Jupyter server within Intellij/PyCharm is excellent!

┊风居住的梦幻卍 2024-12-17 23:32:14

请升级到 PyCharm 2.0。生成二进制模块骨架的问题可能已经得到解决。

Please upgrade to PyCharm 2.0. It's likely that the problem with generating skeletons of binary modules is already fixed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文