kushaljshah / language-detection

Automatically exported from code.google.com/p/language-detection
0 stars 0 forks source link

Error: duplicate the same language profile #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.I provide the profiles folder in the project
2.run 
3.

What is the expected output? What do you see instead?
get error : duplicate the same language profile

What version of the product are you using? On what operating system?
latest version ; max os 

Please provide any additional information below.

Original issue reported on code.google.com by hover6...@gmail.com on 9 Dec 2011 at 7:53

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I got it.

loadfile cannot run more than once.

Why not add a function  boolean isLoaded()?

Original comment by hover6...@gmail.com on 9 Dec 2011 at 8:10

GoogleCodeExporter commented 8 years ago
As you mentioned, loadProfiles can be called only at once.
Normally it is easy to call it once.
But if you want to check, catch an exception which loadProfile throws in 
duplicate calling.

Original comment by nakatani.shuyo on 13 Dec 2011 at 6:10