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

[Bug]: cannot resolve module compilation errors when moving from update 8 to another version #41338

Open
Nadeeshan96 opened this issue Sep 4, 2023 · 2 comments
Labels
Area/ProjectAPI Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug

Comments

@Nadeeshan96
Copy link
Contributor

Nadeeshan96 commented Sep 4, 2023

Description

$title

Steps to Reproduce

% bal new hello
Created new package 'hello' at /Users/nadeeshand/hello.

% cd hello 

% bal run
Compiling source
        nadeeshand/hello:0.1.0

Running executable

Hello, World!

% bal -v
Ballerina 2201.8.0 (Swan Lake Update 8)
Language specification 2023R1
Update Tool 1.3.15

% bal dist use 2201.7.2
'2201.7.2' successfully set as the active distribution

% bal -v               
Ballerina 2201.7.2 (Swan Lake Update 7)
Language specification 2023R1
Update Tool 1.3.15

% bal run 
Compiling source
        nadeeshand/hello:0.1.0
ERROR [main.bal:(1:1,1:21)] cannot resolve module 'ballerina/io'
ERROR [main.bal:(4:5,4:32)] undefined function 'println'
ERROR [main.bal:(4:5,4:32)] undefined module 'io'
error: compilation contains errors

When Dependencies.toml is removed and bal run is run again, this compiles successfully. It seems better to provide a message to do that.

Affected Version(s)

2201.8.0. test pack

OS, DB, other environment details and versions

MacOS 13.2.1

Related area

-> Update Tool

Related issue(s) (optional)

No response

Suggested label(s) (optional)

No response

Suggested assignee(s) (optional)

No response

@ballerina-bot ballerina-bot transferred this issue from ballerina-platform/ballerina-lang Sep 4, 2023
@Nadeeshan96 Nadeeshan96 changed the title [Bug]: cannot resolve module compilation errors when moving from update 8 to other version [Bug]: cannot resolve module compilation errors when moving from update 8 to another version Sep 4, 2023
@udda1996 udda1996 transferred this issue from ballerina-platform/ballerina-update-tool Sep 5, 2023
@Nadeeshan96 Nadeeshan96 added Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Area/ProjectAPI labels Sep 5, 2023
@Nadeeshan96
Copy link
Contributor Author

Nadeeshan96 commented Sep 5, 2023

Discussed better to add the reason as a FAQ or as a Stack Overflow question.

@Nadeeshan96
Copy link
Contributor Author

Discussed better to add the reason as a FAQ or as a Stack Overflow question.

Created https://stackoverflow.com/questions/77351869/cannot-resolve-module-compilation-errors-after-downgrading-the-ballerina-versi.

@azinneera azinneera added this to the 2201.10.0 milestone Jun 25, 2024
@Dilhasha Dilhasha removed this from the 2201.10.0 milestone Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area/ProjectAPI Team/DevTools Ballerina Developer Tooling ( CLI, Test FW, Package Management, OpenAPI, APIDocs ) Type/Bug
Projects
Status: BackLog
Development

No branches or pull requests

3 participants