From: N H. <hz...@gm...> - 2019-03-01 09:46:12
|
Dear Vladimir Nikishkin, Thanks a lot. You saved me. I checked the exec-path variable inside Emacs, but there was no path for Matlab. I added Matlab path to this variable manually using this: (setq exec-path (append exec-path '("/Applications/MATLAB_R2018b.app/bin"))) and, finally matlab-shell works again. To install matlab-emacs should we add Matlab path to exec-path variable manually in the first place or should it be automatically added during installation? I remember that in my previous matlab-emacs installation, I did not change exec-path variable. This time, I installed the new Emacs using brew cask install emacs. Anyway, thank you very much. I do really appreciate it. -hasan- > On 1 Mar 2019, at 6:04 pm, Vladimir Nikishkin <loc...@gm...> wrote: > > Sorry. Could you check if matlab directory is in your exec-path variable inside Emacs? > > Vladimir Nikishkin <loc...@gm... <mailto:loc...@gm...>> 于 2019年3月1日周五 17:03写道: > Can you check if matlab is in your PATH variable? > > N Hasan <hz...@gm... <mailto:hz...@gm...>> 于 2019年3月1日周五 14:47写道: > Hi All, > > I found the problem. It was silly of me. I should do “make” in the “~/path/to/matlab-emacs”. Matlab-mode is working now. > However, I have one problem with matlab-shell now. Whenever I want to run matlab inside emacs using matlab-shell, emacs could not find the directory of matlab as shown in the warning message: > > "Searching for program: No such file or directory, matlab”. > > I have surely added matlab to my PATH. I could run matlab -nodesktop in my terminal but I am wondering why matlab-shell does not work. > Before I had this matlab-emacs problem, I could also run matlab-shell inside emacs (previous version). > > Could someone help me to resolve this? I am not quite familiar with unix commands and system. > > Thank you. > > -hasan- > > > On 28 Feb 2019, at 2:45 am, N Hasan <hz...@gm... <mailto:hz...@gm...>> wrote: > > > > Hi All, > > > > I am facing a problem with matlab-emacs. I have been using matlab-emacs for quite a while (used the old-verstion) and love it so much. Thank you very much for this awesome software, really appreciate it. Everything was fine when using matlab-emacs until yesterday. > > Since yesterday I could not use matlab-mode and matlab-shell in my Emacs. I am not sure what the cause of this problem as I was configuring some parts of my .emacs file and also upgraded my emacs to the latest version. What can I think of is probably the Emacs upgrade is the cause. > > > > I tried to install matlab-emacs from the both ways: via git clone and via melpa. Both did not work. Currently, I am using the git clone one. > > It seems that the “matlab-load.el” is not automatically generated. Once I executed (add-to-list 'load-path “~/user/.emacs.d/matlab-emacs”), the “matlab-load.el” does not exist in the matlab-emacs directory, and hence the command (load-library "matlab-load”) generates an error. > > > > When I tried to execute another command: (matlab-cedet-setup), a warning says: srecode-map-entry-for-file is already defined as something else than a generic function. I do not really know what it means. > > > > Does anyone have any hint/idea regarding this problem? I have tried to investigate the problem but could not fix it until now. > > > > Thanks. > > > > -hasan- > > > > > > > > > > _______________________________________________ > Matlab-emacs-discuss mailing list > Mat...@li... <mailto:Mat...@li...> > https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss <https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss> |