Hot answers tagged

24

The debugger is a new feature coming down the pipes. A few months ago, a local salesforce.com developer demonstrated this feature on a development salesforce.com stack running on a Mac (they were accessing Salesforce on https://localhost/). In the demonstration, they set breakpoints in the IDE, triggered a request in the browser, and showed us how we could ...


16

Right click on your project folder -> Hover over the "Force.com" menu -> Select Add/Remove Metadata Components -> Click on the Add/Remove button -> Click the "Refresh" Icon, then uncheck and recheck the folders you want in your project.


16

My whole team except one rebel (lets call him Luis) switched from Eclipse to MavensMate some time ago. Mocking Luis and his 10+ second save times were a regular feature of our day...we enjoyed much faster save times, especially if this setting is set in any of Project, User or Default settings (MavensMate->Settings): "mm_compile_with_tooling_api" : true I ...


15

This page describes how to deploy with Eclipse or the Force.com IDE: http://wiki.developerforce.com/page/Deploy_Force.com_Applications_Faster And this page describes the development life cycle: http://www.salesforce.com/us/developer/docs/dev_lifecycle/salesforce_development_lifecycle.pdf Another resource if you want to deploy metadata via the Force.com ...


15

The latest version of the Force.com IDE connects to API36, but most orgs are still on API 35. Uninstall the current version of the Force.com IDE in eclipse (look at the help/about menu for the about window that shows for installed software and lets you uninstall selected packages), then when you go to add new software uncheck the "show only latest versions" ...


14

Alternative Options In lieu of using Eclipse, a much better option (IMHO), would be to use maven's mate with Sublime Text. Sublime Text has way better text editing features, and with maven's mate you get all the features of Eclipse. Eclipse Speed Discussion A couple common reasons for a slow Eclipse Force.com plugin that you might take a look at. 1) ...


13

There are a couple of issues in Summer '14 that are causing pain with the Metadata API: The checkDeployStatus() API call does not return deploy messages for API versions 28.0 and below. See known issue on the Success site. Deployments via the Metadata API can succeed (as you are seeing - the files are saved) and the DeployMessage contains success: true, but ...


11

There are two big categories for moving changes between Salesforce orgs Change sets Metadata API (Eclipse IDE, Migration Tool, 3rd parties) Change sets Pro: Provide a nice native UI for picking changes that need to be moved between orgs. Pro: When you move that change it gives you a decent representation of code coverage and progress. Pro: Provides a ...


10

I found a workaround for this issue: Instead of using the UI to Add/Remove Metadata Components you can do that editing the file /src/package.xml If you use defaults, it looks like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>*</...


9

If you are using a Mac, I highly recommend this free open source alternative: https://github.com/joeferraro/MavensMate-SublimeText They are making a Windows version soon as well. Longer term, I think the new Tooling API will help will speed and performance...


9

The Force.com IDE (eclipse plugin) is built on top of the Metadata API and uses it to populate the various files. The contents of a Permission Set or Profile depend directly on all of the other content requested. So, when you have a project that has close to no other metadata component types other than the Permission Set, the retrieved Permission Set will ...


9

To retrieve the managed package objects along with your custom metadata, you have to manually add the objects you want to retrieve to your package.xml file. For example, to retrieve a custom object, you might already be retrieving the Account object like this: <types> <members>Account</members> <name>CustomObject</name> ...


9

As of this time, there is no support for doing anything but mass editing of States you've already added manually to the system (no way to use the Metadata API to create/delete).


9

