Skip to content

VSCode extension crashes the extension host at extension activation #1182

@schl3ck

Description

@schl3ck

When the extension is activated the extension host immediately crashes. It doesn't matter what .js file I've open.

The only clue I found was in the developer tools of VSCode. All other output views did not provide any useful information. In the console of the developer tools it logged:

D:/a/quick-lint-js/quick-lint-js/src/quick-lint-js/io/file-canonical.cpp:676: internal check failed in resolve_symlink: false
quick-lint-js crashed. Please report this bug here:
https://quick-lint-js.com/crash-report/

Please let me know if there is any other information I can provide.

Activity

strager

strager commented on Jan 12, 2024

@strager
Collaborator

Thanks for the bug report. I'll try to reproduce the issue this weekend.

self-assigned this
on Jan 12, 2024
strager

strager commented on Jan 15, 2024

@strager
Collaborator

I can reproduce the issue if I create a directory junction and open a file through that junction. For example:

mklink /j p:\quick-lint-js-sandbox p:\quick-lint-js\sandbox
code p:\quick-lint-js-sandbox\hello.js

I could not reproduce this issue when using subst or a network drive.

@schl3ck Are you using a junction/symlink?

schl3ck

schl3ck commented on Jan 18, 2024

@schl3ck
Author

Yes, I'm editing the files through a junction.

added this to the 3.2 milestone on Jan 21, 2024
strager

strager commented on Feb 17, 2024

@strager
Collaborator

Fixed in Git commit 748b775. This fix will be included in quick-lint-js version 3.2.

strager

strager commented on Mar 4, 2024

@strager
Collaborator

Fix released in version 3.2.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

false positiveSevere bug: quick-lint-js rejects valid code

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @strager@schl3ck

      Issue actions

        VSCode extension crashes the extension host at extension activation · Issue #1182 · quick-lint/quick-lint-js