Skip to content

VSCode writes to C:/dev/null #1761

Closed
Closed

Description

@AQS-DTheuke

Describe the bug

I noticed a new folder in explorer C:/dev/null

To Reproduce

Tested on Windows 11

  • Open A Spring Boot Java Project (Maven)
  • Jump into any java test file/cause an error to be logged in the extension
  • The error gets visible in the vscode-spring-boot-debug-log output window
  • C:/dev/null is written and rotated e.g. null.2026-01-09.0.gz

Sample

Currently in a hurry, I'll add a reproduction link, when I have some time.
Please let me know, if you can reproduce it without one.

Activity

  1. martinlippert commented on Jan 16, 2026

    @martinlippert
    Member

    Which version are you using?
    And more information about what exactly appears in the debug-log output window would be great.

  2. added
    for: vscode
    on Jan 16, 2026
  3. AQS-DTheuke commented on Jan 16, 2026

    @AQS-DTheuke
    Author

    vmware.vscode-spring-boot 2.1.2026011500

    It only keeps 5 days of logs (gz), so I don't know when the error first appeared. The earliest retained log was from the 2026-01-07, but I'm not sure whether it was the same cause/plugin since I only checked the latest one.

    Extension Output Window:

    Activating 'vscode-spring-boot' extension
    "spring-boot.ls.java.home" setting not specified or empty value
    Found java executable: ~\.vscode\extensions\redhat.java-1.51.0-win32-x64\jre\21.0.9-win32-x86_64\bin\java.exe
    isJavaEightOrHigher => true
    Redirecting server logs to /dev/null
    15:18:09.585 ERROR [pool-3-thread-5] o.s.i.v.b.j.c.JdtCodeActionHandler       : 
    java.lang.NullPointerException: Cannot invoke "org.eclipse.jdt.core.dom.ASTVisitor.visit(org.eclipse.jdt.core.dom.QualifiedName)" because "astVisitor" is null
    	at org.springframework.ide.vscode.boot.java.reconcilers.CompositeASTVisitor.visit(CompositeASTVisitor.java:176)
    	at org.springframework.ide.vscode.boot.java.reconcilers.CompositeASTVisitor.visit(CompositeASTVisitor.java:176)
    	at org.eclipse.jdt.core.dom.QualifiedName.accept0(QualifiedName.java:159)
    	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
    	at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:3360)
    	at org.eclipse.jdt.core.dom.PackageDeclaration.accept0(PackageDeclaration.java:214)
    	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
    	at org.eclipse.jdt.core.dom.ASTNode.acceptChild(ASTNode.java:3360)
    	at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:255)
    	at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:3312)
    	at org.springframework.ide.vscode.boot.java.codeaction.JdtCodeActionHandler.lambda$handle$1(JdtCodeActionHandler.java:105)
    	at org.springframework.ide.vscode.boot.java.utils.CompilationUnitCache.withCompilationUnit(CompilationUnitCache.java:239)
    	at org.springframework.ide.vscode.boot.java.codeaction.JdtCodeActionHandler.handle(JdtCodeActionHandler.java:92)
    	at org.springframework.ide.vscode.boot.java.handlers.BootJavaCodeActionProvider.lambda$handle$0(BootJavaCodeActionProvider.java:52)
    	at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
    	at java.base/java.util.Iterator.forEachRemaining(Unknown Source)
    	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Unknown Source)
    	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
    	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
    	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
    	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
    	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
    	at org.springframework.ide.vscode.boot.java.handlers.BootJavaCodeActionProvider.handle(BootJavaCodeActionProvider.java:57)
    	at org.springframework.ide.vscode.commons.languageserver.composable.CompositeLanguageServerComponents$3.lambda$handle$2(CompositeLanguageServerComponents.java:147)
    	at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source)
    	at java.base/java.util.stream.ReferencePipeline$2$1.accept(Unknown Source)
    	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
    	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
    	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
    	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
    	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
    	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
    	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
    	at org.springframework.ide.vscode.commons.languageserver.composable.CompositeLanguageServerComponents$3.handle(CompositeLanguageServerComponents.java:148)
    	at org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService.computeCodeActions(SimpleTextDocumentService.java:539)
    	at org.springframework.ide.vscode.commons.languageserver.util.SimpleTextDocumentService.lambda$codeAction$17(SimpleTextDocumentService.java:585)
    	at java.base/java.util.concurrent.CompletableFuture$UniApply.tryFire(Unknown Source)
    	at java.base/java.util.concurrent.CompletableFuture$Completion.run(Unknown Source)
    	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    	at java.base/java.lang.Thread.run(Unknown Source)
    15:18:09.585 ERROR [pool-3-thread-2] o.s.i.v.b.j.c.JdtCodeActionHandler       : ...
    

    Only the errors/stacktraces are written to disk.

  4. BoykoAlex commented on Jan 16, 2026

    @BoykoAlex
    Contributor

    Looks like this is a bug indeed... some left over code in commons-vscode package from the old logging infra. Thank you for reporting this.
    This should be in the pre-release version of the extension.

  5. self-assigned this
    on Jan 16, 2026
  6. BoykoAlex commented on Jan 16, 2026

    @BoykoAlex
    Contributor

    Should be fixed via 21554d3

  7. added this to the 5.1.0.RELEASE milestone on Jan 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

for: vscodetype: bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions