Giter VIP home page Giter VIP logo

vscode-java-pack's Introduction

Extension Pack for Java

Extension Pack for Java is a collection of popular extensions that can help write, test and debug Java applications in Visual Studio Code. Check out Java in VS Code to get started.

Extensions Included

By installing Extension Pack for Java, the following extensions are installed:

Other Recommendations

You can do more with VS Code. Here are some more recommendations that could help.

Spring

Spring Tools 4 (ST4) is also available in Visual Studio Code. It understands Spring so you can navigate Spring code at the level of beans, routes, etc. It can also show live information of the running Spring Boot applications. Check out the ST4 website to see a complete list of its features.

To use ST4, install πŸ“¦ Spring Boot Extension Pack. Please also check out the User Guide to make the most of it.

Eclipse MicroProfile

The πŸ“¦ Extension Pack for MicroProfile is a collection of extensions that can help develop your Java microservices using Eclipse MicroProfile. You can quickly generate a MicroProfile project and utilize development tools for runtimes such as Open Liberty and Quarkus.

Quarkus

πŸ“¦ Quarkus Tools for Visual Studio Code is a feature-packed extension tailored for Quarkus application development within Visual Studio Code. You can quickly get started by using the extension's project generation and project debugging feature. The extension also provides amazing language features (completion, hover, validation etc.) for your project's application.properties file.

Containers and Microservices

You can use πŸ“¦ Docker extension to build docker images and work with image registries.

πŸ“¦ Kubernetes extension provides an explorer view to manage clusters and the nodes inside. It also provides advanced syntax support for editing Kubernetes manifest files.

Tomcat and Jetty

Both πŸ“¦ Tomcat and πŸ“¦ Jetty extension are available. They provide dedicated views to help work with your favorite web servers.

Linting

The πŸ“¦ SonarLint extension lets you detect bugs and vulnerabilities as you write code in VS Code. The extension will simply run in the background and highlight code that poses a quality or security concern.

At the same time, πŸ“¦ CheckStyle is also available.

Questions & Issues

Each extension mentioned above is a separate open-source project and has its own repository. To make things easier, simply πŸ™‹ open an issue in this repository. The new issue will be triaged and redirected.

Telemetry

This extension collects telemetry data to help us build a better experience for building Java applications with VS Code. We only collect data on which commands are executed. We do not collect any information about names, addresses, paths, etc. The extension respects the telemetry.enableTelemetry setting which you can learn more about in our FAQ.

License

MIT

Happy Coding!

vscode-java-pack's People

Contributors

adambrousseau avatar akaroml avatar anders-e avatar andxu avatar boykoalex avatar cscherryy avatar deftdawg avatar dependabot[bot] avatar digitarald avatar eskibear avatar jdneo avatar kathrynkodama avatar microsoft-github-policy-service[bot] avatar microsoftopensource avatar msftgits avatar nickzhums avatar philippgille avatar realclanger avatar rzgry avatar sandy081 avatar simonis avatar stevomitric avatar sti2nd avatar testforstephen avatar thadhouse avatar vrajgohil avatar waldyrious avatar wangmingliang-ms avatar xqzlgy2 avatar yaohaizh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-java-pack's Issues

Automatically page scrolling up, after typing!

Whenever I type something, automatically VS Code scrolls up a bit.

I tried to clarify whether this was really because of vscode-java-pack, and I found out, whenever I remove Java Pack extension, everything works fine.

Here's video link (Unlisted) which showcases, VS Code automatically scrolling up whenever I hit space.
https://youtu.be/n7ziWJbog2Q

[error] command 'java.execute.workspaceCommand' not found: Error: command 'java.execute.workspaceCommand' not found

I installed the Java pack. When i try to open a Java file, I have an error popup saying that a command is missing.
In Log (Window) there are several stacktraces (including one with the message mentioned):

[2018-10-08 10:44:19.209] [renderer1] [info] no standard startup: panel is active
[2018-10-08 10:44:27.930] [renderer1] [error] command 'java.open.output' already exists: Error: command 'java.open.output' already exists
	at e.registerCommand (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:725:618)
	at Object.registerCommand (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:799:950)
	at languageClient.onReady.then (C:\Users\Aurelien Pupier\.vscode\extensions\redhat.java-0.32.0\out\src\extension.js:187:39)
	at propagateAslWrapper (C:\Users\Aurelien Pupier\.vscode\extensions\vscjava.vscode-java-pack-0.4.0\node_modules\async-listener\index.js:502:23)
	at C:\Users\Aurelien Pupier\.vscode\extensions\vscjava.vscode-java-pack-0.4.0\node_modules\async-listener\glue.js:188:31
	at C:\Users\Aurelien Pupier\.vscode\extensions\vscjava.vscode-java-pack-0.4.0\node_modules\async-listener\index.js:539:70
	at C:\Users\Aurelien Pupier\.vscode\extensions\vscjava.vscode-java-pack-0.4.0\node_modules\async-listener\glue.js:188:31
	at <anonymous>
[2018-10-08 10:50:42.773] [renderer1] [info] no standard startup: not just one text editor
[2018-10-08 10:50:49.911] [renderer1] [error] command 'java.open.output' already exists: Error: command 'java.open.output' already exists
	at e.registerCommand (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:725:618)
	at Object.registerCommand (c:\Program Files (x86)\Microsoft VS Code\resources\app\out\vs\workbench\node\extensionHostProcess.js:799:950)
	at languageClient.onReady.then (C:\Users\Aurelien Pupier\.vscode\extensions\redhat.java-0.32.0\out\src\extension.js:187:39)
	at propagateAslWrapper (C:\Users\Aurelien Pupier\.vscode\extensions\vscjava.vscode-java-pack-0.4.0\node_modules\async-listener\index.js:502:23)
	at C:\Users\Aurelien Pupier\.vscode\extensions\vscjava.vscode-java-pack-0.4.0\node_modules\async-listener\glue.js:188:31
	at C:\Users\Aurelien Pupier\.vscode\extensions\vscjava.vscode-java-pack-0.4.0\node_modules\async-listener\index.js:539:70
	at C:\Users\Aurelien Pupier\.vscode\extensions\vscjava.vscode-java-pack-0.4.0\node_modules\async-listener\glue.js:188:31
	at <anonymous>
[2018-10-08 10:57:37.949] [renderer1] [error] command 'java.execute.workspaceCommand' not found: Error: command 'java.execute.workspaceCommand' not found
    at t._tryExecuteCommand (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3019:717)
    at file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3019:572
    at n.Class.derive._oncancel.then (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:161:366)
    at t.executeCommand (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3019:546)
    at e.$executeCommand (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3174:846)
    at e._doInvokeHandler (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3235:593)
    at e._invokeHandler (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3235:311)
    at e._receiveRequest (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3234:129)
    at e._receiveOneMessage (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3233:270)
    at file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3232:74
    at e.fire (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:175:76)
    at a (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:311:740)
    at Socket.n._socketDataListener (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:311:959)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)
[2018-10-08 10:57:39.351] [renderer1] [error] command 'java.execute.workspaceCommand' not found: Error: command 'java.execute.workspaceCommand' not found
    at t._tryExecuteCommand (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3019:717)
    at file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3019:572
    at n.Class.derive._oncancel.then (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:161:366)
    at t.executeCommand (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3019:546)
    at e.$executeCommand (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3174:846)
    at e._doInvokeHandler (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3235:593)
    at e._invokeHandler (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3235:311)
    at e._receiveRequest (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3234:129)
    at e._receiveOneMessage (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3233:270)
    at file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:3232:74
    at e.fire (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:175:76)
    at a (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:311:740)
    at Socket.n._socketDataListener (file:///C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:311:959)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at Pipe.onread (net.js:594:20)

'javac' is not recognized as an internal or external command, operable program or batch file.

VS Code recognizes that OpenJDK is not downloaded and informs user to download it from
https://developers.redhat.com/products/openjdk/overview/

Upon doing so, the user is still unable to use javac to compile the code. They receive the error
"'javac' is not recognized as an internal or external command, operable program or batch file."

This is very frustrating to new users, and those who are rusty towards knowing about pathing and environment variables. At this point, the user is still stuck despite following VS Code prompt.

Once the JDK is downloaded, VS Code should probably either auto include the path in its built in terminal, or prompt the user to locate the JDK to add the path. At the very least, it could send a reminder that the pathing needs to be updated in order to use it and direct them to a useful link.

This would make setting up VS Code dramatically quicker for those who are just learning coding in general. It would also add convenience for those who are already more adept at coding by giving them one less thing to worry about.

0.4.0 Plan

Legend of annotations:

Mark Description
πŸƒ work in progress
βœ‹ blocked task
πŸ’ͺ stretch goal for this iteration
πŸ”΄ missing issue reference
πŸ”΅ more investigation required to remove uncertainty
⚫️ under discussion within the team

No Side-scroll support

Unable to use side-scrolling on the mouse within Visual studio code. It jumps to where the cursor is on screen, but cannot be manually shifted with a scroll wheel that supports side-scrolling

Is it possible to export to war??

Hello, I am building a mevan java web application but I can not figure out how to export my project to a war file which is I really need. So is it possible ??
kind regards.

crash

Issue Type: Bug

The Language Support for Java server crashed 5 times in the last 3 minutes. The server will not be restarted.

Extension version: 0.5.0
VS Code version: Code 1.31.1 (1b8e8302e405050205e69b59abb3559592bb9e60, 2019-02-12T02:20:54.427Z)
OS version: Windows_NT x64 10.0.17134

System Info
Item Value
CPUs Intel(R) Core(TM) i5 CPU M 560 @ 2.67GHz (4 x 2660)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: unavailable_off
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: unavailable_off
Memory (System) 7.80GB (5.76GB free)
Process Argv
Screen Reader no
VM 0%

Chinese Language Support

We have lots of Chinese developers. It would be great if we can provide a localized interface. This issue is to track the effort of building the localization story.
Supporting Chinese is a start. Once the solution is working, we can expand the support to other languages.

Here are the issues created to track the progress of related extensions:

Welcome page for Java

VS Code shows a welcome page on startup. The page provides quick start experience.
For Java users, the similar concept can also apply. VS Code is very different from classical Java IDEs like Eclipse and IntelliJ. New users get lost very easily when trying to adopt this new solution. So a welcome page can solve that problem by providing:

  • A list of most used task entries
  • Links to the documentation
  • Links to sample projects and tutorials

How to attach JavaDoc .jar for library .jar and get editor to show the documentation?

I have tried various techniques to specify the JavaDoc .jar that should be attached to a given library .jar (that appears in the "Referenced Libraries" section of the "JAVA DEPENDENCIES" view, and is successfully used by my app), but nothing has worked.

Currently, the only JavaDoc documentation that appears in the editor for me is that for the built-in objects/members, like Object and toString(). No third-party libraries seem to have any JavaDoc exposed in the editor.

Is there any example of a simple project configured with a dependency on a library .jar (that has an associated JavaDoc .jar, also located on the local file system) where the editor is able to display the documentation comments for selected Java types and members?

Support multiple projects at one time.

If I have multiple vscode windows open with different java projects only one has java language support. If i close the one supported then the other gains support.

Java default classes

Issue Type: Bug

When I tried to use Math class, Double class, etc. The Intellisense is not showing any methods or members about these classes.

Extension version: 0.3.0
VS Code version: Code 1.25.1 (1dfc5e557209371715f655691b1235b6b26a06be, 2018-07-11T15:43:53.668Z)
OS version: Windows_NT x64 10.0.17134

βœ… Test Plan

Install

  • Be able to install the extension using .vsix package

Present "Java Overview" page

  • Present "Java Overview" page automatically when
    • A .java file is opened
    • A Java project is opened
  • Should NOT present "Java Overview" automatically when
    • The option "Show overview page when using Java" is unchecked
    • Non-java files/projects are opened
  • Show overview page using command "Java: Overview"
  • Show overview page by clicking the icon on status bar
    image

Links in Overview page

  • "Create a Maven project..." should lead users to either of the following
    • Create a Maven project
      image
    • Recommend Maven extension when it's not installed
      image
  • "Create a Spring Boot project..." should lead users to either of the following
    • Create a Spring Boot project
    • Recommend Spring Boot extension when it's not installed
  • All documentation links should take users to the web page
  • Should NOT recommend an extension when it's already installed, examples:
    • When Maven is installed, you should not see it in the extension recommendation list
      image
    • When Maven is not installed, you should see it in the list:
      image

Release Notes

  • Release Notes should be presented automatically for only once when using Java
  • Same version of Release Notes should NOT be presented again after restarting VS Code
    • You can see the version here
      image
  • Run "Java: Show Release Notes" should show the release notes

In-app recommendation

  • XML extension should be recommended when opening POM.XML
  • XML extension should not be recommended again when opening POM.XML

Java pack is preventing activation of extensions

In the latest version of vscode, only for Java projects, it get's stuck at "Activating Extensions".

VS Code: Version 1.30.2 (1.30.2)
Java pack: 0.5.0

vim for vscode doesn't work due to this. If I open a non-java project or if I uninstall this extension everything works fine.

Do let me know if you need more info.

jdk8 not found errors, even though maven install works

Code just refuses to identify jdk 8. But if I right click maven project > myproject and click install, the maven project installs fine.

I keep seeing 1.8 error in problems tab:
"Lambda expressions are allowed only at source level 1.8 or above [1610613381] (line, column)"

User settings.json
"java.home": "/Library/Java/JavaVirtualMachines/jdk1.8.0_191.jdk/Contents/Home",

Code : Version 1.29.1 (1.29.1)
Java Extension Pack 0.4.0
Mac OS High Sierra : Version 10.13.6

Already tried:

  • Cleaning up the workspace,
  • reinstalling java extension pack,
  • restart/reload code.
  • importing the same project in eclipse and building with 1.8 works fine.

java configuration doesn't recognize vs code variables

Hi,

I'm not sure if i'm doing it wrong but i wanted to configure the java debug to execute on the open java file without having to specify the exact mainClass name.

Ex:

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "type": "java",
            "name": "Debug (Launch)",
            "request": "launch",
            "mainClass": "${fileBasename} ",
             "args": ""
        }
}

However, it doesn't recognize "${fileBasename} ". I get the following error:

Failed to resolve classpath: Main class '${fileBasename}' doesn't exist in the workspace.

It would be nice if it actually printed what the '${fileBasename}' was as well.

Thanks,
Derek

Weird Java error

This might be an issue with the language server, but I received the same error twice (the number at the end is the same for both) but the message is slightly different. Is the top one a bug?

image

Failed to install 'vscjava.vscode-java-pack'

Why am I getting this error when I try to install

Failed to install 'vscjava.vscode-java-pack'.

This is my environment
Windows 10 Home x64
JDK 8
Latest Visual Studio Code

Every other extension installs but only Java extensions repeatedly fail.
What could be wrong?

NPE with Spring Boot Data LDAP

VSCode Version: 1.29.1
OS Version: Win and Mac
Steps to Reproduce:

This is a very basic demo about Spring Data for LDAP in unit testing. Please refer to the following code:
@RunWith(SpringRunner.class)
@DataLdapTest
public class DirectoryTests {

@Autowired
private LdapTemplate ldapTemplate;

@test
public void whenFindByTitleThenReturnDiscipline() {
LdapQuery query = LdapQueryBuilder.query().where("objectclass").is("person");

List<String> list = ldapTemplate.search(query, new AttributesMapper<String>() {
    public String mapFromAttributes(Attributes attrs)
            throws NamingException {
        return (String) attrs.get("cn").get();
    }
});

assertThat(list.size()).isEqualTo(3);

}
}

The same code runs well with IntelliJ, but got the following error message with VS Code:
java.lang.NullPointerException
at java.util.Hashtable.put(Hashtable.java:460)
at org.springframework.ldap.core.support.SimpleDirContextAuthenticationStrategy.setupEnvironment(SimpleDirContextAuthenticationStrategy.java:42)
at org.springframework.ldap.core.support.AbstractContextSource.setupAuthenticatedEnvironment(AbstractContextSource.java:194)
at org.springframework.ldap.core.support.AbstractContextSource.getAuthenticatedEnv(AbstractContextSource.java:582)
at org.springframework.ldap.core.support.AbstractContextSource.doGetContext(AbstractContextSource.java:134)
at org.springframework.ldap.core.support.AbstractContextSource.getReadOnlyContext(AbstractContextSource.java:158)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:357)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:309)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:616)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:586)
at org.springframework.ldap.core.LdapTemplate.search(LdapTemplate.java:1651)
at cn.focusmedia.workforce.directory.DirectoryTests.whenFindByTitleThenReturnDiscipline(DirectoryTests.java:33)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190)
at com.microsoft.java.test.runner.junit4.JUnit4TestReference.run(JUnit4TestReference.java:50)
at com.microsoft.java.test.runner.junit4.CustomizedJUnit4CoreRunner.run(CustomizedJUnit4CoreRunner.java:45)
at com.microsoft.java.test.runner.junit4.JUnit4Launcher.execute(JUnit4Launcher.java:30)
at com.microsoft.java.test.runner.Launcher.main(Launcher.java:53)

Does this issue occur when all extensions are disabled?: Yes/No

With all extensions disabled, Java won't work, will it?

Second argument is replaced upon completing the first argument in a method call

Moved from microsoft/vscode#41971

  • VSCode Version: Latest Insiders
  • OS Version: Mac OS

Steps to Reproduce:

  1. Insert cursor before the first argument (that accesses some property) to the method.
  2. Start typing new argument that also accesses property.
  3. On suggestion appearance, press Tab to enter suggestion value
    It replaces the old first argument instance with the property from the new argument.

vscode

Sample code:

public class Test {
    public int testInt;

    public boolean method(int x, int y, int z) {
        return true;
    }
}

public class Main {
    public static void main(String[] args) {
        Test t = new Test();
        t.method(t.testInt, t.testInt);
    }
}

Welcome page for Java developers

We need a welcome page that shows on startup to help Java developers to get started:

  • Scaffold projects:
    • Spring Boot Initializer
    • Azure Functions
    • Maven Archetypes
  • Tutorials
    • How to build, test and debug Java Applications?
    • ...
  • Samples
    • Spring Boot PetClinic
    • Todo app on Azure
    • Java Steel Thread
  • Documentation
    • code.vs.com/java
    • docs.ms.com/java

Classpath is incomplete. Only syntax errors will be reported

Vs Code pops up the error when viewing java files. It links user to a site stating what the warning means and how to disable it.

Nowhere does it actually specify how to properly fix the issue. Anyone new to Java development, especially those just starting out will not know how to fix it. Rather than only telling them what the warning means and how to disable it, it should link them to a site that shows how to properly fix the issue, in addition to what it currently tells them.

Add a decompiler to the pack

Hey!

I'd like to propose adding the Java Decompiler extension to this pack.

I've been using the pack on a few projects at my day job. Due to our custom build system our dependencies are mostly prepackaged in Jars. The go to definition command makes a reasonable effort to decompile our dependencies out of the box but it isn't able to bring up the implementation details.

The Java decompiler extension works out of the box with the Red Hat extension and is able to decompile the classes and provide implementation details. πŸ‘

Java Test Explorer

Test Explorer UI is a handy way to explore, run and visualize your tests directly from the test explorer.

I'm wishing for a Test Adapter for Junit et al. I'm really missing a red/green bar...

Show Overview page in background after the first time

Showing overview page every time a Java project is opened could block users' workflow. Here to track the effort of only showing the page in the foreground the first time. And later, the page should be shown in the background when the page is not requested by users.

Create new package?

I'm trying to create a new package in my java project in VS Code. I have the extension installed as I get proper java editing in existing files, but when I add a new folder to the src tree or test tree and create a java file, I get a compiler error on the "package" statement telling me that "" is expected as the package and to remove the whole "package com.xxxxxxx;" line.

What am I missing?

Thank you,
Chuck

Support for overriding properties in Spring Boot apps

It would be great if the ability to override values for properties was made available when running/debugging Spring Boot applications.

This would allow a file like application.properties - which might contain variables instead of real values for use with something like Octopus Deploy - to be left as they are, but values for running locally to be specified in the debug config, in a similar manner to the "override properties" feature for Spring Boot apps in Spring Tool Suite:

image

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request workspace/executeClientCommand failed with message: command 'java.classpath.refresh' not found

Issue Type: Bug

java.util.concurrent.CompletionException: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request workspace/executeClientCommand failed with message: command 'java.classpath.refresh' not found
at java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:375)
at java.util.concurrent.CompletableFuture.join(CompletableFuture.java:1934)
at org.eclipse.jdt.ls.core.internal.JavaClientConnection.executeClientCommand(JavaClientConnection.java:81)
at com.microsoft.java.test.plugin.internal.JavaModelEventProvider.elementChanged(JavaModelEventProvider.java:55)
at org.eclipse.jdt.internal.core.DeltaProcessor$3.run(DeltaProcessor.java:1735)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.jdt.internal.core.DeltaProcessor.notifyListeners(DeltaProcessor.java:1723)
at org.eclipse.jdt.internal.core.DeltaProcessor.fireReconcileDelta(DeltaProcessor.java:1574)
at org.eclipse.jdt.internal.core.DeltaProcessor.fire(DeltaProcessor.java:1533)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:774)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:799)
at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1319)
at org.eclipse.jdt.internal.core.CompilationUnit.reconcile(CompilationUnit.java:1278)
at org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler.performValidation(DocumentLifeCycleHandler.java:134)
at org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler.access$0(DocumentLifeCycleHandler.java:120)
at org.eclipse.jdt.ls.core.internal.handlers.DocumentLifeCycleHandler$1.runInWorkspace(DocumentLifeCycleHandler.java:88)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:39)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:60)
Caused by: org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request workspace/executeClientCommand failed with message: command 'java.classpath.refresh' not found
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:205)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:189)
at org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$0(ParentProcessWatcher.java:83)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:188)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:90)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:95)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Extension version: 0.3.0
VS Code version: Code - Insiders 1.26.0-insider (bd953248ad6a8e2f8896bfb78b3ae40e0fd47426, 2018-07-06T05:17:37.386Z)
OS version: Windows_NT x64 10.0.16299

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz (4 x 2904)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
video_decode: enabled
video_encode: enabled
vpx_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.89GB (5.35GB free)
Process Argv C:\Program Files\Microsoft VS Code Insiders\Code - Insiders.exe
Screen Reader no
VM 0%

Use `extensionPack` instead of `extensionDependencies` property for defining pack

From release v1.26, defining an Extension Pack now uses a new property called extensionPack instead of extensionDependencies in package.json. This is because extensionDependencies is mainly used to define functional dependencies and an Extension Pack should not have any functional dependencies with its bundled extensions and they should be manageable independent of the pack.

So please use extensionPack property for defining the pack.

For more details refer to Release notes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.