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
Different crashes at custom(manually edited) vcxproj files. #115
Comments
Hi @Randrianasulu , what about verbose output? |
Triple sorry! LANG=C cmake-converter -v -ias -s Spp2Pgs.sln The above exception was the direct cause of the following exception: Traceback (most recent call last): is this enough? |
could you, please, run with single thread(-j 1) and post the log again? |
guest@slax:~/botva/src/src/Spp2Pgs$ LANG=C cmake-converter -j 1 -v -ias -s Spp2Pgs.sln |
Your libspp2pgs.vcxproj And your vcxproj look too custom. Have you created it only with vs UI? If haven't I can't help you because I'm not going to support full msbuild syntax. You should investigate and change your vcxproj files by yourself in this case. |
Well, this is not my project, I just tried to see if there was 'easy' way to build it on Linux. But thanks anyway .. |
So, I deleted few lines in vcproj file: diff --git a/libspp2pgs/libspp2pgs.vcxproj b/libspp2pgs/libspp2pgs.vcxproj
@@ -120,13 +116,6 @@ п»ї
@@ -146,11 +135,6 @@ п»ї
it fails differently now (I think mainline 2.0.1 release failed in similar way): LANG=C cmake-converter -j 1 -v -ias -s Spp2Pgs.sln |
So why don't you fork and provide me a link to your modifications? It would be easy to reproduce the issue then. |
Mostly because 'modifications' right now just few deletions, and I'm not even sure if this project will be compile-able on Linux? (sorry, I forgot about this Markdown formatting, trying to attach my diff file now ... cries about github not supporting diffs .... ) Anyway, may be those unsupported lines can be skipped (with warning/suggestion to user)? |
Fixed your last fail with 0117a15. Now that project could be parsed fine. |
I was trying to convert project from https://github.com/subelf/Spp2Pgs, but cmake-converter failed
To Reproduce
Installed newest version of cmake-converter:
root@slax:/home/guest/botva/src/src/cmakeconverter# pip3 install .
Processing /home/guest/botva/src/src/cmakeconverter
Requirement already satisfied: lxml in /usr/lib/python3.7/site-packages (from cmake-converter==2.0.1) (4.5.2)
Requirement already satisfied: colorama in /usr/lib/python3.7/site-packages (from cmake-converter==2.0.1) (0.4.3)
Could not build wheels for cmake-converter, since package 'wheel' is not installed.
Could not build wheels for lxml, since package 'wheel' is not installed.
Could not build wheels for colorama, since package 'wheel' is not installed.
Installing collected packages: cmake-converter
Attempting uninstall: cmake-converter
Found existing installation: cmake-converter 2.0.1
Uninstalling cmake-converter-2.0.1:
Successfully uninstalled cmake-converter-2.0.1
Running setup.py install for cmake-converter ... done
Successfully installed cmake-converter-2.0.1
[it still says 2.0.1, even if default branch after git clone was 'develop']
After this I tried to run converter on cloned Spp2Pgs project:
LANG=C cmake-converter -ias -s Spp2Pgs.sln
0.000051 processes count = 4
0.000108 warnings level = 2
0.000119 absent source files will be ignored
0.021095 1> Conversion started: Project libspp2pgs
0.022370 2> Conversion started: Project Spp2Pgs
0.022459 3> Conversion started: Project Spp2PgsNet
0.028231 4> Conversion started: Project xy-VSSppf
multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/usr/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/usr/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/usr/lib/python3.7/site-packages/cmake_converter/data_converter.py", line 269, in run_conversion
target_data['subdirectory'],
File "/usr/lib/python3.7/site-packages/cmake_converter/data_converter.py", line 235, in convert_project
self.collect_data(context)
File "/usr/lib/python3.7/site-packages/cmake_converter/data_converter.py", line 53, in collect_data
context.parser.parse(context)
File "/usr/lib/python3.7/site-packages/cmake_converter/visual_studio/vcxproj/parser.py", line 145, in parse
self._parse_nodes(context, root)
File "/usr/lib/python3.7/site-packages/cmake_converter/parser.py", line 82, in _parse_nodes
self._parse_attributes(context, child_node)
File "/usr/lib/python3.7/site-packages/cmake_converter/parser.py", line 109, in _parse_attributes
attributes_handlers[attr](context, attr, node.get(attr), node)
File "/usr/lib/python3.7/site-packages/cmake_converter/visual_studio/vcxproj/parser.py", line 291, in __parse_condition
cmake_setting = make_cmake_configuration(context, found.group(1))
File "/usr/lib/python3.7/site-packages/cmake_converter/utils.py", line 501, in make_cmake_configuration
return "{}|{}".format(*sln_conf_arch)
IndexError: tuple index out of range
"""
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/bin/cmake-converter", line 11, in
load_entry_point('cmake-converter==2.0.1', 'console_scripts', 'cmake-converter')()
File "/usr/lib/python3.7/site-packages/cmake_converter/main.py", line 144, in main
converter.convert_solution(project_context, os.path.abspath(args.solution))
File "/usr/lib/python3.7/site-packages/cmake_converter/visual_studio/solution.py", line 331, in convert_solution
results = self.do_conversion(project_context, input_data_for_converter)
File "/usr/lib/python3.7/site-packages/cmake_converter/data_converter.py", line 298, in do_conversion
results = pool.map(self.run_conversion, input_converter_data_list)
File "/usr/lib/python3.7/multiprocessing/pool.py", line 268, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/usr/lib/python3.7/multiprocessing/pool.py", line 657, in get
raise self._value
IndexError: tuple index out of range
Expected behavior
Successfull conversion, so I can hack on Cmakefiles :}
Additional context
I'm on Slackware Linux, x86-32
The text was updated successfully, but these errors were encountered: