I am using Emacs with JDEE. When I want to compile the current Java file with C-c C-v C-c key binding, I encounter this message and don't compile:
Point `jdee-server-dir' to dir with JDEE jars.
But I can run any Java file with C-c C-v C-r if it is compiled before.
You need the JDEE Server. It works fine for me.
Related
I'm pretty new with both Scala and ENSIME. I have a project and the first setup is ok with ENSIME that seems to work fine (auto-completion working, jump to definition working, error highlighting working, etc.). Anyway I've added a dependency in build.sbt (in particular I've added circe). ENSIME in Emacs keeps complaining object circe is not a member of package io.
I initially recompile the project in a separate shell. Nothing changed. After that I tried to recompile the project from Emacs with C-c C-b c. Nothing changed again.
What am I missing?
You need to re-generate the ensime configuration if you change anything in your .sbt files. Run sbt ensimeConfig in your project folder and restart Ensime inside Emacs.
I have written my Spark code in Scala IDE (eclipse) and it 'runs' well here.(it is a Scala object and I have saved it as a .scala file on my computer)
Now i'm trying to run it in REPL. I'm not sure how I can run it in REPL, by copy-pasting it or by 'loading'.
Run in Scala IDE,
Run in REPL
Any help in this case would be greatly appreciated.
regards,
Behrouz
There are two option you can load a file and paste the content.
To load a file use
:load filename.scala
To paste the content
:paste Command-V on a Mac, Ctrl-V on Windows)
and press CTRL-D for evaluate
I want setup the projectile project for project that has no local git, hg, bzr, etc. directories so I cannot use their repositories as source of project files. Is it enough to just create the .projectile file in the root directory and use the C-u C-c p f to refresh the cache. I've tried this and in my case it is not working (my .projectile is empty - shall I fill it with some rules?). What I would expect is the emacs/projectile to automatically index all my project, i.e. directory-by-directory, file-by-file, so I can make later quick search for the files.
Could you please give me some step-by-step hints ?
Thanks!
[--Update--]
This is an excerpt from my .emacs config file:
(require 'projectile)
(projectile-global-mode)
(setq projectile-indexing-method 'native)
(setq projectile-enable-caching t)
After the C-c p f sequence I'm asked by the "Find file:" prompt but the only file in the list is the .projectile file itself - none of the project files are displayed.
Currently, I have found out that after you have created a .projectile file in the directory of your choice, projectile will only use it after you restart emacs from that directory.
The caching is working well.
I am trying learn how to work with CEDET. I don't have any project to mess around so I want to shoot Emacs itself.
It seems CEDET automatically detects Emacs as a project when I open Emacs repository in dir. But when I do M-x ede-find-file there is no file to open.
Question is, How can I exactly setup Emacs as a project in CEDET to make use of EDE and other goodies of CEDET.?
Seems the documentation for this hasn't been completed yet.
The command ede-find-file doesn't provide completion. If you are visiting some file in the Emacs source (like INSTALL) and do this:
M-x ede-find-file RET emacs.c RET
it should pop up emacs.c.
Different CEDET features all have different kinds of dependencies so it's hard to answer the question specifically, but generically, all you have to do is visit a file in your Emacs project, and the other features should be enabled.
I think, that it should be added the same way as other EDE projects, with something like:
(setq emacs-project
(ede-emacs-project "emacs-head"
:file "/home/ott/work/emacs-head/README"))
At least this works for me...
On linux:
eclipse PathnameToWorkspace
works fine, and launches eclipse on the workspace.
I've never been able to figure out the MacOS moral equivalent, given the MacOS application tree structure.
I suspect this is not a hard problem.
./eclipse -data <workspace-path> (see also How do I run Eclipse in the Eclipse Wiki).
On my system there's a link to the eclipse binary from /Applications/eclipse/eclipse, and I find that just running that will start Eclipse with my default workspace.
You might also find the Eclipse binary in '/Applications/Eclipse.app/Contents/MacOS/eclipse'.
When I start Eclipse like this (from the command line) I find that my Mac will not always switch to the desktop where Eclipse is started, so that I will have to go hunt for the Eclipse window with Exposé/Misson Control (Ctrl-Up Arrow). – This is especially true when I'm have two monitors connected to my Mac.
Since I found typing the full path to eclipse annoying, I simply added a symlink to it from /opt/local/bin and made sure that directory is in my $PATH:
cd /opt/local/bin
sudo ln -s /Applications/eclipse/eclipse .
echo 'PATH="$PATH:/opt/local/bin' >>~/.bashrc
After that, just issuing the command eclipse (without the preceding /Applications/eclipse part) works as it should.
After doing lots of hit and try I have added following into my bash_profile and I am able to launch eclipse from terminal.
(Note: Eclipse is inside Application)
export PATH="$PATH:/Applications/Eclipse.app/Contents/MacOS"
Hope it will be helpful for beginner like me.