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
Unknown method .bind #93
Comments
I just saw this with Angular Language Service and VS Code 1.13. happens in Heroes Tutorial when adding (save()) method to hero-detail-component.html Code functions fine, but shows red squiggly lines even though method is clearly there. |
@bkbonner I cannot reproduce this with https://angular.io/generated/zips/toh-pt6/toh-pt6.zip Do you have a modification to this that shows this issue. |
I can try to send my codebase. Let me see if there is something else different in i you're that lets it work. |
Hi @chuckjaz . So if I go and modify the .ts file and remove the save() method and then go to the corresponding html file and modify the method name call in the html file, it underlines it. If I add the method back on the .ts side, and go back to the .html file, the squiggly line stays until I click ctrl+space and select one of the method options in the drop-down. I'm not sure if this is how it was behaving before, but maybe it's how the validation of the method's existence is being triggered that is causing the confusing result. |
I included a video to show how it looks: https://youtu.be/UjfFprgvTQg no audio, but I included closed captions to describe it. |
I am facing same problem as well ... |
I have the same problem using .bind in a template. It works but we get errors. |
+1 same issue here |
Any solution yet? |
+1 here too! |
+1 exact same issue. Any updates? |
Same error with |
Confirmed still happening in VS Code with angular language service. Ionic 3, Angular 5. |
Also happening with 'hasError' in extension 0.1.9 in VS Code 1.24.1:
complains that hasError is not a function, although it is (in the AbstractControl class of Angular forms). Edit: although this can be fixed by adding a "!" thus: That's because the get method returns AbstractControl or null. I presume the language service is complaining that 'hasError' is not a function of 'null'. It would be clearer if the error was: |
Also happening with ex)
|
Same issue here Ionic3 Angular5 |
I got the same error in VS Code |
Got the same error in VS code 1.25.1 Version: 1.25.1 |
Same error in Angular 5 and VS Code 1.26.0 |
I have the same problem in Angular 6.
Everything works fine and I see no errors while running, just in the editor:
|
The same happens to me.
|
Is there any way to surpress this warning instead of everyone saying I have the same problem? |
try adding a semicolon after function name like this <ion-button (click)="test();"> This seems to remove the warning. |
Honestly, I have no idea if this is still an issue. |
Try to put ; after it.On Feb 18, 2019 5:09 AM, Rafael <notifications@github.com> wrote:Yes, this is still an issue.
VS Code About:
Version: 1.31.1
Commit: 1b8e8302e405050205e69b59abb3559592bb9e60
Date: 2019-02-12T02:19:29.629Z
Electron: 3.1.2
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.15.0-45-generic
—You are receiving this because you commented.Reply to this email directly, view it on GitHub, or mute the thread.
|
@multilexus this is not working. |
@multilexus is right i'm working with Angular 7 in VS code 1.31.1 |
It is still a problem. Any news? |
|
Encountered this bug when using |
Still complaining for
VSCode 1.34.0 |
Until they fix it, there's a workaround (at least for
|
It's a bad idea to use myMethod = (param1: any, param2: any) => {
// method logic
} <MyComponent [myInput]="myMethod"> |
@andrius-pra Nice idea, I'll now use this, thanks. |
When performing diagnostic checks or completions, we should take into account members and properties in the base class, if any. Otherwise, the language service will produce a false error. PR closes angular/vscode-ng-language-service#93
Sorry everyone that it took so long for us to address this issue. The PR above should fix it. |
…r#34041) When performing diagnostic checks or completions, we should take into account members and properties in the base class, if any. Otherwise, the language service will produce a false error. PR closes angular/vscode-ng-language-service#93 PR Close angular#34041 (cherry picked from commit 7cd16b9)
…r#34041) When performing diagnostic checks or completions, we should take into account members and properties in the base class, if any. Otherwise, the language service will produce a false error. PR closes angular/vscode-ng-language-service#93 PR Close angular#34041 (cherry picked from commit 7cd16b9)
#34046) When performing diagnostic checks or completions, we should take into account members and properties in the base class, if any. Otherwise, the language service will produce a false error. PR closes angular/vscode-ng-language-service#93 PR Close #34041 (cherry picked from commit 7cd16b9) PR Close #34046
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
I'm using VS Code v1.12.1, and Angular Language Service v0.1.3, with an Ionic 3 project, and I get these warnings, despite everything being fine...
The text was updated successfully, but these errors were encountered: