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
98 stars 10 forks source link

Imports don't work correctly #2

Closed Hid-K closed 1 year ago

Hid-K commented 1 year ago

Imports does not working correctly. I'm importing file from separate folder. When i'm trying to deploy a contract - it fails during compilation with error saying that the compiler did not found a symbol defined in imported file.

My project file structure:

Снимок экрана 2023-06-17 в 00 11 12

Imports:

Снимок экрана 2023-06-17 в 00 11 51

Symbols defined in imported file ( grade-status.fc ):

Снимок экрана 2023-06-17 в 00 12 16

Error:

Func compilation error: ( function `grade::status::removed` undefined ) cannot generate code for function 
`grade::status::removed`: main.fc:65:9: error: grade::status::removed grade::status::removed(),
rahulyadav-57 commented 1 year ago

Could you share the contract? We will test it and resolve the issue.

Hid-K commented 1 year ago

Project sharing does not seems to work, so i'm sending all code in archive. TONStudyGrade.zip

rahulyadav-57 commented 1 year ago

I was able to compile the code shared by you. I hope you are using the stable version https://ide.nujan.io

Hid-K commented 1 year ago

yeah. i've been using a wrong version. all works fine now!