This repository has been archived by the owner on Apr 23, 2024. It is now read-only.
runtime error: invalid memory address or nil pointer dereference #23
Labels
bug
Something isn't working
Describe the bug
A clear and concise description of what the bug is.
запустить nocolor - получить ошибку
To Reproduce
Steps to reproduce the behavior:
A minimal example on which the problem is reproduced will be very useful.
Stack trace: goroutine 30 [running]: runtime/debug.Stack(0xc0054a5370, 0xae1e20, 0x11557a0) /usr/local/go/src/runtime/debug/stack.go:24 +0x9f github.com/VKCOM/noverify/src/linter.(*Worker).ParseContents.func1(0xc02ed1bc00, 0x7d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0xc0054a5a40) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/linter/worker.go:94 +0x76 panic(0xae1e20, 0x11557a0) /usr/local/go/src/runtime/panic.go:965 +0x1b9 github.com/VKCOM/noverify/src/ir.(*Heredoc).Walk(0xc033e0cc40, 0xca4b78, 0xc032669080) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/ir/walk.go:983 +0x8e github.com/VKCOM/noverify/src/ir.(*Assign).Walk(0xc033e12510, 0xca4b78, 0xc032669080) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/ir/walk.go:99 +0xc2 github.com/VKCOM/noverify/src/ir.(*ExpressionStmt).Walk(0xc033e143e0, 0xca4b78, 0xc032669080) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/ir/walk.go:821 +0xb2 github.com/VKCOM/noverify/src/ir.(*Root).Walk(0xc033e0bd70, 0xca4b78, 0xc032669080) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/ir/walk.go:1533 +0xac github.com/VKCOM/noverify/src/linter.(*Worker).analyzeFile(0xc00e4ee0a0, 0xc0326151a0, 0xc033e0bd70, 0xa44, 0xa44, 0xc0326151a0) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/linter/worker.go:295 +0x398 github.com/VKCOM/noverify/src/linter.(*Worker).ParseContents(0xc00e4ee0a0, 0xc02ed1bc00, 0x7d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/linter/worker.go:142 +0x5ce github.com/VKCOM/noverify/src/linter.(*Worker).parseWithCache(0xc00e4ee0a0, 0xc032eb83c0, 0xbc, 0xc02ed1bc00, 0x7d, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/linter/worker.go:160 +0x93 github.com/VKCOM/noverify/src/linter.(*Worker).IndexFile(0xc00e4ee0a0, 0xc02ed1bc00, 0x7d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/linter/worker.go:215 +0x66c github.com/VKCOM/noverify/src/linter.(*Worker).doParseFile(0xc00e4ee0a0, 0xc02ed1bc00, 0x7d, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/linter/worker.go:250 +0x4d5 github.com/VKCOM/noverify/src/linter.(*Linter).analyzeFiles.func3(0xc00cd3af00, 0xc00019a690, 0x0, 0xc00cd3af60, 0xc00cd3afc0, 0xc00fb43380, 0x3) /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/linter/linter.go:104 +0x21e created by github.com/VKCOM/noverify/src/linter.(*Linter).analyzeFiles /Users/petrmakhnev/go/pkg/mod/github.com/!v!k!c!o!m/[email protected]/src/linter/linter.go:94 +0x25f 2023/04/24 06:07:33 Failed parsing /var/www/crm/vendor/symplify/easy-coding-standard/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/HeredocStringTest.inc: Panic while parsing /var/www/crm/vendor/symplify/easy-coding-standard/vendor/squizlabs/php_codesniffer/tests/Core/Tokenizer/HeredocStringTest.inc: runtime error: invalid memory address or nil pointer dereference
Expected behavior
A clear and concise description of what you expected to happen.
OS (Linux, Windows, or macOS):
Linux
Additional context
./nocolor version
NoColor, version 1.1.0: built on: 2021.08.20 19:22:09 OS: MacBook-Pro-Petr.local arm64 Commit: c709a2d
The text was updated successfully, but these errors were encountered: