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

Debug output is not verbose enough #375

Closed
bfontaine opened this issue Jul 26, 2023 · 2 comments · Fixed by #381
Closed

Debug output is not verbose enough #375

bfontaine opened this issue Jul 26, 2023 · 2 comments · Fixed by #381
Assignees

Comments

@bfontaine
Copy link

bfontaine commented Jul 26, 2023

Hello,
Running npx @sentry/wizard@latest -i sveltekit (wizard 3.7.1), I get this output:

...
■  Error while setting up the SvelteKit SDK:
│
●  TypeError: 'set' on proxy: trap returned falsish for property 'plugins'

🎉  Successfully set up Sentry for your project 🎉

Running it again with --debug, I get:

...
■  Error while setting up the SvelteKit SDK:
│
●  TypeError: 'set' on proxy: trap returned falsish for property 'plugins'

{
	"integration": {
		"_argv": {
			"_": [],
			"i": "sveltekit",
			"integration": "sveltekit",
			"debug": true,
			"uninstall": false,
			"skip-connect": false,
			"skipConnect": false,
			"quiet": false,
			"s": false,
			"signup": false,
			"disable-telemetry": false,
			"disableTelemetry": false,
			"$0": "../../../.npm/_npx/ddb126e78325956c/node_modules/.bin/sentry-wizard"
		},
		"_isDebug": true
	}
}


🎉  Successfully set up Sentry for your project 🎉

The --debug option didn’t add any output that could help me debug the issue.

(the error itself is tracked in #362 and the bug of the success message that shows even when there’s an error is tracked in #337)

@Lms24
Copy link
Member

Lms24 commented Jul 26, 2023

Hi @bfontaine! You're right, in this case --debug doesn't do a lot. However, for the specific error you're referring to we wouldn't have gotten much more than the TypeError message anyway. magicast's error messages aren't very descriptive in many cases.

I'm currently reworking the vite setup in the SvelteKit wizard and I'll try to add some better debug logging.

@Lms24 Lms24 self-assigned this Jul 27, 2023
@Lms24 Lms24 linked a pull request Jul 27, 2023 that will close this issue
@Lms24
Copy link
Member

Lms24 commented Jul 31, 2023

Closing as #381 was merged and will be released with the next version soon

@Lms24 Lms24 closed this as completed Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants