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

Rune linting not supported in *.svelte.js files in Ubuntu #890

Closed
2 tasks done
ahkelly opened this issue Oct 28, 2024 · 3 comments
Closed
2 tasks done

Rune linting not supported in *.svelte.js files in Ubuntu #890

ahkelly opened this issue Oct 28, 2024 · 3 comments
Labels
needs repro Need a repository that can reproduce the problem

Comments

@ahkelly
Copy link

ahkelly commented Oct 28, 2024

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

9.13.0

What version of eslint-plugin-svelte are you using?

2.46.0

What did you do?

Configuration

WSL/Ubuntu 22
VS code latest (running in wsl)
Node 22

Default npx sv create install selecting JSDoc typing

@playwright/[email protected]
@sveltejs/[email protected]
@sveltejs/[email protected]
@sveltejs/[email protected]
@types/[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

</details>

```svelte
export let order_credits_amount = $state(0);

What did you expect to happen?

The linter to support the new runes $state(), $derived(), etc

What actually happened?

A red line and undefined is reported when a rune is used. This issue with exact same configuration on my mac does not have an issue - it appears to be a Linux issue (I have confirmed on 2 different workstations running Ubuntu in wsl).

image

Link to GitHub Repo with Minimal Reproducible Example

Not applicable as this is an IDE related issue.

Additional comments

No response

@ota-meshi ota-meshi added the needs repro Need a repository that can reproduce the problem label Oct 28, 2024
@ahkelly
Copy link
Author

ahkelly commented Oct 29, 2024

I gave the repro steps

  1. npx sv create in WSL / Ubuntu 22
  2. open vs code in WSL and create a shared.svelte.js file and create a $state() rune

This cannot be reproduced in the playground / repl as it is tied to a specific os

@ota-meshi
Copy link
Member

I don't have Ubuntu. If we don't have a way to reproduce it, there's nothing we can do.
Please investigate the cause yourself.

@ota-meshi ota-meshi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 29, 2024
@ahkelly
Copy link
Author

ahkelly commented Oct 29, 2024

May want to mark this plugin as

  1. Not ready for svelte 5 (shortcuts are still svelte 4 only)
  2. MacOS only supported

The note is #587 was the solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs repro Need a repository that can reproduce the problem
Projects
None yet
Development

No branches or pull requests

2 participants