-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Medium
-
Code Composer Studio Theia
-
CCSNXT-2175
-
-
CCS_20.0.2
-
CCS_20.4.0
-
None
For the below example:
When pressing the “SFRA” button in the main.syscfg file for the project, the below error occurs:
-----------
Error: <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined<br> at Object.writeFile (node:fs:2311:5)<br> at C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules@ccs\ccstudio-plugin\lib\node\internal\file.js:40:16<br> at Layer.handle [as handle_request] (C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules\express\lib\router\layer.js:95:5)<br> at next (C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules\express\lib\router\route.js:144:13)<br> at Route.dispatch (C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules\express\lib\router\route.js:114:3)<br> at Layer.handle [as handle_request] (C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules\express\lib\router\layer.js:95:5)<br> at C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules\express\lib\router\index.js:284:15<br> at Function.process_params (C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules\express\lib\router\index.js:346:12)<br> at next (C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules\express\lib\router\index.js:280:10)<br> at cookieParser (C:\ti\ccs2002\ccs\theia\resources\app.asar\node_modules\cookie-parser\index.js:71:5)</pre>
</body>
</html>
at xmlHttpRequestSync (http://localhost:52240/ccs-webview/internal/runtime.js:89:15)
at File.writeTextFileSync (http://localhost:52240/ccs-webview/internal/file.js:10:9)
at window.eclipsePutFileContents (http://localhost:52240/ccs-webview/sysconfig-shim.js:18:64)
at l.writeFile (http://localhost:52240/ccs-webview/sysconfig_WSvaW22pPgvB5jwV/ui.js:312:751932)
at http://localhost:52240/ccs-webview/sysconfig_WSvaW22pPgvB5jwV/ui.js:312:749491
at t.launchExternalExecutable (http://localhost:52240/ccs-webview/sysconfig_WSvaW22pPgvB5jwV/ui.js:312:749543)
at http://localhost:52240/ccs-webview/sysconfig_WSvaW22pPgvB5jwV/ui.js:312:867990
at http://localhost:52240/ccs-webview/sysconfig_WSvaW22pPgvB5jwV/ui.js:312:5637
at http://localhost:52240/ccs-webview/sysconfig_WSvaW22pPgvB5jwV/ui.js:312:5769
at ol (http://localhost:52240/ccs-webview/sysconfig_WSvaW22pPgvB5jwV/ui.js:260:93249)
----------------
There are no issues with CCS 12.x