简体   繁体   English

第三方SDK的名称和自动完成功能已消失

[英]Names and autocomplete from a third-party SDK are gone

Previously working SDK environment stops recognize the names and provide autocomplete. 以前可以运行的SDK环境会停止识别名称并提供自动完成功能。 I want to know, what caused the problem and does it connected to SDK maintenance or maybe it goes offline? 我想知道是什么引起了问题,它是否与SDK维护有关,或者可能脱机了?

This is a Decentraland SDK: https://docs.decentraland.org/getting-started/installation-guide/ 这是Decentraland SDK: https//docs.decentraland.org/getting-started/installation-guide/

Already reinstalled CLI, Node.js, Git bash and Visual Code. 已经重新安装了CLI,Node.js,Git bash和Visual Code。

The projects are building from command line as previously fine, but Visual Code stops to recognize SDK is installed and unrecognized specific names, instead marks them as an errors. 该项目是从命令行构建的,但以前没问题,但是Visual Code停止识别已安装SDK和无法识别的特定名称,而是将其标记为错误。 Not a big deal, but I've lost autocomplete and receive warnings. 没什么大不了的,但是我已经失去了自动完成功能并收到警告。

The problem occurred when opening a projects folder which does't contain 'node_modules' sub-folder. 打开不包含“ node_modules”子文件夹的项目文件夹时,发生了问题。 Include that dir on your opened folder or even sub-folder, to prevent above problem. 将该目录包括在打开的文件夹甚至子文件夹中,以防止出现上述问题。

To get node_modules installed in a scene directory: 1. Open the cmd prompt or terminal 2. Use cd to navigate to the scene directory 3. Run:. 要在场景目录中安装node_modules:1.打开cmd提示符或终端2.使用cd导航到场景目录3.运行:。 npm i decentraland-ecs 4. Close and reopen Visual Studio Code npm i decentraland-ecs 4.关闭并重新打开Visual Studio Code

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM