joeferraro / MavensMate-SublimeText

Sublime Text plugin for Salesforce developers. Aims to replace the Eclipse-based Force.com IDE.
http://mavensmate.com
GNU General Public License v3.0
290 stars 119 forks source link

Getting a lot more generic "Operation Failed" errors with simple saves #240

Closed keithmancuso closed 10 years ago

keithmancuso commented 10 years ago

I updated to the new version of the sublime text plugin and have been getting a TON of errors like this

Compiling: Resumes.page
Timestamp: Thu, 10 Oct 2013 16:51:15
Result: [OPERATION FAILED]: Whoops, unable to parse the response. Please report this issue at https://github.com/joeferraro/MavensMate-SublimeText

RESPONSE FROM MAVENSMATE: None

resolves itself if i restart sublime text and save again and it works?

joeferraro commented 10 years ago

PLEASE always specify your platform (windows, linux, osx), MavensMate.app version (if osx), and MavensMate for Sublime Text version when logging issues.

keithmancuso commented 10 years ago

Hey sorry about that...

Its OS X mavensmate 0.35.5 and plugin version MavensMate for Sublime Text v3.1.2

joeferraro commented 10 years ago

are you getting these errors on a certain file? certain project? certain metadata type? are you using the tooling api (mm_compile_with_tooling_api)? do you get the errors when you toggle the tooling api off? do you get the errors when you work in a different org?

keithmancuso commented 10 years ago

honestly its inconsistant... and it seems to have mostly resolved itself... I'm find closing this issue until i can figure out a more meaningful pattern...

I only reported it because the error message told me and i though maybe it was something more pervasive with the latest update since i hadnt ever seen that error before updating

joeferraro commented 10 years ago

if you run into issues like this in the future, may be a good idea to clean your project. please re-open if you can find a pattern

keithmancuso commented 10 years ago

Will do, thanks for responding so quickly…

love the product by the way…wouldn't be able to do my job without it

Cheers

On Oct 10, 2013, at 5:54 PM, Joe Ferraro notifications@github.com wrote:

if you run into issues like this in the future, may be a good idea to clean your project. please re-open if you can find a pattern

— Reply to this email directly or view it on GitHub.

emsaints commented 10 years ago

Getting this too.

OSX Mavensmate 0.35.7 Plugin v3.1.5

Happens even on a newly created project, when saving any kind of file. Setting mm_compile_with_tooling_api to false fixes it.

Thanks for the great tool.

joeferraro commented 10 years ago

Can you turn on plugin logging: http://mavensmate.com/Plugins/Sublime_Text/Plugin_Logging and paste the log? Also, is there anything in the Sublime Text console?

emsaints commented 10 years ago

I'm able to create a new Apex class from MM, but when saving that same file or any other file, the error appears. Please see console and log output below. And thanks.

Console Output:

Compiling: TestClass.cls Timestamp: Mon, 28 Oct 2013 13:05:08 Result: [OPERATION FAILED]: Whoops, unable to parse the response. Please report this issue at https://github.com/joeferraro/MavensMate-SublimeText

