-
Notifications
You must be signed in to change notification settings - Fork 25
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
Can I use web-types in Goland without package.json? #55
Comments
@nkev so far web-types support in WebStorm works only with |
Thanks @piotrtomiak. My build system is very simple and uses Goland's built-in File Watchers to process SCSS and JS bundles: I don't like having hundreds of NPM dependencies, so I manually keep a |
Thanks for the explanation. I assume that in lib/htmx for instance there is just the JS file, isn't it? |
Thank you for the example! It looks like any autodetection mechanism wouldn't work for you. You would need a preference page, where you can explicitly specify, which web-types file to enable, correct? |
Yes, I think a generic Jetbrains "Web Types" dialog would be more configurable and more explicit than automatically traversing project files to find |
I second this need. :-) Doing a pure HTML/JS page with some custom web-components and getting a lot of "Unknown html tag". |
Hi there. We also need such a feature, really much. Current "package.json" implementation lacks a lot of power. For example, a package.json in subfolder overrides the web-types from it parents. You have a root folder with web-types in package.json, you have a subfolder with no web-types in package.json. Result: In all files edited in this subfolder you will have no web-types support what so ever. Bad for a module based development, where your root contains all base features and components. In can think of ways to solve this:
Our current workaround is: We have the same "web-types" linked in all subfolders that have a package.json. As well as in the root node. Otherwise this wouldn't work. As we have multiple files, it's a bit struggling when a new file arrives... |
@brainfoolong - could you please share some example project, so that I can better understand what's the problem and experiment with possible solutions? |
@piotrtomiak I have prepared a super simple basic project with a root folder and submodules, each of which can (but not must) have a package.json. Control or changing package.json in submodules is not (always) possible You have 2 test.html files, on have autocompletion for the expected web-types, one have not. Conclusion: The thing i would really prefer is some sort of explicit file convention, that is auto-detected as a web-types.json file. For that i don't have to manage or even create package.json files just for that reason. |
@brainfoolong Thanks! I am looking at some new options to provide Web Types wihtout |
That sounds great, if i am finally able to kick all unnecessary |
Hey @piotrtomiak - Can we see a preview of some new options in the PhpStorm 2024.2 EAP program? Don't find a trace for that in the release notes. |
Just wanted to +1 on this, I'm also using htmx and shoelace in my project (which is a super simple app using ktor with server side rendering). I'm including htmx and shoelace in my index.html using |
@brainfoolong - I had in plans to add this support, but I have spent 3 months on implementing new solution for type checking in Angular. It was hell. I am going for vacations for few weeks. I want to add the support for 2024.3 and maybe we could cherrypick it to 2024.2.x. |
@piotrtomiak Hi, back again :) I'm currently testing 2024.3 EAP. Had you time to implement this thing? Can't see changelog news for anything related. Greetz |
Does the web-types system have a dependency on NPM?
I don't use npm or package.json but I want to use the HTMX webtype in JetBrains Goland.
Is this possible?
The text was updated successfully, but these errors were encountered: