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

🐛 no entry found for key (crates/biome_js_semantic/src/semantic_model/scope.rs) #2683

Closed
1 task done
Amnesthesia opened this issue May 2, 2024 · 2 comments · Fixed by #2664 or #2722
Closed
1 task done
Assignees

Comments

@Amnesthesia
Copy link

Environment information

CLI:
  Version:                      1.7.2
  Color support:                true

Platform:
  CPU Architecture:             aarch64
  OS:                           macos

Environment:
  BIOME_LOG_DIR:                unset
  NO_COLOR:                     unset
  TERM:                         "xterm-256color"
  JS_RUNTIME_VERSION:           "v20.6.0"
  JS_RUNTIME_NAME:              "node"
  NODE_PACKAGE_MANAGER:         "yarn/3.5.0"

Biome Configuration:
  Status:                       Loaded successfully
  Formatter disabled:           false
  Linter disabled:              false
  Organize imports disabled:    true
  VCS disabled:                 true

Linter:
  Recommended:                  true
  All:                          false
  Rules:                        a11y/useAnchorContent = "off"
                                a11y/useKeyWithClickEvents = "off"
                                a11y/useKeyWithMouseEvents = "off"
                                a11y/useMediaCaption = "off"
                                a11y/useValidAnchor = "off"
                                complexity/noForEach = "off"
                                complexity/useFlatMap = "warn"
                                complexity/useSimplifiedLogicExpression = "off"
                                performance/noAccumulatingSpread = "warn"
                                style/noUnusedTemplateLiteral = "warn"
                                style/noUselessElse = "warn"
                                suspicious/noExplicitAny = "warn"
                                suspicious/noThenProperty = "off"

Workspace:
  Open Documents:               0

What happened?

Biome encountered an unexpected error

This is a bug in Biome, not an error in your code, and we would appreciate it if you could report it to https://github.com/biomejs/biome/issues/ along with the following information to help us fixing the issue:

Source Location: crates/biome_js_semantic/src/semantic_model/scope.rs:115:33
Thread Name: biome::worker_5
Message: no entry found for key

src/client/hooks/useMutationCallback.ts internalError/panic INTERNAL ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

✖ processing panicked: no entry found for key

⚠ This diagnostic was derived from an internal Biome error. Potential bug, please report it if necessary.

Expected result

It shouldn't crash

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@Conaclos
Copy link
Member

Conaclos commented May 2, 2024

This is a duplicate of #2680 and #2659.

The issue is fixed. We need to release a new patch version.

I am keeping the issue open to avoid further duplicates.

@Conaclos Conaclos changed the title 🐛 Message: no entry found for key (crates/biome_js_semantic/src/semantic_model/scope.rs) 🐛 no entry found for key (crates/biome_js_semantic/src/semantic_model/scope.rs) May 2, 2024
@Sec-ant Sec-ant linked a pull request May 2, 2024 that will close this issue
@Conaclos
Copy link
Member

Conaclos commented May 2, 2024

Temporary workaround: disabling the rule noRedeclare.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants