Code Monkey home page Code Monkey logo

Comments (6)

Bryan-Legend avatar Bryan-Legend commented on June 2, 2024 1

from yarnspinner.

pappleby avatar pappleby commented on June 2, 2024

Do you mind sharing the yarn spinner extension settings you have currently set? I think there might be a bug with the logic to merge info from .cs files and commands with "Language": "csharp" in ysls.json files (lsp code here). One way to see if that's happening is to change the language on a couple commands from csharp to text and check if those commands autosuggest. (I was able to recreate with yarnspinner.CSharpLookup disabled but wasn't able to pin down if it's a combination of that and other settings)

That error text for wait is also pretty strange, do you get the correct info text when BuiltInFunctionsAndCommands.ysls.json is removed?

from yarnspinner.

Bryan-Legend avatar Bryan-Legend commented on June 2, 2024

Do you mind sharing the yarn spinner extension settings you have currently set? I think there might be a bug with the logic to merge info from .cs files and commands with "Language": "csharp" in ysls.json files (lsp code here). One way to see if that's happening is to change the language on a couple commands from csharp to text and check if those commands autosuggest. (I was able to recreate with yarnspinner.CSharpLookup disabled but wasn't able to pin down if it's a combination of that and other settings)

That error text for wait is also pretty strange, do you get the correct info text when BuiltInFunctionsAndCommands.ysls.json is removed?

First, thank you for your help! I really appreciate it.

I've got no extension settings set. I just tried a fresh install of VS code on a new machine (using ninite.com for the installer) with no settings set in VS Code or the extension. I installed the yarn spinner extension v2.2.106, then created a simple Test.yarn file and the wait command was not recognized. Is a yarnproject file required for a .yarn file to get command definitions?

image

I will try playing with the language types but I've not seen any sign that any ysls is being loaded. Could you maybe add a log to the extension log when a ysls file is loaded.

from yarnspinner.

Bryan-Legend avatar Bryan-Legend commented on June 2, 2024

Here's a view of the Yarn Spinner output.
image

from yarnspinner.

pappleby avatar pappleby commented on June 2, 2024

Thanks for the additional info, that narrows things down considerably! One other thing to check, are you opening individual files or are you opening a folder?
I'm able to recreate when I make individual files directly. The error handling / logging could be updated to make this more obvious but most of the language server features depend on a folder/workspace being available (code where it gives up if that's the case).

(comparison screenshot of file vs folder)
image

from yarnspinner.

desplesda avatar desplesda commented on June 2, 2024

This is fixed as a result of 205e32b, 86a3c32, and 611c07a.

Basically:

  • If the workspace had no root folder, a bug caused the language server to not check any action definitions, including built-in Yarn commands like wait.
  • Now, if the workspace has no root folder, we still don't have a way to go looking for your C#-defined actions or your .ysls.json files, so 205e32b now shows a warning to the user and offers a fast way to resolve the issue (by opening a project folder.)

Thanks for the issue and for the discussion, all!

from yarnspinner.

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.