Skip to content

Commit

Permalink
Add a library menu item to load Famix SQL - Not working yet
Browse files Browse the repository at this point in the history
Currently trying to load FamixSQL ( https://github.com/moosetechnology/FamixSQL) will result in error due to the refactoring of WeakRegistry class in a dependency (https://github.com/pharo-rdbms/Pharo-ODBC)
This can be bypassed by replacing the reference to WeakRegistry  by FinalizationRegistry when loading it.
There are two references to WeakRegistry inPharo-ODBC, ODBCConnection class>>#newConnections that can be fix at loading time and  ODBCConnection>>#initializeStatements that can be fixed after.
A pull request has been opened in Pharo-ODBC to fix it for the latest versions of Pharo and Moose (pharo-rdbms/Pharo-ODBC#11)
  • Loading branch information
Inao0 authored and Inao0 committed Oct 18, 2024
1 parent dfca33e commit dfee5cc
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions src/MooseIDE-Core/MooseLoadFamixSQLMenuCommand.class.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Class {
#name : #MooseLoadFamixSQLMenuCommand,
#superclass : #MooseAbstractLoadFamixMenuCommand,
#category : #'MooseIDE-Core-MenuBar'
}

{ #category : #accessing }
MooseLoadFamixSQLMenuCommand class >> help [

^ 'Famix Metamodel for SQL'
]

{ #category : #accessing }
MooseLoadFamixSQLMenuCommand class >> label [

^ 'Famix-SQL'
]

{ #category : #accessing }
MooseLoadFamixSQLMenuCommand class >> menuPriority [

^super menuPriority + 1
]

{ #category : #accessing }
MooseLoadFamixSQLMenuCommand >> baselineName [

^ 'FamixSQL'
]

{ #category : #accessing }
MooseLoadFamixSQLMenuCommand >> repositoryURL [

^ 'github://moosetechnology/FamixSQL:' , self version , '/src'
]

{ #category : #accessing }
MooseLoadFamixSQLMenuCommand >> version [

^ 'main'
]

0 comments on commit dfee5cc

Please sign in to comment.