-
Notifications
You must be signed in to change notification settings - Fork 76
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
Server does not start when language set to Chinese #72
Comments
Hi, thanks for reporting this. You probably mean line 113. I will need your help with this. Apparently the console output of What's the output you get when you start
If you're on Linux or macOS, the command would be |
Hi, thanks for replying. I do mean line 113, oops :-) |
The output when starting |
This should fix issue #72, where the server would not start when Comsol was installed with the interface language set to Chinese. Parsing is now handled by a separate function so that it can be unit-tested. Currently, English (the default), German (issue #24), and Chinese (issue #72) output from the server process is being run against the regular expression. It is expected to work for all languages, effectively just looking for a four- or five-digit number in the line that begins with "COMSOL".
Always happy to hear. 😄 Thanks.
We definitely want to support all languages. It's just a little difficult to test, as I would have to go through the installer many times, and in languages I cannot even read. I've now added tests for Chinese, the default English, as well as German (previously reported in issue #24). In case the latest iteration of that regular expression doesn't work for some other language, people can open another issue and we'll fix that and add that language to the tests. I did see, just now, that there's also a way of having the server write the port out to a file. That would probably be the cleanest solution, but takes a little more work. I might implement that some other time. |
Fixed in MPh 1.1.5, released today. |
Thanks for sharing this practical package.
On line 133 of 'server.py', the code:
match = regex(r'(?i)^Comsol.+?server.+?(\d+)$', line.strip())
it may cause loop while setting Chinese as the as the programming language in comsol.
The text was updated successfully, but these errors were encountered: