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
Freezing the IDE when navigating into package.json #2065
Comments
Yeah that makes sense that this would pop up after the node proces is killed. We need a background process (the nxls) to provide info on nx to the IDE. Could you provide some logs so we can track down whether it's responsible? Also the |
This is specifically happening in Jetbrains IDE. |
Hello. just happened again without clicking into any JSON file, but after pressing double-shift for searching. I've inserted the trace log setting, but need to wait until it happens again I try to run nx daemon before killing the node process next time. |
You don't really need to run |
Downgrading to nx console 1.15.1 resolved the issue for us. It has been an issue with our team on IntelliJ. |
Thanks for the report @Lorondos. With it I should be able to figure out what's going on. |
@MaxKless Thanks for getting back to me, I have opened one large JSON package file and it basically froze below when it was trying to connect the textService to the package.json, IntelliJ is now a grey screen with no UI elements:
I opened a smaller package.json that is part of our project, and it displayed in IntelliJ without issue:
I will check the daemon logs shortly. |
No change in the daemon log from that point onwards:
It has not updated since the lockup of IntelliJ. |
Thanks for the logs. Did you update the debug log settings as mentioned above? I'm curious whether there's any logs showing from the LSP or if it just crashes right away. Either way that's super helpful, thank you!! How big is the JSON file we're talking about? :P |
Yeah, added the trace command for nx console. It might be related but the versions beyond 1.15.1 also no longer load the projects and targets otherwise I would expect the message about how it could not find anything, seems to have frozen with loading here too: I tried a few more times and I have noticed, might be just a background thing from IntelliJ, this is logged:
Not that big, 130 lines :P |
Can you paste your |
@MaxKless Sure, here you go:
|
Good news, this has changed with the latest IntelliJ fixes, I now get the "No projects not found" warning and package.json does not lock up, now only "No projects no found" remains to be fixed:
I can run the nx commands manually no issues, just population/refresh of the workspace project/targets fails. |
Lastest log pull, looks like the issue is with @parcel/watcher.
When shutting down IntelliJ:
|
hmmm it's using @parcel/watcher? what nx version is this? |
I think one of our repos is on another NX version so I might try my luck with that. |
Yeah, we updated one of our repos to v18.3.3, getting the same issue with @parcel/watcher. |
That's so weird... There's probably some issue with your node installation... did you go through the troubleshooting steps here? https://nx.dev/recipes/nx-console/console-troubleshooting Either way, modern versions of Nx don't use @parce/watcher anymore so this error shouldn't happen. I have a PR here that imports it lazily so the error should disappear: |
Ah great! Thanks for that @MaxKless , I will let you know if it is resolved. Hmm, This was with node.js 18, I tried changing the node.js interpreter to 20 in IntelliJ, same issue. Let me roll back to the last known working version again and see if I can see anything in the logs maybe. |
are you sure you have the 64-bit version of node installed @Lorondos? Stuff like that can cause issues |
Yeah, I checked the runtime running in task manager (No appended 32-bit) and the installation is in "Program Files" folder. Rolled back to Nx Console 1.15.1 and working:
I might just double check with our service desk to be 100% sure. Edit: Yeah, 64-bit only. |
Current Behavior
My IDE is constantly freezing. I didn't know why but this time the error message popped up in the IDE after killing all Node processes
Expected Behavior
Steps to Reproduce
Failure Logs / Images / Videos
Environment
IntelliJ: 2023.3.4
The text was updated successfully, but these errors were encountered: