silexlabs / cloud-explorer

*this version is deprecated, see CloudExplorer2* File manager for your users cloud services such as dropbox, google drive and FTP
http://cloud-explorer.org
52 stars 23 forks source link

Problems compiling cloud-explorer #48

Open ikuteam opened 9 years ago

ikuteam commented 9 years ago

Hello!

I'm trying to compile cloud-explorer (with Haxe) for the first time, but it doesn't do it successfully.

Any thoughts?

Steps before error:

  1. Cloned repository;
  2. Installed all dependencies with npm install.

Stack:

src/ce/core/model/SortField.hx:16: characters 1-19 : Cannot declare member variable in abstract
src/ce/core/model/SortField.hx:17: characters 1-19 : Cannot declare member variable in abstract
src/ce/core/model/SortField.hx:18: characters 1-31 : Cannot declare member variable in abstract
src/ce/core/model/SortOrder.hx:16: characters 1-17 : Cannot declare member variable in abstract
src/ce/core/model/SortOrder.hx:17: characters 1-19 : Cannot declare member variable in abstract
src/ce/core/model/Service.hx:16: characters 1-25 : Cannot declare member variable in abstract
src/ce/core/model/Service.hx:17: characters 1-17 : Cannot declare member variable in abstract
src/ce/core/model/Service.hx:18: characters 1-17 : Cannot declare member variable in abstract
src/ce/core/view/FileBrowser.hx:79: characters 67-71 : Unknown identifier : Name
src/ce/core/view/FileBrowser.hx:81: characters 67-71 : #Type should be ce.core.model.SortField
src/ce/core/view/FileBrowser.hx:81: characters 67-71 : { typeof : v : Dynamic -> ValueType, resolveEnum : name : String -> Enum<Dynamic>, resolveClass : name : String -> Class<Dynamic>, getSuperClass : c : Class<Dynamic> -> Class<Dynamic>, getInstanceFields : c : Class<Dynamic> -> Array<String>, getEnumName : e : Enum<Dynamic> -> String, getEnumConstructs : e : Enum<Dynamic> -> Array<String>, getEnum : o : EnumValue -> Enum<Dynamic>, getClassName : c : Class<Dynamic> -> String, getClassFields : c : Class<Dynamic> -> Array<String>, getClass : o : getClass.T -> Class<getClass.T>, enumParameters : e : EnumValue -> Array<Dynamic>, enumIndex : e : EnumValue -> Int, enumEq : a : enumEq.T -> b : enumEq.T -> Bool, enumConstructor : e : EnumValue -> String, createInstance : cl : Class<createInstance.T> -> args : Array<Dynamic> -> createInstance.T, createEnumIndex : e : Enum<createEnumIndex.T> -> index : Int -> ?params : Array<Dynamic> -> createEnumIndex.T, createEnum : e : Enum<createEnum.T> -> constr : String -> ?params : Array<Dynamic> -> createEnum.T, createEmptyInstance : cl : Class<createEmptyInstance.T> -> createEmptyInstance.T, allEnums : e : Enum<allEnums.T> -> Array<allEnums.T> } should be ce.core.model.SortField
src/ce/core/view/FileBrowser.hx:81: characters 67-71 : For function argument 'field'
src/ce/core/view/FileBrowser.hx:83: characters 67-77 : Unknown identifier : LastUpdate
src/ce/core/view/FileBrowser.hx:338: characters 26-41 : Null<Array<String>> has no field indexOf
src/ce/core/view/FileBrowser.hx:273: characters 10-13 : Capture variables must be lower-case
src/ce/core/view/FileBrowser.hx:269: lines 269-281 : a : ce.core.view.FileListItem -> b : ce.core.view.FileListItem -> Void should be ce.core.view.FileListItem -> ce.core.view.FileListItem -> Int
src/ce/core/view/FileBrowser.hx:269: lines 269-281 : Cannot unify return types
src/ce/core/view/FileBrowser.hx:269: lines 269-281 : Void should be Int
src/ce/core/view/FileBrowser.hx:269: lines 269-281 : For function argument 'f'
src/ce/core/view/FileBrowser.hx:315: characters 25-40 : Null<Array<String>> has no field indexOf
src/ce/core/view/Application.hx:195: characters 45-60 : ce.core.model.Service has no field Dropbox
src/ce/core/view/Application.hx:196: characters 45-56 : ce.core.model.Service has no field Ftp
src/ce/core/view/Application.hx:197: characters 45-56 : ce.core.model.Service has no field Www
src/ce/core/view/Application.hx:204: characters 46-60 : ce.core.model.SortField has no field Name
src/ce/core/view/Application.hx:205: characters 46-60 : ce.core.model.SortField has no field Type
src/ce/core/view/Application.hx:206: characters 46-66 : ce.core.model.SortField has no field LastUpdate
src/ce/core/view/Application.hx:213: characters 22-35 : ce.core.model.SortOrder has no field Asc
src/ce/core/view/Application.hx:214: characters 22-36 : ce.core.model.SortOrder has no field Desc
src/ce/core/model/State.hx:87: characters 21-24 : Unknown identifier : Asc
src/ce/core/model/State.hx:159: characters 21-25 : Unknown identifier : Name
src/ce/core/model/State.hx:160: characters 21-24 : Unknown identifier : Asc
src/ce/core/Controller.hx:224: characters 29-33 : Unknown identifier : Name
src/ce/core/Controller.hx:602: characters 56-59 : Unknown identifier : Asc
src/ce/core/Controller.hx:602: characters 62-66 : Unknown identifier : Desc
src/ce/core/Controller.hx:602: characters 69-72 : Unknown identifier : Asc
src/ce/core/Controller.hx:863: characters 35-50 : Null<Array<String>> has no field indexOf
Fatal error: Error
zabojad commented 9 years ago

Hi !

Odd... What version of Haxe are you using ?

haxe -version
ikuteam commented 9 years ago

@zabojad I'm using version 3.0.0.

zabojad commented 9 years ago

@topresearch can you try updating to 3.1.3 ?

ikuteam commented 9 years ago

@zabojad I updated Haxe to 3.2.0. The errors I had were gone, but I have this one:

Building Haxe project...
build.hxml
src/ce/core/service/UnifileSrv.hx:35: characters 7-26 : Class not found : js.html.DOMFormData
Fatal error: Error
zabojad commented 9 years ago

@topresearch The Haxe API in version 3.2.0 may have changed a bit from 3.1.3. Please try downloading v3.1.3 and compile Cloud Explorer with it. I haven't tested (and adapted the code to) version 3.2.0 yet...

ikuteam commented 9 years ago

@zabojad I changed the Haxe version, solved some missing dependencies (involving Ruby and Compass) and it is working! Thank you! :)