Skip to content

DTD file completion not detected properly #945

Closed

Description

@ejgutierrez74

I have one file called ( of course in the same directory as xml file) a DTD file called bautistamonicaoriginal.dtd.....In vscode it detects lots of files...except the one i need....

imagen

At the same time you wrote the file name, it appear lots of files....

imagen

imagen

But no one even began with b or ba or bau or baut...and so on....the files which name is helping are far similar to the one i seek

Activity

  1. fbricon commented on Nov 13, 2023

    @fbricon
    Collaborator

    I can reproduce this weird behavior. When completing on <!DOCTYPE foo SYSTEM "|">, it seems it's listing the contents of the parent directory instead of the current one.

  2. angelozerr commented on Nov 15, 2023

    @angelozerr
    Contributor

    @ejgutierrez74 if I remember you need to write ./ before, but I agree it is an annoying issue.

  3. ejgutierrez74 commented on Nov 15, 2023

    @ejgutierrez74
    Author

    @ejgutierrez74 if I remember you need to write ./ before, but I agree it is an annoying issue.

    No i dont, im on linux system...in xml copy editor and other like netbeans works ok. I remind that both files are in same directory. I put an Example of changing directory without ./

    imagen

    Also in vscode when you programming in HTML you put:

    <link rel="stylesheet" type="text/css" href="CSS/styles.css" />

    supposed you have styles.css in CSS folder...no ./ needed

  4. changed the title [-]DTD file not detected properly[/-] [+]DTD file completion not detected properly[/+] on Nov 15, 2023
  5. fbricon commented on Nov 15, 2023

    @fbricon
    Collaborator

    The issue is caused by https://github.com/eclipse/lemminx/pull/1293/files

    The current file completion has some outstanding issues:

    • it lists files from the parent directory, when requesting completion for something that doesn't start with a files separator
    • it prefixes all results with a /, even when requesting ./something
    • applying completion appends the text to the existing value. eg. if you complete "|./foo.dtd" and select the existing "foo.dtd", the result will be "foo.dtd./foo.dtd"
  6. ejgutierrez74 commented on Nov 18, 2023

    @ejgutierrez74
    Author

    The issue is caused by https://github.com/eclipse/lemminx/pull/1293/files

    The current file completion has some outstanding issues:

    * it lists files from the parent directory, when requesting completion for something that doesn't start with a files separator
    
    * it prefixes all results with a /, even when requesting ./something
    
    * applying completion appends the text to the existing value. eg. if you complete "|./foo.dtd" and select the existing "foo.dtd", the result will be "foo.dtd./foo.dtd"
    

    Its then solved the error ? I see amerged code, dont know if its fixed in new release or nightly or prerelease code....Thanks

  7. angelozerr commented on Nov 18, 2023

    @angelozerr
    Contributor

    As soon as the issue is not closed it means that it is not fixed.

    We need to create a PR. @fbricon have you the intention to fix it?

  8. ejgutierrez74 commented on Nov 22, 2023

    @ejgutierrez74
    Author
  9. fbricon commented on Nov 22, 2023

    @fbricon
    Collaborator

    Sorry I'm busy with other tasks so don't expect me to fix it any time soon.

    The problem was introduced in eclipse-lemminx/lemminx#1293. @ejgutierrez74 feel free to open a PR to fix it.

  10. angelozerr commented on Nov 22, 2023

    @angelozerr
    Contributor

    Thanks @fbricon for your answer.

    I think this file completion must be revisited . I will try to do that to integrate to the next release but I cannot promise you @ejgutierrez74 that I will be able to do that.

  11. ejgutierrez74 commented on Nov 23, 2023

    @ejgutierrez74
    Author

    Dont promise me, promise to fix it to my students @angelozerr ;)

  12. angelozerr commented on Nov 28, 2023

    @angelozerr
    Contributor

    @ejgutierrez74 here a demo with my current work:

    DTDFileCompletion

  13. ejgutierrez74 commented on Nov 28, 2023

    @ejgutierrez74
    Author

    Seems great
    Thank you for your effort

  14. moved this to 🏗 In progress in IDE Cloudaptorson Nov 29, 2023
  15. self-assigned this
    on Nov 29, 2023
  16. added this to the 0.27.0 milestone on Nov 29, 2023
  17. angelozerr commented on Dec 1, 2023

    @angelozerr
    Contributor

    Fixed with eclipse-lemminx/lemminx#1604

    @ejgutierrez74 the DTD file completion should work now. Please install the pre-release (I think it will be available tomorrow) and give us feedback if it is working correctly for you. Thanks!

  18. moved this from 🏗 In progress to ✅ Done in IDE Cloudaptorson Dec 1, 2023
  19. ejgutierrez74 commented on Dec 2, 2023

    @ejgutierrez74
    Author

    My tests three or four files, in VsCode in Ubuntu 22.04 seems that work great....
    Any ETA when avalaible to general public ?

    Thanks for your work.
    Didnt test it because we havent arrived to Schema....but should work and detect XSD files....no ??

  20. angelozerr commented on Dec 2, 2023

    @angelozerr
    Contributor

    seems that work great.

    Nice!

    Any ETA when avalaible to general public ?

    We will try to create a release next week if we have time.

    Thanks for your work.

    You are welcome.

    but should work and detect XSD files....no ??

    Yes it should work.

  21. ejgutierrez74 commented on Jan 8, 2024

    @ejgutierrez74
    Author

    Any news ??
    Happy new year
    Seems no new release has been published....

  22. angelozerr commented on Jan 8, 2024

    @angelozerr
    Contributor

    Happy new year @ejgutierrez74

    We need to find time to create this release, since we are very busy with other projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions