You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "negora (Jira)" <ji...@apache.org> on 2021/11/08 15:54:00 UTC
[jira] [Created] (NETBEANS-6185) Inserting code in TypeScript file
fails
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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists