Skip to content

Spurious Compilation Errors Using Embedded Source Control with VS Code #1632

@isc-egabhart

Description

@isc-egabhart

When saving and compiling a class in VS Code and using embedded source control, occasionally get an XML parser error such as:
ERROR #6301: SAX XML Parser Error: Line: 3 Offset: 23 ERROR #5864: User 'SIDCCRCacheAccou' in process '9028' has 'Foo.Bar.cls' open for editing. Will skip this item.

See below for rest output in VS Code when this error is triggered:
+- REQUEST - 12:52:00 PM ----------------------------
PUT https://base.ccr.iscinternal.com:443/api/atelier/v8/CCR/doc/Foo.Bar.cls?ignoreConflict=1
COOKIE:
ACCEPT: application/json
CONTENT-TYPE: application/json
CACHE-CONTROL: no-cache
AUTHORIZATION:
Body:
{
"content": [
"Class Foo.Bar",
"{",
"",
"Parameter BAZ = 1;",
"",
"Method ReturnSomething()",
"{",
" Quit 5*22",
"}",
"",
"/// Location and Revision of this file in Perforce (Auto-updating)",
"Parameter SrcVer = "$Id$";",
"",
"}",
""
],
"enc": false,
"mtime": -1
}
+- RESPONSE - 12:52:00 PM ---------------------------
200 OK
DATE: Fri, 15 Aug 2025 16:52:00 GMT
SERVER: Apache/2.4.58 (Win32) OpenSSL/3.1.3
SET-COOKIE:
CACHE-CONTROL: no-cache
ETAG: 2025-08-15 12:52:00.719
EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
PRAGMA: no-cache
CONTENT-LENGTH: 312
CONNECTION: close
CONTENT-TYPE: application/json; charset=utf-8
Body:
{
"status": {
"errors": [],
"summary": ""
},
"console": [
"",
"Exported 'Foo.Bar.CLS' to file 'G:\Perforce\custom_ccrs\us\ISCX\CCR\BASE\cls\Foo\Bar.xml'"
],
"result": {
"name": "Foo.Bar.cls",
"db": "CCR-CODE",
"ts": "2025-08-15 12:52:00.719",
"upd": false,
"cat": "CLS",
"status": "",
"enc": false,
"flags": 0,
"content": [],
"ext": []
}
}
+- END ----------------------------------------------

Exported 'Foo.Bar.CLS' to file 'G:\Perforce\custom_ccrs\us\ISCX\CCR\BASE\cls\Foo\Bar.xml'
+- REQUEST - 12:52:00 PM ----------------------------
POST https://base.ccr.iscinternal.com:443/api/atelier/v8/CCR/work
COOKIE:
ACCEPT: application/json
CONTENT-TYPE: application/json
CACHE-CONTROL: no-cache
AUTHORIZATION:
Body:
{
"request": "compile",
"documents": [
"Foo.Bar.cls"
],
"source": false,
"flags": "cuk/multicompile=0"
}
+- RESPONSE - 12:52:00 PM ---------------------------
202 Accepted
DATE: Fri, 15 Aug 2025 16:52:00 GMT
SERVER: Apache/2.4.58 (Win32) OpenSSL/3.1.3
SET-COOKIE:
CACHE-CONTROL: no-cache
EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
LOCATION: 26356244
PRAGMA: no-cache
CONTENT-LENGTH: 74
CONNECTION: close
CONTENT-TYPE: application/json; charset=utf-8
Body:
{
"status": {
"errors": [],
"summary": ""
},
"console": [],
"result": {
"content": {}
}
}
+- END ----------------------------------------------
+- REQUEST - 12:52:00 PM ----------------------------
GET https://base.ccr.iscinternal.com:443/api/atelier/v8/CCR/doc/Foo.Bar.cls
COOKIE:
IF-NONE-MATCH: 2025-08-15 12:51:59.053
ACCEPT: application/json
CACHE-CONTROL: no-cache
AUTHORIZATION:
+- RESPONSE - 12:52:00 PM ---------------------------
200 OK
DATE: Fri, 15 Aug 2025 16:52:00 GMT
SERVER: Apache/2.4.58 (Win32) OpenSSL/3.1.3
SET-COOKIE:
CACHE-CONTROL: no-cache
ETAG: 2025-08-15 12:52:00.719
EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
PRAGMA: no-cache
CONTENT-LENGTH: 579
CONNECTION: close
CONTENT-TYPE: application/json; charset=utf-8
Body:
{
"status": {
"errors": [],
"summary": ""
},
"console": [
"",
"ERROR #6301: SAX XML Parser Error: Line: 3 Offset: 23 ERROR #5864: User 'SIDCCRCacheAccou' in process '9028' has 'Foo.Bar.cls' open for editing. Will skip this item."
],
"result": {
"name": "Foo.Bar.cls",
"db": "CCR-CODE",
"ts": "2025-08-15 12:52:00.719",
"upd": true,
"cat": "CLS",
"status": "",
"enc": false,
"flags": 0,
"content": [
"Class Foo.Bar",
"{",
"",
"Parameter BAZ = 1;",
"",
"Method ReturnSomething()",
"{",
" Quit 5*22",
"}",
"",
"/// Location and Revision of this file in Perforce (Auto-updating)",
"Parameter SrcVer = "$Id$";",
"",
"}",
""
]
}
}
+- END ----------------------------------------------

ERROR #6301: SAX XML Parser Error: Line: 3 Offset: 23 ERROR #5864: User 'SIDCCRCacheAccou' in process '9028' has 'Foo.Bar.cls' open for editing. Will skip this item.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions