Skip to content
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

IntelliJ integration and configuration #4254

Open
sfe-efficy opened this issue Apr 11, 2024 · 5 comments
Open

IntelliJ integration and configuration #4254

sfe-efficy opened this issue Apr 11, 2024 · 5 comments

Comments

@sfe-efficy
Copy link

Hi!

Is any place where I can find documentation about configure the service details with IntelliJ?

I'm following recent changes and I saw there is a new configurable option "hybrid mode". But using the integration in IntelliJ, I don't see clearly how we can configure our services.

With IntelliJ 2024.1 we have this view:

image

Inside configuration we can see:

image

I don't know if it's possible to provide any kind of argument about where is our configuration, or this services is reading some common places.

In another hand, It was not possible to make working version 2 (latest tested version was 2.0.7, and hybrid mode was not possible to enable in my side).

It wasn't working because was not reporting any kind of error, and application was looking that it was working correctly.

Regards, and thanks for this great work :)

@so1ve
Copy link
Member

so1ve commented Apr 12, 2024

IntelliJ doesn't need hybrid mode. It runs volar as a separated language server, and I'm not sure if they have updated volar to 2.0.

@loosheng
Copy link

As of 2024.1,IntelliJ hasn't upgraded the v2 version of volar yet, they're currently under observation, so you can pay attention to this issue:WEB-65823

@sfe-efficy
Copy link
Author

sfe-efficy commented Apr 12, 2024

Yes, I know, but It's possible to use another version.

image

When I use the latest version (like 2.0.12), IntelliJ stop reporting errors, but this is happen too using vue-tsc too:

vue-tsc --noEmit --project crm

> [email protected] postbuild:crm
> vue-tsc --noEmit --project crm


Process finished with exit code 0

But, I know that I have errors in code:

image

Changing to 1.8.27 the errors are shown.

> vue-tsc --noEmit --project crm

....

7             foooo=""
              ~~~~~
....

144     promiseObserver1111.gsagsaglgas;
        ~~~~~~~~~~~~~~~~~~~


Found 2 errors in the same file....


Process finished with exit code 2

In any case, my question was more related about how the services can be configured? Because, normally when I saw this topic all details to configure this services is focus on VS.

@sfe-efficy
Copy link
Author

Hi again, some updates.

I retested again with latest version, 2.0.6 and I was having same problem.

But, this time I executed "vue-tsc" command with "--watch" mode and I saw an error about "ScriptKind" definition not found. It's an enum defined directly in "typescript".

I checked my "typescript" version and it was 5.1.6.
It suppose that this enum is defined in this version https://raw.githubusercontent.com/microsoft/TypeScript/v5.1.6/lib/typescript.d.ts

In any case, I tried to update typescript to 5.4.5 and now works fine :)

Before the services was not working, it was not listed in IntelliJ.

image

So, maybe it's missing a minimal required typescript version for this library.

@chipit24
Copy link

chipit24 commented May 6, 2024

Same issue as above for me ☝️ vue-tsc was broken and I had to update TS from 5.1.6 to 5.4.5 to fix it; there was no indication or mention of having a minimum supported TS version though; good suggestion for adding it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants