Skip to content
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

Classes not exposed? #415

Open
arne-fuchs opened this issue Jan 4, 2024 · 0 comments
Open

Classes not exposed? #415

arne-fuchs opened this issue Jan 4, 2024 · 0 comments

Comments

@arne-fuchs
Copy link

arne-fuchs commented Jan 4, 2024

Hello I am trying to implement a code completion plugin which depends on this solidity plugin.
I have structs like this:

if (functionOrVariable instanceof SolFunctionDefinitionImpl func){
    if (func.getReturns() != null){
        text = func.getReturns().getText();
    }
}

If I run the plugin standalone the classes are not being found.
But if I run gradle tests the classes are available (which I do not understand).
The error is as follwed:
java.lang.NoClassDefFoundError: me/serce/solidity/lang/psi/impl/SolStateVariableDeclarationImpl
My dependencies are defined as followed:
platformPlugins = JavaScript, me.serce.solidity:2.4.3, java

I am able to work with the Javascript Classes but not with the solidity classes.
Are they not exposed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant