question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ignoring java.codeGeneration.toString.limitElements as java.codeGeneration.toString is undefined

See original GitHub issue

Hi everyone! I’m facing this error message since yesterday with coc-java extension. It show up in status bar as soon as nvim start even if it is not a java project folder.

My coc.vim output :

## versions
vim version: NVIM v0.4.0-674-g8342b4486
node version: v9.11.2
coc.nvim version: 0.0.66-ad629df759
term: rxvt-unicode-256color
platform: linux

## Error messages
Ignoring java.codeGeneration.toString.template as java.codeGeneration.toString is undefined
Ignoring java.codeGeneration.toString.codeStyle as java.codeGeneration.toString is undefined
Ignoring java.codeGeneration.toString.skipNullValues as java.codeGeneration.toString is undefined
Ignoring java.codeGeneration.toString.listArrayContents as java.codeGeneration.toString is undefined
Ignoring java.codeGeneration.toString.limitElements as java.codeGeneration.toString is undefined
## Output channel: prettier
## Output channel: snippets

[Error 17:35:38] Convert regex error for: li(st)? (?<num>\d+)$
[Error 17:35:38] Convert regex error for: ol(st)? (?<num>\d+)$

I’ve tried to install and uninstall coc-java extension with these openjdk version

openjdk version "11.0.2" 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)

then I tried

java version "11.0.2" 2019-01-15 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.2+9-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.2+9-LTS, mixed mode)

It seems to be ok with oracle-jdk.

Does coc-java only working with oracle-jdk and not openjdk?

Best Regard!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MicahMartincommented, May 7, 2019

Forgot to run call coc#util#install()

0reactions
chemzqmcommented, May 7, 2019

@MicahMartin should be bundle not updated, checkout :CocInfo

Read more comments on GitHub >

github_iconTop Results From Across the Web

Language Support for Java(TM) by Red Hat
codeGeneration.toString.limitElements : Limit number of items in arrays/collections/maps to list, if 0 then list all. Defaults to 0 . java.
Read more >
How to configure Intellij toString() template to align with Eclipse
Code > Generate... > toString(). On the dialog that opens, in the top right, there is a button labelled 'Settings...'.
Read more >
@ToString - Project Lombok
Annotating a class with @ToString will cause lombok to generate an implementation ... Be aware that the default implementation of toString() in java.lang....
Read more >
toString() Generation Settings dialog | IntelliJ IDEA ... - JetBrains
Variable Returns Description $fields java.util.List List of FieldElement objects $methods java.util.List List of MethodElement objects $member Element The Element object
Read more >
JavaScript String toString() Method - W3Schools
The toString() method is used internally by JavaScript when an object needs to be displayed as a text (like in HTML), or when...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found