Comments (8)
@macjabeth try ver 1.2.7 please, review at a74f192
from luacoderassist.
@macjabeth Did you open the file directly instead of open the folder containing the file ? In this case, the extension cannot initialized correctly, as your log shows:
[Info - 7:33:33 PM] extension initialize status: false
I known this problem, but i did not fix it, a little lazzy :)
from luacoderassist.
@macjabeth try Ver 1.2.5 please.
from luacoderassist.
@liwangqian Yes, I opened it directly instead of opening the folder containing the file. Sorry for the late reply, I fell asleep :)
And ok, I'm waiting for the update to come through in VSCode. Will let you know how it goes!
from luacoderassist.
@liwangqian I'm not getting the first error message anymore, but it seems like the ones showing up in the second image I posted still are.
This is after hovering over any of the variables there:
Also, the intellisense wasn't working on this file for some reason. Maybe because it was too large? I'm not sure - any insight would be appreciated!
from luacoderassist.
@macjabeth From the description you give, I guess there is something failed while parsing the file, so document symbols did not generate, and so hover/intellisense did not work.
I need more information to figure out the problem. I guess is there any syntax error in your file? This can be check from the PROBLEMS panel.
from luacoderassist.
@liwangqian One problem does show up:
When I change the file size limit in the settings, the error goes away and a new one presents itself in the OUTPUT panel:
[Info - 2:59:25 PM] coder inited
[Info - 2:59:25 PM] extension initialize status: true
(node:27103) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 3): TypeError: Cannot read property 'split' of undefined
(node:27103) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Error - 2:59:28 PM] Request textDocument/hover failed.
Message: Request textDocument/hover failed with message: Cannot read property 'concat' of undefined
Code: -32603
However, when I look at the PROBLEMS panel, it says no problems have been detected.
That being said, I decided to do a little debugging and try and pinpoint the error in the script. It turns out that the error is only showing up when I take the .lua
extension off the file name and manually set the language of the file to lua.
For example:
filename
- manually set file language to lua: error shows up when hovering over any variables
filename.lua
- error does not show up and hovering works as expected
from luacoderassist.
@macjabeth Thanks for your help to figure out this problem, I will fix it next day, have to go sleep.
from luacoderassist.
Related Issues (20)
- 好期望能够早日开发出类似EmmyLua的注释标签推断类型的功能呀 HOT 1
- Crash when luacheck is not available HOT 1
- 代码提示失效 HOT 1
- LuaCoderAssist Crash HOT 1
- Extension can't find .luacheckrc in WSL HOT 3
- Crashes after VSCode update HOT 3
- [Feature Request] Ship UNIX luacheck binaries in addition to Windows ones HOT 1
- Luacheck: Automatic Option should be off by default HOT 1
- throw er; // Unhandled 'error' event HOT 1
- 请问后续会不会添加全局变量高亮之类的功能呢?
- ENABLE => Crash by "throw er; // Unhandled 'error' event" ( with VSC 1.57.1 on Windows, LuaCoderAssist v2.3.9 )
- The LuaCoderAssist server crashed 5 times in the last 3 minutes. The server will not be restarted. HOT 2
- Need help : Luacheck doesn't work HOT 3
- Latest LuaCoderAssistCrash HOT 3
- 2.3.9版的luacheck的错误代码忽略功能失效了 HOT 1
- macos 安装插件后,立即报错 HOT 4
- Wrong luacheck cwd is used with --config HOT 1
- Cannot find module 'supports-color' HOT 1
- 格式化代码问题 HOT 1
- Typing 'setmetatable' function gives error at console HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from luacoderassist.