Giter Club home page Giter Club logo

Comments (8)

liwangqian avatar liwangqian commented on June 24, 2024 1

@macjabeth try ver 1.2.7 please, review at a74f192

from luacoderassist.

liwangqian avatar liwangqian commented on June 24, 2024

@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.

liwangqian avatar liwangqian commented on June 24, 2024

@macjabeth try Ver 1.2.5 please.

from luacoderassist.

macjabeth avatar macjabeth commented on June 24, 2024

@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.

macjabeth avatar macjabeth commented on June 24, 2024

@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:
image

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!
image

from luacoderassist.

liwangqian avatar liwangqian commented on June 24, 2024

@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.

macjabeth avatar macjabeth commented on June 24, 2024

@liwangqian One problem does show up:

image

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.

liwangqian avatar liwangqian commented on June 24, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.