Force.com IDE 没有反映我的更改?

发布于 2024-09-13 23:54:59 字数 218 浏览 4 评论 0原文

我刚刚在 Saleforce Web 上重构(重命名)了一些 Apex 类,并且该更改似乎在 Web 上进行得很好。

但force.com IDE没有下载这些新类。

从服务器刷新、保存到服务器和同步似乎什么也没做。

但是,如果我进入“项目属性”,然后更改“项目内容”以包含所有内容,那么它似乎正在同步......

我必须这样做似乎很奇怪......这正常吗?

I just refactored (renamed) some Apex classes on the Saleforce web, and the change seems to have taken just fine on the web.

But the force.com IDE did not download these new classes.

Refresh from Server, Save to server and Synchronize all appeared to do nothing.

But if I go under "Project Propertiess, and then change the 'Project Contents' to include everything, then it seems to be syncing....

Seems odd I have to do that... is it normal?

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

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

发布评论

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

评论(3

拥抱影子 2024-09-20 23:54:59

是的,这很正常。首次创建项目时,您选择要订阅的元数据。这有很多好处,但其中最主要的是更快的保存速度和(如果您有大量代码)更好的项目管理。

您一开始没有看到这些文件的原因是它们是在服务器端创建的,并且您的项目未订阅它们。

作为最佳实践,您应该尝试仅在 IDE 中工作。考虑到覆盖代码更加困难,它使开发更加安全 - 如果您在团队中工作,这一点尤其重要。

Yes it's normal. When you first create your project you select the metadata that you'd like to subscribe to. This has a number of benefits but the chief amongst these are quicker saves and (if you have a massive amount of code) better project management.

The reason you didn't see the files at first is because they were created server side and your project wasn't subscribed to them.

As a best practice you should try to work just within the IDE. It makes development much safer considering it's more difficult to overwrite code - especially important if you're working in teams.

相思故 2024-09-20 23:54:59

我有类似的问题。这就是我所做的。

  • 右键单击导航器中的沙箱。
  • 选择属性
  • 展开 Force.com 并单击“项目内容”
  • 单击“刷新”按钮,当“force.com->从服务器刷新”选项由于某种原因停止工作时,该按钮成功地为我更新了元数据。

I had a similar issue. Here is what I did.

  • Right click on the Sandbox in the Navigator.
  • Select properties
  • Expand Force.com and click on Project Contents
  • Click on the Refresh button which successfully update the metadata for me when the force.com->Refresh from Server option stopped working for some reason.
つ可否回来 2024-09-20 23:54:59

对于查看此处但没有看到对象元数据更改的人...请确保您实际上是通过 Web UI 更改对象的 API 名称,而不仅仅是标签。如果您不更改 API 名称,则更改可能不会反映在 Force.com IDE 中。

For people looking here who didn't see changes to their METADATA for OBJECTS... make sure that you are actually changing the API name of the object through the Web UI, and not just the Label. If you don't change the API name, it can appear as though changes are not reflected in the Force.com IDE.

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