Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minimal images #45

Open
sebastianconcept opened this issue Mar 10, 2023 · 5 comments
Open

Minimal images #45

sebastianconcept opened this issue Mar 10, 2023 · 5 comments

Comments

@sebastianconcept
Copy link

Would Telepharo make sense without Calypso? Can it become not depending on it?

I'm interested in using it on minimal images.

I've tried to load it in a Pharo10 minimal but got this:

Warning: Package TelePharo-Browser-Server depends on the following classes:
  ClyMessageBasedQuery
  ClyClassScript
  ClyCompositeQuery
  ClyClassChange
  ClyCompositeTestResultProperty
  ClySortSystemItemFunction
  ClyVariable
  ClyPackageChange
  ClyProperty
  ClyBrowserQueryCache
  ClyBrowserQueryUpdate
  ClyClassHierarchy
  ClyBrowserItem
  ClyScope
  ClyInheritedMethodGroup
  ClyItemGroup
  ClyMethodVisibilityLevel
  ClyMultipleClassRelationScope
  ClyQueryResultMetadata
  ClyQuery
  ClyQueryResult
  ClyBrowserQueryCursor
  ClyItemChildrenTag
  ClyItemFilter
  ClyConstantMethodQuery
  ClyMethodChange
  ClyEnvironmentChanged
  ClyCompositeScope
  ClySortFunction
  ClyStringPattern
  ClyMergedHierarchy
You must resolve these dependencies before you will be able to load these definitions: 
  ClyBrowserItem>>#prepareValueTransferBy:
  ClyBrowserItem>>#seamlessDefaultTransferStrategy
  ClyBrowserQueryCache>>#prepareValueTransferBy:
  ClyBrowserQueryCache>>#seamlessDefaultTransferStrategy
  ClyBrowserQueryCursor>>#seamlessDefaultTransferStrategy
  ClyBrowserQueryUpdate>>#seamlessDefaultTransferStrategy
  ClyClassChange>>#seamlessDefaultTransferStrategy
  ClyClassHierarchy>>#seamlessDefaultTransferStrategy
  ClyClassScript>>#seamlessDefaultTransferStrategy
  ClyCompositeQuery>>#prepareValueTransferBy:
  ClyCompositeScope>>#prepareValueTransferBy:
  ClyCompositeTestResultProperty>>#prepareValueTransferBy:
  ClyConstantMethodQuery>>#prepareValueTransferBy:
  ClyEnvironmentChanged>>#seamlessDefaultTransferStrategy
  ClyInheritedMethodGroup>>#prepareValueTransferBy:
  ClyItemChildrenTag>>#prepareValueTransferBy:
  ClyItemFilter>>#seamlessDefaultTransferStrategy
  ClyItemGroup>>#seamlessDefaultTransferStrategy
  ClyItemGroup>>#seamlessDefaultTransferStrategy
  ClyMergedHierarchy>>#prepareValueTransferBy:
  ClyMessageBasedQuery>>#prepareValueTransferBy:
  ClyMethodChange>>#seamlessDefaultTransferStrategy
  ClyMethodVisibilityLevel>>#seamlessDefaultTransferStrategy
  ClyMultipleClassRelationScope>>#prepareValueTransferBy:
  ClyPackageChange>>#seamlessDefaultTransferStrategy
  ClyProperty>>#seamlessDefaultTransferStrategy
  ClyQuery>>#seamlessDefaultTransferStrategy
  ClyQuery>>#seamlessDefaultTransferStrategy
  ClyQueryResult>>#seamlessDefaultTransferStrategy
  ClyQueryResult>>#seamlessDefaultTransferStrategy
  ClyQueryResultMetadata>>#prepareValueTransferBy:
  ClyQueryResultMetadata>>#seamlessDefaultTransferStrategy
  ClyScope>>#seamlessDefaultTransferStrategy
  ClyScope>>#prepareValueTransferBy:
  ClyScope>>#seamlessDefaultTransferStrategy
  ClySortFunction>>#seamlessDefaultTransferStrategy
  ClySortSystemItemFunction>>#prepareValueTransferBy:
  ClyStringPattern>>#seamlessDefaultTransferStrategy
  ClyVariable>>#seamlessDefaultTransferStrategy
@dionisiydk
Copy link
Collaborator

You can try to add dependency to Calypso project as MinimalEnvironment group (it is defined in BaselineOfCalypso).

Alternatively you can remove TelePharo-Browser-Server and TelePharo-Browser-Client from the baseline.
It will break the remote browser feature.

@sebastianconcept
Copy link
Author

Thanks for that @dionisiydk .

For the record, the following steps seem to go well:

 ./pharo Pharo10minimal.image eval --save "Metacello new baseline: 'Calypso'; repository: 'github://pharo-ide/Calypso:dev/src'; load: #('MinimalEnvironment')"
 
./pharo Pharo10minimal.image eval --save "Metacello new baseline: 'TelePharo'; repository: 'github://pharo-ide/TelePharo'; load: 'Server'."

./pharo Pharo10minimal.image eval TlpRemoteUIManager registerOnPort: 40423

Although it finishes well and runs, the Pharo10minimal image has one warning while loading TelePharo:

Warning: Package *TelePharo-Core depends on the following classes:
  PharoCommonTools
You must resolve these dependencies before you will be able to load these definitions: 
  PharoCommonTools>>#registerRemoteTool:as:
  PharoCommonTools>>#remoteToolNamed:

MCPackageLoader(Object)>>notify:
MCPackageLoader>>warnAboutDependencies

And on the other side of the setup, in a normal Pharo10 image, trying to load TelePharo client also has many issues to load. It has the complains about Calypso.
Also this:

Warning: Package TelePharo-Playground depends on the following classes:
  GTPlayground
You must resolve these dependencies before you will be able to load these definitions: 
  TlpPlayground
  TlpPlayground>>#openFor:
  TlpPlayground>>#register
  TlpPlayground>>#codePresentationIn:
  TlpPlayground>>#defaultPlaygroundTitle
  TlpPlayground>>#remotePharo
  TlpPlayground>>#remotePharo:

How do you load TelePharo on Pharo10?

@dionisiydk
Copy link
Collaborator

I afraid TelePharo is not adopted to NewTools and still requires GT.
I don't think you can easy load GT version (and it's unclear what version).

I started to work on migration. But it's not published yet.

@sebastianconcept
Copy link
Author

@dionisiydk any news on publishing that or decloupling? I'd love to test it for Pharo11 based backends

@dionisiydk
Copy link
Collaborator

maybe I will get chance to work on it in march/april but can't say for sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants