badetitou / Pharo-LanguageServer

A Language Server Protocol implementation in Pharo
GNU General Public License v3.0
30 stars 6 forks source link

Installing does not work on MacOS pharo11 #9

Closed akevalion closed 1 year ago

akevalion commented 1 year ago

Install this with a new fresh pharo launcher in a new pharo 11 image

Metacello new
  githubUser: 'badetitou' project: 'Pharo-LanguageServer' commitish: 'v2' path: 'src';
  baseline: 'PharoLanguageServer';
  load

After restart the image, you can not open the image again, then you can use the terminal to get the following error message.

Cannot locate any of #('libgtk-3.0.dylib' 'libgtk-3.dylib'). Please check if it installed on your system
GMacLibraryFinder(Object)>>error:
GMacLibraryFinder(FFILibraryFinder)>>findAnyLibrary:
GMacLibraryFinder class(FFILibraryFinder class)>>findAnyLibrary:
GtkLibrary>>macLibraryName
MacOSXPlatform(MacOSPlatform)>>ffiLibraryName:
GtkLibrary(FFILibrary)>>libraryName
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>libraryName
TFCalloutMethodBuilder>>createFFICalloutLiteralFromSpec:
TFCalloutMethodBuilder>>generateFFICallout:spec:ffiLibrary:
[ :builder | | r |

        "Copy the properties of the old method"
        sender methodProperties
            ifNotNil: [ properties := sender methodProperties copy.
                properties method: nil.
                builder properties: properties ].

        builder
            numArgs: self argumentNames size;
            addTemps: (self argumentNames copyWith: #result).

        ffiLibrary preMethodBuildContext: sender builder: builder spec: functionSpec.
        r := self generateFFICallout: builder spec: functionSpec ffiLibrary: ffiLibrary.
        ffiLibrary postMethodBuildContext: sender builder: builder spec: functionSpec.
        r] in TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generateMethodFromSpec: in Block: [ :builder | | r |...
IRBuilder class>>buildIR:
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generateMethodFromSpec:
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generate
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>build:
TFCalloutAPI(FFICalloutAPI)>>function:library:
GtkEngine(Object)>>ffiCall:library:options:fixedArgumentCount:
GtkEngine(Object)>>ffiCall:library:options:
GtkEngine(Object)>>ffiCall:
GtkEngine>>initArgC:argV:
GtkEngine>>initGtk3
GtkEngine>>start
GtkEngine(GEngine)>>run
GtkEngine class(GEngine class)>>ensureRunning
OSGtkDriver>>ensureGtkRunning
OSGtkDriver>>createWindowWithAttributes:osWindow:
OSWindowAttributes>>createWindowHandleFor:
OSWindow>>createWindow
OSWindow>>initWithAttributes:eventHandler:
OSWindow class>>createWithAttributes:eventHandler:
OSWorldRenderer>>doActivate
Error: Cannot locate any of #('libgtk-3.0.dylib' 'libgtk-3.dylib'). Please check if it installed on your system
GMacLibraryFinder(Object)>>error:
GMacLibraryFinder(FFILibraryFinder)>>findAnyLibrary:
GMacLibraryFinder class(FFILibraryFinder class)>>findAnyLibrary:
GtkLibrary>>macLibraryName
MacOSXPlatform(MacOSPlatform)>>ffiLibraryName:
GtkLibrary(FFILibrary)>>libraryName
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>libraryName
TFCalloutMethodBuilder>>createFFICalloutLiteralFromSpec:
TFCalloutMethodBuilder>>generateFFICallout:spec:ffiLibrary:
[ :builder | | r |

        "Copy the properties of the old method"
        sender methodProperties
            ifNotNil: [ properties := sender methodProperties copy.
                properties method: nil.
                builder properties: properties ].

        builder
            numArgs: self argumentNames size;
            addTemps: (self argumentNames copyWith: #result).

        ffiLibrary preMethodBuildContext: sender builder: builder spec: functionSpec.
        r := self generateFFICallout: builder spec: functionSpec ffiLibrary: ffiLibrary.
        ffiLibrary postMethodBuildContext: sender builder: builder spec: functionSpec.
        r] in TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generateMethodFromSpec: in Block: [ :builder | | r |...
IRBuilder class>>buildIR:
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generateMethodFromSpec:
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>generate
TFCalloutMethodBuilder(FFICalloutMethodBuilder)>>build:
TFCalloutAPI(FFICalloutAPI)>>function:library:
GtkEngine(Object)>>ffiCall:library:options:fixedArgumentCount:
GtkEngine(Object)>>ffiCall:library:options:
GtkEngine(Object)>>ffiCall:
GtkEngine>>initArgC:argV:
GtkEngine>>initGtk3
GtkEngine>>start
GtkEngine(GEngine)>>run
GtkEngine class(GEngine class)>>ensureRunning
OSGtkDriver>>ensureGtkRunning
OSGtkDriver>>createWindowWithAttributes:osWindow:
OSWindowAttributes>>createWindowHandleFor:
OSWindow>>createWindow
OSWindow>>initWithAttributes:eventHandler:
OSWindow class>>createWithAttributes:eventHandler:
OSWorldRenderer>>doActivate

Looks like the project does not load all the dependencies.

akevalion commented 1 year ago

Update in pharo10 does not install it because

Load Conflict between existing BaselineOfSpecCore [baseline] from github://pharo-spec/Spec:Pharo11 and BaselineOfSpecCore [baseline] from github://pharo-spec/Spec:v1.1.2/src
image
akevalion commented 1 year ago

Update use this version

Metacello new
  githubUser: 'badetitou' project: 'Pharo-LanguageServer' commitish: 'v3' path: 'src';
  baseline: 'PharoLanguageServer';
  load
badetitou commented 1 year ago

Thanks, documentation has been updated