Skip to content

Commit ce7a7f7

Browse files
committed
Added some error messages
1 parent 2ca0ebb commit ce7a7f7

File tree

113 files changed

+5292
-5292
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+5292
-5292
lines changed

src/PythonBridge-Pharo/PBPharoPlatform.class.st

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ PBPharoPlatform >> folderForApplication: application [
9494
{ #category : #utils }
9595
PBPharoPlatform >> forceInstallEnvironmentForApp: application [
9696
| proc |
97-
self assert: PBPharoPipenvProcess pipenvPath isEmptyOrNil not.
97+
self assert: PBPharoPipenvProcess pipenvPath isEmptyOrNil not description: 'pipenv is apparently not accessible at a standard location. Please, have a look at the Troubleshooting section of https://objectprofile.github.io/PythonBridge/pages/pharo-installation'.
9898
proc := OSSUnixSubprocess new
9999
command: '/bin/bash';
100100
addAllEnvVariablesFromParentWithoutOverride;
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Extension { #name : #Character }
2-
3-
{ #category : #'*PythonBridge' }
4-
Character >> isPythonGenerable [
5-
^ true
6-
]
7-
8-
{ #category : #'*PythonBridge' }
9-
Character >> isPythonValue [
10-
^ true
11-
]
1+
Extension { #name : #Character }
2+
3+
{ #category : #'*PythonBridge' }
4+
Character >> isPythonGenerable [
5+
^ true
6+
]
7+
8+
{ #category : #'*PythonBridge' }
9+
Character >> isPythonValue [
10+
^ true
11+
]
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Extension { #name : #Collection }
2-
3-
{ #category : #'*PythonBridge' }
4-
Collection >> ensureDo: aBlock [
5-
self do: [ :el | aBlock valueUninterruptably ]
6-
]
1+
Extension { #name : #Collection }
2+
3+
{ #category : #'*PythonBridge' }
4+
Collection >> ensureDo: aBlock [
5+
self do: [ :el | aBlock valueUninterruptably ]
6+
]
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Extension { #name : #Dictionary }
2-
3-
{ #category : #'*PythonBridge' }
4-
Dictionary >> isPythonGenerable [
5-
^ true
6-
]
7-
8-
{ #category : #'*PythonBridge' }
9-
Dictionary >> isPythonValue [
10-
^ true
11-
]
1+
Extension { #name : #Dictionary }
2+
3+
{ #category : #'*PythonBridge' }
4+
Dictionary >> isPythonGenerable [
5+
^ true
6+
]
7+
8+
{ #category : #'*PythonBridge' }
9+
Dictionary >> isPythonValue [
10+
^ true
11+
]

src/PythonBridge/False.extension.st

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Extension { #name : #False }
2-
3-
{ #category : #'*PythonBridge' }
4-
False >> isPythonGenerable [
5-
^ true
6-
]
7-
8-
{ #category : #'*PythonBridge' }
9-
False >> isPythonValue [
10-
^ true
11-
]
1+
Extension { #name : #False }
2+
3+
{ #category : #'*PythonBridge' }
4+
False >> isPythonGenerable [
5+
^ true
6+
]
7+
8+
{ #category : #'*PythonBridge' }
9+
False >> isPythonValue [
10+
^ true
11+
]

src/PythonBridge/Float.extension.st

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Extension { #name : #Float }
2-
3-
{ #category : #'*PythonBridge' }
4-
Float >> isPythonGenerable [
5-
^ true
6-
]
7-
8-
{ #category : #'*PythonBridge' }
9-
Float >> isPythonValue [
10-
^ true
11-
]
1+
Extension { #name : #Float }
2+
3+
{ #category : #'*PythonBridge' }
4+
Float >> isPythonGenerable [
5+
^ true
6+
]
7+
8+
{ #category : #'*PythonBridge' }
9+
Float >> isPythonValue [
10+
^ true
11+
]
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Extension { #name : #Fraction }
2-
3-
{ #category : #'*PythonBridge' }
4-
Fraction >> isPythonGenerable [
5-
^ true
6-
]
7-
8-
{ #category : #'*PythonBridge' }
9-
Fraction >> isPythonValue [
10-
^ true
11-
]
1+
Extension { #name : #Fraction }
2+
3+
{ #category : #'*PythonBridge' }
4+
Fraction >> isPythonGenerable [
5+
^ true
6+
]
7+
8+
{ #category : #'*PythonBridge' }
9+
Fraction >> isPythonValue [
10+
^ true
11+
]

src/PythonBridge/Integer.extension.st

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Extension { #name : #Integer }
2-
3-
{ #category : #'*PythonBridge' }
4-
Integer >> isPythonGenerable [
5-
^ true
6-
]
7-
8-
{ #category : #'*PythonBridge' }
9-
Integer >> isPythonValue [
10-
^ true
11-
]
1+
Extension { #name : #Integer }
2+
3+
{ #category : #'*PythonBridge' }
4+
Integer >> isPythonGenerable [
5+
^ true
6+
]
7+
8+
{ #category : #'*PythonBridge' }
9+
Integer >> isPythonValue [
10+
^ true
11+
]

src/PythonBridge/Object.extension.st

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Extension { #name : #Object }
2-
3-
{ #category : #'*PythonBridge' }
4-
Object >> isPythonGenerable [
5-
^ false
6-
]
1+
Extension { #name : #Object }
2+
3+
{ #category : #'*PythonBridge' }
4+
Object >> isPythonGenerable [
5+
^ false
6+
]
Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
Extension { #name : #P3GGenerable }
2-
3-
{ #category : #'*PythonBridge' }
4-
P3GGenerable >> isPythonGenerable [
5-
^ true
6-
]
7-
8-
{ #category : #'*PythonBridge' }
9-
P3GGenerable >> isPythonValue [
10-
^ true
11-
]
1+
Extension { #name : #P3GGenerable }
2+
3+
{ #category : #'*PythonBridge' }
4+
P3GGenerable >> isPythonGenerable [
5+
^ true
6+
]
7+
8+
{ #category : #'*PythonBridge' }
9+
P3GGenerable >> isPythonValue [
10+
^ true
11+
]
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Extension { #name : #P3GStatement }
2-
3-
{ #category : #'*PythonBridge' }
4-
P3GStatement >> isPythonValue [
5-
^ false
6-
]
1+
Extension { #name : #P3GStatement }
2+
3+
{ #category : #'*PythonBridge' }
4+
P3GStatement >> isPythonValue [
5+
^ false
6+
]
Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,30 @@
1-
Class {
2-
#name : #PBAbstractAnswer,
3-
#superclass : #Object,
4-
#instVars : [
5-
'message'
6-
],
7-
#category : #'PythonBridge-Platform-Messages'
8-
}
9-
10-
{ #category : #'instance creation' }
11-
PBAbstractAnswer class >> answerFor: aMessage [
12-
^ self new
13-
message: aMessage;
14-
yourself
15-
]
16-
17-
{ #category : #accessing }
18-
PBAbstractAnswer >> message [
19-
^ message
20-
]
21-
22-
{ #category : #accessing }
23-
PBAbstractAnswer >> message: anObject [
24-
message := anObject
25-
]
26-
27-
{ #category : #accessing }
28-
PBAbstractAnswer >> type [
29-
^ message type
30-
]
1+
Class {
2+
#name : #PBAbstractAnswer,
3+
#superclass : #Object,
4+
#instVars : [
5+
'message'
6+
],
7+
#category : #'PythonBridge-Platform-Messages'
8+
}
9+
10+
{ #category : #'instance creation' }
11+
PBAbstractAnswer class >> answerFor: aMessage [
12+
^ self new
13+
message: aMessage;
14+
yourself
15+
]
16+
17+
{ #category : #accessing }
18+
PBAbstractAnswer >> message [
19+
^ message
20+
]
21+
22+
{ #category : #accessing }
23+
PBAbstractAnswer >> message: anObject [
24+
message := anObject
25+
]
26+
27+
{ #category : #accessing }
28+
PBAbstractAnswer >> type [
29+
^ message type
30+
]
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
Class {
2-
#name : #PBAbstractFinalizer,
3-
#superclass : #Object,
4-
#category : #'PythonBridge-Platform'
5-
}
6-
7-
{ #category : #finalization }
8-
PBAbstractFinalizer >> finalize [
9-
self subclassResponsibility
10-
]
1+
Class {
2+
#name : #PBAbstractFinalizer,
3+
#superclass : #Object,
4+
#category : #'PythonBridge-Platform'
5+
}
6+
7+
{ #category : #finalization }
8+
PBAbstractFinalizer >> finalize [
9+
self subclassResponsibility
10+
]
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
Class {
2-
#name : #PBAbstractMessage,
3-
#superclass : #Object,
4-
#category : #'PythonBridge-Platform-Messages'
5-
}
6-
7-
{ #category : #testing }
8-
PBAbstractMessage class >> isReverseMessage [
9-
"Reverse messages corresponds to messages that start on Python to Pharo. In other words
10-
in reverse direction from normal messages."
11-
self subclassResponsibility
12-
]
13-
14-
{ #category : #accessing }
15-
PBAbstractMessage class >> type [
16-
self subclassResponsibility
17-
]
18-
19-
{ #category : #testing }
20-
PBAbstractMessage >> isReverseMessage [
21-
"Reverse messages corresponds to messages that start on Python to Pharo. In other words
22-
in reverse direction from normal messages."
23-
^ self class isReverseMessage
24-
]
25-
26-
{ #category : #accessing }
27-
PBAbstractMessage >> type [
28-
^ self class type
29-
]
1+
Class {
2+
#name : #PBAbstractMessage,
3+
#superclass : #Object,
4+
#category : #'PythonBridge-Platform-Messages'
5+
}
6+
7+
{ #category : #testing }
8+
PBAbstractMessage class >> isReverseMessage [
9+
"Reverse messages corresponds to messages that start on Python to Pharo. In other words
10+
in reverse direction from normal messages."
11+
self subclassResponsibility
12+
]
13+
14+
{ #category : #accessing }
15+
PBAbstractMessage class >> type [
16+
self subclassResponsibility
17+
]
18+
19+
{ #category : #testing }
20+
PBAbstractMessage >> isReverseMessage [
21+
"Reverse messages corresponds to messages that start on Python to Pharo. In other words
22+
in reverse direction from normal messages."
23+
^ self class isReverseMessage
24+
]
25+
26+
{ #category : #accessing }
27+
PBAbstractMessage >> type [
28+
^ self class type
29+
]

0 commit comments

Comments
 (0)