Giter Site home page Giter Site logo

Comments (66)

sahat avatar sahat commented on July 17, 2024 2

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.

ignatov avatar ignatov commented on July 17, 2024

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.

aantono avatar aantono commented on July 17, 2024

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.

sahat avatar sahat commented on July 17, 2024

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.

ignatov avatar ignatov commented on July 17, 2024

You also can enter the file path manually.

from intellij-erlang.

aantono avatar aantono commented on July 17, 2024

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.

chadselph avatar chadselph commented on July 17, 2024

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.

ignatov avatar ignatov commented on July 17, 2024

@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.

yzh44yzh avatar yzh44yzh commented on July 17, 2024

I have no problem on Debian with default path /usr/lib/erlang

from intellij-erlang.

kontinuity avatar kontinuity commented on July 17, 2024

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.

ignatov avatar ignatov commented on July 17, 2024

@kontinuity what's the full path to the Erlang installation folder?

from intellij-erlang.

kontinuity avatar kontinuity commented on July 17, 2024

/usr/share/erlang/lib/erlang (Erlang R15B01)

from intellij-erlang.

doubleday avatar doubleday commented on July 17, 2024

Or /opt/local/lib/erlang when you are using MacPorts

from intellij-erlang.

shamanyna avatar shamanyna commented on July 17, 2024

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.

ignatov avatar ignatov commented on July 17, 2024

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.

shamanyna avatar shamanyna commented on July 17, 2024

/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.

ignatov avatar ignatov commented on July 17, 2024

@dedyyshka Please attach the full dump.

from intellij-erlang.

shamanyna avatar shamanyna commented on July 17, 2024

sorry...
i not know how attach file as "file", picture is quite large...

from intellij-erlang.

shamanyna avatar shamanyna commented on July 17, 2024

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.

ignatov avatar ignatov commented on July 17, 2024

@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.

ignatov avatar ignatov commented on July 17, 2024

I've just added Erlang SDK root detection for Mac OS X in 7a08f4c.

from intellij-erlang.

shamanyna avatar shamanyna commented on July 17, 2024

Thanks it works

from intellij-erlang.

ignatov avatar ignatov commented on July 17, 2024

I've just added a little bit info about Erlang SDK setup.

from intellij-erlang.

andrzejsliwa avatar andrzejsliwa commented on July 17, 2024

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.

dedalozzo avatar dedalozzo commented on July 17, 2024

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.

nruth avatar nruth commented on July 17, 2024

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.

ignatov avatar ignatov commented on July 17, 2024

Please specify the build, I'll see.

from intellij-erlang.

nruth avatar nruth commented on July 17, 2024

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.

ndizzle avatar ndizzle commented on July 17, 2024

Same issue for me. This is the package I'm attempting to use on OSX Mavericks.

http://packages.erlang-solutions.com/erlang/esl-erlang/FLAVOUR_1_general/esl-erlang_16.b.3~osx~10.6.8_amd64.dmg

from intellij-erlang.

ignatov avatar ignatov commented on July 17, 2024

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.

ndizzle avatar ndizzle commented on July 17, 2024

Works! Thank you for the quick reply, @ignatov!

from intellij-erlang.

pyrofolium avatar pyrofolium commented on July 17, 2024

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.

deadok22 avatar deadok22 commented on July 17, 2024

Hi, @crimsonalucard!
Have you tried to do what's written in "Rebar integration" section at http://ignatov.github.io/intellij-erlang/ ?

from intellij-erlang.

ignatov avatar ignatov commented on July 17, 2024

Hi @crimsonalucard
Also please specify the real Erlang SDK path (something like /usr/local/Cellar/erlang*) and the Erlang version.

from intellij-erlang.

pyrofolium avatar pyrofolium commented on July 17, 2024

@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.

ignatov avatar ignatov commented on July 17, 2024

Hi @crimsonalucard please try the latest version from the pre-release builds.

from intellij-erlang.

ignatov avatar ignatov commented on July 17, 2024

@crimsonalucard Please, check the http://stackoverflow.com/a/3756686 and #189 for the right environment paths setup.

from intellij-erlang.

wb14123 avatar wb14123 commented on July 17, 2024

I have this problem here with Archlinux. Erlang version Erlang/OTP 17 [erts-6.0].

from intellij-erlang.

deadok22 avatar deadok22 commented on July 17, 2024

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.

wb14123 avatar wb14123 commented on July 17, 2024

Hi, @deadok22 . It doesn't help. It shows "Unknown Erlang version at /usr/lib/erlang(17)".

from intellij-erlang.

deadok22 avatar deadok22 commented on July 17, 2024

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.

wb14123 avatar wb14123 commented on July 17, 2024

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.

deadok22 avatar deadok22 commented on July 17, 2024

@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.

wb14123 avatar wb14123 commented on July 17, 2024

I specify the SDK path as "/usr/lib/erlang", but the error message is "/usr/lib/erlang(17)" where "(17)" is grey here.
map1

from intellij-erlang.

deadok22 avatar deadok22 commented on July 17, 2024

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.

wb14123 avatar wb14123 commented on July 17, 2024

Thanks. "17" is shown in the later version I installed.

from intellij-erlang.

platon avatar platon commented on July 17, 2024

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.

ignatov avatar ignatov commented on July 17, 2024

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.

platon avatar platon commented on July 17, 2024

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.

myles-mcdonnell avatar myles-mcdonnell commented on July 17, 2024

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.

deadok22 avatar deadok22 commented on July 17, 2024

Hey @myles-mcdonnell,

Try /usr/lib64/erlang as your SDK path.

Cheers!

from intellij-erlang.

myles-mcdonnell avatar myles-mcdonnell commented on July 17, 2024

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.

FlowerWrong avatar FlowerWrong commented on July 17, 2024

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.

deadok22 avatar deadok22 commented on July 17, 2024

Hi @FlowerWrong,

Please, share tree output for your Erlang installation directory.

from intellij-erlang.

FlowerWrong avatar FlowerWrong commented on July 17, 2024

@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.

deadok22 avatar deadok22 commented on July 17, 2024

@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.

FlowerWrong avatar FlowerWrong commented on July 17, 2024

@deadok22 The error is Unknown Erlang version at /home/yy/software/erlang/175.
See:
2015-08-28 11 54 51
2015-08-28 11 55 05

from intellij-erlang.

deadok22 avatar deadok22 commented on July 17, 2024

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.

FlowerWrong avatar FlowerWrong commented on July 17, 2024

😞 No log at all. I clear the log file before config it, and after the failed config, it still empty.
2015-08-28 18 08 50

from intellij-erlang.

deadok22 avatar deadok22 commented on July 17, 2024

@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.

FlowerWrong avatar FlowerWrong commented on July 17, 2024

@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.

deadok22 avatar deadok22 commented on July 17, 2024

Good. It's #614 you were facing.

from intellij-erlang.

lionnt avatar lionnt commented on July 17, 2024

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

screen1

Thanks in advance!

from intellij-erlang.

ignatov avatar ignatov commented on July 17, 2024

from intellij-erlang.

lionnt avatar lionnt commented on July 17, 2024

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.

ignatov avatar ignatov commented on July 17, 2024

@lionnt Nice to hear that.

from intellij-erlang.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.