Skip to content

A Language Server Protocol for Improving Developer Experience #467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
digital-quantum opened this issue Jan 29, 2025 · 1 comment
Open
Labels
new feature New feature or request

Comments

@digital-quantum
Copy link

The developer experience is already pretty wonderful, it's nice and simple to work with, the standard flow of development is great and the end result is also amazing.

Solution you'd like

That said I think it would be good to improve the developer experience with an LSP developers can install and implement in their text editor. The kind of features I would like to see from this:

  • autocompletion of global and library components
  • autocompletion of NueJS specific attributes and their respective values such as :if
  • error notifications currently the following code with error's returns a not so helpful error message:
  <img :srcog" width="1000" height="800" alt="Hero image for { title }">
Error rendering layout module: "pagehead" 90 |   return val?.constructor === Object || Array.isArray(val) || typeof val == 'function'
91 | }
92 |
93 | // exec('`font-size:${_.size + "px"}`;', data)
94 | export function exec(expr, data = {}) {
95 |   const fn = new Function('_', 'return ' + expr)
                      ^
SyntaxError: Unexpected EOF
      at <parse> (/Users/maclong/.bun/install/global/node_modules/nuejs-core/src/fn.js:95:18)

{
  component: "pagehead",
}

it tells you where the error is but not what the actual error is, not so useful.

Alternatives you've considered

Using the HTML lsp, this works fine for basic html related things but the more nuanced NueJS specific items not so much.

Additional context

Great framework, it's a joy to use so far. Looking forward to seeing more improvements in the future.

@vincent-thomas
Copy link

I can contribute creating the LSP if help is wanted by the creators. I have years of experience with rust if thats something of interest.

I'm new to this framework though, but i think i can be of value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants