SavingGoogleCode / haxegedit

Haxe plugin for Gedit 3
https://code.google.com/p/haxegedit
0 stars 0 forks source link

Error on creating new project... #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1.Fresh install with install-al.sh
2.Try create a new Project

What is the expected output? What do you see instead?
The expected output is having a new project instead I have an error : 

  File "/home/viande/.local/share/gedit/plugins/haxeide/ProjectFrame.py", line 56, in onCreateProjectButtonClick
    self.plugin.createProject(target, destinationFolder, projectFolder, mainFile, self.builder.get_object("useHxmlCheckBox").get_active(), self.builder.get_object("setRootCheckBox").get_active())
  File "/home/viande/.local/share/gedit/plugins/haxeide/haxeide.py", line 54, in createProject
    proc = subprocess.Popen (command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, cwd=cwd)
  File "/usr/lib/python2.7/subprocess.py", line 679, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1259, in _execute_child
    raise child_exception
OSError: [Errno 13] Permission non accordée

What version of the product are you using? On what operating system?

Ubuntu 12.10

Please provide any additional information below.

"Permission non accordée" means "not allowed"

Original issue reported on code.google.com by via...@gmail.com on 29 Jan 2013 at 9:34

GoogleCodeExporter commented 9 years ago
From the path in the error message:
/home/viande/.local/share/gedit/plugins/haxeide
it seems you installed haxegedit without root privileges. Could you try again 
with 'sudo' as explained in the howto-file? 
http://code.google.com/p/haxegedit/source/browse/trunk/HOWTO

Original comment by adn...@gmail.com on 31 Jan 2013 at 12:50

GoogleCodeExporter commented 9 years ago
I get the same error here, even after following the instructions.

Original comment by jdonald...@gmail.com on 15 Mar 2013 at 11:49

GoogleCodeExporter commented 9 years ago
I see the problem is due to (lost) file permissions. In this case for: 
/usr/share/gedit/plugins/haxeide/scripts/createproject.sh
Changing the way you unpack the tar.gz will preserve the permissions. 
From the Tar manual: "The -p option in the tar extraction command directs Tar 
to preserve permission and ownership information, if possible given the user 
executing the command. If you are running the command as root, this option is 
turned on by default and can be omitted."

Original comment by adn...@gmail.com on 16 Mar 2013 at 2:29

GoogleCodeExporter commented 9 years ago
Sorry, I still couldn't get it to work after preserving permissions.

I tried both with the -p option, and by extracting via sudo.  I run the install 
script via sudo, and I still see the error from the project creation manager.

Original comment by jdonald...@gmail.com on 19 Mar 2013 at 3:56

GoogleCodeExporter commented 9 years ago
Also, this sudo method won't work as-is with gedit on osx using the 
downloadable app.

Original comment by jdonald...@gmail.com on 20 Mar 2013 at 6:09

GoogleCodeExporter commented 9 years ago
I was able to get project creation working by manually fixing permissions.  
However, I get errors when I try to build:
(gedit-bin:12009): GLib-GIO-CRITICAL **: g_settings_get_key_info: assertion 
`settings->priv->schema != NULL' failed

(gedit-bin:12009): GLib-CRITICAL **: g_variant_get_type: assertion `value != 
NULL' failed

(gedit-bin:12009): GLib-CRITICAL **: g_variant_type_is_subtype_of: assertion 
`g_variant_type_check (type)' failed

Also, for completions, it looks like it is just using some simple hxml 
commands, rather than the build.hxml I have defined that has all of the class 
paths and libs set:
http://imgur.com/YbZyeHx

Is there a way to set hxml for completions?

Also, the completions will crash the editor after a while on OSX.

Original comment by jdonald...@gmail.com on 20 Mar 2013 at 3:50