Skip to content

Encountered an unexpected error #327

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

Open
1 of 2 tasks
Marvosg opened this issue Apr 10, 2025 · 3 comments
Open
1 of 2 tasks

Encountered an unexpected error #327

Marvosg opened this issue Apr 10, 2025 · 3 comments
Labels
bug Something isn't working

Comments

@Marvosg
Copy link

Marvosg commented Apr 10, 2025

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

Describe the bug

Got a message popup to check my output because the tools crashed. This was in the output:

Encountered an unexpected error

This is a bug in Postgres Tools, not an error in your code, and we would appreciate it if you could report it along with the following information to help us fixing the issue:

Source Location: crates\pgt_workspace\src\workspace\server\change.rs:130:14
Thread Name: tokio-runtime-worker
Message: called `Result::unwrap_err()` on an `Ok` value: 1

(There could also be a link to the issues page of this project. I was unsure where to post the report)

To Reproduce

I was uncommenting some selected SQL with the VSCode Toggle Block Comment (editor.action.blockComment) action.

Expected behavior

No crash.

System information

  • OS: Windows

Additional context

server.log.2025-04-10-10.log

@Marvosg Marvosg added the bug Something isn't working label Apr 10, 2025
@psteinroe
Copy link
Collaborator

I tried to repro using the provided logs but it did not crash for me. We fixed a few things in this area recently - maybe it's already fixed on main. We will release a new version in the next few days. Will ping you to retry this then :)

@psteinroe
Copy link
Collaborator

0.4.0 is out :)

@Donnerstagnacht
Copy link

With 0.5.0, vs-code and windos11 I receive a similiar error (quiet frequently) @psteinroe :

2025-04-22 11:03:03.514 [info] Encountered an unexpected error

This is a bug in Postgres Tools, not an error in your code, and we would appreciate it if you could report it along with the following information to help us fixing the issue:

Source Location: crates\pgt_lexer\src\lib.rs:181:9
Thread Name: tokio-runtime-worker
Message: No token found at position 315: 'Some("\r")'

Position is always different:

Message: No token found at position 311: 'Some("\r")'
Message: No token found at position 317: 'Some("\r")'
...

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

3 participants