{"action":"created","issue":{"url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/507","labels_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/507/labels{/name}","comments_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/507/comments","events_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/507/events","html_url":"https://github.com/marekr/kicad-issue-test/issues/507","id":120703437,"number":507,"title":"Use of \"/\" in old module names causes PFID errors when boards are resaved ","user":{"login":"marekr","id":1838013,"avatar_url":"https://avatars.githubusercontent.com/u/1838013?v=3","gravatar_id":"","url":"https://api.github.com/users/marekr","html_url":"https://github.com/marekr","followers_url":"https://api.github.com/users/marekr/followers","following_url":"https://api.github.com/users/marekr/following{/other_user}","gists_url":"https://api.github.com/users/marekr/gists{/gist_id}","starred_url":"https://api.github.com/users/marekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekr/subscriptions","organizations_url":"https://api.github.com/users/marekr/orgs","repos_url":"https://api.github.com/users/marekr/repos","events_url":"https://api.github.com/users/marekr/events{/privacy}","received_events_url":"https://api.github.com/users/marekr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/New","name":"New","color":"ddffdd"},{"url":"https://api.github.com/repos/marekr/kicad-issue-test/labels/Undecided","name":"Undecided","color":"ffdddd"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-07T05:47:02Z","updated_at":"2015-12-07T10:57:31Z","closed_at":null,"body":"In at least one case, a module name from the public footprints available at smisioto.no-ip.org/elettronica/kicad/kicad.htm contain a \"/\" in the module name.  Apparently this was OK with the old format, but not the new format of footprints.  The result is that when a old format board is changed, the module name is apparently truncated to only the portion of the name following the \"/\" and then the next time the board is loaded, an error such as the following occurs:\n\nError loading board.\nIO_ERROR: invalid PFID in\nfile: </media/mike/KICAD/Boards/ArtPoE/Debugger-10/HexenDBG.kicad_pcb>\nline: 614\noffset: 11\nfrom /home/mike/kicad_sources/kicad.bzr/pcbnew/pcb_parser.cpp : parseMODULE() : line 1556\n\nNow, it may be that the module name that happened to bite me was \"crystal_hc-49/smd\" which was truncated to \"smd\" and that might have complicated the matter.\n\nI have not yet been able to fix the PCB I was working with when I first stumbled across the error; but, on other files that I changed before they were resaved there was no problem."},"comment":{"url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/comments/162482491","html_url":"https://github.com/marekr/kicad-issue-test/issues/507#issuecomment-162482491","issue_url":"https://api.github.com/repos/marekr/kicad-issue-test/issues/507","id":162482491,"user":{"login":"marekr","id":1838013,"avatar_url":"https://avatars.githubusercontent.com/u/1838013?v=3","gravatar_id":"","url":"https://api.github.com/users/marekr","html_url":"https://github.com/marekr","followers_url":"https://api.github.com/users/marekr/followers","following_url":"https://api.github.com/users/marekr/following{/other_user}","gists_url":"https://api.github.com/users/marekr/gists{/gist_id}","starred_url":"https://api.github.com/users/marekr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marekr/subscriptions","organizations_url":"https://api.github.com/users/marekr/orgs","repos_url":"https://api.github.com/users/marekr/repos","events_url":"https://api.github.com/users/marekr/events{/privacy}","received_events_url":"https://api.github.com/users/marekr/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T10:57:31Z","updated_at":"2015-12-07T10:57:31Z","body":"(by martin-dallens)\nI stumbled upon this same bug in a recent build.\n\nSteps to reproduce :\n- In Eeschema, add footprint info with a slash like \"QFN/TQFP\"\nThe slash will cause a problem, but there is no warning.\n- Open cvpcb, associate a random component\n- Save associations\n- Close cvpcb\n- Reopen cvpcb\n\nWhat happens :\n- The following error message is displayed, and the netlist isn't loaded.\n   Error :\n   Erreurr lors du chargement de la netliste.\n   IO_ERROR: PFID invalide dans le fichier: <Eeschema via Kiway>\n   ligne: 45      offset: 24\n   from /build/kicad-OYOLBG/kicad-0.201506092253+5726~23~ubuntu15.04.1/kicad/pcbnew/kicad_netlist_reader.cpp : parseComponent() : line 375\n- Reading the association directly in Eeschema now just shows \"QFN:\". The slash and \"TQFP\" disappeared. The colon is appeared and causes the parsing problem.\n\nWhat should happen :\n- The parser should give a more explicit error message\n- The parser should be more tolerant to colons\n- If slashes are to be disallowed, there should at least be a warning. I had a hard time figuring that this was the issue.\n\nWorkaround :\n- In Eeschema, remove the colon and avoid using slashes. Regenerate the netlist, and you're good to go.\n\n\nNote: a similar bug is described in response #5 of https://bugs.launchpad.net/kicad/+bug/1226546\n\n\n\nApplication: kicad\nVersion: 0.201506092253+5726~23~ubuntu15.04.1-product release build\nwxWidgets: Version 3.0.2 (debug,wchar_t,compiler with C++ ABI 1002,GCC 4.9.2,wx containers,compatible with 2.8)\nPlatform: Linux 3.19.0-18-generic x86_64, 64 bit, Little endian, wxGTK\nBoost version: 1.54.0\n         USE_WX_GRAPHICS_CONTEXT=OFF\n         USE_WX_OVERLAY=OFF\n         KICAD_SCRIPTING=ON\n         KICAD_SCRIPTING_MODULES=ON\n         KICAD_SCRIPTING_WXPYTHON=ON\n         USE_FP_LIB_TABLE=HARD_CODED_ON\n         BUILD_GITHUB_PLUGIN=ON\n"}}