Skip to content

Instantly share code, notes, and snippets.

View Confirm4Crit's full-sized avatar

Miles Robson Confirm4Crit

View GitHub Profile
@Confirm4Crit
Confirm4Crit / Notes.txt
Last active May 20, 2021 16:37
See Notes.txt
Summer '21 Patch 5.4 v Spring '21 Patch 19.9
Something is happening with null coalescing, and I don't know what~
Below is some horrible rough JS of an example from a client.
I tried to make it as rough as I could in case some of that context happens.
Breakanyhomecmp is a cmp that parks on the homepage, with a button to click.
The other two noted files are the CHROME DEV CONSOLE source.
They're different. :O Chrome Version 90.0.4430.212
@Confirm4Crit
Confirm4Crit / gist:5c109862af36468f110d6a0aeb61b5da
Last active November 20, 2020 21:05
Another apex lang server log
15:38:05.557 [Apex Prelude Service STARTING] INFO a.j.l.i.s.ApexPreludeManagedService - Scanning built-in and system Apex types.
Nov 20, 2020 3:38:05 PM apex.jorje.parser.impl.BaseApexLexer dedupe
INFO: Deduped array ApexLexer.DFA22_transition. Found 7075528 shorts which is 13MB not including array overhead. Removed 6418975 shorts which is 12MB not counting array overhead. Took 8 ms.
15:38:07.930 [Apex Prelude Service STARTING] INFO a.j.l.i.s.ApexPreludeManagedService - Patching standard library for System.Database.* methods
15:38:07.936 [Apex Prelude Service STARTING] INFO a.j.l.i.s.ApexPreludeManagedService - Done patching standard library for System.Database.* methods
15:38:08.503 [ApexIndexer STARTING] INFO a.jorje.lsp.impl.index.ApexIndexer - ApexIndexer: Scanning user-defined types.
15:38:08.505 [Apex Prelude Service STARTING] INFO a.j.l.i.s.ApexPreludeManagedService - Scanning built-in and system Apex types took 2947 ms.
15:38:20.648 [ApexIndexer STARTING] INFO a.jorje.lsp.impl.index.ApexIndexer
@Confirm4Crit
Confirm4Crit / Scary Log.log
Created October 15, 2020 19:17
Apex Lang Server log
15:16:54.079 [ForkJoinPool.commonPool-worker-9] ERROR a.j.l.i.c.CodeActionsProviderAggregator - Encountered an error with code action provider apex.jorje.lsp.impl.codeActions.quickFix.DeclareMissingMethodProvider@2db2dd9d
java.nio.BufferUnderflowException: null
at java.base/java.nio.CharBuffer.get(CharBuffer.java:735)
at org.eclipse.jdt.internal.core.nd.db.Chunk.getChars(Chunk.java:286)
at org.eclipse.jdt.internal.core.nd.db.LongString.getChars(LongString.java:121)
at org.eclipse.jdt.internal.core.nd.db.LongString.compare(LongString.java:223)
at org.eclipse.jdt.internal.core.nd.field.FieldSearchIndex$SearchCriteriaToBtreeVisitorAdapter.compare(FieldSearchIndex.java:132)
at org.eclipse.jdt.internal.core.nd.db.BTree.accept(BTree.java:628)
at org.eclipse.jdt.internal.core.nd.db.BTree.accept(BTree.java:647)
at org.eclipse.jdt.internal.core.nd.db.BTree.accept(BTree.java:647)
sfdx-waw-plugin
[https://github.com/forcedotcom/SFDX-Data-Move-Utility](https://github.com/forcedotcom/SFDX-Data-Move-Utility)
[https://github.com/texei/texei-sfdx-plugin](https://github.com/texei/texei-sfdx-plugin)
[https://github.com/nvuillam/sfdx-essentials](https://github.com/nvuillam/sfdx-essentials)
[https://github.com/americanexpress/sfdx-cli-plugin](https://github.com/americanexpress/sfdx-cli-plugin)
@Confirm4Crit
Confirm4Crit / localBuild.sh
Created May 7, 2020 17:53
Sh for building source diff dir
#/usr/bin/env bash
# -w sets workspace dir for build
# -s sets git source dir for build
# -e sets exclusions dir for build
# -b sets destination dir for build
# -d sets temporary destination dir for deletions in build
# -p sets prior commit for build (foundation of git diff command)
# -c sets current commit for build
# -t sets project type (sfdx or mdapi) for build
@Confirm4Crit
Confirm4Crit / apex.json
Last active June 17, 2020 14:47
Random Apex Snippets
{
"System Debug": {
"prefix": "sd",
"body": [
"System.Debug($1);"
],
"description": "Log output to console"
},
"System Assert": {
"prefix": "sa",
@Confirm4Crit
Confirm4Crit / apex.json
Created March 19, 2020 16:16 — forked from jstvz/apex.json
Apex Snippets for Visual Studio Code (VSCode)
{
/*
// Place your snippets for Apex here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
"Print to console": {
"prefix": "log",
"body": [
@Confirm4Crit
Confirm4Crit / NewContactOverride.cmp
Created February 6, 2020 16:33
Override simple example
<aura:component access="global" implements="lightning:actionOverride,lightning:hasPageReference">
<aura:attribute name="contact" type="Contact" default="{ 'sobjectType': 'Contact' }"
access="public"/>
<force:inputField required="true" value="{!v.contact.AccountId}" class="slds-m-around_small slds-p-top_x-small"
aura:id="accountId"/>
<lightning:input name="input1" label="Enter some text" />
</aura:component>
<html>
<head>
<link rel="stylesheet" type="text/css" href="[https://cdn.jsdelivr.net/npm/@salesforce-ux/design-system@2/assets/styles/salesforce-lightning-design-system.min.css"/](https://cdn.jsdelivr.net/npm/@salesforce-ux/design-system@2/assets/styles/salesforce-lightning-design-system.min.css)>
</head>
<body>
{
// Place your snippets for apex here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",