-
Notifications
You must be signed in to change notification settings - Fork 67
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
Installation error: "/usr/bin/solc"' is a malformed function #8
Comments
I get the same errors in emacs 25 with spacemacs - solidity-mode does not load |
I am using Spacemacs and Emacs v 25 I was receiving this error message (see Issue 8)
I commented out the following and it works fine, but I guess I don't have flycheck:
|
Note: These are just byte-compiler warnings. Will see how we can get rid of them. Since you do not have flycheck this code is never executed thanks to the (when (require 'flycheck nil 'noerror)
...
) But still it seems the byte compiler tries to compile them. I will try to find a way to address this but as stated before it should not stop you from using the mode. |
I thought they were just compiler warnings - I retried the melpa version and it still doesn't load - and I went back to my version with flycheck commented out and it does work: https://github.com/tbrooke/emacs-solidity and it does Spacemacs version 0.200.1 |
- Flycheck executable should now be `flycheck-solidity-checker-executable` with the latest flycheck versions - If flycheck is not there it's not sufficient to simply do `(when (require 'flycheck nil 'noerror) .. )`. You also have to wrap in `(eval-when-compile ... )`. This should address #8 and the errors the users are seeing there.
I believe this latest commit must have fixed the issue. It at least no longer shows the warnings when compiling in the normal Emacs. @tbrooke Can you check and report back and tell me if it works? Note: Spacemacs uses Melpa and as such it may take a while until the commit is included in the latest Melpa Build. Best way to make sure is to check this link and make sure that the melpa version is NOT |
Still 20161013.203 - I'lll try it later -- BTW I did look at spacemacs and found a lot of discussion about how they use flycheck in an unconventional way -- I didn't follow it all |
@tbrooke Had you have time to check if this is still an issue? |
It enters solidity mode and the syntax highlighting works but I get the following message - which it just a warning
|
Because the macro Possible workarounds:
|
Split flycheck code into its own source file. Fix #8
/usr/bin/solc
exists but it seems that there something wrong related that prevents the installation from finishing.emacs 24.5
Spacemacs 0.105.19
solc 0.3.2-81ae2a78
The text was updated successfully, but these errors were encountered: