> For the complete documentation index, see [llms.txt](https://accelchain.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://accelchain.gitbook.io/docs/test/compilation.md).

# Compilation

Accelchain ensures the integrity of smart contracts by initiating the testing process at the compiler level. The platform incorporates a sophisticated built-in compiler setup that functions independently for each user and contract, showcasing basic Solidity errors directly within the IDE.

Within the left Navbar of the IDE, users can access the compiler settings, unlocking a range of functionalities for seamless compilation.&#x20;

#### **Contract Selection**&#x20;

Users can conveniently select the desired contract from those available in the project folder, streamlining the compilation process for targeted testing.

#### **Solidity Version Matching**&#x20;

Accelchain allows users to match the Solidity version of the compiler with that of the selected contract, ensuring compatibility and accurate compilation.

#### **Compilation and Error Display**

Upon compilation, any errors are prominently displayed within the IDE. Hovering the mouse over an error provides users with a detailed description, aiding in the identification and understanding of potential issues.

<figure><img src="/files/2hkFFIyrjE4MKhUan9TW" alt=""><figcaption></figcaption></figure>

#### **Manual Error Resolution:**&#x20;

Accelchain offers developers the flexibility to manually address compilation errors, fostering hands-on control over the correction process. Fixes can be applied directly from the IDE.&#x20;

{% hint style="info" %}
App currently uses a fixed version Solidity compiler version set at 0.8.19. Automated Solidity Version Matching and independent version selection for individual contracts are under testing and will be released soon in the next update. Stay tuned!
{% endhint %}

***

#### **'Ask AI'**&#x20;

For enhanced error resolution, users can leverage Accelchain's innovative 'Ask AI' feature. By clicking on the 'i' icon next to the error in the IDE, developers trigger an in-depth analysis. 'Ask AI' takes into account both the contract and compiler errors, providing a detailed insight into the nature of the error, along with actionable suggestions. Additionally, the feature provides the fixed code which can be updated by the user as it is, facilitating a streamlined and efficient error resolution process.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://accelchain.gitbook.io/docs/test/compilation.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
