sourcery-ai / sourcery

Instant AI code reviews
https://sourcery.ai
MIT License
1.51k stars 65 forks source link

when clicking "Sourcery" in the status line, a NOENT error is thrown, cannot find file #297

Closed gargolito closed 1 year ago

gargolito commented 1 year ago

Checklist

Description

When you click on "Sourcery" in the status bar, I get the message: A system error occurred (ENOENT: no such file or directory, open '/home/{USER}/.vscode/extensions/sourcery.sourcery-0.12.12/assets/hubContainer.html')

The .../assets sub-directory doesn't exist in my systems.

Note: I removed and reinstalled the extension to try and resolve the issue.

Code snippet that reproduces issue

N/A

Debug Information

IDE Version:

VS Code 1.72.2

Sourcery Version:

Sourcery 0.12.12

Operating system and Version:

Kubuntu Linux 22.04 and Pop!OS 2.04

ruancomelli commented 1 year ago

Hi, @gargolito, thanks for reporting this issue! I can reproduce this locally using the exact same VS Code and Sourcery versions as you.

@bm424 do you know what might be causing this?

gargolito commented 1 year ago

The file path does exist in the sourcery-vscode repo. I probably should move the issue there. https://github.com/sourcery-ai/sourcery-vscode/tree/main/assets

gargolito commented 1 year ago

The vsix file does not contain the directory assets but the archive of the source code does. Clearly something is going askew with the extension build.

russhughes commented 1 year ago

I'm seeing the same issue.

ruancomelli commented 1 year ago

Hello, @gargolito and @russhughes!

I just learned that a fix for this issue had already been merged a couple of days ago, and will go live in the next Sourcery release (probably next week).

I will close this issue here in favor of https://github.com/sourcery-ai/sourcery-vscode/issues/103.

Thank you for reporting this bug!