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

Solidty: Compile and Code Generate CSharp contract definition fails to generate code #469

Open
TSKHot opened this issue Jan 14, 2025 · 1 comment

Comments

@TSKHot
Copy link

TSKHot commented Jan 14, 2025

Right-click in code editor window and choose Soldity Code Generation -> Solidty: Compile and Code Generate CSharp contract definition

Compilation starts but no csharp code files are generated. (abi, bin and json files are generated though.)

Workaround is to click twice (once immediately and then again after the message "Compiler using remote version: 'latest', solidity version: 0.8.28+commit.7893614a.Emscripten.clang" appears) in the code editor window, as the problem seems to be that the Output window gets focus immediately preventing the plug-in from finding the correct window. (Noticed that the plug-in code uses vscode.window.activeTextEditor - maybe this is the wrong window because of the focus change?)

@juanfranblanco
Copy link
Owner

@TSKHot Thank you for the hints, this has been driving me nuts for a long time, as it has been intermittent. If you want to, you can try the multi settings option, as described in the Readme, not as fast to setup, but eventually it will bring more code generator and settings.

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

2 participants