-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[LS] Add InternalEVM stdlib Contract #331
Comments
While it is annoying that the |
Unfortunately, the problem actually surfaces for developers importing the ![]() I guess the other workaround here is trying to ignore errors when checking |
Ah, that makes sense! I hadn't considered that even for code importing |
Issue to be solved
Because the
InternalEVM
standard library value is not a part of the Cadence runtime, but rather, part of the FVM, it is not known to the language server. It is, however, valid to the FVM & developers wishing to get code-analysis while using theEVM
/InternalEVM
contract will be unable to.This is a more general problem than just the
InternalEVM
contract, however, it seems to me that theInternalEVM
contract is the only one that needs to be considered for the time being.(related onflow/vscode-cadence#574)
Suggested Solution
Add an additional option to the server,
WithStandardLibraryValues
, or similar, that would accept additional values that may be declared as a part of the stdlib.This could be used as a part of the LS flow integration, where the FVM standard library values are specified. This way the FVM-specific stdlib stays decoupled from the Cadence LS implementation itself.
The text was updated successfully, but these errors were encountered: