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

Uncaught Error: Illegal argument: line must be non-negative #147

Open
phoenisx opened this issue Nov 12, 2024 · 0 comments
Open

Uncaught Error: Illegal argument: line must be non-negative #147

phoenisx opened this issue Nov 12, 2024 · 0 comments

Comments

@phoenisx
Copy link

Desctription

Hi I am getting an uncaught error whenever I open a TS file. In DevTools I see the following error stack trace, maybe it might help

mainThreadExtensionService.ts:78 [samverschueren.linter-xo]Illegal argument: line must be non-negative
$onExtensionRuntimeError @ mainThreadExtensionService.ts:78
mainThreadExtensionService.ts:79 Error: Illegal argument: line must be non-negative
	at ke (file:///usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:7:1186)
	at new io (file:///usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:20809)
	at new ys (file:///usr/share/code/resources/app/out/vs/workbench/api/node/extensionHostProcess.js:108:22363)
	at y (~/.vscode/extensions/samverschueren.linter-xo-3.20.0/dist/client.js:35:65074)
	at l (~/.vscode/extensions/samverschueren.linter-xo-3.20.0/dist/client.js:35:64052)
	at s (~/.vscode/extensions/samverschueren.linter-xo-3.20.0/dist/client.js:35:46652)
	at Object.dR [as map] (~/.vscode/extensions/samverschueren.linter-xo-3.20.0/dist/client.js:35:46738)
	at Object.a [as asDiagnostics] (~/.vscode/extensions/samverschueren.linter-xo-3.20.0/dist/client.js:35:63906)
	at yh.workDiagnosticQueue (~/.vscode/extensions/samverschueren.linter-xo-3.20.0/dist/client.js:41:11624)
	at Immediate.<anonymous> (~/.vscode/extensions/samverschueren.linter-xo-3.20.0/dist/client.js:41:11296)
	at process.processImmediate (node:internal/timers:483:21)

image

I am not sure what exactly the reason is. The following are my details:

  • Ubuntu
  • VSCode v1.95.2

Following is my content from .xo-config.js

module.exports = {
	"extends": [
		"xo-react"
	]
}

I tried changing the above config filename to .xo-config.json but it didn't work either.

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

No branches or pull requests

1 participant