Giter Site home page Giter Site logo

Comments (8)

renatoaraujoc avatar renatoaraujoc commented on August 17, 2024 1

Hey @MaxKless,

I'll start this debug soon, will keep you informed, thanks for the input!

from nx-console.

MaxKless avatar MaxKless commented on August 17, 2024

Do you have a repro I can try this on?
Because otherwise the exact cause will be very hard for me to pin down.
Alternatively you could clone Nx Console and add some logging. Then we can collab on a fix :)

from nx-console.

renatoaraujoc avatar renatoaraujoc commented on August 17, 2024

Hey @MaxKless,

The repo I'm using and the only one causing this issue is private, it's the companies' repo.

The weirdest part is that nx generator in the cli works perfectly, everything works, except the Generate UI, btw I also checked my VSCode Generate UI doesn't work as well for this project.

Could you provide me the basics steps to compile the Nx Console (Language server + plugin) so I can log it here?

I'll do my best to fix it and then come back with issue for you and maybe even provide some feedback with what could be improved in the logging itself so my case is easier to identify for others that may suffer from this issue.

Renato

from nx-console.

MaxKless avatar MaxKless commented on August 17, 2024

Thanks for the willingness to help out! It makes sense that the CLI works and the UI doesn't. You can see that this error is happening during the nx/generators request which is where the nxls computes what generators are available in the workspace. It's different logic from nx which just looks up a specific generator.

Spinning up Nx Console in IntelliJ is easy. You just clone the repo, run yarn and use this runIde gradle task to run a development instance of intellij with your local changes
image

You can find the code for the generators request under libs/language-server/workspace/src/lib/get-generators.ts. You can add some logging by importing lspLogger from @nx-console/language-server/utils. There you can check at what point your code errors.

I'm super grateful for your help and look forward to what you find out!

from nx-console.

renatoaraujoc avatar renatoaraujoc commented on August 17, 2024

Hey @MaxKless, good news, I found the issue (and actually fixed the Nx Generate UI here by removing the package)!

First off, it was nothing related to my Nx Workspace at all (thanks God) but actually it's related to an external dependecy called @angular-builders/[email protected].

I pin-pointed the exact location where it throws the error so it can help you maybe patch the Nx Console. Since I'm not an Nx Console expert, I can't actually provide any fix but I can help you by showing where it happens.

  1. You can start by installing @angular-builders/[email protected].

  2. Then exactly here, this is where the issue happens:
    Screenshot 2024-04-06 at 04 01 24

I hope my help is of some use, I believe this is related to Project Crystal since you guys are now "inferring" stuff automatically and this is some sort of edge case.

Renato

from nx-console.

MaxKless avatar MaxKless commented on August 17, 2024

This is super helpful, thank you. I'll try to repro soon :) Can you fix it by upgrading the dependency?

from nx-console.

renatoaraujoc avatar renatoaraujoc commented on August 17, 2024

This is super helpful, thank you. I'll try to repro soon :) Can you fix it by upgrading the dependency?

That was a last version of that depedency, I didn't need that custom webpack builder anymore since I ported all my Angular projects to Vite using AnalogJS's plugins.

And you're welcome! :)

from nx-console.

MaxKless avatar MaxKless commented on August 17, 2024

Hey! I just saw that this package was last published 5 years ago... so I'm not going to take the time to debug & fix this.

Still, thank you so much for the work you put in to identify the issue & I'm glad you got it resolved for yourself!

from nx-console.

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.