nrwl / nx-console

Nx Console is the user interface for Nx & Lerna.
https://nx.dev
MIT License
1.31k stars 210 forks source link

Intellij Idea with NX Console opens project.json with Data Editor and Viewer if form of a table #2125

Closed mikhail-g closed 3 months ago

mikhail-g commented 4 months ago

Current Behavior

Intellij Idea with NX Console opens project.json with Data Editor and Viewer if form of a table. Data Editor and Viewer is bundled and enabled in IntelliJ IDEA by default. I tried with both Database Tools and SQL plugin enabled and disabled (see link above)

package.json opens normally

Expected Behavior

project.json should be shown as json file

Steps to Reproduce

  1. Open nx project with Intellij Idea Ultimate
  2. Install NX Console plugin
  3. open project.json

Failure Logs / Images / Videos

Screenshot 2024-05-07 at 17 57 44

Environment

Intellij Idea (Host) OS: macOS 13.6.6 (22G630)

Intellij Idea (server) - connected via coder to linux workspace: Node : 20.5.1 OS : linux-x64 npm : 9.8.0

nx : 18.0.4 @nx/js : 18.0.4 @nx/jest : 18.0.4 @nx/linter : 18.0.4 @nx/eslint : 18.0.4 @nx/workspace : 18.0.4 @nx/cypress : 18.0.4 @nx/devkit : 18.0.4 @nx/eslint-plugin : 18.0.4 @nx/node : 18.0.4 @nx/react : 18.0.4 @nx/storybook : 18.0.4 @nrwl/tao : 18.0.4 @nx/web : 18.0.4 @nx/webpack : 18.0.4 typescript : 5.3.3

Community plugins: nx-stylelint : 17.1.4

MaxKless commented 4 months ago

Hey! Thanks for the report. Can you specify what you mean by 'if form of a table'? For me, project.json files open normally in IntelliJ IDEA Ultimate.

Please provide a minimal reproduction as that is the fastest way for me to see the same issue you're seeing and to help fix it! Thank you :)

Den-dp commented 3 months ago

@MaxKless don't have clear steps right now, but for me, it's a combination of Rider, Nx, and this Database Tools plugin

image

for some reason, they started to add an extra floating action button and 2 tabs underneath in every json file

image image

But it might be something JetBrains-related cause I don't have this problem in WebStorm with installed Nx and Database Tools.

MaxKless commented 3 months ago

Interesting... the refresh floating action button was added by Nx Console to be able to refresh to language server. It seems like a combination of plugins & Rider, maybe you can report it to JetBrains? But since it looks like you can just select the TextEditorWithPreview in order to get the correct view, it shouldn't be a problem, right?

I'll close this for now as it's not actionable for me :)