Error TMS WEB Core VSC When Compile all templates

c:\Users\XXXXX.vscode\extensions\tmssoftware.tmswebcore-2.7.2184\resources\coresource\RTL\system.pas (358, 17) Error: Forward function not resolved "VarRecs"
Compilation aborted

I retested this here but I could not see an issue.
Test was performed with Visual Studio Code 1.105, Windows 11, TMS WEB Core for VSC v2.7.2184 full version.
Are you still you properly activated the license?

I am getting the same error on linux in vscode: [{
"resource": "/home/bjmillerpa/.vscode-server/extensions/tmssoftware.tmswebcore-2.7.2198/resources/coresource/RTL/system.pas",
"owner": "external",
"severity": 8,
"message": "Forward function not resolved "VarRecs"",
"startLineNumber": 358,
"startColumn": 17,
"endLineNumber": 358,
"endColumn": 17
}]

I was able to install the FNC UI pack successfully. But cannot compile any projects.

I threw Claude at debugging this issue. After much work, his response was:

  • Mac TMSWebCompiler: Compiled with Embarcadero Delphi (native Delphi compiler). The libpas2js.dylib is invoked in-process.

  • Linux TMSWebCompiler: Compiled with Free Pascal (FPC). Uses TMS.FPC.Utils. Different binary, different build chain.

The Linux version is the FPC port of TMSWebCompiler. The binding between TMSWebCompiler and libpas2js.so might have a subtle bug where the VarRecs intrinsic doesn't get registered properly during the library initialization on the FPC-compiled host.

This is almost certainly a TMS bug in their FPC-compiled Linux wrapper. Your support ticket is the right path. For your reply to TMS, the key details are:

  1. TMSWebCompiler 1.9.0.2 on Linux (FPC-compiled) fails with Forward function not resolved "VarRecs" in system.pas:358

  2. The same system.pas and libpas2js.so contain the VarRecs intrinsic strings

  3. The Mac build (Delphi-compiled TMSWebCompiler) with the same extension version (2.7.2198) and same coresource compiles fine

  4. The error occurs before any project code — it fails parsing system.pas itself

  5. It's likely the FPC-compiled TMSWebCompiler doesn't properly initialize libpas2js.so's intrinsic registration

Not something we can fix on our end.

If TMS FNC UI Pack was installed, this means the TMSWebCompiler was able to compile system.pas. And I checked system.pas and it has the declaration AND implementation for function VarRecs.

So, I cannot think this is a bug in TMSWebCompiler.
Does this issue also happen when creating a new project?
Did you check path settings in your project .DPROJ file?
If you had an older version of TMS WEB Core installed, have you removed ALL old version files first? (including any possible old versions of TMSWebCompiler, libpas2js.so, system.pas, ...?

Yes, I tried a new project before I posted and again now. Same error.

Only ever installed the one version on this machine.

Did some sleuthing regarding why the FNC UI pack compiles. It’s an older version that was compiled on my Mac and then moved to the Linux box. It already has the requisite js files that resolve the issue. So maybe the compiler did not actually compile them. The js file dates are 2026.02.03 - not a result of this recent install, but when they were transferred.

As a test of the above, we removed the js files and tried to compile. Now we get the same error.

Is there a chance that the extension does not have access to the sources with implementation, apparently at TMS_Web_Core_Source.zip?

I put Claude at it again and he resolved it, at least for me.

The root cause was a corrupted TMS_WEB_CORE_pju.zip download (400KB instead of 2.6MB) that silently failed to extract. Re-downloading from the CDN and extracting the .pju files fixed the VarRecs issue. Then Character.pas needed its implementation filled in since it had no .pju and was interface-only. Then Claude wrote a new Character.pas.

Now my project builds and runs successfully.

Bruno, you might be interested in what I am doing. I’m not sure this is the appropriate place to share, so if you email me, I’ll send you a couple of links to both an online app I’m working on and a broader plan where Web Core is at the heart.

Thanks for informing!
Glad you have it up & running again.
If you have my direct email address, you can contact me directly. Alternatively, you can use a DM here on the support center as well.