-
Notifications
You must be signed in to change notification settings - Fork 51
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
Possibly undefined symbol for .length #587
Comments
The way to setup the plugin is just to ensure that phobos and druntime are being picked up as sourcepaths when you select DMD as an sdk: so you're getting auto completion because DCD is aware of phobos/druntime but the plugin itself has not picked those paths up. Also, if they're configured as sourcepaths you will not need to add them as flags to DCD. |
The Similarly, there are also some unrecognized |
…ng error for compiler defined symbol
…ng error for compiler defined symbol
…ng error for compiler defined symbol
…ng error for compiler defined symbol
…ng error for compiler defined symbol
…ng error for compiler defined symbol
…ng error for compiler defined symbol
* Fix content of ReferenceExpression and FunctionCallExpression * Remove non existent node type * Remove TemplateMixinExpression node, this node does not exists anymore * Unary expression: update elements inside based on new parsing * Pragma: add note to remove expression from his name and remove expression from his interfaces Pragma is not an expression, D specs were updated to not show the expression word anymore (as it is confusing). We should do the same thing to remove the ambiguity. * Add types support This support is not complete and a lot of TODOs remains. But this is enough to start improve the resolving algorithm * Use type for improved resolve * Add resolve test with aliased type * Add resolve for local definition in ConditionalStatement * fix(#587): Make PossiblyUndefinedSymbol not reporting error for compiler defined symbol * Add resolve for anonymous struct and union fields * Add test for imported anonymous enum member * Fix resolve for alias in some cases Alias value can point to something else than type * Fix resolve of auto assignment with name shadowing * Fix caching when psi generation is modified With this modification, a change in the script will invalidate caches and so deleted nodes won’t reappear --------- Co-authored-by: Etienne Brateau <etienne.brateau@gmail.com>
Desktop (please provide environment info):
D compiler and tools (please provide version numbers):
Describe the problem
I'm getting a "Possibly undefined symbol" warning for the .length property.
Screenshots
DCD configuration:
Additional context
Autocompletion works for .length, but the warning is still present.
The text was updated successfully, but these errors were encountered: