-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
provideCodeLenses Error #237237
Comments
just a type mismatch error? could you link your relevant files please |
Sure, I can paste in the CodeLens implementation for now. I cannot link directly as the repo is part of a private organization, but I am willing to attach any code you may need:
Again, this should be enough as the issue seems to be directly tied to the vscode module which I have included my version for. |
By the way, I am aware that the vscode module version and the actual vscode engine are different versions. I was just trying to update the API module to see if the latest version saw this issue resolved. This is not the reason it will not package it is still due to the codelens type mismatch. |
I cannot reproduce with just that snippet alone I see that |
It says 1.78 in your error message. Even so, this is not specifying that the extension host has to be 1.87.0, just that it is 1.87.0 or higher. If you need exact versioning, I am running this on vscode version 1.96.2 and I'm not sure how to reproduce the error for you without lending you the entire code repository, which is proprietary. If you create a virtual environment with the correct specs, does it throw an error? Here is the file without any of its dependencies so you can set up the environment and just try to see if the import, class declaration, and function declaration appear without error.
Thank you! |
|
That seems to have worked. Thank you so much for all of your help! |
I'm developing an extension and using the Code Lens Provider on a virtual file. However, the provideCodeLenses implementation has an error which is preventing me from actually building the extension to ship out in a new release.
I'm using the most recent version of the VS Code API:
Here is the full error:
I have looked at the API documentation extensively and have looked for other similar open issues to no avail. I've tried uninstalling and reinstalling the VS Code API module. As you can see in the error itself (and by looking at the actual CodeLensProvider interface) the function signature is correct.
When I use the Extension Test Runner, it does complain about the error but when I "Debug Anyway" the Virtual File System and CodeLens on the virtual files apply just fine with no errors logged.
I've done extensive research and still cannot seem to resolve this issue. I've gotten to the point where I am out of development to do and need to push out another release, so I need to be able to build the extension.
Any help would be appreciated.
The text was updated successfully, but these errors were encountered: