HodorNV / ALOps

ALOps
59 stars 24 forks source link

Change the alc.exe used in Compiler@2 #486

Closed thomari closed 2 years ago

thomari commented 2 years ago

Is your feature request related to a problem? Please describe. We get consistent OutOfMemory exceptions thrown, when using the Compiler@2 on our customized MS BaseApp with Translations.

Describe the solution you'd like The Problem is, that Compiler@2 is using the 32bit alc.exe located at "..\VSIX\extension\bin\alc.exe" by default, and 32bit can only use so much RAM. There is another alc.exe located at "..\VSIX\extension\bin\win32\alc.exe" which is a 64bit binary and won't run into memory problems.

It would be nice, if it was possible to switch to that 64bit compiler. It should also run a bit faster than the 32bit one.

thomari commented 2 years ago

@waldo1001 Any thoughts on this matter?

waldo1001 commented 2 years ago

We'll have to foresee a failover, but this needs to be done indeed.
This one has high prio...

waldo1001 commented 2 years ago

About to be released... Might give some slight issues with custom codecops though ... we'll try to test..

AdminHodor commented 2 years ago

Dear @iTomate , @TheDoubleH ,

The fix was released today in ALOps v1.450. Could you please validate?

Kind regards,

TheDoubleH commented 2 years ago

Dear @iTomate , @TheDoubleH ,

The fix was released today in ALOps v1.450. Could you please validate?

Kind regards,

@AdminHodor - Seems like it does what its supposed to do:

*** Detect ALC.EXE Features.
& C:\bcartifacts.cache\sandbox\20.3.42815.0\VSIX\extension\bin\win32\alc.exe /?
  * PARALLEL
  * MAXDEGREEOFPARALLELISM
  * ASSEMBLYPROBINGPATHS
*** Start ALC.EXE / Compile AL Extension
& C:\bcartifacts.cache\sandbox\20.3.42815.0\VSIX\extension\bin\win32\alc.exe /packagecachepath:"C:\vsts-agent-win-x64-2.175.2\_work\1\s\test\.ALOPSCache" /project:"C:\vsts-agent-win-x64-2.175.2\_work\1\s\test" /out:"C:\vsts-agent-win-x64-2.175.2\_work\1\a\Default Publisher_Default Test App Name_2.0.950.0_sandbox_20.3_w1.app" /fullpaths /analyzer:"C:\bcartifacts.cache\sandbox\20.3.42815.0\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll","C:\bcartifacts.cache\sandbox\20.3.42815.0\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.CodeCop.dll","C:\bcartifacts.cache\sandbox\20.3.42815.0\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.PerTenantExtensionCop.dll" /parallel+ /maxDegreeOfParallelism:2 /assemblyprobingpaths:"C:\Windows\assembly","C:\Windows\Microsoft.NET\assembly","C:\bcartifacts.cache\sandbox\20.3.42815.0\platform\Test Assemblies\Mock Assemblies","C:\bcartifacts.cache\sandbox\20.3.42815.0\platform\ServiceTier\program files\Microsoft Dynamics NAV\200\Service"