box/box-salesforce-sdk

Compilation issues with BoxFile.cls

Closed this issue · 3 comments

When trying to deploy via Deploy to Salesforce Functionality, the deploy fails with multiple errors all pointing to BoxFile.cls

classes/BoxFile.cls(263,14):Missing ';' at 'responseBody'

There is a missing assignment at line 263. In
String responseBody BoxApiRequest.ensureBoxResourceResponseBody(response, 'BoxFile.getTrashedFile', new set<Integer>{200});

Should be

String responseBody = BoxApiRequest.ensureBoxResourceResponseBody(response, 'BoxFile.getTrashedFile', new set<Integer>{200});
If this issue is not already being addressed, I'll create a PR.

I also tried applying the same fix, but even after this, I'm getting an error which says - Method does not exist or incorrect signature: void ensureBoxResourceResponseBody(System.HttpResponse, String, Set) from the type BoxApiRequest (Line: 263, Column: 43)

Hey @sukgupta , good catch. I actually ran into the same issue too, but unfortunately it is noted in the documentation that the Deploy to Salesforce functionality is not owned or operated by Box. I instead was able to get it installed via the direct Package Links. I also made a PR to remove the reference to the Deploy to Salesforce functionality if it doesn't work: #41

Thanks for identifying the issue. Deploy to Salesforce functionality is now working again!