Comments (66)
Thanks, I didn't know about the Command + Shift + G trick. I have navigated to /usr/local/lib.
Inside, I selected erlang folder, and it automatically detected Erlang R15B01 located at /usr/local/lib/erlang/lib folder.
from intellij-erlang.
Thanks for report, I tried to setup Erlang SDK only on standard installation on Ubuntu and Win 7.
Do I understand correctly that you use custom installation from sources to /opt/ directory?
BTW, Erlang SDK tried to find erlc
and erl
in /bin/ directory.
from intellij-erlang.
on Linux I did a custom compile and install and on a Mac I've used Homebrew (a pkg mgr for Mac).
This is the content of my '/opt/local/installs/erlang/bin' directory:
--> ls /opt/local/installs/erlang/bin/
ct_run dialyzer epmd erl erlc escript run_erl run_test to_erl typer
All the executables in there are symlinks to '../lib/erlang/bin/*'
from intellij-erlang.
How can I access system level directories from the GUI window that prompts you to add Erlang SDK? Sure there must be an easier way than enabling system-wide hidden files and adding SDK via GUI interface?
Also, I have used Erlang-Solution's Mac OS X binary package instead of installing Erlang via Homebrew on Mountain Lion.
from intellij-erlang.
You also can enter the file path manually.
from intellij-erlang.
I am assuming you are asking about a Mac OSX. If so, there is a shortcut Command+Shift+G that enables the manual entry, which you can type '/' and then navigate the entire filepath, right in the GUI window.
from intellij-erlang.
Is it documented anywhere which folder the user is meant to select for the "Erlang SDK"? It wasn't obvious to me I had to select the lib/erlang/lib
folder
from intellij-erlang.
@chadselph I'll install Mac OS X to virtual machine and will try to setup Erlang SDK. After that I can update documentation and change default directory in the file chooser dialog. Sorry for inconvinience.
from intellij-erlang.
I have no problem on Debian with default path /usr/lib/erlang
from intellij-erlang.
When I installed the plugin the folder I had to select to get it to work was lib/erlang and not lib/erlang/lib on Mountain Lion.
from intellij-erlang.
@kontinuity what's the full path to the Erlang installation folder?
from intellij-erlang.
/usr/share/erlang/lib/erlang (Erlang R15B01)
from intellij-erlang.
Or /opt/local/lib/erlang when you are using MacPorts
from intellij-erlang.
Good day.
I install erlang from MacPorts. it`s work (i test it in erlang shell).
But into erlang plugin when i create project of erlang module if i choose path to erlang (/opt/local/lib/erlang)
plugin not find erlang sdk...
How resolve this problem?
(Mac OS X Mountain Lion).
from intellij-erlang.
As I see from comments below you can specify the /opt/local/lib/erlang/lib/erlang/
. Try it as a workaround.
Please dump a tree of your erlang installation to a text file, e.g. tree /opt/local/lib/erlang > erlang_tree.txt
and attach the second one.
Under the hood the Erlang plugin searches the directory where is a bin
directory exists:
/usr/lib/erlang
├── bin
│ ├── ct_run
│ ├── dialyzer
│ ├── epmd -> ../erts-5.10/bin/epmd
│ ├── erl
│ ├── erlc
I think that a good idea to process all possible variants (Brew, Mac Ports, etc) for Mac OS X as a suggested path.
from intellij-erlang.
/opt/local/lib/erlang/lib/ contains no further path "erlang"...
My tree is:
/opt/local/lib/erlang
├── COPYRIGHT
├── Install
├── PR.template
├── README
├── bin
│ ├── ct_run
│ ├── dialyzer
│ ├── epmd -> ../erts-5.9.3/bin/epmd
│ ├── erl
│ ├── erlc
│ ├── escript
│ ├── run_erl
│ ├── run_test -> ct_run
│ ├── start
│ ├── start.boot
│ ├── start.script
│ ├── start_clean.boot
│ ├── start_erl
│ ├── start_sasl.boot
│ ├── to_erl
│ └── typer
├── doc
├── erts-5.9.3
│ ├── bin
│ │ ├── beam
│ │ ├── beam.smp
│ │ ├── child_setup
│ │ ├── ct_run
│ │ ├── dialyzer
│ │ ├── dyn_erl
│ │ ├── epmd
│ │ ├── erl
│ │ ├── erl.src
│ │ ├── erlc
│ │ ├── erlexec
│ │ ├── escript
│ │ ├── heart
│ │ ├── inet_gethost
│ │ ├── run_erl
│ │ ├── start
│ │ ├── start.src
│ │ ├── start_erl.src
│ │ ├── to_erl
│ │ └── typer
│ │
from intellij-erlang.
@dedyyshka Please attach the full dump.
from intellij-erlang.
sorry...
i not know how attach file as "file", picture is quite large...
from intellij-erlang.
i put the file on google drive
https://docs.google.com/folder/d/0B6rsfWDghy2edGs5NDZaSS0zbmM/edit?usp=sharing
i sorry for the inconvenience
from intellij-erlang.
@dedyyshka I've just install Erlang via Mac Ports (binary installation) on Mac OS X Mountain Lion and everything is OK. I've set the /opt/local/lib/erlang/
as a SDK root.
from intellij-erlang.
I've just added Erlang SDK root detection for Mac OS X in 7a08f4c.
from intellij-erlang.
Thanks it works
from intellij-erlang.
I've just added a little bit info about Erlang SDK setup.
from intellij-erlang.
lets switch for manaul setup with path to erlang,
some people may use kerl etc...
one textfield with place to enter path will much better than trying to be "smart" by IDE,
of course we could add default here (based on search of standard location), but
this should be definitely something configurable
from intellij-erlang.
I have Mac OS X Lion with MacPorts installed.
sudo port installed erlang output:
erlang @R16B01_0+ssl (active)
Using /opt/local/lib/erlang/ on Mac OS X doesn't work for me.
from intellij-erlang.
Doesn't seem to work with the ErlangSolutions prebuilt binary for Mac OS? (I use it because I want wx to work, so use their 32-bit build). Had to manually enter /usr/local/lib/erlang with the cmd+shift+g trick.
from intellij-erlang.
Please specify the build, I'll see.
from intellij-erlang.
From here, https://www.erlang-solutions.com/downloads/download-erlang-otp
This package: http://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_16.b.2~osx~10.6.8_i386.dmg
Thanks for checking!
from intellij-erlang.
Same issue for me. This is the package I'm attempting to use on OSX Mavericks.
from intellij-erlang.
Hi, @ndizzle, please try the latest build from https://github.com/ignatov/intellij-erlang#pre-release-builds (r16b03 support had been added one week ago).
from intellij-erlang.
Works! Thank you for the quick reply, @ignatov!
from intellij-erlang.
The plugin isn't working for me. I have mavericks and erlang installed with brew. The preferences have the sdk configured for the directory: /usr/local/lib/erlang
Additionally it won't detect what version of rebar I'm using.
from intellij-erlang.
Hi, @crimsonalucard!
Have you tried to do what's written in "Rebar integration" section at http://ignatov.github.io/intellij-erlang/ ?
from intellij-erlang.
Hi @crimsonalucard
Also please specify the real Erlang SDK path (something like /usr/local/Cellar/erlang*
) and the Erlang version.
from intellij-erlang.
@ignatov /usr/local/Cellar/erlang/R16B03 is the real erlang path.
@deadok22 Yes I did. I downloaded rebar into the project using the link in the menu directory but the system doesn't detect it. It still displays N/A in the version field of rebar.
from intellij-erlang.
Hi @crimsonalucard please try the latest version from the pre-release builds.
from intellij-erlang.
@crimsonalucard Please, check the http://stackoverflow.com/a/3756686 and #189 for the right environment paths setup.
from intellij-erlang.
I have this problem here with Archlinux. Erlang version Erlang/OTP 17 [erts-6.0].
from intellij-erlang.
Hi, @wb14123! Please try the latest pre-release build https://github.com/ignatov/intellij-erlang/releases/tag/%23563
Let me know if it helps.
from intellij-erlang.
Hi, @deadok22 . It doesn't help. It shows "Unknown Erlang version at /usr/lib/erlang(17)".
from intellij-erlang.
Could you, please, show me what is there under /usr/lib/erlang(17)/ and under /usr/lib/erlang(17)/releases if it's there?
from intellij-erlang.
wangbin@bin-rmbp ~ > tree -L 2 /usr/lib/erlang > a.txt
/usr/lib/erlang
├── bin
│ ├── ct_run
│ ├── dialyzer
│ ├── epmd -> ../erts-6.0/bin/epmd
│ ├── erl
│ ├── erlc
│ ├── escript
│ ├── no_dot_erlang.boot
│ ├── run_erl
│ ├── start
│ ├── start.boot
│ ├── start_clean.boot
│ ├── start_erl
│ ├── start_sasl.boot
│ ├── start.script
│ ├── to_erl
│ └── typer
├── erts-6.0
│ ├── bin
│ ├── doc
│ ├── include
│ ├── lib
│ ├── man
│ └── src
├── Install
├── lib
│ ├── asn1-3.0
│ ├── common_test-1.8
│ ├── compiler-5.0
│ ├── cosEvent-2.1.15
│ ├── cosEventDomain-1.1.14
│ ├── cosFileTransfer-1.1.16
│ ├── cosNotification-1.1.21
│ ├── cosProperty-1.1.17
│ ├── cosTime-1.1.14
│ ├── cosTransactions-1.2.14
│ ├── crypto-3.3
│ ├── debugger-4.0
│ ├── dialyzer-2.7
│ ├── diameter-1.6
│ ├── edoc-0.7.13
│ ├── eldap-1.0.3
│ ├── erl_docgen-0.3.5
│ ├── erl_interface-3.7.16
│ ├── erts-6.0
│ ├── et-1.5
│ ├── eunit-2.2.7
│ ├── gs-1.5.16
│ ├── hipe-3.10.3
│ ├── ic-4.3.5
│ ├── inets-5.10
│ ├── kernel-3.0
│ ├── megaco-3.17.1
│ ├── mnesia-4.12
│ ├── observer-2.0
│ ├── orber-3.6.27
│ ├── ose-1.0
│ ├── os_mon-2.2.15
│ ├── otp_mibs-1.0.9
│ ├── parsetools-2.0.11
│ ├── percept-0.8.9
│ ├── public_key-0.22
│ ├── reltool-0.6.5
│ ├── runtime_tools-1.8.14
│ ├── sasl-2.4
│ ├── snmp-4.25.1
│ ├── ssh-3.0.1
│ ├── ssl-5.3.4
│ ├── stdlib-2.0
│ ├── syntax_tools-1.6.14
│ ├── test_server-3.7
│ ├── tools-2.6.14
│ ├── tsung-1.5.0
│ ├── tsung_controller-1.5.0
│ ├── tsung_recorder-1.5.0
│ ├── typer-0.9.6
│ ├── webtool-0.8.10
│ ├── wx-1.2
│ └── xmerl-1.3.7
├── man
│ ├── man1
│ ├── man3
│ ├── man4
│ ├── man6
│ └── man7
├── misc
│ ├── format_man_pages
│ └── makewhatis
├── releases
│ ├── 17
│ ├── RELEASES
│ ├── RELEASES.src
│ └── start_erl.data
└── usr
├── include
└── lib
74 directories, 22 files
from intellij-erlang.
@wb14123 the original error message referred to "/usr/lib/erlang(17)" whereas you've shown the tree output for "/usr/lib/erlang". Does it fail to detect SDK version under "/usr/lib/erlang" as well?
from intellij-erlang.
I specify the SDK path as "/usr/lib/erlang", but the error message is "/usr/lib/erlang(17)" where "(17)" is grey here.
from intellij-erlang.
Oh, I got it! You just have your SDK named "Unknown Erlang version at /usr/lib/erlang" and the version is discovered correctly. You can re-setup your sdk or just rename it if you want it to have the right name.
from intellij-erlang.
Thanks. "17" is shown in the later version I installed.
from intellij-erlang.
Hello)
I have the next problem:
Idea can see erlang sdk but cant't see the rebar.
Details:
OS: Mac OS 10.10.1
Idea: 14
I've installed erlang from https://www.erlang-solutions.com/downloads/download-erlang-otp
Set the correct erlang sdk path (/usr/local/lib/erlang) to idea and idea detected erlang sdk.
Then i've downloaded rebar from git hub and put it to /usr/bin.
In console everything is ok.
But idea does't detect the rebar version and can't complie and debug with rebar.
I've tried the same steps on latest linux Mint and Ubuntu and didn't get any issuers.
I've got no ideas why it doesn't work for MAC OS 10.10
from intellij-erlang.
Please see #189 (comment) and http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/3756686#3756686
May be it can help. If not please report more details for understanding.
from intellij-erlang.
Thanks for the reply. Everything works fine :)
In general, there was only one little issue.
Idea on mac os didn't detect the version of rebar, but rebar worked with
idea.
Sorry for taking your time.
Great plugin :)
2014-11-30 18:19 GMT+03:00 Sergey Ignatov [email protected]:
Please see #189 (comment)
#189 (comment)
and
http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/3756686#3756686
May be it can help. If not please report more details for understanding.—
Reply to this email directly or view it on GitHub
#31 (comment)
.
from intellij-erlang.
Hi
I am running OpenSUSE 13.2, IdeaJ CE 14.02, ErlangPlugin 636 and have installed Erlang from the default package repo (R17) which is installed at /usr/lib64/erlang. Idea J will not accept /usr/lib64/erlang/bin (simply ignores the OK click). I copied the releases folder under bin but no joy?
thanks
Myles
from intellij-erlang.
Hey @myles-mcdonnell,
Try /usr/lib64/erlang as your SDK path.
Cheers!
from intellij-erlang.
Thanks @deadok22
For reference; On Yosemite with Erlang installed from Rudix (http://rudix.org/packages/erlang.html) path to SDK is /usr/local/lib/erlang
from intellij-erlang.
I have the same issue on ubuntu 14.04 with idea 14.1.4.
When I install erlang with apt-get, it worked. The path is /usr/lib/erlang/
.
But after I install erlang with kerl or build from souce code, it does not work. The path is not in /usr/lib/erlang/
.
from intellij-erlang.
Hi @FlowerWrong,
Please, share tree
output for your Erlang installation directory.
from intellij-erlang.
@deadok22 I am using kerl install erlang 17.5.
$ pwd
/home/yy/software/erlang/175
$ tree -L 2
.
├── activate
├── bin
│ ├── ct_run
│ ├── dialyzer
│ ├── epmd -> ../erts-6.4/bin/epmd
│ ├── erl
│ ├── erlc
│ ├── escript
│ ├── no_dot_erlang.boot
│ ├── run_erl
│ ├── start
│ ├── start.boot
│ ├── start_clean.boot
│ ├── start_erl
│ ├── start_sasl.boot
│ ├── start.script
│ ├── to_erl
│ └── typer
├── erts-6.4
│ ├── bin
│ ├── doc
│ ├── include
│ ├── lib
│ ├── man
│ └── src
├── Install
├── lib
│ ├── asn1-3.0.4
│ ├── common_test-1.10
│ ├── compiler-5.0.4
│ ├── cosEvent-2.1.15
│ ├── cosEventDomain-1.1.14
│ ├── cosFileTransfer-1.1.16
│ ├── cosNotification-1.1.21
│ ├── cosProperty-1.1.17
│ ├── cosTime-1.1.14
│ ├── cosTransactions-1.2.14
│ ├── crypto-3.5
│ ├── debugger-4.0.3
│ ├── dialyzer-2.7.4
│ ├── diameter-1.9
│ ├── edoc-0.7.16
│ ├── eldap-1.1.1
│ ├── erl_docgen-0.3.7
│ ├── erl_interface-3.7.20
│ ├── erts-6.4
│ ├── et-1.5
│ ├── eunit-2.2.9
│ ├── gs-1.5.16
│ ├── hipe-3.11.3
│ ├── ic-4.3.6
│ ├── inets-5.10.6
│ ├── jinterface-1.5.12
│ ├── kernel-3.2
│ ├── megaco-3.17.3
│ ├── mnesia-4.12.5
│ ├── observer-2.0.4
│ ├── odbc-2.10.22
│ ├── orber-3.7.1
│ ├── ose-1.0.2
│ ├── os_mon-2.3.1
│ ├── otp_mibs-1.0.10
│ ├── parsetools-2.0.12
│ ├── percept-0.8.10
│ ├── public_key-0.23
│ ├── reltool-0.6.6
│ ├── runtime_tools-1.8.16
│ ├── sasl-2.4.1
│ ├── snmp-5.1.1
│ ├── ssh-3.2
│ ├── ssl-6.0
│ ├── stdlib-2.4
│ ├── syntax_tools-1.6.18
│ ├── test_server-3.8
│ ├── tools-2.7.2
│ ├── typer-0.9.8
│ ├── webtool-0.8.10
│ ├── wx-1.3.3
│ └── xmerl-1.3.7
├── misc
│ ├── format_man_pages
│ └── makewhatis
├── releases
│ ├── 17
│ ├── RELEASES
│ ├── RELEASES.src
│ └── start_erl.data
└── usr
├── include
└── lib
67 directories, 23 files
from intellij-erlang.
@FlowerWrong your directory structure looks good - make sure your IDE process has permissions to execute bin/erl and bin/erlc.
I've tried building Erlang 17.5 with kerl, and it works just fine.
How exactly does it fail in your case? It won't allow you to select /home/yy/software/erlang/175 as SDK root?
from intellij-erlang.
@deadok22 The error is Unknown Erlang version at /home/yy/software/erlang/175
.
See:
from intellij-erlang.
Ok, what does your log say, @FlowerWrong? (see https://intellij-support.jetbrains.com/hc/en-us/articles/206827517-Locating-IDE-log-files for instructions on locating your log files)
from intellij-erlang.
😞 No log at all. I clear the log file before config it, and after the failed config, it still empty.
from intellij-erlang.
@FlowerWrong Oh, I forgot logging is not in released version yet - please, try the plugin from https://github.com/ignatov/intellij-erlang/releases - it should log unsuccessful attempts to setup your SDK.
from intellij-erlang.
@deadok22 I reinstall the intellig-erlang with pre-release #778. It worked. 👍
The release version is 0.5.11, it does not work.
from intellij-erlang.
Good. It's #614 you were facing.
from intellij-erlang.
Hello,
On SUSE (SLES11) when trying to add folder which contains erl and erlc as Erlang SDK the error appears "The selected directory is not a valid home for Erlang SDK"
IntelliJ IDEA version is idea-IC-171.3566.24
Erlang for IntelliJ IDEA version is 0.9.9.35
Thanks in advance!
from intellij-erlang.
from intellij-erlang.
Hello Sergey,
I've fixed the problem. The reason of the problem was in the variable OTP_ROOT which was incorrectly set to /opt/otp. In my case OTP is in the /local/scratch/enatlvo/git/sgc/deps/otp/19.1.6-1.3.2/
After pointing to the real otp directory and then opening IntelliJ IDEA I can configure Erlang SDK. No errors.
Sorry for inconvenience and have a nice day!
from intellij-erlang.
@lionnt Nice to hear that.
from intellij-erlang.
Related Issues (20)
- "erl: not found" while trying to setup rebar3 path HOT 2
- Syntax error on `maybe' function in editor HOT 1
- Don't offer some functions from erlang module HOT 1
- red code for some types
- red code
- No docs for OTP modules HOT 2
- Better support for rebar3 HOT 1
- generate documentation with code module HOT 9
- get in trouble: Failed to setup debugger environment HOT 3
- 2023.2 support HOT 1
- Search files lost sdk modules HOT 1
- JpsErlangModelSerializerExtension: JVMCFRE199E bad major version 61.0 HOT 2
- I use erlang remote, but I get an error, what should I do?
- Debugging failed with: Failed to setup debugger environment using Intelij 2023.2.5, OSX 13.5.2 (22G91) HOT 6
- Add support for IntelliJ 2023.3 HOT 11
- intellij-erlang-0.11.1205 don't support intelliJ IDEA IC-233.13135.103 HOT 1
- Beam file in MacOs is not created HOT 2
- new function improve
- Add support for IntelliJ 2024.1
- Can not add SDK on Intellij 2024.1 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from intellij-erlang.