Log Output: {u'metadata_server_url': u'https://na15.salesforce.com/services/Soap/m/28.0/00Di0000000gZHf', u'endpoint': u'https://www.salesforce.com/services/Soap/u/28.0', u'user_id': u'005i0000001uYhwYLS’, u'server_url': u'https://na15.salesforce.com/services/Soap/u/28.0/00Di0000000gZHf', u'sid': u'00Di0000000gZHf!ARMAQPjPImsjuD3tbNHo0sKi4WMz8l7tzzzslYJuwWtZNKBdn1FbIUXcA4a8pNiqFb.XlQFnCQkZBOrcGr1mBEfSwJ.Fn4.N'} {'username': u’test@test.com’, 'endpoint': u'https://www.salesforce.com/services/Soap/u/28.0', 'user_id': u'005i0000001uYhwAAE', 'metadata_server_url': u'https://na15.salesforce.com/services/Soap/m/28.0/00Di0000000gZHf', 'org_url': u'', 'server_url': u'https://na15.salesforce.com/services/Soap/u/28.0/00Di0000000gZHf', 'org_type': u'production', 'sid': u'00Di0000000gZHf!ARMAQPjPImsjuD3tbNHo0sKi4WMz8l7tzzzslYJuwWtZNKBdn1FbIUXcA4a8pNiqFb.XlQFnCQkZBOrcGr1mBEfSwJ.Fn4.N', 'password': ‘test’} GETTING USER INFO sending to (https://na15.salesforce.com/services/Soap/u/28.0/00Di0000000gZHf) message: <?xml version="1.0" encoding="UTF-8"?>

SOAP-ENV:Header tns:SessionHeader tns:sessionId00Di0000000gZHf!ARMAQPjPImsjuD3tbNHo0sKi4WMz8l7tzzzslYJuwWtZNKBdn1FbIUXcA4a8pNiqFb.XlQFnCQkZBOrcGr1mBEfSwJ.Fn4.N/tns:sessionId /tns:SessionHeader /SOAP-ENV:Header ns1:Body ns0:getUserInfo/ /ns1:Body /SOAP-ENV:Envelope headers = {'SOAPAction': u'""', 'Content-Type': 'text/xml; charset=utf-8', 'User-Agent': 'Salesforce/MavensMate/0.1.3'} http succeeded: soapenv:Bodyfalse$5242880USDfalsetrue00Di0000000gZHfEAMfalseTest Organization_00ei00000018KkHAAU7200test@test.comTest Name005i0000001uYhwAAEen_USen_UStest@test.comAmerica/Los_AngelesStandardTheme3/soapenv:Body/soapenv:Envelope (GetUserInfoResult){ accessibilityMode = False currencySymbol = "$" orgAttachmentFileSizeLimit = 5242880 orgDefaultCurrencyIsoCode = "USD" orgDisallowHtmlAttachments = False orgHasPersonAccounts = True organizationId = "00Di0000000gZHfEAM" organizationMultiCurrency = False organizationName = "Test Organization_" profileId = "00ei00000018KkHAAU" roleId = None sessionSecondsValid = 7200 userDefaultCurrencyIsoCode = None userEmail = "test@test.com" userFullName = "Test User" userId = "005i0000001uYhwAAE" userLanguage = "en_US" userLocale = "en_US" userName = "test@test.com" userTimeZone = "America/Los_Angeles" userType = "Standard" userUiSkin = "Theme3" } compile sending to (https://na15.salesforce.com/services/Soap/m/28.0/00Di0000000gZHf) message: SOAP-ENV:Header tns:SessionHeader tns:sessionId00Di0000000gZHf!ARMAQPjPImsjuD3tbNHo0sKi4WMz8l7tzzzslYJuwWtZNKBdn1FbIUXcA4a8pNiqFb.XlQFnCQkZBOrcGr1mBEfSwJ.Fn4.N/tns:sessionId /tns:SessionHeader /SOAP-ENV:Header ns1:Body ns0:describeMetadata ns0:asOfVersion28.0/ns0:asOfVersion /ns0:describeMetadata /ns1:Body /SOAP-ENV:Envelope headers = {'SOAPAction': u'""', 'Content-Type': 'text/xml; charset=utf-8', 'User-Agent': 'Salesforce/MavensMate/0.1.3'} http succeeded: soapenv:BodyinstalledPackagesfalsefalseinstalledPackageInstalledPackageCustomLabellabelsfalsefalselabelsCustomLabelsstaticresourcesfalsetrueresourceStaticResourcescontrolsfalsetruescfScontrolcomponentsfalsetruecomponentApexComponentpagesfalsetruepageApexPagequeuesfalsefalsequeueQueueCustomFieldBusinessProcessRecordTypeWebLinkValidationRuleNamedFilterSharingReasonListViewFieldSetApexTriggerCouplingobjectsfalsefalseobjectCustomObjectreportTypesfalsefalsereportTypeReportTypereportstruefalsereportReportdashboardstruefalsedashboardDashboardanalyticSnapshotsfalsefalsesnapshotAnalyticSnapshotlayoutsfalsefalselayoutLayoutdocumentstruetrueDocumentweblinksfalsefalseweblinkCustomPageWebLinkquickActionsfalsefalsequickActionQuickActiontabsfalsefalsetabCustomTabcustomApplicationComponentsfalsefalsecustomApplicationComponentCustomApplicationComponentapplicationsfalsefalseappCustomApplicationletterheadfalsefalseletterLetterheademailtruetrueemailEmailTemplateWorkflowFieldUpdateWorkflowKnowledgePublishWorkflowQuickCreateWorkflowTaskWorkflowChatterPostWorkflowAlertWorkflowSendWorkflowOutboundMessageWorkflowActionFlowWorkflowRuleworkflowsfalsefalseworkflowWorkflowAssignmentRuleassignmentRulesfalsefalseassignmentRulesAssignmentRulesAutoResponseRuleautoResponseRulesfalsefalseautoResponseRulesAutoResponseRulesEscalationRuleescalationRulesfalsefalseescalationRulesEscalationRulesrolesfalsefalseroleRoleterritoriesfalsefalseterritoryTerritorygroupsfalsefalsegroupGroupapprovalProcessesfalsefalseapprovalProcessApprovalProcesshomePageComponentsfalsefalsehomePageComponentHomePageComponenthomePageLayoutsfalsefalsehomePageLayoutHomePageLayoutobjectTranslationsfalsefalseobjectTranslationCustomObjectTranslationflowsfalsefalseflowFlowclassesfalsetrueclsApexClasstriggersfalsetruetriggerApexTriggerprofilesfalsefalseprofileProfilepermissionsetsfalsefalsepermissionsetPermissionSetdatacategorygroupsfalsefalsedatacategorygroupDataCategoryGroupremoteSiteSettingsfalsefalseremoteSiteRemoteSiteSettingauthprovidersfalsefalseauthproviderAuthProvidersitesfalsefalsesiteCustomSiteLeadOwnerSharingRuleLeadCriteriaBasedSharingRuleleadSharingRulesfalsefalsesharingRulesLeadSharingRulesCampaignOwnerSharingRuleCampaignCriteriaBasedSharingRulecampaignSharingRulesfalsefalsesharingRulesCampaignSharingRulesCaseOwnerSharingRuleCaseCriteriaBasedSharingRulecaseSharingRulesfalsefalsesharingRulesCaseSharingRulesContactOwnerSharingRuleContactCriteriaBasedSharingRulecontactSharingRulesfalsefalsesharingRulesContactSharingRulesOpportunityOwnerSharingRuleOpportunityCriteriaBasedSharingRuleopportunitySharingRulesfalsefalsesharingRulesOpportunitySharingRulesAccountOwnerSharingRuleAccountCriteriaBasedSharingRuleaccountSharingRulesfalsefalsesharingRulesAccountSharingRulesAccountTerritorySharingRuleaccountTerritorySharingRulesfalsefalsesharingRulesAccountTerritorySharingRulesCustomObjectOwnerSharingRuleCustomObjectCriteriaBasedSharingRulecustomObjectSharingRulesfalsefalsesharingRulesCustomObjectSharingRulescommunitiesfalsefalsecommunityCommunitycallCentersfalsefalsecallCenterCallCentersamlssoconfigsfalsefalsesamlssoconfigSamlSsoConfigsettingsfalsefalsesettingsSettingstruefalse/soapenv:Body/soapenv:Envelope sending to (https://na15.salesforce.com/services/Soap/u/28.0/00Di0000000gZHf) message: SOAP-ENV:Header tns:SessionHeader tns:sessionId00Di0000000gZHf!ARMAQPjPImsjuD3tbNHo0sKi4WMz8l7tzzzslYJuwWtZNKBdn1FbIUXcA4a8pNiqFb.XlQFnCQkZBOrcGr1mBEfSwJ.Fn4.N/tns:sessionId /tns:SessionHeader /SOAP-ENV:Header ns1:Body ns0:query ns0:queryStringselect Id From ApexClass Where Name = 'TestClass' AND NamespacePrefix = ''/ns0:queryString /ns0:query /ns1:Body /SOAP-ENV:Envelope headers = {'SOAPAction': u'""', 'Content-Type': 'text/xml; charset=utf-8', 'User-Agent': 'Salesforce/MavensMate/0.1.3'} http succeeded: soapenv:Bodytruesf:typeApexClass/sf:typesf:Id01pi00000048D9pAAE/sf:Idsf:Id01pi00000048D9pAAE/sf:Id1/soapenv:Body/soapenv:Envelope {"Body": "public with sharing class TestClass {\n\tpublic TestClass() {\n\t}\n}", "ContentEntityId": "01pi00000048D9pAAE", "MetadataContainerId": "1dci0000000EOlDAAW"} [MAVENSMATE CAUGHT ERROR] None
joeferraro commented 10 years ago

set mm_compile_with_tooling_api to false as a workaround in the short term

mattparkerls commented 10 years ago

Mark as dupe with #211 (https://github.com/joeferraro/MavensMate-SublimeText/issues/211) ?

Appears to be the same issue. Also when setting mm_compile_with_tooling_api to false; appears to time out - just keeps compiling for a few minutes....at which point I give up and escape.