I am Geeting JIT compilation error for non legacy project. while searching for resoulation over the web we got the following resolution as stated below but i am unable to see JIT compilation property with run time option in project.json file. Kindly the help to resolve the issue.
UiPath Studio version is latest version 2024.4.0 and packages are updated.
IT compilation** (Just-In-Time compilation) is a process where code is compiled at runtime, just before it is executed. In the context of UiPath, JIT compilation is relevant when dealing with custom activities or scripts.
Here’s the information you’re looking for:
- Legacy Projects:
- In legacy projects, JIT compilation is enabled by default. This means that custom activities (such as those created using C# or VB.NET) are compiled just before execution.
- Legacy projects use the
.xaml
format and are typically created in older versions of UiPath Studio.
- Non-Legacy Projects:
- In non-legacy projects, JIT compilation is disabled by default.
- Non-legacy projects use the
.xaml.json
format and are created in newer versions of UiPath Studio. - If you want to enable JIT compilation for non-legacy projects, you can do so by modifying the
project.json
file.
Here’s how you can enable JIT compilation for a non-legacy project:
- Open your UiPath project in UiPath Studio.
- Locate the
project.json
file in your project directory. - Inside the
project.json
file, find the"jitCompilation"
property. - Set its value to
true
(if it’s not already set). - Save the changes to the
project.json
file.
Remember that enabling JIT compilation for non-legacy projects may impact performance, especially during project startup. It’s essential to weigh the benefits against any potential drawbacks.