Skip to content
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

Proper Integration with Irony Mode #23

Open
ghost opened this issue Mar 4, 2018 · 2 comments
Open

Proper Integration with Irony Mode #23

ghost opened this issue Mar 4, 2018 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 4, 2018

I'm using irony-mode one of emacs plugin for C/C++ mode. Here are some lines from my emacs init file that hooks C/C++ mode with irony-mode.

(use-package irony                                                              
  :init                                                                         
  (add-hook 'c++-mode-hook 'irony-mode)                                         
  (add-hook 'c-mode-hook 'irony-mode) 
  ...)

When I open .sol file with emacs, I get these error messages.

Warning (irony): Major mode is unknown to Irony, see `irony-supported-major-mod\
es'.                                                                            
Warning (irony): Major mode is unknown to Irony, see `irony-supported-major-mod\
es'.   

How can I fix this without disabling the original hooks?

Thank you.

@LefterisJP
Copy link
Collaborator

Hey @pseohy

I am not using irony myself which is why I have not seen this. The warning appears to be harmless. You can even make it go away by adding this somewhere in your emacs file:

(push 'solidity-mode irony-supported-major-modes)

I am not sure what kind of integration we could have with irony so I will have to do some research when I find some time. Until then, I will leave this issue open.

@LefterisJP LefterisJP changed the title Conflict with irony-mode? Proper Integration with Irony Mode Mar 13, 2018
@tsuu32
Copy link
Contributor

tsuu32 commented May 29, 2020

irony-mode (which uses libclang) doesn't support Solidity language obviously.
The main issue was fixed by #50.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants