Skip to content
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

Can't find declaration for part in javascript workspace #1730

Open
rickmcgeer opened this issue Mar 2, 2025 · 3 comments
Open

Can't find declaration for part in javascript workspace #1730

rickmcgeer opened this issue Mar 2, 2025 · 3 comments
Labels
🐞 bug Something isn't working

Comments

@rickmcgeer
Copy link
Collaborator

Describe the bug
The usual way I develop/debug is to use part(GalyleoDashboardStudio).openInWorld() from js workspace. And then of course I have to "fix undeclared variables" to get the imports in. However, since I upgraded, I'm not seeing the import choices for part or GalyleoDashboardStudio in the popup dialog; I just see the ignore and global choices. I can still instantiate these from a browser with the imports done, and presumably if I import by hand into the js workspace that will be fine, too. But the automated search feature was really nice

To Reproduce
Steps to reproduce the behavior. Please make sure to let us know if your problem requires the loading of custom components,...

Screenshots
Here's the popup when searching for part

Setup
Please delete non-applicable items!

Image

  • Windows
  • Linux

Version: Please paste the lively.next commit on which the problem occurred here (use the copy button of the Version Checker in the bottom left corner).
6da99ba

@rickmcgeer rickmcgeer added the 🐞 bug Something isn't working label Mar 2, 2025
@rickmcgeer
Copy link
Collaborator Author

Perhaps unsurprisingly, when I right click on "Jump to definition of 'part'" I get a not-found error.

@rickmcgeer
Copy link
Collaborator Author

And when I try a manual import, I get the wrong part, even though I copied from a module from which the instantiation worked.

Here's the copied code:

import { component, ViewModel, part } from 'lively.morphic/components/core.js';
import { GalyleoDashboardStudio } from 'galyleo-dashboard/studio/ui.cp.js';
part(GalyleoDashboardStudio).openInWorld()

Here's the error:

Image

@merryman
Copy link
Member

merryman commented Mar 3, 2025

Appears to be an issue with the fast load of the lively world. However I cant seem to reproduce it. Do you have local changes in the core libraries of lively.next? Have you run install.sh after pulling the changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants