Unable to start language service with Node 10 due to "DEP0005: Buffer() constructor" deprecation
See original GitHub issueJust opening the IDE.
Stacktrace:
Unable to start JS GraphQL Language Service using Node.js with commandline /usr/local/bin/node [/Users/blackxored/Library/Application Support/IntelliJIdea2018.1/js-graphql-intellij-plugin/js-graphql-language-service.dist.js, --port=64744]
java.lang.Throwable: Unable to start JS GraphQL Language Service using Node.js with commandline /usr/local/bin/node [/Users/blackxored/Library/Application Support/IntelliJIdea2018.1/js-graphql-intellij-plugin/js-graphql-language-service.dist.js, --port=64744]
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:123)
at com.intellij.lang.jsgraphql.languageservice.JSGraphQLNodeLanguageServiceInstance.createProcessHandler(JSGraphQLNodeLanguageServiceInstance.java:143)
at com.intellij.lang.jsgraphql.languageservice.JSGraphQLNodeLanguageServiceInstance.<init>(JSGraphQLNodeLanguageServiceInstance.java:83)
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
at com.intellij.lang.jsgraphql.languageservice.JSGraphQLNodeLanguageServiceClient.getJSGraphQLNodeLanguageServiceInstance(JSGraphQLNodeLanguageServiceClient.java:118)
at com.intellij.lang.jsgraphql.languageservice.JSGraphQLNodeLanguageServiceClient.executeRequest(JSGraphQLNodeLanguageServiceClient.java:71)
at com.intellij.lang.jsgraphql.languageservice.JSGraphQLNodeLanguageServiceClient.executeRequest(JSGraphQLNodeLanguageServiceClient.java:66)
at com.intellij.lang.jsgraphql.languageservice.JSGraphQLNodeLanguageServiceClient.getSchemaWithVersion(JSGraphQLNodeLanguageServiceClient.java:62)
at com.intellij.lang.jsgraphql.schema.ide.project.JSGraphQLSchemaLanguageProjectService.getOrCreateSchemaFileElements(JSGraphQLSchemaLanguageProjectService.java:626)
at com.intellij.lang.jsgraphql.schema.ide.project.JSGraphQLSchemaLanguageProjectService.getSchemaFile(JSGraphQLSchemaLanguageProjectService.java:115)
at com.intellij.lang.jsgraphql.schema.ide.project.JSGraphQLSchemaDirectoryNode.getChildren(JSGraphQLSchemaDirectoryNode.java:53)
at com.intellij.ide.util.treeView.AbstractTreeStructureBase.getChildElements(AbstractTreeStructureBase.java:33)
at com.intellij.ui.tree.StructureTreeModel.getValidChildren(StructureTreeModel.java:229)
at com.intellij.ui.tree.StructureTreeModel.getNode(StructureTreeModel.java:139)
at com.intellij.ui.tree.StructureTreeModel.isLeaf(StructureTreeModel.java:175)
at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.load(AsyncTreeModel.java:576)
at com.intellij.ui.tree.AsyncTreeModel$CmdGetChildren.getNode(AsyncTreeModel.java:551)
at com.intellij.ui.tree.AsyncTreeModel$ObsolescentCommand.get(AsyncTreeModel.java:444)
at com.intellij.ui.tree.AsyncTreeModel$ObsolescentCommand.get(AsyncTreeModel.java:410)
at com.intellij.util.concurrency.Command$Processor.lambda$process$1(Command.java:48)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1134)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runInReadActionWithWriteActionPriority$0(ProgressIndicatorUtils.java:84)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.lambda$runWithWriteActionPriority$2(ProgressIndicatorUtils.java:140)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:157)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:580)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:525)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:85)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:144)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runWithWriteActionPriority(ProgressIndicatorUtils.java:138)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:84)
at com.intellij.openapi.progress.util.ProgressIndicatorUtils.runInReadActionWithWriteActionPriority(ProgressIndicatorUtils.java:105)
at com.intellij.util.concurrency.Invoker.invokeSafely(Invoker.java:114)
at com.intellij.util.concurrency.Invoker.lambda$invokeSafely$1(Invoker.java:123)
at com.intellij.util.concurrency.Invoker$BackgroundThread.lambda$offer$0(Invoker.java:248)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:228)
at com.intellij.util.concurrency.BoundedTaskExecutor$2.run(BoundedTaskExecutor.java:212)
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)
node -v
v10.0.0
IntelliJ IDEA 2018.1.3 EAP (Ultimate Edition) Build #IU-181.4892.5, built on April 26, 2018 Licensed to Adrian Perez Subscription is active until December 29, 2018 JRE: 1.8.0_152-release-1136-b34 x86_64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o macOS 10.13.4
Issue Analytics
- State:
- Created 5 years ago
- Comments:14
Top Results From Across the Web
Unable to start language service with Node 10 due to ... - GitHub
Stacktrace: Unable to start JS GraphQL Language Service using ... with Node 10 due to "DEP0005: Buffer() constructor" deprecation #153.
Read more >Buffer() is deprecated due to security and usability issues ...
Getting error when script move to other server. (node:15707) [DEP0005] DeprecationWarning: Buffer ...
Read more >Porting to the Buffer.from() / Buffer.alloc() API - Node.js
This guide explains how to migrate to safe Buffer constructor methods. The migration fixes the following deprecation warning: The Buffer() and new Buffer()...
Read more >vs_installer -? produces final error message: (node:38916 ...
vs_installer -? produces final error message: (node:38916) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues.
Read more >DeprecationWarning: Buffer() is deprecated due to security ...
Getting error when script move to other server. (node:15707) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed in 1.7.1, pending JetBrains approval in the plugin repo.
@ValCanBuild I just pushed a 0.2.0 version with this fix based on Android Studio 3.1.1. Get it from https://github.com/jimkyndemeyer/js-graphql-intellij-plugin/tree/android-studio#faq