negora created NETBEANS-6185:
--------------------------------
Summary: 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
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: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists