You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(require 'package)
(package-initialize) ;; You might already have this line
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
'(solidity-flycheck solidity-mode))
)
(setq solidity-flycheck-solc-checker-active t)
(setq solidity-solc-path "/home/user/.local/bin/solc")
(add-hook 'solidity-mode-hook
'(lambda()
(require 'solidity-flycheck)
(flycheck-mode +1)
(flycheck-verify-setup)
))
```
then run console command emacs -nw Contract.sol emacs starts but
displays the error: File mode specification error: (void-function
remove-if-not)
I made some research and found that this is the function from the cl
package. Then I added the line (require 'cl) on the top of
solidity-flycheck.el and everything now works.
The text was updated successfully, but these errors were encountered:
I am still getting the same error even when I added your changes. Also, my Doom is complaining on (require 'cl), saying its deprecated and suggest to use "cl-lib" instead. That's my .config. Would appreciate any help, thanks!
I am not sure about readiness/correctness my solution. Seems it does not work for some people. And even for you @LefterisJP if it works without my fix then maybe it's with my versions of environment problem not project problem
Hello. I spent some time to set it up. And isolated the error till found what happens in the code.
Versions installed from Melpa with "package" system.
.emacs init file
then run console command emacs -nw Contract.sol emacs starts but
displays the error: File mode specification error: (void-function
remove-if-not)
I made some research and found that this is the function from the cl
package. Then I added the line (require 'cl) on the top of
solidity-flycheck.el and everything now works.
The text was updated successfully, but these errors were encountered: