stimulus-lsp icon indicating copy to clipboard operation
stimulus-lsp copied to clipboard

Installation process

Open thibpoullain opened this issue 1 year ago • 7 comments

Hi,

May be it's me, but the installation process in not very clear for me ^^ If I succeed to go through, I could propose an update if needed.

Press Ctrl+Shift+B to compile the client and server --> can't find any action related

And from a general point of vue, for beginer the process could not be obvious.

Thx for your help and for your work 👍

thibpoullain avatar Feb 24 '24 11:02 thibpoullain

Hey @thibpoullain, I'm not sure I follow.

Are you trying to install the extension in your VS Code, or are you trying to build the client/server locally so you can make a contribution?

marcoroth avatar Feb 24 '24 11:02 marcoroth

Ok I misunderstood the installation :P As I got an error "xxx isn't a valid Stimulus controller." but I have this controller in my project, and it works. I thought my installation/configuration failed. So i wonder if my configuration need to be updated to let the exention see my controller :P

Thx ! You're fast ! :P

thibpoullain avatar Feb 24 '24 11:02 thibpoullain

In this case the extension is working fine then 😅

Would you mind sharing that controller so we can make sure that the parser is picking it up correctly?

marcoroth avatar Feb 24 '24 11:02 marcoroth

Yes it is ;) 👍

Yes thx ! I'm in a rails 7.1.3 and ruby 3.3.0

// app/javascript/controllers/dashboard_controller.js

import { Controller } from "@hotwired/stimulus"

export default class extends Controller {
  static targets = ["createForm"]

  toogle_create_discussion_form() {
    this.createFormTarget.classList.toggle('hidden');
  }
}
<div class="container mx-auto p-4 flex flex-wrap" data-controller="dashboard">
--> "dashboard" isn't a valid Stimulus controller. Stimulus LSP(stimulus.controller.invalid)
JS Console 
'connected to the dashboard controller'

thibpoullain avatar Feb 24 '24 12:02 thibpoullain

Hey @thibpoullain, did you have any luck getting it to work or do you need any more help?

marcoroth avatar May 22 '24 17:05 marcoroth