GithubHelp home page GithubHelp logo

Comments (5)

emphasis87 avatar emphasis87 commented on September 1, 2024 1

I see. I will give it a try sometime. I think you can close the issue for now.

from antlr4buildtasks.

kaby76 avatar kaby76 commented on September 1, 2024

I updated the code to be more robust in the face of null pointers in SubtractList and MakeRelativeList. What happens here is that the Antlr Java tool outputs a list of files that it has generated. That list has to be cleaned up for MSBuild so it can compile those generated files. Unfortunately, MS's build rules for C# are rather picky: file names cannot be duplicated, otherwise one gets duplicate symbol definition errors in IDEs, builds. Please give the new package version a try by updating your .csproj file to 8.3 for Antlr4BuildTasks, and let me know how it goes. If this doesn't work, try to send me a diagnostic build trace, dotnet build --verbosity diagnostic. --Ken

from antlr4buildtasks.

emphasis87 avatar emphasis87 commented on September 1, 2024

Seems to work fine, thanks for the timely fix. Coincidentally, how do you debug the MSBuild task? If you have a prepared setup, could you please add it to this repository?

from antlr4buildtasks.

kaby76 avatar kaby76 commented on September 1, 2024

Yes, debugging a build is tricky. What I do is place a Sleep() call somewhere in the code, start the build, then do an attach to msbuild.exe that I guess is the right one, and set the breakpoint to somewhere. It's a real headache because there are processes spawning processes.

from antlr4buildtasks.

kaby76 avatar kaby76 commented on September 1, 2024

Building a C# program that only contains the .g4 file and no .cs files causes SubtractList to fail.

from antlr4buildtasks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.