[ https://issues.apache.org/jira/browse/NETBEANS-6185?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
negora updated NETBEANS-6185: ----------------------------- Description: When I open a TypeScript file and try to generate code, this exception is thrown: {code:java} java.lang.NullPointerException: Cannot invoke "org.eclipse.lsp4j.WorkspaceEdit.getDocumentChanges()" because "edit" is null {code} Steps to reproduce: # Open a TypeScript file (with ".ts" extension). # Write a class like this: {code:java} export class Student { private age: number; } {code} # Select the declaration: {{{}private readonly age: number;{}}}. # Press {{Alt}} + {{Enter}} . # Choose {{Generate 'get' and 'set' accessors}}. was: When I open a TypeScript file and try to generate code, this exception is thrown: {code:java} java.lang.NullPointerException: Cannot invoke "org.eclipse.lsp4j.WorkspaceEdit.getDocumentChanges()" because "edit" is null {code} Steps to reproduce: # Open a TypeScript file (with ".ts" extension). # Write a class like this: {code:java} export class Student { private age: number; } {code} # Select the declaration: {{{}private readonly age: number;{}}}. # Press {{Alt}} + {{Enter}} . # Choose {{ Generate 'get' and 'set' accessors}}. > Inserting code in TypeScript file fails > --------------------------------------- > > Key: NETBEANS-6185 > URL: https://issues.apache.org/jira/browse/NETBEANS-6185 > Project: NetBeans > Issue Type: Bug > Components: editor - Actions/Menu/Toolbar > Affects Versions: 12.5 > Environment: When I open a TypeScript file and try to generate code, > this exception is thrown: > {code:java} > java.lang.NullPointerException: Cannot invoke > "org.eclipse.lsp4j.WorkspaceEdit.getDocumentChanges()" because "edit" is null > {code} > Please, check the full stack trace in the attached file called > {{{}stack-trace.txt{}}}. > Steps to reproduce: > # Open a TypeScript file (with ".ts" extension). > # Write a class like this: > {code:java} > export class Student { > private age: number; > } > {code} > # Select the declaration: {{{}private readonly age: number;{}}}. > # Press {{Alt}} + {{Enter}} . > # Choose \{{ Generate 'get' and 'set' accessors}}. > Reporter: negora > Priority: Major > Labels: lsp, typescript > Attachments: stack-trace-1.txt > > > When I open a TypeScript file and try to generate code, this exception is > thrown: > {code:java} > java.lang.NullPointerException: Cannot invoke > "org.eclipse.lsp4j.WorkspaceEdit.getDocumentChanges()" because "edit" is null > {code} > Steps to reproduce: > # Open a TypeScript file (with ".ts" extension). > # Write a class like this: > {code:java} > export class Student { > private age: number; > } > {code} > # Select the declaration: {{{}private readonly age: number;{}}}. > # Press {{Alt}} + {{Enter}} . > # Choose {{Generate 'get' and 'set' accessors}}. -- This message was sent by Atlassian Jira (v8.20.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists