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

Instance of Object did not understand #asSymbol #579

Closed
vonbecmann opened this issue Feb 21, 2018 · 4 comments
Closed

Instance of Object did not understand #asSymbol #579

vonbecmann opened this issue Feb 21, 2018 · 4 comments
Milestone

Comments

@vonbecmann
Copy link

Instance of Object did not understand #asSymbol

Pharo image: Pharo6.0#60532
Virtual machine used: CoInterpreter VMMaker.oscog-eem.2266 uuid: 0501d71a-3185-4bdb-a99c-76a5fbbeee22 Sep 1 2017
StackToRegisterMappingCogit VMMaker.oscog-eem.2262 uuid: 8b531242-de02-48aa-b418-8d2dde0bec6c Sep 1 2017
VM: 201708312323 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $ Date: Fri Sep 1 01:23:24 2017 +0200 $ Plugins: 201708312323 https://github.com/OpenSmalltalk/opensmalltalk-vm.git $

Platform Name: unix
Class browser used (if applicable): Nautilus

Steps to reproduce:
#. World >> Iceberg
#. Click on 'New repository'
#. Input the following

  • Project name: none
  • Local directory: 'leave it unchanged'
  • Code subdirectory: repository
    #. Click on 'Create repository'

Actual Result:
#. Instance of Object did not understand #asSymbol

Expected Result:
#. a new create repository named none with a subdirectory called repository

@guillep
Copy link
Member

guillep commented Mar 13, 2018

This seems to happen in pharo 6.1 download, taken from #582.

The stack trace as provided by @jecisc

Object>>doesNotUnderstand: #asSymbol
IceRepository class>>defaultFileFormat
IceRepositoryCreator>>formatToUse
IceRepositoryCreator>>addPropertiesFileTo:
IceRepositoryCreator>>createNewRepositoryNamed:
[ | repository |
self projectName isEmptyOrNil
	ifTrue: [ Error signal: 'Project name is required' ].
repository := IceRepositoryCreator new
	location: self location / self projectName;
	subdirectory: subdirectory text;
	createNewRepositoryNamed: self projectName.
repository register.
self window delete.
acceptBlock ifNotNil: [ acceptBlock cull: self ] ] in IceNewRepositoryModel>>createRepository in Block: [ | repository |...
BlockClosure>>on:do:
IceNewRepositoryModel>>createRepository
[ self createRepository ] in IceNewRepositoryModel(IceCreateRepositoryModel)>>initializePresenter in Block: [ self createRepository ]
ButtonModel>>performAction
MorphicButtonAdapter>>action
PluggableButtonMorph>>performAction:

@jecisc
Copy link
Contributor

jecisc commented Mar 13, 2018

As I said, the problem comes from the content of IceRepository>>defaultFileFormatType.

To see the problem:
Just download a Pharo 61 image (I did it via the PharoLauncher) and inspect IceRepository defaultFileFormatType

@guillep
Copy link
Member

guillep commented Mar 14, 2018

Ok, this problem is not in Pharo7 because it's bootstrapped. I have reproduced the problem in Pharo 6.1. It looks like a residual side effect that happened because Iceberg is not correctly migrated.

I'll talk to @estebanlm to see how we can proceed. Because in a couple of weeks we will have a new release of iceberg, which I don't know if it is going to be for Pharo 6.1. In any case, for anybody reading this issue, a workaround is to execute this in your workspace/playground:

IceRepository defaultFileFormatType: nil

@guillep guillep added this to the 0.6.9 milestone Mar 14, 2018
@guillep
Copy link
Member

guillep commented Jun 28, 2018

This is not valid anymore in latest version.

@guillep guillep closed this as completed Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants