Skip to content
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

Can't generate VS projects for static library and executable with the same name #54

Open
peace-maker opened this issue Feb 5, 2018 · 0 comments

Comments

@peace-maker
Copy link
Member

When there is a StaticLibrary and a Program with the same name in a builder instance VS project file generation fails.

C:\Users\User\Documents\GitHub\sourcepawn\vs>python ..\configure.py --enable-debug -g vs --build=all
Path exp\compiler\spcomp - Default\spcomp.pdb already exists as: output
Traceback (most recent call last):
  File "..\configure.py", line 41, in <module>
    run.Configure()
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\prep.py", line 121, in Configure
    if not builder.generate():
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\base\gen.py", line 274, in generate
    self.parseBuildScripts()
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\base\gen.py", line 183, in parseBuildScripts
    self.evalScript(root)
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\base\gen.py", line 243, in evalScript
    exec(code, new_vars)
  File "C:\Users\User\Documents\GitHub\sourcepawn\AMBuildScript", line 267, in <module>
    sp.BuildSuite()
  File "C:\Users\User\Documents\GitHub\sourcepawn\AMBuildScript", line 251, in BuildSuite
    self.BuildExperimental()
  File "C:\Users\User\Documents\GitHub\sourcepawn\AMBuildScript", line 243, in BuildExperimental
    builder.RunBuildScripts(self.exp_scripts, self.vars)
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\base\gen.py", line 117, in RunBuildScripts
    self.generator.evalScript(script, vars)
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\base\gen.py", line 243, in evalScript
    exec(code, new_vars)
  File "C:\Users\User\Documents\GitHub\sourcepawn\exp\compiler\AMBuilder", line 83, in <module>
    builder.Add(binary)
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\base\gen.py", line 121, in Add
    return taskbuilder.generate(self.generator, self)
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\vs\cxx.py", line 56, in <lambda>
    builder.generate = lambda generator, cx: self.generate(generator, cx)[0]
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\vs\cxx.py", line 65, in generate
    return self.generate_combined(generator, cx)
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\vs\cxx.py", line 85, in generate_combined
    pdbNode = generator.addOutput(cx, pdbFile, node)
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\vs\gen.py", line 161, in addOutput
    self.ensureUnique(path)
  File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\ambuild2\frontend\v2_0\vs\gen.py", line 118, in ensureUnique
    raise Exception('Path {0} already exists as: {1}'.format(path, entry.kind))
Exception: Path exp\compiler\spcomp - Default\spcomp.pdb already exists as: output

alliedmodders/sourcepawn#27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant