Comments (8)
Hey @MaxKless,
I'll start this debug soon, will keep you informed, thanks for the input!
from nx-console.
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.
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.
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
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.
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.
-
You can start by installing
@angular-builders/[email protected]
.
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.
This is super helpful, thank you. I'll try to repro soon :) Can you fix it by upgrading the dependency?
from nx-console.
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.
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)
- Add `Common Nx Commands` panel to Intellij HOT 2
- no commands in generate & run target HOT 2
- NX Console V18.22.0 removed Generate & Run Target HOT 8
- question: how to use new command ui? HOT 2
- nx debug fails to start with a weird console message: ^[[7;1R HOT 1
- Generate UI window does not render in VSCode HOT 3
- Generate UI tab does NOT open after selection in VS Code / Nx Console HOT 1
- Save my choices in Generate UI HOT 2
- Working Directory not as a value in custom generators available HOT 2
- VSCode extension is high on CPU usage HOT 5
- Notification of breaking api change with v1.92 release of VS Code HOT 2
- Executed command from GUI and terminal are not equal. HOT 5
- After installing the NX Plugin in WebStorm the Syntax Highlighting of Angular is Buggy HOT 3
- Generate UI dropdown fails to render HOT 6
- Nx-related VSCode processes remains not disposed after closing VSCode HOT 3
- nx language server is throwing error when path defined with an asterisk HOT 3
- Prompt / terminal window open every time I save a file HOT 2
- Nx Console not showing if there are 10+ projects HOT 2
- Missing generate UI in webstorm HOT 1
- Add option to copy constructed command to command palette HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-console.