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

Invalid argument error in Windows path #688

Open
abrugaro opened this issue Feb 25, 2025 · 3 comments · May be fixed by #691
Open

Invalid argument error in Windows path #688

abrugaro opened this issue Feb 25, 2025 · 3 comments · May be fixed by #691
Labels
bug Something isn't working
Milestone

Comments

@abrugaro
Copy link
Contributor

I got the following errors while resolving an issue

[Errno 22] Invalid argument: '/c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java'
[Errno 22] Invalid argument: '/c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java'
[Errno 22] Invalid argument: '/c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java'
[Errno 22] Invalid argument: '/c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java'
[Errno 22] Invalid argument: '/c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java'
[Errno 22] Invalid argument: '/c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java'

I can imagine the error comes from the first "/" in the path

extension-Konveyor-Analyzer.log
kai-rpc-server.log
kai-analyzer-server.log

analysis_20250225T105901.json
solution_20250225T111024.json

Env:

  • Windows 11 Pro
  • Extension v0.0.12
  • Get Solution Max Effort: High
@abrugaro abrugaro added the bug Something isn't working label Feb 25, 2025
@jwmatthews jwmatthews added this to the v0.1.0 milestone Feb 25, 2025
@shawn-hurley
Copy link
Contributor

It appears to me the issue is that the parsing of the files for the maven task runner is not getting the correct filepaths for windows:

BUG - 2025-02-25 12:05:10,076 - kai.kai.reactive_codeplanner.task_runner.compiler.maven_validator - ThreadPoolExecutor-1_0 - [maven_validator.py:628 - deduplicate_errors()] - adding collapsed_error: SymbolNotFoundError<loc=/c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java:11:2, message=cannot find symbol>(priority=2(2), depth=0, retries=0)-lines:None -- for key: /c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java-<class 'kai.reactive_codeplanner.task_runner.compiler.maven_validator.SymbolNotFoundError'>-class Stateless
DEBUG - 2025-02-25 12:05:10,077 - kai.kai.reactive_codeplanner.task_runner.compiler.maven_validator - ThreadPoolExecutor-1_0 - [maven_validator.py:47 - run()] - determining whether maven cache should be set: build_errors: False, dependency_errors: False, catchall_errors: False, compilation_errors: True, cond: []
DEBUG - 2025-02-25 12:05:10,077 - kai.kai.reactive_codeplanner.task_runner.compiler.maven_validator - ThreadPoolExecutor-1_0 - [maven_validator.py:59 - run()] - Setting the maven cache with 1 compilation errors
DEBUG - 2025-02-25 12:05:10,078 - kai.kai.reactive_codeplanner.task_manager.task_manager - Thread-1 - [task_manager.py:173 - run_validators()] - Validator result: ValidationResult(passed=False, errors=[SymbolNotFoundError(priority=2, depth=0, parent=None, children=[], retry_count=0, max_retries=3, result=None, file='/c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java', line=11, column=2, message='cannot find symbol', details=['symbol: class Stateless'], parse_lines='[ERROR] /c:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderService.java:[11,2] cannot find symbol\nsymbol: class Stateless', missing_symbol='class Stateless', symbol_location=None)])

@shawn-hurley
Copy link
Contributor

@abrugaro just for helping can you add the output of mvn compile with the build errors?

@shawn-hurley
Copy link
Contributor

shawn-hurley commented Feb 25, 2025

talking offline the issue that we got is because the mvn output:

[ERROR] /C:/Users/Brugui/PycharmProjects/kai-ci/coolstore/src/main/java/com/redhat/coolstore/service/OrderServiceMDB.java:[27,59] cannot find symbol
[ERROR]   symbol:   class TextMessage
[ERROR]   symbol:   class TextMessage
[ERROR]   location: class 

Is adding that the leading slash

@shawn-hurley shawn-hurley linked a pull request Feb 25, 2025 that will close this issue
@shawn-hurley shawn-hurley moved this from Todo to In Progress in Kai Tech Preview Release Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

Successfully merging a pull request may close this issue.

3 participants