Comments (8)
Hey @MarcusElevait thanks for the report.
Are you setting the NX_DAEMON_SOCKET_DIR
directly in the terminal?
If yes, there's no way for Nx Console to know what this inline env variable is set to. You should use a root .env
file to set the env variable in a way that Nx Console can pick up as well. https://nx.dev/recipes/tips-n-tricks/define-environment-variables
Can you confirm that this issue persists even if you define it in this way?
from nx-console.
Yes the issue still persists. And it was again pretty clear, that as soon as i deactivate the nx console plugin the issue is not there anymore.
Here is again the beginning of the daemon.log file:
[NX Daemon Server] - 2024-05-13T12:11:09.750Z - Started listening on: /home/marcus/Projects/aicosy/.nx/d.sock [NX Daemon Server] - 2024-05-13T12:11:09.753Z - [WATCHER]: Subscribed to changes within: /home/marcus/Projects/aicosy (native) [NX Daemon Server] - 2024-05-13T12:11:09.758Z - Established a connection. Number of open connections: 1 [NX Daemon Server] - 2024-05-13T12:11:09.760Z - Closed a connection. Number of open connections: 0 [NX Daemon Server] - 2024-05-13T12:11:19.609Z - [WATCHER]: package-lock.json was modified [NX Daemon Server] - 2024-05-13T12:11:19.609Z - [WATCHER]: Processing file changes in outputs [NX Daemon Server] - 2024-05-13T12:11:19.745Z - [REQUEST]: Updated workspace context based on watched changes, recomputing project graph... [NX Daemon Server] - 2024-05-13T12:11:19.745Z - [REQUEST]: package-lock.json [NX Daemon Server] - 2024-05-13T12:11:19.745Z - [REQUEST]: [NX Daemon Server] - 2024-05-13T12:11:20.324Z - Time taken for 'Load Nx Plugin: /home/marcus/Projects/aicosy/node_modules/nx/src/plugins/project-json/build-nodes/package-json-next-to-project-json' 28.765384000000267ms [NX Daemon Server] - 2024-05-13T12:11:20.694Z - Started listening on: /tmp/c3fb6aaef5aa7fc7fef2/d.sock
And i haven't done much. I've just run nx daemon --stop
and then nx daemon --start
and run npm i
and that's it.
from nx-console.
Thanks for confirming @MarcusElevait!
I was able to repro this and have a PR open to fix it in the nx repo. It requires some changes to environment variable loading so I sadly can't fix it from the console side. You'll have to migrate to the latest Nx version once it's merged & released.
Keep your eyes on this issue if you want to track its progress
nrwl/nx#23348
from nx-console.
Thank you very much :-)
from nx-console.
Is this fix already provided in the version v18.21.4
of the vs code plugin? Because we have seen this issue again
from nx-console.
Hey! Yes this fix is provided in Nx but there was a revert in the latest Nx version.
I will release another Nx Console version with a fix ASAP. Thank you for your patience.
from nx-console.
Thank you :-)
from nx-console.
hey just letting you know, the new version is published and available. It should fix your issues, please let me know if it works.
from nx-console.
Related Issues (20)
- Spaces being removed in generators parameters in UI HOT 10
- Cannot create nx Workspace HOT 1
- Cannot open generator UI in VSCode HOT 2
- Multiple terminal popups on Windows HOT 7
- "We couldn't find any projects in this workspace" HOT 2
- Windows: descriptions breaks the Generate UI HOT 1
- works if the project is in the root folder HOT 1
- [Jetbrains] Nx Console cannot run any task from IDE if there's a folder named `nx` in workspace root HOT 1
- Nx Console Generate (UI) tab displaying raw HTML instead of generator options UI in Webstorm HOT 3
- Generate UI dropdown fails to render HOT 6
- nx console generator path argument bug HOT 6
- Show context menu Nx actions in Rider HOT 3
- Add `Move/Remove/etc` actions to the Nx Console context menu in Intellij/Webstorm/Rider HOT 1
- Add `Common Nx Commands` panel to Intellij HOT 1
- no commands in generate & run target HOT 2
- question: how to use new command ui? HOT 2
- nx debug fails to start with a weird console message: ^[[7;1R HOT 1
- NX Console V18.22.0 removed Generate & Run Target HOT 8
- 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
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.