Paths with spaces confuse the backend launcher
Reusing this ticket, now specifying the root cause.
Paths with spaces need to be quoted on the command line.
Will try to fix it for the next release
---------------------------------------------------------
To reproduce:
- Create a project
- Switch to Erlang perspective
- Click on the triangle at the left of the project name
This happen with the version available on http://erlide.org/update as well.
The same behavior is show when trying to access Window->Preferences->Erlang->Compiler
Here are a possible workaround. I don't try it.
My Eclipse version is 3.6.2 Build id: M20110210-1200 Helios. on Archlinux installed via pacman (Archlinux package manager)
Paths with spaces need to be quoted on the command line.
Will try to fix it for the next release
---------------------------------------------------------
To reproduce:
- Create a project
- Switch to Erlang perspective
- Click on the triangle at the left of the project name
This happen with the version available on http://erlide.org/update as well.
The same behavior is show when trying to access Window->Preferences->Erlang->Compiler
Here are a possible workaround. I don't try it.
My Eclipse version is 3.6.2 Build id: M20110210-1200 Helios. on Archlinux installed via pacman (Archlinux package manager)
Leave a comment
on 2011-04-25 21:37 *
By Vlad Dumitrescu
Does it work if you start from the command line like below?
If yes, could you please try to create a fresh workspace with no spaces in the path?
If no, it could be a problem with the node name - is your /etc/hosts properly configured?
/usr/lib/erlang/bin/erl -name e7580_gojan_e9e70d_erlide@Gonux -setcookie erlide
If yes, could you please try to create a fresh workspace with no spaces in the path?
If no, it could be a problem with the node name - is your /etc/hosts properly configured?
Hi Vlad.
Thank you very much for Erlide and sorry for the late response.
The command you post works fine, so I try with a new workspace without spaces and it almost works. Now i got another issue when create a new source file. The window for the "new module" wizard freez on confirmation.
Should I create another ticket or modify this one?
Thank you very much for Erlide and sorry for the late response.
The command you post works fine, so I try with a new workspace without spaces and it almost works. Now i got another issue when create a new source file. The window for the "new module" wizard freez on confirmation.
Should I create another ticket or modify this one?
on 2011-04-29 07:22 *
By Vlad Dumitrescu
hi,
Better open a new ticket and attach the logs. Thanks!
Can I close this issue?
Better open a new ticket and attach the logs. Thanks!
Can I close this issue?
on 2011-04-29 12:11 *
By Vlad Dumitrescu
Sorry, I won't close it, but use it to see that we can use paths with spaces when launching.
on 2011-04-29 12:15 *
By Vlad Dumitrescu
Difficulty changed from Normal(3) to Easy (2)
Assigned to set to Vlad Dumitrescu
Description changed from To reproduce:
- Create a pr... to Reusing this ticket, now sp...
Milestone set to sprint #17 - 0.12
Priority changed from Normal (3) to High (2)
Summary changed from Eclipse freez on expand Erlang project on Erlang Navigator to Paths with spaces confuse the backend launcher
Status changed from New to Ongoing
Difficulty changed from Normal(3) to Easy (2)
Assigned to set to Vlad Dumitrescu
Description changed from To reproduce:
- Create a pr... to Reusing this ticket, now sp...
Milestone set to sprint #17 - 0.12
Priority changed from Normal (3) to High (2)
Summary changed from Eclipse freez on expand Erlang project on Erlang Navigator to Paths with spaces confuse the backend launcher
Status changed from New to Ongoing
Vlad, sorry for my bad testing but the issue is still happening :(
The confusion was that i can expand the project in the java perspective, with the package explorer, but in the erlang perspective Eclipse still freez.
Eclipse also freez if i try to open a source file from the java perspective in the erlang editor. I attach the log.
Regards.
The confusion was that i can expand the project in the java perspective, with the package explorer, but in the erlang perspective Eclipse still freez.
Eclipse also freez if i try to open a source file from the java perspective in the erlang editor. I attach the log.
Regards.
on 2011-04-30 00:00 *
By gojan
Attachment erlide_Open_Erlang_Editor.log added
Attachment erlide_Open_Erlang_Editor.log added
file:dNtHckCRWr4lfpeJe5cbLr: Open Erlang editor from java perspective
on 2011-05-13 13:03 *
By Vlad Dumitrescu
I tried many variants of using spaces in the paths, and they all worked for me. Probably this means the problem is somewhere else.
Could you please test again with the latest from http://erlide.org/update_beta ? There have been some changes in this area.
Could you please test again with the latest from http://erlide.org/update_beta ? There have been some changes in this area.
on 2011-06-01 08:59 *
By Vlad Dumitrescu
Works for me, if I don't hear anything new soon I will close this ticket.
Still not working here.
Update to the las version available on http://erlide.org/update_beta and create a new project in the path '/home/gojan/Programacion/Erlang/Workspace/TestX/'. Eclipse stop responding when expand the project in the navigation view.
I attach the new log to this ticket.
Update to the las version available on http://erlide.org/update_beta and create a new project in the path '/home/gojan/Programacion/Erlang/Workspace/TestX/'. Eclipse stop responding when expand the project in the navigation view.
I attach the new log to this ticket.
on 2011-06-02 14:32 *
By Vlad Dumitrescu
Thanks. Unfortunately there is no hint in the log about what happens... I will see what I can do to get more information.
on 2011-06-02 14:32 *
By Vlad Dumitrescu
Status changed from Waiting feedback to Ongoing
Status changed from Waiting feedback to Ongoing
on 2011-06-05 10:14 *
By Vlad Dumitrescu
This looks like it has nothing to do with spaces in path name... Still can't reproduce or understand what is going on.
on 2011-06-14 11:32 *
By Vlad Dumitrescu
Milestone changed from sprint #19 - 0.13.2 to sprint #20
Milestone changed from sprint #19 - 0.13.2 to sprint #20
on 2011-06-14 11:38 *
By Vlad Dumitrescu
Your path '/home/gojan/Programacion/Erlang/Workspace/TestX/', is it written as here or is it "Programación"? It's a long shot, but Unicode paths could be a problem, I guess.
on 2011-06-14 12:14 *
By Vlad Dumitrescu
Of course there is a way to debug erlide, but it depends on how much effort you are willing to invest. It helps a lot if you are familiar with Java and the Java debugger. It might take a couple of hours to setup the environment. There is also the issue that you need to have a working erlide installed in order to build erlide...
You have to have installed the Java environment JDT and the Plug-in development tools PDE.
Clone the source code repository from git@github.com:erlide/erlide.git
Import the project in Eclipse (there are some projects that aren't strictly needed, but it's easier to take them all). If there are any compilation errors for some projects, close them.
Create a launch configuration that launches an Eclipse instance with all the plugins in the workspace.
I suggest setting breakpoints at Backend.java:246 and ErlRuntime.java:69 and step into the code from there, but I'm not sure what to tell you to look for.
Start this launch configuration in debug mode.
Thanks a lot if you will venture into trying to debug this.
You have to have installed the Java environment JDT and the Plug-in development tools PDE.
Clone the source code repository from git@github.com:erlide/erlide.git
Import the project in Eclipse (there are some projects that aren't strictly needed, but it's easier to take them all). If there are any compilation errors for some projects, close them.
Create a launch configuration that launches an Eclipse instance with all the plugins in the workspace.
I suggest setting breakpoints at Backend.java:246 and ErlRuntime.java:69 and step into the code from there, but I'm not sure what to tell you to look for.
Start this launch configuration in debug mode.
Thanks a lot if you will venture into trying to debug this.
Hi again.
I could debug 'erlide' and reproduce my issue using the target "Erlide_tests (ui debug)". I attach the console output.
Maybe at this point you can tell me the steps to generate the more useful output for you. Meanwhile i will try to understand some of the 'erlide' code just for fun :)
PD:
For some reason after install and debug 'erlide' i got a folder '/home/gojan/c:/apps/eclipse352_ref/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/' created in my home.
I could debug 'erlide' and reproduce my issue using the target "Erlide_tests (ui debug)". I attach the console output.
Maybe at this point you can tell me the steps to generate the more useful output for you. Meanwhile i will try to understand some of the 'erlide' code just for fun :)
PD:
For some reason after install and debug 'erlide' i got a folder '/home/gojan/c:/apps/eclipse352_ref/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/' created in my home.
Edit:
This are the steps to generate the 'erlide_debug_output.txt' file:
1 - Run the project with the target "Erlide_tests (ui debug)"
2 - Switch to the Erlang perspective
3 - Create a proyect called "MyTest" in the default workspace (/home/gojan/Programacion/runtime-tests/)
4 - Expand the project in the navigation view
This are the steps to generate the 'erlide_debug_output.txt' file:
1 - Run the project with the target "Erlide_tests (ui debug)"
2 - Switch to the Erlang perspective
3 - Create a proyect called "MyTest" in the default workspace (/home/gojan/Programacion/runtime-tests/)
4 - Expand the project in the navigation view
on 2011-06-15 07:17 *
By Vlad Dumitrescu
You have to set up the Erlang runtimes first, when starting a new workspace and if the runtime is not in a "standard" place (we look at startup in places like "c:/program files", /usr/lib/erlang, etc).
Go to Window->preferences->erlang->installed runtimes and set up your runtime. See if that helps.
Regarding the c:\apps\eclipse352_ref... it's probably some path that is set up as in my environment, I will check that up.
Go to Window->preferences->erlang->installed runtimes and set up your runtime. See if that helps.
Regarding the c:\apps\eclipse352_ref... it's probably some path that is set up as in my environment, I will check that up.
on 2011-06-17 06:40 *
By Vlad Dumitrescu
Could you please be more specific? What is "sometimes" and what the complaint is? Without knowing that it's difficult to know what is wrong...
on 2011-07-18 12:02 *
By Vlad Dumitrescu
Milestone changed from sprint #20 to sprint #21
Milestone changed from sprint #20 to sprint #21
on 2011-08-15 14:08 *
By Vlad Dumitrescu
Milestone changed from sprint #22 to sprint #23
Milestone changed from sprint #22 to sprint #23
on 2011-08-23 11:49 *
By Vlad Dumitrescu
Status changed from New to Waiting feedback
Status changed from New to Waiting feedback
I can't reproduce, can't do anything about it at the moment...
on 2011-09-13 09:22 *
By Vlad Dumitrescu
Status changed from Waiting feedback to Invalid
Status changed from Waiting feedback to Invalid
please reopen if you see the problem again -- we would need help to trace the bug, because we can't reproduce it.