Hi,
I am developing my application in Pharo with my windows computer. Then I save the code to monticello (http://ss3.gemstone.com/ss/RKA24). Then I try to load it in my ubuntu virtual desktop (VMware Player on my windows computer) with Gemstone 3.1.0.1 running. I use GemTools-1.0-beta.8.7-3101x, open the RKA24 repository within GemTools, select newest version and load it. I get a lot of errors like this (below). There is something wrong with the encoding. In the first moment I was thinking, that there are only a few methods with this problem but I have tons of it. I assume it has to do something with the windows -> unix environment? How can I load my code from monticello in the Gemstone/Ubuntu environment? Sabine a UserDefinedError occurred (error 2318), reason:halt, Compile error in Class: 'RKAReceiptKind class' method: defaultReceiptK ' defaultReceiptK i n d N a m e s * ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ 1,2,3,4,5,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 ^ s e l f d e f a u l t R e c e i p t K i n d s s e l e c t : [ : e a c h | e a c h r e c e i p t K i n d N a m e ] * ^^^ ^^^^^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^^^^^ ^^^^^^^ ^^^^^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^^^^^31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242 1: [1009] illegal character 2: [1009] illegal character 3: [1009] illegal character 4: [1009] illegal character 5: [1009] illegal character 6: [1009] illegal character 7: [1009] illegal character 8: [1009] illegal character 9: [1009] illegal character 10: [1009] illegal character 11: [1009] illegal character 12: [1009] illegal character 13: [1009] illegal character 14: [1009] illegal character 15: [1009] illegal character 16: [1009] illegal character 17: [1009] illegal character 18: [1009] illegal character 19: [1009] illegal character 20: [1009] illegal character 21: [1009] illegal character 22: [1009] illegal character 23: [1009] illegal character 24: [1009] illegal character 25: [1009] illegal character 26: [1009] illegal character 27: [1009] illegal character 28: [1009] illegal character 29: [1009] illegal character 30: [1009] illegal character 31: [1009] illegal character 32: [1009] illegal character 33: [1009] illegal character 34: [1009] illegal character 35: [1009] illegal character 36: [1009] illegal character 37: [1034] unexpected token 38: [1009] illegal character 39: [1009] illegal character 40: [1009] illegal character 41: [1009] illegal character 42: [1009] illegal character 43: [1009] illegal character 44: [1009] illegal character 45: [1009] illegal character 46: [1009] illegal character 47: [1009] illegal character 48: [1009] illegal character 49: [1009] illegal character 50: [1009] illegal character 51: [1009] illegal character 52: [1009] illegal character 53: [1009] illegal character 54: [1009] illegal character 55: [1009] illegal character 56: [1009] illegal character 57: [1009] illegal character 58: [1009] illegal character 59: [1009] illegal character 60: [1009] illegal character 61: [1009] illegal character 62: [1009] illegal character 63: [1009] illegal character 64: [1009] illegal character 65: [1009] illegal character 66: [1009] illegal character 67: [1009] illegal character 68: [1009] illegal character 69: [1009] illegal character 70: [1009] illegal character 71: [1009] illegal character 72: [1009] illegal character 73: [1009] illegal character 74: [1009] illegal character 75: [1009] illegal character 76: [1009] illegal character 77: [1009] illegal character 78: [1009] illegal character 79: [1009] illegal character 80: [1009] illegal character 81: [1009] illegal character 82: [1009] illegal character 83: [1009] illegal character 84: [1009] illegal character 85: [1009] illegal character 86: [1009] illegal character 87: [1009] illegal character 88: [1009] illegal character 89: [1009] illegal character 90: [1009] illegal character 91: [1009] illegal character 92: [1009] illegal character 93: [1009] illegal character 94: [1009] illegal character 95: [1009] illegal character 96: [1009] illegal character 97: [1009] illegal character 98: [1009] illegal character 99: [1009] illegal character 100: [1009] illegal character 101: [1009] illegal character 102: [1009] illegal character 103: [1009] illegal character 104: [1009] illegal character 105: [1009] illegal character 106: [1009] illegal character 107: [1009] illegal character 108: [1009] illegal character 109: [1009] illegal character 110: [1009] illegal character 111: [1009] illegal character 112: [1009] illegal character 113: [1009] illegal character 114: [1009] illegal character 115: [1009] illegal character 116: [1009] illegal character 117: [1009] illegal character 118: [1009] illegal character 119: [1009] illegal character 120: [1009] illegal character 121: [1009] illegal character 122: [1009] illegal character 123: [1009] illegal character 124: [1009] illegal character 125: [1009] illegal character 126: [1009] illegal character 127: [1009] illegal character 128: [1009] illegal character 129: [1009] illegal character 130: [1009] illegal character 131: [1009] illegal character 132: [1009] illegal character 133: [1009] illegal character 134: [1009] illegal character 135: [1009] illegal character 136: [1009] illegal character 137: [1007] invalid colon 138: [1009] illegal character 139: [1009] illegal character 140: [1009] illegal character 141: [1009] illegal character 142: [1009] illegal character 143: [1009] illegal character 144: [1034] unexpected token 145: [1009] illegal character 146: [1009] illegal character 147: [1009] illegal character 148: [1009] illegal character 149: [1009] illegal character 150: [1009] illegal character 151: [1007] invalid colon 152: [1009] illegal character 153: [1009] illegal character 154: [1009] illegal character 155: [1009] illegal character.... . |
Hi Sabine,
We had a similar problem when we imported some code from VisualWorks into Pharo. It loaded fine and appeared to work (tests passed), but when we deployed to GemStone we found that some methods refused to compile. The errors were very similar to those you reported. If I remember correctly, it was a bug in Monticello -- the source was stored in a two-byte-per-char string if our code had any Unicode characters present. Once we hunted those down and replaced them with Latin-1 equivalents, everything got back to normal. We were using Pharo on a Mac, so all we had to do was re-type them. Sorry I don't have more details -- my memory is very hazy on it. -- Ken Treis Miriam Technologies, Inc. (866) 652-2040 x221 On Dec 10, 2012, at 6:27 AM, Sabine Knöfel wrote:
|
Sabine,
I agree with Ken that this certainly looks like the problem ... the bug is that when a double byte character shows up in a method, Monticello ends up using WideString to encode the entire stream ... there is no standard encoding defined for Monticello, so you can end up with random encodings.... Supposedly there are patches for this particular bug and I think I might even have some code on my laptop, but the laptop is at home... I'm not quite sure what the fix entails, but I would be surprised if the correct interpretation of the WideString characters is preserved... At best the double byte characters will be munged in some way. For portable source code, you should probably avoid double byte characters, unless you use FileTree[1] which uses UTF8 encoding. FileTree is disk-based and you should probably use git to manage the source, so it might not be the ideal solution for you at this time. If you want to continue using mcz repositories then you should eliminate the double byte character(s) in your method source ... you should be able to find the bad boys by looking at diffs ... Dale ----- Original Message ----- | From: "Ken Treis" <[hidden email]> | To: "GemStone Seaside beta discussion" <[hidden email]> | Sent: Monday, December 10, 2012 8:21:11 AM | Subject: Re: [GS/SS Beta] compile error when loading code from monticello | | Hi Sabine, | | | We had a similar problem when we imported some code from VisualWorks | into Pharo. It loaded fine and appeared to work (tests passed), but | when we deployed to GemStone we found that some methods refused to | compile. The errors were very similar to those you reported. | | | If I remember correctly, it was a bug in Monticello -- the source was | stored in a two-byte-per-char string if our code had any Unicode | characters present. Once we hunted those down and replaced them with | Latin-1 equivalents, everything got back to normal. We were using | Pharo on a Mac, so all we had to do was re-type them. | | | Sorry I don't have more details -- my memory is very hazy on it. | | | | | | | | | | | | -- | Ken Treis | Miriam Technologies, Inc. | (866) 652-2040 x221 | | | On Dec 10, 2012, at 6:27 AM, Sabine Knöfel wrote: | | | | Hi, | | I am developing my application in Pharo with my windows computer. | Then I save the code to monticello ( http://ss3.gemstone.com/ss/RKA24 | ). | Then I try to load it in my ubuntu virtual desktop (VMware Player on | my | windows computer) with Gemstone 3.1.0.1 running. | I use GemTools-1.0-beta.8.7-3101x, open the RKA24 repository within | GemTools, select newest version and load it. | I get a lot of errors like this (below). | There is something wrong with the encoding. | In the first moment I was thinking, that there are only a few methods | with | this problem but I have tons of it. | I assume it has to do something with the windows -> unix environment? | | How can I load my code from monticello in the Gemstone/Ubuntu | environment? | | Sabine | | | a UserDefinedError occurred (error 2318), reason:halt, Compile error | in | Class: 'RKAReceiptKind class' method: defaultReceiptK | | ' defaultReceiptK i n d N a m e s | * ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ | 1,2,3,4,5,6,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30 | ^ s e l f d e f a u l t R e | c e i p t K i n d s s e l e c t : | [ : e a c h | e a c h r e c e | i p t K i n d N a m e ] | * ^^^ ^^^^^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ | ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ | ^^^^^^^ | ^^^^^^^ ^^^^^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ | ^^^ ^^^ | ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ ^^^ | ^^^^^^^31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242 | | 1: [1009] illegal character | 2: [1009] illegal character | 3: [1009] illegal character | 4: [1009] illegal character | 5: [1009] illegal character | 6: [1009] illegal character | 7: [1009] illegal character | 8: [1009] illegal character | 9: [1009] illegal character | 10: [1009] illegal character | 11: [1009] illegal character | 12: [1009] illegal character | 13: [1009] illegal character | 14: [1009] illegal character | 15: [1009] illegal character | 16: [1009] illegal character | 17: [1009] illegal character | 18: [1009] illegal character | 19: [1009] illegal character | 20: [1009] illegal character | 21: [1009] illegal character | 22: [1009] illegal character | 23: [1009] illegal character | 24: [1009] illegal character | 25: [1009] illegal character | 26: [1009] illegal character | 27: [1009] illegal character | 28: [1009] illegal character | 29: [1009] illegal character | 30: [1009] illegal character | 31: [1009] illegal character | 32: [1009] illegal character | 33: [1009] illegal character | 34: [1009] illegal character | 35: [1009] illegal character | 36: [1009] illegal character | 37: [1034] unexpected token | 38: [1009] illegal character | 39: [1009] illegal character | 40: [1009] illegal character | 41: [1009] illegal character | 42: [1009] illegal character | 43: [1009] illegal character | 44: [1009] illegal character | 45: [1009] illegal character | 46: [1009] illegal character | 47: [1009] illegal character | 48: [1009] illegal character | 49: [1009] illegal character | 50: [1009] illegal character | 51: [1009] illegal character | 52: [1009] illegal character | 53: [1009] illegal character | 54: [1009] illegal character | 55: [1009] illegal character | 56: [1009] illegal character | 57: [1009] illegal character | 58: [1009] illegal character | 59: [1009] illegal character | 60: [1009] illegal character | 61: [1009] illegal character | 62: [1009] illegal character | 63: [1009] illegal character | 64: [1009] illegal character | 65: [1009] illegal character | 66: [1009] illegal character | 67: [1009] illegal character | 68: [1009] illegal character | 69: [1009] illegal character | 70: [1009] illegal character | 71: [1009] illegal character | 72: [1009] illegal character | 73: [1009] illegal character | 74: [1009] illegal character | 75: [1009] illegal character | 76: [1009] illegal character | 77: [1009] illegal character | 78: [1009] illegal character | 79: [1009] illegal character | 80: [1009] illegal character | 81: [1009] illegal character | 82: [1009] illegal character | 83: [1009] illegal character | 84: [1009] illegal character | 85: [1009] illegal character | 86: [1009] illegal character | 87: [1009] illegal character | 88: [1009] illegal character | 89: [1009] illegal character | 90: [1009] illegal character | 91: [1009] illegal character | 92: [1009] illegal character | 93: [1009] illegal character | 94: [1009] illegal character | 95: [1009] illegal character | 96: [1009] illegal character | 97: [1009] illegal character | 98: [1009] illegal character | 99: [1009] illegal character | 100: [1009] illegal character | 101: [1009] illegal character | 102: [1009] illegal character | 103: [1009] illegal character | 104: [1009] illegal character | 105: [1009] illegal character | 106: [1009] illegal character | 107: [1009] illegal character | 108: [1009] illegal character | 109: [1009] illegal character | 110: [1009] illegal character | 111: [1009] illegal character | 112: [1009] illegal character | 113: [1009] illegal character | 114: [1009] illegal character | 115: [1009] illegal character | 116: [1009] illegal character | 117: [1009] illegal character | 118: [1009] illegal character | 119: [1009] illegal character | 120: [1009] illegal character | 121: [1009] illegal character | 122: [1009] illegal character | 123: [1009] illegal character | 124: [1009] illegal character | 125: [1009] illegal character | 126: [1009] illegal character | 127: [1009] illegal character | 128: [1009] illegal character | 129: [1009] illegal character | 130: [1009] illegal character | 131: [1009] illegal character | 132: [1009] illegal character | 133: [1009] illegal character | 134: [1009] illegal character | 135: [1009] illegal character | 136: [1009] illegal character | 137: [1007] invalid colon | 138: [1009] illegal character | 139: [1009] illegal character | 140: [1009] illegal character | 141: [1009] illegal character | 142: [1009] illegal character | 143: [1009] illegal character | 144: [1034] unexpected token | 145: [1009] illegal character | 146: [1009] illegal character | 147: [1009] illegal character | 148: [1009] illegal character | 149: [1009] illegal character | 150: [1009] illegal character | 151: [1007] invalid colon | 152: [1009] illegal character | 153: [1009] illegal character | 154: [1009] illegal character | 155: [1009] illegal character.... | . | | | | -- | View this message in context: | http://forum.world.st/compile-error-when-loading-code-from-monticello-tp4658706.html | Sent from the GLASS mailing list archive at Nabble.com . | | |
Hi Ken, hi Dale,
thank you for helping. Yesterday, I ended with copying and pasting my methods from Pharo to Gemstone and then stopped and I decided that there have been too many problems the last days I tried to get Gemstone to run. I stopped developing in smalltalk and was busy with configuration stuff for too many days. I decided to try with another database and I had a look at magma. I loaded it and was able to make my root object persistant in less than 1 hour. As long as my business is very small, I assume that Gemstone is too complex for me. Thank you for helping so far. Sabine |
Sabine,
No problem ... There are a number of moving parts for GemStone and GemTools is in need of a tune-up (something I'm working on right now). There are a number of different persistence options for Smalltalk and each of them have their strengths and weaknesses so you should work with the one that makes your life easier, by all means! Dale ----- Original Message ----- | From: "Sabine Knöfel" <[hidden email]> | To: [hidden email] | Sent: Wednesday, December 12, 2012 2:37:06 AM | Subject: Re: [GS/SS Beta] compile error when loading code from monticello | | Hi Ken, hi Dale, | | thank you for helping. | | Yesterday, I ended with copying and pasting my methods from Pharo to | Gemstone and then stopped and I decided that there have been too many | problems the last days I tried to get Gemstone to run. I stopped | developing | in smalltalk and was busy with configuration stuff for too many days. | | I decided to try with another database and I had a look at magma. I | loaded | it and was able to make my root object persistant in less than 1 | hour. | | As long as my business is very small, I assume that Gemstone is too | complex | for me. | | Thank you for helping so far. | Sabine | | | | -- | View this message in context: | http://forum.world.st/compile-error-when-loading-code-from-monticello-tp4658706p4659012.html | Sent from the GLASS mailing list archive at Nabble.com. | |
Free forum by Nabble | Edit this page |