Closed ian0113 closed 2 years ago
I solve the files not found in my project, but the vscode still returns internal error
@Ian0113 Can you provide a simple reproducible example?
Hi, @dhuebner
I solved the StackOverflowError
a few days ago, the problem is a broken symbolic link influences the language server, so I clean the broken symbolic link to solve the StackOverflowError
.
To reproduce Sorry, I can't reproduce the problem, because the docker container has been removed and I don't know how to make a broken symbolic link.
If there is a way to make a broken symbolic link, please tell me, and I will reproduce the problem, thanks.
Thanks, Ian
@Ian0113 Thanks for your feedback. Should we close this issue then?
Hi, @dhuebner
I close this issue.
Thanks, Ian
When I open the vscode and attach into the docker container.
Step to reproduce
open vscode
attach to the docker container
install JRE
install LSP in the container
Error log
``` root@a79a363c4066:/# cat /root/.vscode-server/data/logs/20220519T143922/exthost12/output_logging_20220519T154224/2-Yan g\ Language\ Server.log WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/root/.vscode-server/extensions/typefox.yang-vscode-2.1.0/server/lib/guice-3.0.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release [Error - 3:42:28 PM] Error during request: : org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: java.io.FileNotFoundException: /root/yuma123/netconf/test/netconfd/ietf-netmod-sub-intf-vlan-model/ietf-interfaces-ethernet-like@2017-07-03.yang (No such file or directory) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.handleDemandLoadException(ResourceSetImpl.java:319) at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSetImpl.java:278) at org.eclipse.xtext.resource.XtextResourceSet.getResource(XtextResourceSet.java:266) at org.eclipse.xtext.build.ClusteringStorageAwareResourceLoader.executeClustered(ClusteringStorageAwareResourceLoader.java:67) at org.eclipse.xtext.build.BuildContext.executeClustered(BuildContext.java:55) at org.eclipse.xtext.build.Indexer.getDeltasForChangedResources(Indexer.java:241) at org.eclipse.xtext.build.Indexer.computeAndIndexAffected(Indexer.java:191) at org.eclipse.xtext.build.IncrementalBuilder$InternalStatefulIncrementalBuilder.launch(IncrementalBuilder.java:245) at org.eclipse.xtext.build.IncrementalBuilder.build(IncrementalBuilder.java:404) at org.eclipse.xtext.build.IncrementalBuilder.build(IncrementalBuilder.java:386) at org.eclipse.xtext.ide.server.ProjectManager.doBuild(ProjectManager.java:106) at org.eclipse.xtext.ide.server.ProjectManager.doInitialBuild(ProjectManager.java:97) at org.eclipse.xtext.ide.server.BuildManager.doInitialBuild(BuildManager.java:164) at org.eclipse.xtext.ide.server.WorkspaceManager.refreshWorkspaceConfig(WorkspaceManager.java:233) at org.eclipse.xtext.ide.server.WorkspaceManager.initialize(WorkspaceManager.java:170) at org.eclipse.xtext.ide.server.LanguageServerImpl.lambda$initialize$0(LanguageServerImpl.java:224) at org.eclipse.xtext.ide.server.concurrent.WriteRequest.run(WriteRequest.java:50) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.io.FileNotFoundException: /root/yuma123/netconf/test/netconfd/ietf-netmod-sub-intf-vlan-model/ietf-interfaces-ethernet-like@2017-07-03.yang (No such file or directory) at java.base/java.io.FileInputStream.open0(Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:219) at java.base/java.io.FileInputStream.