I'm assuming you are using the Summer '14 version of the Force.com IDE. (The code you link to doesn't produce any errors in the earlier version I am using.) The "What's New in Summer '14" of the current Force.com IDE page includes this item (bolding added by me): Enabled syntax checking and outline view using a new parser, which can be toggled through ...


8

These settings are stored in the CustomObjectTranslation metadata object, and you can deploy them in any tool that uses the metadata API. (You can make this change by using the metadata APIs either using ANT and manually building a package.xml, or by writing a custom script to do it using SOAP.) You can also use Gearset to make this change*. To do this ...


8

Check that the sharing model org wide defaults are the same in your source and target orgs. By default it's set to private sharing model. The developer may have set it to a public sharing model and you'd need to do that through Setup UI in the new org you want to deploy to. https://developer.salesforce.com/docs/atlas.en-us.securityImplGuide.meta/...


8

Since you've already cloned the repository, you can proceed as follows. Click on File > Import > Git / Projects from Git > Existing Local Repository > Add... (add your repo's local directory) > Import as General Project > Type a project name > Finish. Then, right-click on the project, choose Force.com > Add Force.com nature. After that, right-click on the ...


8

Since there's been a major push for Lightning, there's been a major lag with the Force.com IDE. You could fork the core and add 41.0 support, or even get on the dev branch if you wanted to get a peek at the upcoming version, or you might try the Force.com IDE 2, which supports DX, meaning that you can naturally create v41 items, because DX provides the ...


7

According to the documentation on Force.com IDE Supported Platforms, Juno isn't supported at this time.


7

Here is the solution---I have just realized that you might have upgraded the IDE version to 31.0 as your sandbox is on summer release.You are getting the error when you are trying to connect to a sandbox or production org which is on spring release. You can connect to an org with a lower API version but not to connect to a higher version. That is the reason ...


7

I'm one of the developers who worked on this feature. You're not missing anything. Currently, the setup UI is the only way to change the display labels of states and countries. While SCP is off, you should be able to edit the 'active', 'visible', 'integration value', and 'orgDefault' properties of states and countries via AddressSettings in MD API. The ...


6

this is not a solution, just a comment, as I do not have enough reputation to post comments. When you retrieve profiles, does you package.xml also include relevant objects? The reason for this question is that retrieving Profiles only works properly when you specify objects and fields in the same request. i.e. if you retrieve objects first, and then ...


6

No it's not possible yet. It's not currently supported with Force.com IDE, BUT you can vote on that idea at ideaExchange https://success.salesforce.com/ideaView?id=087300000006rPZAAY


6

Yes it is. You need to add your IP address range into Setup->Security Controls->Network Access and then you don't need to use the security token.


6

The best practice we've settled around is that developers don't connect Eclipse to a packaging or patch org. Instead, all coding is done in the developer's own DE org, committed to a branch in GitHub, and then deployed to the patch/packaging org by Jenkins (or any other automation tool of your choice). The packaging and patch orgs are only changed by an ...


6

If you use a custom domain for your Salesforce Org, instead of the standard login.salesforce.com, or test.salesforce.com, then to connect, you need to tell the IDE what path to connect with. Similarly, using tools like Salesforce1, you also need to use a similar 'custom host'. For example: Widget Incorporated may have branded their org with a My Domain ...


6

There is no "best" editor, as each has different features that may be attractive to a particular developer. For example, one might want an IDE that also has Java support, or also has Git support, or has a particular OS requirement, or is cloud-based, etc. Instead, we present a collection of known IDEs that support Lightning, and you can decide for yourself ...


5

I haven't had much success in getting JavaScript Syntax Highlighting to work when editing a Visualforce Page in Eclipse. However, if you create a JavaScript file (.js) and upload it as a Static Resource, you can then open that file in Eclipse (with the JavaScript editor, which has Syntax Highlighting). To use a JavaScript Static Resource in a Visualforce ...


5

This is a known problem and MVPs like Jeff and Wes have good posts about the same. Here are links for reference: http://th3silverlining.com/2011/11/30/salesforce-different-percentage-code-coverage-in-different-environments/ http://blog.jeffdouglas.com/2011/11/22/apex-test-coverage-does-not-match/ I think one way is to clear the Test execution history from ...


5

The short answers are: Yes Not really You have to keep in mind that every time you save your work to Salesforce it has to validate (and, as pointed out by @sfdcfox in the comments, compiled) your code and check it for errors. All while running in a multi-tenant environment that you don't have to maintain or patch.


Only top voted, non community-wiki answers of a minimum length are eligible