CppParser.ParseFiles() functions differently when run during a pre-build event in VS19, but works normally elsewhere
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
Línea de trabajo
Comienza en CppParser.ParseFiles() y compara su comportamiento cuando se inicia desde el depurador o desde una aplicación publicada localmente con el evento pre-build de Visual Studio 19. Inspecciona el entorno del proceso pre-build y su salida, especialmente las diferencias en los tiempos de análisis y el número de clases. Se considera terminado cuando la invocación pre-build analiza las mismas 19 clases, identifica las 4 clases reflectables y genera los 16 archivos.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
I am developing a small preprocessor for a game engine that I am working on with some friends, and we are using CppAST.Net in the preprocessor to autogenerate some files for runtime reflection.
The development of the preprocessor was going well, until I tried to run it during a pre-build event in visual studio where it wouldn't parse all of the files that I gave it. When run from the debugger or from a local published version of the application the program generates the AST in 30-40 seconds, finds 19 classes, 4 of which have the reflectable attribute, and generates 4 files for each of those classes (16 in total). But when the application is run during a pre-build event it only takes 5-6 seconds, finds 8 classes (non of which are reflectable) and generates no files.
I have been testing and debugging for the last week and I am completely at a loss. If anyone has any ideas on what this could be any help would be appreciated.
Some of my suspicions that I have yet to be able to prove/disprove is that the VS19 build output cmd prompt may have some different env variables that prevent certain functions from being called or are blocking certain .Net libraries. I have also checked my output, and there are no errors to be found.
- Lenguaje dominante
- C#
- Estrellas
- 625
- Forks
- 79
- Merge medio
- 2 d 2 h
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de xoofx/CppAst.NET
-
CppContainerList throws "The item belongs already to a container" when parsing VTK 9.5 headers BodyAbierto
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
xoofx/CppAst.NET#122 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
xoofx/CppAst.NET#117 ·
-
Parsing .cpp implementation?Abiertoquestion
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
xoofx/CppAst.NET#115 · 3 comentarios ·
-
question
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
xoofx/CppAst.NET#95 · 4 comentarios ·
-
NullReferenceException when parsing instantiation of a previously partially specialised templateAbiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 35/100
xoofx/CppAst.NET#77 · 6 comentarios ·
Todos los issues de xoofx/CppAst.NET
Issues similares
-
byte类型在条件中的解析BUGAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
dotnetcore/FreeSql#2290 ·
-
status:waiting-for-triage type:bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
microsoftgraph/msgraph-sdk-dotnet#3194 ·
Los mantenedores suelen responder en 1 día
-
Backend enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
UI: money shows the minus sign next to the number, not before the currency (IL -3.0m, not -IL 3.0m)Abiertoarea: sim area: unity enhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
eyalgolan/statecraft-israel#1107 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 83/100
dimitar-radenkov/Pointframe#271 ·
Los mantenedores suelen responder en 1 día