nujan-io / nujan-ide

Web IDE, powered by Nujan, is your ultimate browser-based IDE designed to simplify the journey of writing, testing, compiling, deploying, and interacting with smart contracts on TON. Write smart contracts from anywhere, No setups, no downloads, just pure convenience and versatility.
https://ide.nujan.io
Other
112 stars 12 forks source link

Display compiler versions (and, optionally, to switch between them) #20

Open novusnota opened 6 months ago

novusnota commented 6 months ago

Observed behaviour

At the moment, one has to do a set of heuristics to determine which compiler version of FunC or Tact the project is using.

For example, to check if the compiler supports Tact v1.2.0, you may try to use += operator. And if that doesn't work, the version must be lower than 1.2.0.

Repeat this process to find the actual version used at the moment (or look into Nujan source code to find out faster, though still a bit impractical :)

Expected behavior or possible solutions

  1. Display the currently used compiler version — it may be hidden under the cog icon of settings on the lower left.
  2. Optionally, make it possible to switch between a pre-defined set of FunC/Tact versions.
anton-trunov commented 1 month ago

@rahulyadav-57 We should definitely have the functionality to switch between Tact versions: both released ones (should support at least two latest minor releases) and the version from GitHub.

rahulyadav-57 commented 1 month ago

Absolutely, adding the ability to switch between Tact versions would provide great flexibility.