Open RusAlex opened 3 years ago
Hi @RusAlex,
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!
;; Solidity config
(require 'solidity-mode)
;; (add-hook 'after-init-hook #'global-flycheck-mode)
(setq solidity-solc-path "/usr/local/bin/solc")
(setq solidity-solium-path "/usr/local/bin/solium")
;; (setq flycheck-solidity-solium-soliumrcfile "/Users/bad-jew/.local/solium/.soliumrc.json")
(setq solidity-flycheck-solc-checker-active t)
(setq solidity-flycheck-solium-checker-active t)
(setq flycheck-solidity-solc-addstd-contracts t)
(require 'solidity-flycheck)
(require 'company-solidity)
(add-hook 'solidity-mode-hook
(lambda ()
(set (make-local-variable 'company-backends)
(append '((company-solidity company-capf company-dabbrev-code))
company-backends))))
If you guys manage to fix the problem and can confirm it works fine for you then a PR would be appreciated.
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.