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

Typescript autocompletion is no longer working #2235

Closed
andresfulla opened this issue Jul 31, 2019 · 12 comments · Fixed by #2238
Closed

Typescript autocompletion is no longer working #2235

andresfulla opened this issue Jul 31, 2019 · 12 comments · Fixed by #2238
Labels
3.x comp: clay-components Issues related to Clay components. (e.g ClayCard, ClayLabel...) type: bug Issues reporting that Component is not doing what should be done

Comments

@andresfulla
Copy link

Since we updated our components to 3.0.0-milestone.2 VS Code is no longer helping me to write components with props autocompletion. That was a productivity boost, so I'm missing it. Thanks!

@matuzalemsteles matuzalemsteles added 3.x comp: clay-components Issues related to Clay components. (e.g ClayCard, ClayLabel...) status: needs investigate Must be investigated to arrive at a solution labels Jul 31, 2019
@matuzalemsteles matuzalemsteles added this to the v3.0.0-milestone.3 milestone Jul 31, 2019
@matuzalemsteles
Copy link
Member

hey @andresfulla I'm glad it helped a lot, but it stops working is a bit weird, we didn't change anything in the typescript types distribution. I need to investigate further to make sure we break. Thanks for that!

@diegonvs
Copy link
Contributor

Hey @andresfulla,

I was getting this error in past but probably was a bug with VScode, I'm currently using VScode - Insiders and It solved for me.

@andresfulla
Copy link
Author

Thanks! I just installed VS Code Insiders and still does not work for me. So I'll leave it open.

@jbalsas
Copy link
Contributor

jbalsas commented Aug 1, 2019

Didn't seem to work for me either... maybe it's the extension or sth?

@matuzalemsteles
Copy link
Member

Thanks guys for reporting, I'm marking this with a bug now.

Basic components that had no dependencies between components were working with types, now the components with Clay package dependencies are broken, because types are generated based on the package names inside the lib folder, something like this:

./lib/clay-icon/index.d.ts
./lib/clay-button/index.d.ts
./lib/index.js

So we can correct the types paths in these packages or we can stop typescript from generating types of these dependencies, I'll investigate this later. Thanks for that again this was possibly already broken in other components and versions.

@matuzalemsteles matuzalemsteles added type: bug Issues reporting that Component is not doing what should be done and removed status: needs investigate Must be investigated to arrive at a solution labels Aug 1, 2019
@jbalsas
Copy link
Contributor

jbalsas commented Aug 8, 2019

I've removed the is:open trigger from our exalate sync setup... commenting here to see if at least this gets picked up and the jira issue gets closed

@andresfulla
Copy link
Author

I had some weird behaviour yesterday with VS Code, and I think it has to do with this.

Whenever I rename a file, and I let VS Code perform a refactor on the js files that import that file, not only I get the nicely done refactor , I also get a prefix ./node_modules/ on all @clayui imports. Weird uh.

I'll open a different issue if this keeps happening, but I'm pretty sure is related to this.

@wincent
Copy link
Contributor

wincent commented Aug 12, 2019

@andresfulla: When you open this (maybe you have already, but I couldn't find it), please mention @p2kmgcl as well — we were discussing this in the weekly guild chat and he reports exactly the same problem with the unwanted "node_modules" prefix.

@andresfulla
Copy link
Author

I had some weird behaviour yesterday with VS Code, and I think it has to do with this.

Whenever I rename a file, and I let VS Code perform a refactor on the js files that import that file, not only I get the nicely done refactor , I also get a prefix ./node_modules/ on all @clayui imports. Weird uh.

I'll open a different issue if this keeps happening, but I'm pretty sure is related to this.

I can no longer reproduce this renaming issue in VS Code. But VS Code keeps complaining in ClayButton or ClayButton.

@matuzalemsteles
Copy link
Member

hey @andresfulla we haven't released the changes yet, it was just merged into the master, you can follow the next release here https://github.com/liferay/clay/milestone/10.

@bryceosterhaus
Copy link
Member

@andresfulla do you still run into this at all? I was looking into something similar in #2775

@andresfulla
Copy link
Author

I am not having any problems now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.x comp: clay-components Issues related to Clay components. (e.g ClayCard, ClayLabel...) type: bug Issues reporting that Component is not doing what should be done
Projects
None yet
6 participants