簡體   English   中英

如何關閉 Emacs 中的特定 php 警告

[英]How to turn off specific php warning in Emacs

每次我保存.php 文件時,這個緩沖區都會彈出,盡管我沒有犯任何錯誤。

(node:2206) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports 
inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2206) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports 
inside circular dependency

但是當我嘗試犯錯誤時,它就像這樣

(node:2779) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports 
inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:2779) Warning: Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
[error] hamming.php: SyntaxError: Parse Error : syntax error, unexpected '}', expecting ';' on line 13
[error]   11 |     // }
[error]   12 |     throw new InvalidArgumentException('DNA strands must be of equal length.')
[error] > 13 | }
[error]   14 | 

有沒有辦法只顯示 [error] 警告?

每次我保存 PHP 文件時自動創建的緩沖區名稱是

*format-all-errors*

我知道這個問題的原因。 因為我啟用了厄運層

;; (format +onsave)  ; automated prettiness

在我發表評論后,彈出緩沖區不再打開。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM