Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

please help me in this error

Discussion in 'Editor & General Support' started by Rajeev Chauhan, May 15, 2015.

  1. Rajeev Chauhan

    Rajeev Chauhan

    Joined:
    Mar 16, 2015
    Posts:
    3
    Internal compiler error. See the console log for more information. output was:Error: System.ArgumentException: An element with the same key already exists in the dictionary.
    at System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) [0x00000] in <filename unknown>:0
    at us.UnityScriptCompilerFactory.FromCommandLineOptions (us.CommandLineOptions options) [0x00000] in <filename unknown>:0
    at us.UsModule.compile (us.CommandLineOptions options) [0x00000] in <filename unknown>:0
    at us.UsModule.runWithCommandLine (System.String[] commandLine) [0x00000] in <filename unknown>:0
    at us.UsModule.Main (System.String[] argv) [0x00000] in <filename unknown>:0
     
  2. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,986
    The error says you are trying add a dictionary element using a key that already exists, have you checked that?
     
  3. Rajeev Chauhan

    Rajeev Chauhan

    Joined:
    Mar 16, 2015
    Posts:
    3
    what I have to check?? I am not understanding how to check......can You Please tell me what I have to do .
     
  4. zombiegorilla

    zombiegorilla

    Moderator

    Joined:
    May 8, 2012
    Posts:
    8,986
    I believe it is saying somewhere in your code you using an existing dictionary key. Are you using a dictionary somewhere?
     
  5. Rajeev Chauhan

    Rajeev Chauhan

    Joined:
    Mar 16, 2015
    Posts:
    3
    @Zombi...I can also understand from the error description that somewhere duplicate key is being added in the dictionary ..but the problem is that I cant get any reference to that ...as where the duplicate key is being inserted and which script is causing the problem.. I believe its got something to do with the internal compiler error..let me know if you can help on this
     
  6. pgosselin

    pgosselin

    Joined:
    Oct 24, 2014
    Posts:
    1
    did you find the answer because I have a similar problem