Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Cannot load project in VSCode #1446

Open
Labels
@demonfiddler

Description

Describe the bug

VSCode (correctly configured for Java development) fails to load the projects.

To Reproduce

  1. Open VSCode (with Microsoft's 'Extension Pack for Java' extension installed
  2. Ctrl+Shift+P > Java: Configure Java Runtime > Project Settings > Classpath > JDK Runtime> JDK: JavaSE-21
  3. File > Open folder... > (specify path to git-cloned LibrePDF/OpenPDF source).
  4. Allow build to finish
  5. Open any .java source
  6. Observe problem markers about unresolved java.* class references
  7. Ctrl+Shift+P > Developer: Open Logs Folder, drill down to exthost\output_logging_20251106T1459364円-Language Support for Java.log,
  8. Note the exception:
    org.eclipse.core.runtime.CoreException: Could not update project openpdf-html configuration
    ...Caused by: java.lang.IllegalArgumentException: Path must include project and resource name: /
  9. Open /openpdf-html/pom.xml and comment out lines 92 - 98 <resource><directory>../</directory>...</resource>, then save the file.
  10. Allow build to finish
  11. Observe problem markers mentioned in 6.) have gone away. (Note that there are still > 1,000 other problems, including lots of raw type issues.)
  12. CoPilot suggests using the maven-resources-plugin:copy mojo to copy the LICENSE.* from the parent ../META-INF/ folder.

Expected behavior

When a correctly configured VSCode opens a 3rd party Maven project at its root folder, the project and its sub-modules should all be correctly imported as Java projects.

Screenshots

N/A

System

  • OS: Windows 10 (Windows_NT x64 10.0.19045)
  • Used font: N/A
  • OpenPDF version: 3.0.1-SNAPSHOT
  • VSCode Version: 1.105.1 (user setup)
    Commit: 7d842fb85a0275a4a8e4d7e040d2625abbf7f084

Your real name

Adrian Price

Additional context

I only embarked upon this course of action in order to understand why openpdf-html ignores the HTML entities for certain Unicode characters such as ★ ☆ ☐ ☒ which I wanted to use for rendering star ratings and check-boxes. I shall log this as a separate issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /