Skip to content

Saving a webapp's JS file causes a redundant compilation #1659

@gjsjohnmurray

Description

@gjsjohnmurray

Are you using client-side or server-side editing?: Server-side

  • VS Code Version: 1.104.1
  • Extension Version: 3.0.7-beta.6
  • OS: Windows
  • Server $ZVERSION (if applicable): IRIS for UNIX (Ubuntu Server 22.04 LTS for x86-64) 2022.1.7 (Build 1116_1U) Wed May 28 2025 17:18:28 EDT

Steps to Reproduce:

  1. Create a workspace to access a webapp of a namespace.
  2. Open a .js file from that webapp.
  3. Change and save it.
  4. Be surprised that you get a notification about compilation.
  5. Turn on REST logging and observe the compilation messages:
+- REQUEST - 1:15:53 PM ----------------------------
POST http://dem:52774/api/atelier/v5/ENSDEMO/work
COOKIE: <value>
ACCEPT: application/json
CONTENT-TYPE: application/json
CACHE-CONTROL: no-cache
AUTHORIZATION: <value>
Body:
{
  "request": "compile",
  "documents": [
    "/coffee/js/app.js"
  ],
  "source": false,
  "flags": "cuk"
}
+- RESPONSE - 1:15:53 PM ---------------------------
202 Accepted
DATE: Thu, 25 Sep 2025 12:15:53 GMT
SERVER: Apache
SET-COOKIE: <value>
CACHE-CONTROL: no-cache
EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
LOCATION: 4
PRAGMA: no-cache
CONTENT-LENGTH: 74
CONNECTION: close
CONTENT-TYPE: application/json; charset=utf-8
Body:
{
  "status": {
    "errors": [],
    "summary": ""
  },
  "console": [],
  "result": {
    "content": {}
  }
}
+- END ----------------------------------------------
+- REQUEST - 1:15:53 PM ----------------------------
GET http://dem:52774/api/atelier/v5/ENSDEMO/work/4
COOKIE: <value>
NOOUTPUT: false
ACCEPT: application/json
CACHE-CONTROL: no-cache
AUTHORIZATION: <value>
+- RESPONSE - 1:15:53 PM ---------------------------
200 OK
DATE: Thu, 25 Sep 2025 12:15:53 GMT
SERVER: Apache
SET-COOKIE: <value>
CACHE-CONTROL: no-cache
EXPIRES: Thu, 29 Oct 1998 17:04:19 GMT
PRAGMA: no-cache
CONTENT-LENGTH: 249
CONNECTION: close
CONTENT-TYPE: application/json; charset=utf-8
Body:
{
  "status": {
    "errors": [],
    "summary": ""
  },
  "console": [
    "",
    "Connected to Deltanji as user johnm in ENSDEMO on DEV",
    "",
    "Compilation started on 09/25/2025 13:15:53 with qualifiers 'cuk'",
    "Compilation finished successfully in 0.027s."
  ],
  "result": {
    "content": []
  }
}
+- END ----------------------------------------------

Connected to Deltanji as user johnm in ENSDEMO on DEV

Compilation started on 09/25/2025 13:15:53 with qualifiers 'cuk'
Compilation finished successfully in 0.027s.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions