Questions tagged [compile]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
89 views

What are possible side effects of "Compile all classes" in production? [duplicate]

When I validate a change set with RunLocalTests in production (as well as using the CLI with that flag for CI/CD and packaging integration) there was a class that was erroring out as a dependency. I'...
0
votes
1answer
314 views

Code Coverage Failure Your code coverage is 73%. You need at least 75% coverage to complete this deployment [duplicate]

I did run all tests in my sandbox and also tried to run them each individually - the overall avg code coverage is around 88%. However, when i try to validate my change set in prod, it is throwing an ...
0
votes
1answer
23 views

Fast compilation for Salesforce

I have Sublime Text 3 with MavensMate plugin. Also have MavensMate application setup in the machine. Whenever I save any apex file it goes to the server and gets any errors found. Which is a bit ...
3
votes
1answer
161 views

Lightning Compiler - what happens when we save a lightning bundle

Does the lightning bundle elements (html/xml, css, js) gets stored in salesforce servers in their individual native formats and served back to clients in the same format per request ? OR is there ...
0
votes
2answers
2k views

Why does Mavensmate on Sublime Text 3 not seem to be autosaving any Apex class

Today, I find I have to Ctrl-S then Ctrl-Shift-S a class file to make it compile using Mavensmate on Sublime Text 3. I feel sure that only a single keystroke was needed before. Am I correct? Is ...
1
vote
1answer
112 views

Salesforce Transaction API version

In ORG we have multiple triggers for Opportunity with different API versions. Some of triggers are installed from managed package and have api versions 25-28. Local ORG opportunity trigger has api ...
0
votes
1answer
418 views

Is there way to compile Managed package classes via Apex or API?

Currently the managed package classes can only be compiled using the link Compile all classes link on the Apex Class list view page. There are methods like compileClasses and compileAndTest. But ...
7
votes
1answer
1k views

Deployments pending for excessive amounts of time

Opened a case with Salesforce, but thought this issue could use some exploration. Recently, in two of our sandboxes (one dev pro, other is full, one CS9, the other CS11), deployments via the force....
6
votes
1answer
3k views

Class cannot be static in Apex

This might be a duplicate question but I couldn't find any answers. According to the documentation: In Apex, you can have static methods, variables, and initialization code. However, Apex classes ...
11
votes
1answer
892 views

Variable is used before it is declared

I've got this line of code: Pattern pattern = Pattern.compile('(?:([\\w&&[^_]]+)|.)+'); However, I'm getting this error in the Developer Console: Variable pattern is used before it is ...