1pkg/gopium

Visiting error happened types package "main" wasn't found

tedwardd opened this issue · 2 comments

I'm very new to gopium so I'm not sure how best to represent this issue. I've followed the setup instructions in the README but have encountered the following issue. According to the issues page, this was encountered once before and considered resolved in v.1.2.0 but I am currently on v.1.4.0 and experiencing a similar issue:

Screen Shot 2021-09-21 at 5 02 41 PM

gopium 🌺: /Users/tedwarddd/go/bin/gopium -p /Users/tedwarddd/git-work/xxxxxx/xxx-xxxxx/cmd/xxx-xxxxx -r .* -c gc -a amd64 -l 64 -l 64 -l 64 -d -b -i 0 -w 8 -t 0 ast_go main memory_pack
Error: visiting error happened types package "main" wasn't found at "/Users/tedwarddd/git-work/xxxxxx/xxx-xxxxx/cmd/xxx-xxxxx"
1pkg commented

@tedwardd, thank you for reporting.
I can confirm that I can reproduce this. For the case when directory and package name differ e.g. package main in directory cmd/run. I will prepare the fix for this shortly.

1pkg commented

I relaxed the check on package validation in https://github.com/1pkg/gopium/releases/tag/v1.5.0.
It should be resolved, please try it out.