Code Monkey home page Code Monkey logo

Comments (4)

inclyc avatar inclyc commented on June 14, 2024

I don't think it's doing anything. I'm pretty new to lsp and elgot, I have no idea how to debug this case.

Did eglot show you nixd logs? Typically we have logging outputs in stderr.

for example, it completes builtins.fromTOML but obviously missing builtins.fromJSON somehow, maybe this is a separate
issue.

Looks like you are writting a module, and builtins is the attribute definition inside { }, (do you want to define an option named builtin?). Basically LSP cannot decide that builtin is the same as top-level builtin, the former is an attribute and the latter is a top-level variable. Maybe this is confusing for our new users, but I'm suspicious about whether or not to fix.

from nixd.

inclyc avatar inclyc commented on June 14, 2024

Screenshot_20230611_092422

This completion list here explicitly annotated the items are "fields", can you reproduce this on emacs? Just create a file that only contains builtin, then type . (dot) to see the completion list

from nixd.

inclyc avatar inclyc commented on June 14, 2024

The problem here is "target" field has a mandatory member "args", which may be a trouble for new users who does not write "args": [ ] in the configuration.

from nixd.

inclyc avatar inclyc commented on June 14, 2024

This looks like a good issue for new contributors. Please:

  1. use std::optional on this structure.

std::vector<std::string> args;

  1. rewrite implementation here

return O && O.map("args", R.args) && O.map("installable", R.installable);

  1. fix & add regression & unit tests

  2. (optional, but recommended) update the docs.

from nixd.

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.